1 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/lang/Double.java (doubleToRawLongBits): Now native.
4 * java/lang/Float.java (floatToRawIntBits): Likewise.
5 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
6 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
8 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
10 * java/io/File.java (java.net): Imported.
11 (getAbsoluteFile): Added.
12 (getCanonicalPath): Likewise.
15 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
17 * java/lang/Byte.java: Remove redundant instanceof and null checks.
18 * java/lang/Integer.java: Likewise.
19 * java/lang/Long.java: Likewise.
20 * java/lang/Short.java: Likewise.
21 * java/lang/Double.java: Likewise.
22 (doubleToRawLongBits): New method.
23 * java/lang/Float.java: As above.
24 (floatToRawIntBits): New method.
26 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
27 IOException if stream closed.
29 2001-02-08 Tom Tromey <tromey@redhat.com>
31 * java/lang/Float.java (parseFloat): New method.
33 2001-02-08 Tom Tromey <tromey@redhat.com>
35 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
36 * java/io/InputStreamReader.java (ready, read): Throw IOException
37 if stream has been closed.
39 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
41 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
42 Change sources.redhat.com and sourceware.cygnus.com references to
45 2001-02-07 Tom Tromey <tromey@redhat.com>
47 Fix for PR libgcj/1906:
48 * java/text/MessageFormat.java (setLocale): Use named class
51 (format(Object,StringBuffer,FieldPosition)): Special case if
52 argument is an Object[].
54 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
56 * java/util/Arrays.java: Removed "cmp" methods.
57 (qsort): Don't use "cmp".
60 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
62 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
63 sort. Fix for PR java/1895.
65 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
67 * configure.host: Use sjlj-exceptions for Alpha.
69 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
71 * libgcj.spec.in: Don't force static libgcc into the executable.
72 * configure.in (FORCELIBGCCSPEC): Removed.
75 2001-01-31 Tom Tromey <tromey@redhat.com>
77 * Makefile.in: Rebuilt.
78 * Makefile.am (LTCXXCOMPILE): New macro.
80 2001-01-26 Andrew Haley <aph@redhat.com>
82 (INIT_FPE): Use a direct system call to set the handler.
84 2001-01-27 Richard Henderson <rth@redhat.com>
86 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
88 2001-01-27 Tom Tromey <tromey@redhat.com>
90 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
91 native interface structure.
93 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
95 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
97 (read (byte[], int, int)): Only call readNextBlock() if the block
98 buffer would actually be overrun. Increment blockDataPosition.
99 (callReadMethod): Propagate exceptions from invocation target.
100 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
101 exceptions from invocation target.
103 2001-01-26 Tom Tromey <tromey@redhat.com>
105 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
106 to internal representation.
107 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
108 _Jv_FindClassFromSignature.
110 2001-01-26 Warren Levy <warrenl@redhat.com>
112 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
113 and timezone if they are available on the system.
115 2001-01-24 Tom Tromey <tromey@redhat.com>
117 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
119 2001-01-24 Tom Tromey <tromey@redhat.com>
121 * Makefile.in: Rebuilt.
122 * Makefile.am (c_source_files): Added sf_fabs.c.
123 * java/lang/sf_fabs.c: New file.
125 2001-01-19 Warren Levy <warrenl@redhat.com>
127 * java/text/SimpleDateFormat.java (format): Compute hour for cases
128 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
129 correctly. Adjust properly from 0-23 clock hour.
131 2001-01-17 Mark Wielaard <mark@klomp.org>
133 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
135 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
137 * java/lang/Class.h (isInterface): Move implementation from
138 natClass.cc. Declare inline.
139 (Class): Add default constructor.
140 * java/lang/Object.h: Update comments.
141 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
142 initialize superclass, saving a call if super is already initialized.
144 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
146 * prims.cc (init_prim_class): Deleted.
147 (DECLARE_PRIM_TYPE): Rewritten.
148 * java/lang/Class.h (stdio.h): Include removed.
149 (stddef.h): Included.
150 (java/lang/reflect/Modifier.h): Likewise.
151 (Class): Contructor now takes arguments, initializes fields.
152 (initializePrim): Prototype deleted.
153 * java/lang/natClass.cc (initializePrim): Deleted.
155 2001-01-16 Warren Levy <warrenl@redhat.com>
157 * java/math/BigInteger.java: Update Copyright year.
159 2001-01-16 Hans Boehm <hans_boehm@hp.com>
161 * java/math/BigInteger.java (setShiftRight): Only do negative shift
164 2001-01-14 Mark Wielaard <mark@klomp.org>
165 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
166 (decode): Merge comments with Classpath, don't throw Exception
168 2001-01-12 Tom Tromey <tromey@redhat.com>
170 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
174 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
175 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
176 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
177 * gnu/awt/gtk/GtkLabelPeer.java: New file.
178 * gnu/awt/gtk/GtkButtonPeer.java: New file.
180 * java/lang/natSystem.cc: Include locale.h if it exists.
181 * configure: Rebuilt.
182 * configure.in: Check for locale.h.
184 2001-01-11 Tom Tromey <tromey@redhat.com>
186 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
187 (Cursor(int), getPredefinedCursor): Throw exception if argument
190 2001-01-03 Tom Tromey <tromey@redhat.com>
192 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
193 (getLocationOnScreen): Wrote.
195 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
197 * Makefile.am: Re-enable dependencies.
198 * Makefile.in: Rebuilt.
200 2001-01-10 Warren Levy <warrenl@redhat.com>
202 * java/math/BigDecimal.java (divide): Fixed comment.
204 2001-01-10 Warren Levy <warrenl@redhat.com>
206 Fix for PR libgcj/1596:
207 * java/math/BigDecimal.java (divide): Check newScale for validity.
208 Ensure that BigInteger.pow() is called with a non-negative value.
209 (setScale (int)): New public method.
210 (setScale (int,int)): New public method.
212 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
214 Fix for PR libgcj/1338:
215 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
216 commentChar. Fixed typos in comments.
218 2001-01-08 Warren Levy <warrenl@redhat.com>
220 Fix for PR libgcj/1411:
221 * Makefile.am: Removed java/util/natTimeZone.cc.
222 * Makefile.in: Rebuilt.
223 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
224 missing localized timezone names.
225 * java/lang/System.java (getDefaultTimeZoneId): New private method.
226 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
227 (init_properties): Set user.timezone property.
228 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
229 default timezone names; removed non-standard ones. Use standard
231 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
233 * java/util/TimeZone.java: Add standard ID names per JCL; removed
235 (getDefaultTimeZoneId): Removed.
237 * java/util/natTimeZone.cc: Removed.
239 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
241 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
242 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
243 (_Jv_GetArrayClass): New inline function.
244 (arrayclass): New field.
245 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
246 _Jv_GetArrayElementFromElementType.
247 (_Jv_NewPrimArray): Ditto.
248 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
249 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
250 Set Modifier::ABSTRACT.
251 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
252 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
253 Now synchronized. Array classes are now referenced from
254 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
255 Set array classes' accessibility flags correctly. Optimize so that
256 all array classes share the same IDT.
257 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
258 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
259 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
260 in superclasses from overwriting classes own fields.
261 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
262 Modifier::isAbstract().
263 (null_idt): New static field.
264 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
266 (_Jv_IndexOf): Made inline.
267 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
269 2001-01-08 Tom Tromey <tromey@redhat.com>
271 Fix for PR java/1586:
272 * Makefile.in: Rebuilt.
273 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
275 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
277 * Makefile.am: Use the new "-M -MF" option for generating dependencies
278 from the c++ compiler.
279 * Makefile.in: Rebuilt.
281 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
283 All files with updated copyright.
284 * prims.cc (class _Jv_PrimClass): Removed.
285 (init_prim_class): New function.
286 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
287 `_Jv_PrimClass' in primitive type declarations. Assign to the
288 value returned by `init_prim_class.'
289 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
290 primitive type declarations.
291 (JvPrimClass): Cast to `jclass' removed.
292 * java/lang/Class.h (Class): New constructor.
293 (Class): New copy constructor.
294 (initializePrim): New prototype.
295 (_Jv_PrimClass): Field removed.
296 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
297 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
298 (class java::lang::Object): `finalize' moved up front.
299 * java/lang/natClass.cc
300 (isAssignableFrom): Turned outline.
301 (isInstance): Likewise.
302 (isInterface): Likewise, fixed indentation.
303 (initializePrim): New function.
305 2001-01-07 Anthony Green <green@redhat.com>
307 * Makefile.am (texinfo): Add texinfo target for generating texinfo
309 * Makefile.in: Rebuilt.
311 * scripts/TexinfoDoclet.java: New file.
313 * doc/java-applet.texi, doc/java-lang-reflect.texi,
314 doc/java-awt-color.texi, doc/java-lang.texi,
315 doc/java-awt-datatransfer.texi, doc/java-math.texi,
316 doc/java-awt-event.texi, doc/java-net.texi,
317 doc/java-awt-geom.texi, doc/java-security-spec.texi,
318 doc/java-awt-image.texi, doc/java-security.texi,
319 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
320 doc/java-text.texi, doc/java-beans-beancontext.texi,
321 doc/java-util-jar.texi, doc/java-beans.texi,
322 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
323 doc/java-lang-ref.texi: New files.
325 2001-01-07 Anthony Green <green@redhat.com>
327 * java/net/URLConnection.java (setDoOutput): URLConnection's may
328 be used for both input and output, so don't clear doInput.
330 * java/lang/StringBuffer.java: Fix comments.
332 2001-01-06 Anthony Green <green@redhat.com>
334 * java/beans/PropertyDescriptor.java: Fix comment.
335 * java/io/PushbackReader.java: Fix comment.
336 * java/io/ObjectStreamClass.java: Fix comment.
337 * java/io/DataInputStream.java: Fix comment.
338 * java/io/PipedInputStream.java: Fix comments.
339 * java/io/PipedReader.java: Fix comments.
340 * java/sql/DatabaseMetaData.java: Fix comments.
342 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
344 * java/io/PipedReader: Synchronize on "lock" instead of this.
346 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
348 * java/lang/Thread.java: Update comment.
350 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
351 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
352 * java/io/PipedReader: New implementation based on new
354 * java/io/PipedWriter: Updated to match new PipedReader.
356 2001-01-03 Tom Tromey <tromey@redhat.com>
358 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
359 (getViewportSize): Insets include scrollbar size.
360 (doLayout): Finished.
361 (getScrollPosition): Wrote.
362 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
364 2001-01-02 Tom Tromey <tromey@redhat.com>
366 * java/awt/ScrollPane.java: Wrote.
367 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
370 * java/awt/Panel.java (Panel()): Fixed.
372 * java/awt/Component.java (isShowing): Return false if no peer
373 exists, and true if component is visible and no parent exists.
374 (getLocationOnScreen): Wrote.
375 (getPreferredSize): Removed FIXME comment.
376 (getMinimumSize): Likewise.
377 (getAlignmentX, getAlignmentY): Wrote.
379 (requestFocus): Wrote.
380 (transferFocus): Wrote.
381 (findNextFocusComponent): New method.
384 (enableEvents): Call setEventMask on the peer.
386 * java/awt/Container.java (list): Use super.list() to print self.
387 (findNextFocusComponent): New method.
388 (setLayout): Call invalidate.
389 (findComponentAt): Wrote.
391 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
393 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
394 the correct versions of various linuxthreads functions get linked.
395 * Makefile.in: Rebuilt.
396 * java/lang/natThread.cc (finalize_native): New static function. Call
397 _Jv_ThreadDestroyData.
398 (initialize_native): Register finalizer for "data".
399 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
400 (_Jv_ThreadDestroyData): New prototype.
401 * include/win32-threads.h: Ditto.
402 * include/no-threads.h: Ditto.
403 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
404 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
405 move mutex and condition variable destroy code from:
406 (really_start): ...here.
407 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
408 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
409 (_Jv_ThreadDestroyData): Implemented.
410 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
411 (_Jv_AllocArray): Ditto.
413 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
415 * java/sql/DriverManager.java (getConnection): Don't set user/password
418 2000-12-27 Warren Levy <warrenl@redhat.com>
420 Fix for PR libgcj/1358:
421 * java/lang/System.java: Update Copyright date properly.
422 * java/util/Calendar.java: Fix typo in comment.
423 (set): Set 24-hour clock hour instead of 12-hour clock hour.
424 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
425 initialize times. Spec says to set H:M:S values to zero only if
427 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
428 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
429 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
430 timezones and GMT offsets, being careful to account for units of
431 milliseconds vs. seconds.
433 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
435 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
436 not be assigned to Object.
438 Fix for PR libgcj/1516:
439 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
441 (can_widen): Declared inline. Remove redundant checks for void
442 arguments and char->short conversion. Add special case for boolean
444 (ffi_type): Declared inline.
445 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
447 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
449 * java/sql/SQLWarning.java: Fixed typo in comment.
451 2000-12-26 Tom Tromey <tromey@redhat.com>
453 * java/awt/MenuItem.java (paramString): Now protected.
455 * java/awt/MenuShortcut.java: Implements Serializable.
457 * java/awt/MenuBar.java: Rewrote from scratch.
459 * java/awt/MenuComponent.java (removeNotify): Wrote.
460 Implements Serializable.
462 * java/awt/GridBagConstraints.java (GridBagConstraints): New
465 * java/awt/CheckboxMenuItem.java: Wrote.
467 2000-12-25 Tom Tromey <tromey@redhat.com>
469 * java/awt/MenuContainer.java: Fixed typo.
471 * Makefile.in: Rebuilt.
472 * Makefile.am (awt_java_source_files): Added SystemColor.java.
473 * java/awt/SystemColor.java: New file.
475 * java/awt/Color.java (rgba): Now package-private.
477 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
479 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
482 * java/awt/MenuItem.java (addNotify): New method.
483 (MenuItem(String,MenuShortcut)): New constructor.
484 (setLabel): Notify peer of change.
485 (setEnabled): Likewise.
487 * java/awt/GridLayout.java (toString): New method.
489 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
490 (FlowLayout): Check for LEADING and TRAILING.
491 (setAlignment): Likewise.
492 (layoutContainer): Handle component orientation.
494 * java/awt/Component.java (orientatin): New field.
495 (setComponentOrientation): Wrote.
496 (getComponentOrientation): Wrote.
498 * java/awt/Event.java (Event): Implements Serializable.
499 (consumed): New field for serialization.
500 * java/awt/Dimension.java (Dimension): Implements Serializable.
501 * java/awt/Cursor.java (Cursor): Implements Serializable.
502 * java/awt/Container.java (Container): No longer abstract.
504 * java/awt/Choice.java: Wrote.
505 * java/awt/Checkbox.java: Wrote.
506 * java/awt/ItemSelectable.java: Documented.
507 * java/awt/CheckboxGroup.java: Wrote.
509 * java/awt/CardLayout.java (layoutContainer): Directly use fields
513 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
515 * java/io/FileDescriptor.java: Initialize fd to -1.
516 Remove default constructor.
518 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
520 * java/lang/mprec.h: Change C9X reference to refer to C99.
522 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
524 * java/lang/Throwable.java (trace_enabled): New static field.
525 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
526 trace_enabled not set.
527 * prims.cc (main_init): Turn off trace_enabled while creating
528 default exception objects.
530 2000-12-21 Tom Tromey <tromey@redhat.com>
532 * java/beans/PropertyChangeListener.java: Extends EventListener.
533 * java/beans/VetoableChangeListener.java: Extends EventListener.
535 * java/util/zip/Deflater.java (update, init): Now private.
537 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
539 * java/util/BasicMapEntry.java: Re-added.
540 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
541 (putAll): Test for BasicMapEntry.
542 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
543 (putAll): Test for BasicMapEntry.
544 Change references from `HashMap.Entry' to `Entry' in various places.
545 * Makefile.am: Add BasicMapEntry.java.
546 * Makefile.in: Rebuilt.
548 2000-12-18 Warren Levy <warrenl@redhat.com>
550 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
551 need to set timezone to a valid non-null value. Partial fix for
554 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
556 * java/awt/Window.java (addNotify): Remove peer casting hack now that
558 * java/awt/Button.java (addNotify): Likewise.
559 * java/awt/Label.java (addNotify): Likewise.
560 * java/awt/Panel.java (addNotify): Likewise.
561 * java/awt/Scrollbar.java (addNotify): Likewise.
562 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
563 Remove redundant null checks.
565 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
567 * COPYING: Update to current
568 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
569 to 19yy as example year in copyright notice).
571 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
573 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
574 end-of-stream if avail_in is 0.
576 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
578 * java/util/ArrayList.java (data): Declare transient.
579 (serialPersistantFields): Removed.
580 (readObject): Use defaultReadObject(), not readFields().
581 (writeObject): Use defaultWriteObject(), not writeFields().
583 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
585 * java/util/Hashtable.java (put): Remove `last' variable.
586 Link new entry to head of list.
587 * java/util/HashMap.java (put): Ditto.
589 2000-12-15 Tom Tromey <tromey@redhat.com>
591 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
592 loader to Class.forName.
594 2000-12-14 Tom Tromey <tromey@redhat.com>
596 * java/util/ResourceBundle.java
597 (getBundle(String,Locale,ClassLoader)): New method.
598 (trySomeGetBundle): Added `loader' argument.
599 (partialGetBundle): Likewise.
601 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
602 maximumFractionDigits, maximumIntegerDigits,
603 minimumFractionDigits, minimumIntegerDigits): Now
606 * java/lang/Thread.java (checkAccess): Now final.
608 * java/lang/RuntimePermission.java: Class now final.
610 * java/io/StringWriter.java (StringWriter(int)): Now public.
612 * java/io/SerializablePermission.java (legal_names): Now private.
614 * java/lang/Character.java: Updated UnicodeBlock constants.
615 * scripts/blocks.pl: Special case private use and surrogate
618 2000-12-12 Tom Tromey <tromey@redhat.com>
620 * Makefile.in: Rebuilt.
621 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
623 (GCJCOMPILE): Use it.
626 2000-12-11 Tom Tromey <tromey@redhat.com>
628 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
629 New static final fields.
631 * scripts/classes.pl (scan): Skip lines with leading `*'.
632 Fix for PR libgcj/378.
634 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
636 * configure.in: Remove check for -fuse-divide-subroutine.
637 * configure: Rebuilt.
639 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
641 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
643 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
645 * Makefile.am: Add HashSet.java and java/lang/ref classes.
646 Remove BasicMapEntry.java and Bucket.java.
647 * Makefile.in: Rebuilt.
648 * java/util/HashMap.java: Rewritten.
649 * java/util/HashSet.java: Imported from classpath.
650 * java/util/WeakHashMap.java: Imported from classpath.
651 * java/util/Hashtable.java: Rewritten based on new HashMap code.
652 * java/util/Bucket.java: Deleted.
653 * java/util/BasicMapEntry.java: Deleted.
654 * java/util/Collections.java (search): Use a for-loop, not iterator
656 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
657 of elements in source.
658 (max): Use a for-loop.
660 (reverse): Keep track of positions instead of using Iterator's
661 nextIndex() and previousIndex().
662 (shuffle(List)): Initialize defaultRandom if required using
663 double-check thread safety idiom. Call two-argument shuffle method
665 (defaultRandom): New field.
666 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
667 using previousIndex() and nextIndex().
668 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
669 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
670 * java/util/AbstractMap.java (toString): Use StringBuffer.
671 * java/lang/ref/PhantomReference.java: Imported from classpath.
672 * java/lang/ref/SoftReference.java: Ditto.
673 * java/lang/ref/Reference.java: Ditto.
674 * java/lang/ref/WeakReference.java: Ditto.
675 * java/lang/ref/ReferenceQueue.java: Ditto.
677 2000-12-10 Richard Henderson <rth@redhat.com>
679 * configure.host: Recognize alpha*-*, not alphaev6-*.
681 2000-12-09 Anthony Green <green@redhat.com>
683 * configure.host: Enable interpreter for Alpha.
685 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
687 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
688 (ZIP): Points at fastjar instead of zip.
689 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
690 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
691 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
692 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
693 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
694 ($(x_java_source_files:.java=.class):): Likewise.
695 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
697 (CLEANFILES): libgcj.jar replaces libgcj.zip.
698 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
699 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
700 java/lang/String.h:, java/lang/reflect/Constructor.h:,
701 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
702 gnu/gcj/runtime/VMClassLoader.h:,
703 java/io/ObjectInputStream$$GetField.h:,
704 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
705 (Makefile.in): Rebuilt.
707 2000-12-08 Tom Tromey <tromey@redhat.com>
710 * configure: Rebuilt.
711 * configure.in: Use echo, not `:', to create .d files.
713 2000-12-08 Warren Levy <warrenl@redhat.com>
715 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
716 NullPointerException so proper check of offset can be done.
718 2000-12-08 Warren Levy <warrenl@redhat.com>
720 * java/io/FileInputStream.java (close): Check if the fd is valid.
721 * java/io/RandomAccessFile.java (close): Ditto.
722 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
723 * java/net/PlainSocketImpl.java (close): Ditto.
725 2000-12-06 Tom Tromey <tromey@redhat.com>
727 * java/awt/GridBagConstraints.java: Filled in values for static
730 * java/util/BitSet.java: Updated copyright notice.
732 * Makefile.in: Rebuilt.
733 * Makefile.am (awt_java_source_files): Added new file.
734 * java/awt/GridBagConstraints.java: New file.
736 2000-12-05 Tom Tromey <tromey@redhat.com>
738 * java/text/Collator.java (decomposeCharacter, decmp, strength):
739 Now package-private, not protected.
740 * java/text/DateFormatSymbols.java (equals): Now private.
741 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
742 * java/util/BitSet.java: Class no longer final.
744 2000-12-04 Warren Levy <warrenl@redhat.com>
746 * java/util/TimeZone.java (getAvailableIDs): Activated commented
747 out code dependent on compiler and library changes.
749 2000-12-04 Warren Levy <warrenl@redhat.com>
751 * java/io/FilePermission.java: Made class final per spec.
752 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
753 method name to match spec (fixed typo).
754 * java/util/LinkedList.java: Implements List.
756 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
758 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
759 Edgar Villanueva <edgarvil@home.com>.
761 2000-12-03 Tom Tromey <tromey@redhat.com>
763 * java/awt/geom/Point2D.java: Added protected constructor.
764 (equals): New method.
765 (Float.setLocation(float,float)): New method.
766 * java/awt/geom/Dimension2D.java: Added protected constructor.
767 * java/awt/geom/AffineTransform.java: Made all constants public.
768 (concatenate): Fixed typo in name.
769 * java/awt/event/WindowAdapter.java: Class now abstract.
770 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
771 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
774 * java/awt/AWTError.java: Extend Error, not
775 IllegalStateException.
777 * Makefile.in: Rebuilt.
778 * Makefile.am (awt_java_source_files): Added new file.
779 * java/awt/geom/RoundRectangle2D.java: New file.
781 * Makefile.in: Rebuilt.
782 * Makefile.am (awt_java_source_files): Added new file.
783 * java/awt/FlowLayout.java: New file.
785 * Makefile.in: Rebuilt.
786 * Makefile.am (awt_java_source_files): Added new file.
787 * java/awt/GridLayout.java: New file.
789 2000-12-02 Tom Tromey <tromey@redhat.com>
791 * Makefile.in: Rebuilt.
792 * Makefile.am (awt_java_source_files): Added new files.
793 * java/awt/CardLayout.java: New file.
794 * java/awt/AWTPermission.java: New file.
796 2000-12-01 Tom Tromey <tromey@redhat.com>
798 * java/util/Vector.java (insertElementAt): Unconditionally
799 increment elementCount.
800 (removeRange): Clear unused slots in vector.
802 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
804 * java/lang/natMath.cc: Declare fabsf() function.
805 * java/lang/mprec.h: Don't include math.h.
806 * java/lang/dtoa.c: Include string.h.
807 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
810 From Adam Welc <welc@cs.purdue.edu>:
811 * java/util/LinkedList.java (removeFirst): Update `first' field.
812 Handle the last == first case.
813 (removeLast): Update `last' field. Handle the last == first case.
815 2000-12-01 Warren Levy <warrenl@cygnus.com>
817 * Makefile.am: Added entries for new java.sql modules.
818 * Makefile.in: Rebuilt.
820 2000-12-01 Warren Levy <warrenl@cygnus.com>
822 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
823 that aren't quite 1.2 compatible yet.
825 2000-11-30 Warren Levy <warrenl@cygnus.com>
827 * java/sql/Array.java: New file from classpath.
828 * java/sql/BatchUpdateException.java: Ditto.
829 * java/sql/Blob.java: Ditto.
830 * java/sql/Clob.java: Ditto.
831 * java/sql/Ref.java: Ditto.
832 * java/sql/SQLData.java: Ditto.
833 * java/sql/SQLInput.java: Ditto.
834 * java/sql/SQLOutput.java: Ditto.
835 * java/sql/Struct.java: Ditto.
836 * java/sql/CallableStatement.java: Merged file from claspath.
837 * java/sql/Connection.java: Ditto.
838 * java/sql/DataTruncation.java: Ditto.
839 * java/sql/DatabaseMetaData.java: Ditto.
840 * java/sql/DriverManager.java: Ditto.
841 * java/sql/PreparedStatement.java: Ditto.
842 * java/sql/ResultSet.java: Ditto.
843 * java/sql/ResultSetMetaData.java: Ditto.
844 * java/sql/SQLException.java: Ditto.
845 * java/sql/SQLWarning.java: Ditto.
846 * java/sql/Statement.java: Ditto.
847 * java/sql/Types.java: Ditto.
849 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
851 * java/lang/natSystem.cc (init_properties): Set user.language and
853 * configure.in: Check for setlocale.
854 * configure: Rebuilt.
855 * include/config.h.in: Rebuilt.
857 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
858 the infate() call didn't deliver any output. Throw a ZipException if
859 the needsDictionary() call returns true.
860 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
861 * java/io/InputStreamReader: Use the default buffer size for the
862 contained BufferedInputStream.
864 2000-11-28 Warren Levy <warrenl@cygnus.com>
866 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
867 more time zone entries.
868 * java/text/SimpleDateFormat.java (format): Added case for
871 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
873 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
874 directly rather than read() in all cases. Make primitive read
875 implementations more efficient, as defined in JDK online docs.
876 (skipBytes): Behave like the JDK's implementation.
877 * java/io/BufferedReader.java: Merge classpath docs. Check for a
878 closed stream with checkStatus() whenever an IOException can be
880 (checkStatus): New private method.
882 2000-11-27 Warren Levy <warrenl@cygnus.com>
884 * Makefile.am: Added natTimeZone.cc.
885 * Makefile.in: Rebuilt.
886 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
887 * java/text/DateFormatSymbols.java (ampms): Made package private.
888 (eras): Made package private.
889 (months): Made package private.
890 (shortMonths): Made package private.
891 (shortWeekdays): Made package private.
892 (weekdays): Made package private.
893 (formatPrefixes): New private field.
894 (localPatternCharsDefault): Made private.
895 (dateFormats): New package private field.
896 (timeFormats): New package private field.
897 (formatsForKey): New private method.
898 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
899 (DateFormatSymbols(DateFormatSymbols)): Ditto.
900 * java/text/SimpleDateFormat.java: Merged with Classpath.
901 * java/util/TimeZone.java: Merged with Classpath.
902 * java/util/natTimeZone.cc: New file.
904 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
906 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
907 (addElement): Don't increment elementCount twice. Doh.
908 * java/util/ArrayList.java (add): Only call ensureCapacity if the
909 array needs to be expanded.
911 * java/util/Collections.java (UnmodifiableCollection): Implement
913 (UnmodifiableList): Throw UnsupportedOperationException from
914 modification methods. Set `l' from the one-parameter constructor.
915 (UnmodifiableMap): Implement toString().
916 (SynchronizedCollection): Ditto.
917 (SynchronizedList): Set `l' from the one-parameter constructor.
918 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
919 (SynchronizedMap): Implement toString().
921 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
923 * javax/naming/NameParser.java,
924 javax/naming/directory/AttributeInUseException.java,
925 javax/naming/directory/AttributeModificationException.java,
926 javax/naming/directory/InvalidAttributeIdentifierException.java,
927 javax/naming/directory/InvalidAttributesException.java,
928 javax/naming/directory/InvalidAttributeValueException.java,
929 javax/naming/directory/InvalidSearchControlsException.java,
930 javax/naming/directory/InvalidSearchFilterException.java,
931 javax/naming/directory/NoSuchAttributeException.java,
932 javax/naming/directory/SchemaViolationException.java: New files.
934 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
936 * javax/naming/InitialContext.java (rebind): Implement.
940 (listBindings): Implement.
941 (destroySubcontext): Implement.
942 (createSubcontext): Implement.
943 (lookupLink): Implement.
944 (getNameParser): Implement.
945 (composeName): Implement.
946 (addToEnvironment): Implement.
948 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
950 * javax/naming/AuthenticationException.java,
951 javax/naming/AuthenticationNotSupportedException.java,
952 javax/naming/CannotProceedException.java,
953 javax/naming/CommunicationException.java,
954 javax/naming/ConfigurationException.java,
955 javax/naming/ContextNotEmptyException.java,
956 javax/naming/InsufficientResourcesException.java,
957 javax/naming/InterruptedNamingException.java,
958 javax/naming/InvalidNameException.java,
959 javax/naming/LimitExceededException.java,
960 javax/naming/LinkException.java,
961 javax/naming/LinkLoopException.java,
962 javax/naming/MalformedLinkException.java,
963 javax/naming/NameAlreadyBoundException.java,
964 javax/naming/NameNotFoundException.java,
965 javax/naming/NamingSecurityException.java,
966 javax/naming/NoPermissionException.java,
967 javax/naming/NotContextException.java,
968 javax/naming/PartialResultException.java,
969 javax/naming/ReferralException.java,
970 javax/naming/ServiceUnavailableException.java,
971 javax/naming/SizeLimitExceededException.java,
972 javax/naming/TimeLimitExceededException.java: New files.
974 * javax/naming/Name.java (clone): New method.
975 (compareTo): New method.
976 (isEmpty): New method.
977 (getAll): New method.
978 (getPrefix): New method.
979 (getSuffix): New method.
980 (startsWith): New method.
981 (endsWith): New method.
982 (addAll): New method.
983 (addAll): New method.
986 (remove): New method.
988 * javax/naming/Context.java (lookup): New method.
989 (rebind): New method.
990 (unbind): New method.
991 (rename): New method.
993 (listBindings): New method.
994 (destroySubcontext): New method.
995 (createSubcontext): New method.
996 (lookupLink): New method.
997 (getNameParser): New method.
998 (composeName): New method.
999 (addToEnvironment): New method.
1000 (removeFromEnvironment): New method.
1001 (getEnvironment): New method.
1002 (close): New method.
1003 (getNameInNamespace): New method.
1005 * javax/naming/InitialContext.java (lookup): New method.
1006 (rebind): New method.
1007 (unbind): New method.
1008 (rename): New method.
1010 (listBindings): New method.
1011 (destroySubcontext): New method.
1012 (createSubcontext): New method.
1013 (lookupLink): New method.
1014 (getNameParser): New method.
1015 (composeName): New method.
1016 (addToEnvironment): New method.
1017 (removeFromEnvironment): New method.
1018 (getEnvironment): New method.
1019 (close): New method.
1020 (getNameInNamespace): New method.
1022 2000-11-26 Tom Tromey <tromey@cygnus.com>
1024 * Makefile.in: Rebuilt.
1025 * Makefile.am (core_java_source_files): Added
1026 RuntimePermission.java.
1027 * java/lang/RuntimePermission.java: Imported from Classpath.
1028 * java/lang/Thread.java (getContextClassLoader): Now
1029 synchronized. Added security code.
1030 (setContextClassLoader): Likewise.
1032 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1033 length field of array.
1034 (_Jv_NewPrimArray): Likewise.
1035 * gcj/array.h (__JArray): `length' field now const. Added
1038 2000-11-26 Anthony Green <green@redhat.com>
1040 * javax/naming/spi/NamingManager.java,
1041 javax/naming/spi/ObjectFactory.java,
1042 javax/naming/spi/InitialContextFactory.java,
1043 javax/naming/spi/InitialContextFactoryBuilder.java,
1044 javax/naming/RefAddr.java, javax/naming/Reference.java,
1045 javax/naming/NamingException.java, javax/naming/Context.java,
1046 javax/naming/Referenceable.java,
1047 javax/naming/directory/InitialDirContext.java,
1048 javax/naming/directory/DirContext.java,
1049 javax/naming/directory/Attributes.java,
1050 javax/naming/directory/Attribute.java,
1051 javax/naming/StringRefAddr.java,
1052 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1053 javax/naming/InitialContext.java,
1054 javax/naming/NoInitialContextException.java: New files.
1056 2000-11-25 Anthony Green <green@redhat.com>
1058 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1059 (_Jv_NewPrimArray): Likewise.
1060 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1061 (class JArray): Removed constructor.
1063 * java/lang/Thread.java (context_class_loader): New private data.
1064 (getContextClassLoader): New method.
1065 (setContextClassLoader): New method.
1066 (Thread): Initialize context_class_loader.
1068 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1069 (getResource): Rename to findResource.
1070 (findResource): New method. Used to be getResource.
1071 (getResourceAsStream): Deleted.
1072 (jarFileize): Extracted logic from URLClassLoader constructor into
1073 this new private method.
1074 (addURL): New protected method.
1075 (URLClassLoader): Call jarFileize. Use addElement instead of
1077 (findResources): New method.
1079 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1080 (getResource): Implement correct logic.
1081 (findResource): New method.
1082 (getResources): New method.
1083 (findClass): Create a ClassNotFoundException with the name of the
1084 class rather than nothing at all.
1085 (defineClass) Only throw ClassFormatError.
1087 * java/lang/Class.java (forName): New method.
1088 * java/lang/Class.h (forName): New method.
1089 * java/lang/natClass.cc (forName): New method.
1091 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1093 * java/lang/System.java (setProperties): Only call init_properties()
1094 if properties is null.
1095 (getProperties): Ditto.
1096 (getProperty): Ditto.
1097 (setProperty): Call init_properties if properties are null.
1098 (prop_init): Remove field.
1099 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1100 method. Check for null properties after synchronizing instead of
1101 prop_init flag. Set the properties field last for thread safety.
1103 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1104 test for gcj.dumpobjects property and enable object stream dumping
1106 (dumpElement): No longer native.
1107 (dumpElementln): Ditto.
1108 (setDump): Do not define.
1109 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1110 (dumpElementln): Removed.
1113 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1115 * configure: Rebuilt.
1116 * Makefile.in: Rebuilt.
1117 * Makefile.am (built_java_source_files): Add Configuration.java.
1118 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1119 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1120 Create `gnu' directory in the build tree.
1121 * gnu/classpath/Configuration.java.in: New file.
1123 2000-11-24 Tom Tromey <tromey@cygnus.com>
1125 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1127 (_Jv_NewPrimArray): Likewise.
1129 * gcj/array.h (__JArray): `length' field now const. Added
1131 (class JArray): Added constructor.
1133 2000-11-23 Mark Wielaard <mark@klomp.org>
1135 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1138 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1140 * java/util/Vector.java: Improve exception messages.
1141 (Vector): Check initialCapacity for IllegalArgumentException.
1142 (tromToSize): Don't check for elementCount == elementData.length
1144 (toArray): Don't try to set null marker if target array is the same
1145 length as the vector.
1147 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1149 * Makefile.in: Rebuilt.
1150 * Makefile.am (core_java_source_files): Added Collections.java.
1151 * java/util/List.java: Merged from classpath.
1152 * java/util/Vector.java: Ditto.
1153 * java/util/Collections.java: From classpath.
1154 * java/util/ArrayList.java (addAll(Collection)): Call
1155 addAll(int,Collection) instead of duplicating code.
1156 (indexOf): Clean up int initialization.
1157 (clear): Set cleared array entries to null, to allow garbage
1159 * java/util/List.java: Minor formatting fixes.
1160 * java/util/SimpleTimeZone.java: ditto.
1162 2000-11-18 Tom Tromey <tromey@cygnus.com>
1164 * Makefile.in: Rebuilt.
1165 * Makefile.am (core_java_source_files): Added new files.
1166 * java/lang/reflect/ReflectPermission.java: New class.
1167 * java/io/FileFilter.java: From Classpath
1168 * java/io/FilePermission.java: From Classpath.
1170 2000-11-17 Tom Tromey <tromey@cygnus.com>
1172 * java/lang/reflect/AccessibleObject.java (isAccessible,
1173 setAccessible): Now public.
1175 * java/lang/natString.cc: Include Locale.h.
1176 (toUpperCase): Added `locale' argument. Handle locale
1178 (toLowerCase): Added `locale' argument. Handle locale
1180 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1181 CAPITAL_I): New defines.
1182 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1185 (toUpperCase, toLowerCase): New methods. Variants which accept
1188 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1191 * java/util/PropertyPermission.java: Re-merged from Classpath.
1193 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1195 * java/text/StringCharacterIterator.java: Reindented.
1196 (setText): New method.
1198 2000-11-17 Mark Wielaard <mark@klomp.org>
1200 Merge with Classpath (changes by Bryce McKinlay)
1201 * java/util/jar/*.java: Reformat all to unofficial standard coding
1202 style. No changes of substance.
1204 2000-11-17 Mark Wielaard <mark@klomp.org>
1206 * java/util/zip/*.java: Javadoc updates.
1208 2000-11-17 Tom Tromey <tromey@cygnus.com>
1210 * java/text/CollationKey.java: Implement Comparable.
1211 (compareTo(Object)): New method.
1212 * java/text/Collator.java (compare(Object,Object)): New method.
1213 Implement Comparator.
1215 * java/util/zip/InflaterInputStream.java (available): New method.
1216 (close): New method.
1217 (read, available, skip, fill): Throw exception if stream closed.
1218 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1219 getNextEntry): Throw exception if closed.
1221 2000-11-16 Tom Tromey <tromey@cygnus.com>
1223 * java/io/PushbackReader.java: Merged with Classpath.
1224 * java/util/Arrays.java: Updated from Classpath.
1226 * scripts/blocks.pl: New file.
1227 * java/lang/Character.java (Subset): New class.
1228 (UnicodeBlock): New class.
1230 * java/lang/Math.java (toDegrees, toRadians): New methods.
1232 * java/lang/Float.java: Implement Comparable.
1233 (compareTo): New methods.
1234 * java/lang/Double.java: Implement Comparable.
1235 (compareTo): New methods.
1237 2000-11-16 Warren Levy <warrenl@cygnus.com>
1239 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1241 (listeners): Made transient.
1242 (source): Renamed from 'bean'.
1243 (children): New field for serialization.
1244 (propertyChangeSupportSerializedDataVersion): Ditto.
1245 (serialVersionUID): Ditto.
1246 (writeObject): New serialization method.
1247 (readObject): New serialization method.
1248 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1250 (listeners): Made transient.
1251 (source): Renamed from 'bean'.
1252 (children): New field for serialization.
1253 (vetoableChangeSupportSerializedDataVersion): Ditto.
1254 (serialVersionUID): Ditto.
1255 (writeObject): New serialization method.
1256 (readObject): New serialization method.
1257 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1258 to allow constructor to have a return type (i.e. the class that the
1259 constructor constructs).
1261 2000-11-14 Tom Tromey <tromey@cygnus.com>
1263 * Makefile.in: Rebuilt.
1264 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1267 2000-11-02 Warren Levy <warrenl@cygnus.com>
1269 * java/io/ObjectInputStream.java (readObject): Added code to
1270 conditionally dump out the serialized data.
1271 Handle ENDBLOCKDATA case a bit more gracefully since the current
1272 behavior doesn't seem to work as expected.
1273 (readStreamHeader): Added code for serialized data dumper.
1274 (readNextBlock): Ditto.
1275 (readFields): Ditto.
1276 (dump): New private static field for turning on/off dumper.
1277 (setDump): New native method.
1278 (dumpElement): New native method.
1279 (dumpElementln): New native method.
1280 * java/io/natObjectInputStream.cc (setDump): New method.
1281 (dumpElement): New method.
1282 (dumpElementln): New method.
1284 2000-11-02 Warren Levy <warrenl@cygnus.com>
1286 * java/net/InetAddress.java (addr): Renamed from 'address'.
1287 (address): New field to match Serialized Form doc.
1288 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1289 (family): New serialization field.
1290 (serialVersionUID): New field.
1291 (readObject): New method.
1292 (writeObject): New method.
1293 (getFamily): New native method.
1294 (InetAddress): Set family.
1295 * java/net/natInetAddress.cc (getFamily): New method.
1296 (addr): Renamed from 'address'.
1297 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1298 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1299 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1301 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1303 * java/util/AbstractList.java (SubList): Make it a top-level private
1305 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1307 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1308 * Makefile.in: Rebuilt.
1310 2000-11-02 Tom Tromey <tromey@cygnus.com>
1312 * Makefile.in: Rebuilt.
1313 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1316 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1318 * java/util/AbstractList.java (remove): Comment out modCount increment
1319 to work around compiler bug.
1322 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1324 * java/util/AbstractList.java: Throw messages with
1325 IndexOutOfBoundsExceptions.
1326 (listIterator()): Call listIterator(0).
1327 (size): New field. Initialize to size().
1328 (hasNext): Test position against size, not size().
1329 (remove): Increment knownMod by one instead of resetting it from
1332 (SubList.upMod): Removed.
1333 (SubList.set): Don't call upMod() or update knownMod.
1334 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1335 (SubList.remove): Ditto.
1336 (SubList.addAll): Don't call backingList.size(). Increment size from
1338 (SubList.iterator): New method. Call listIterator(0).
1339 (SubList.listIterator): New method. Restore code to return an anonymous
1340 listIterator implementation (with some changes).
1341 * java/util/AbstractSequentialList.java: Throw messages with
1342 IndexOutOfBoundsExceptions.
1343 (addAll): Add a specnote.
1344 * java/util/ArrayList.java (removeRange): Get the math right.
1345 (addAll): Increment modCount _before_ creating iterator.
1346 * java/util/LinkedList.java: Rewritten, mostly.
1348 2000-11-01 Tom Tromey <tromey@cygnus.com>
1350 * scripts/encodings.pl: Added `ASCII' alias.
1351 * Makefile.in: Rebuilt.
1352 * Makefile.am (convert_source_files): Added new files.
1353 * gnu/gcj/convert/Input_ASCII.java: New file.
1354 * gnu/gcj/convert/Output_ASCII.java: New file.
1355 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1356 out-of-range characters.
1357 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1358 (read): Swap bytes if required. Treat `count' as character count,
1360 (write): Likewise. Also, handle case where iconv fails on a given
1362 (init): Put encoding into exception.
1363 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1364 (static): Call iconv_init. Rebuilt alias list.
1365 (iconv_init): New private method.
1367 2000-11-01 Tom Tromey <tromey@cygnus.com>
1369 * Makefile.in: Rebuilt.
1370 * Makefile.am (install-exec-hook): Only make a single symlink, and
1371 remove the destination before making the link.
1372 * configure: Rebuilt.
1373 * configure.in: Call AC_PROG_LN_S.
1375 2000-10-31 Warren Levy <warrenl@cygnus.com>
1377 * jni.cc: Added include of java/lang/ThreadGroup.h.
1378 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1379 per change of 2000-10-05.
1381 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1383 * java/util/BitSet.java: Updated @specnote.
1385 * java/io/Reader.java: Merge docs from classpath.
1386 (skip): Synchronize on `lock'.
1387 * java/io/FileReader.java: Import correct implementation from
1389 * java/io/StringReader.java: Merge docs from classpath.
1390 (ready): Throw IOException if stream is closed.
1392 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1394 * java/util/AbstractCollection.java (addAll): Use size() instead of
1395 hasNext() in iterator loop.
1397 (contains): Ditto. Simplify loop.
1398 (containsAll): Ditto.
1403 (toString): Ditto. Use string concatenation operators, not
1405 * java/util/AbstractList.java (addAll): Use size() instead of
1406 hasNext() in iterator loop.
1409 (indexOf): Ditto. Don't take null check outside of the loop.
1410 (iterator): Return an AbstractListItr instead of anonymous class.
1411 (lastIndexOf): Use a for loop bounded by size() instead of
1412 hasPrevious() in iterator loop.
1413 (listIterator): Return an AbstractListItr.
1414 (removeRange): Remove bounds checking code and docs.
1415 (AbstractListItr): New inner class. Code moved here from
1417 (SubList.iterator): Removed. Use default implementation from
1418 AbstractList instead.
1419 (SubList.listIterator): As above.
1420 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1421 instead of hasNext() in iterator loop.
1422 (containsValue): Ditto.
1428 (toString): Ditto. Use string concatenation operators, not
1430 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1431 bounded by size() instead of hasNext() in iterator loop.
1432 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1433 part of normal execution flow. Do an explicit null check instead.
1434 * java/util/ArrayList.java (_iSize): Rename to `size'.
1435 (_arData): Rename to `data'.
1436 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1439 (removeRange): Make protected. Don't check bounds.
1440 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1442 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1444 (addAll (int, Collection)): Check lower bounds. Simplify exception
1446 (clone): Clone the data array too.
1447 (indexOf): Inline doesEqual().
1448 (lastIndexOf): Ditto.
1449 (clear): Don't set array data to null.
1450 (set): Check lower bounds. Simplify exception string.
1451 (toArray): Correct comment.
1452 (trimToSize): Don't update modCount, this is not a structural change.
1455 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1457 (toString): Declare `bit' as long, not int.
1458 (data): Made package-private, not private.
1460 2000-10-27 Warren Levy <warrenl@cygnus.com>
1462 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1463 array elements to true.
1465 2000-10-27 Warren Levy <warrenl@cygnus.com>
1467 * Makefile.am: Added locale files from Classpath.
1468 * Makefile.in: Rebuilt.
1469 * gnu/java/locale/Calendar.java: New file.
1470 * gnu/java/locale/Calendar_de.java: New file.
1471 * gnu/java/locale/Calendar_en.java: New file.
1472 * gnu/java/locale/Calendar_nl.java: New file.
1473 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1474 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1475 serialization compatibility.
1476 (scale): Made private.
1477 (serialVersionUID): New field.
1478 * java/math/BigInteger.java (ival): Made transient.
1479 (words): Made transient.
1480 (bitCount): New serialization field.
1482 (firstNonzeroByteNum): Ditto.
1483 (lowestSetBit): Ditto.
1486 (serialVersionUID): New field.
1487 (readObject): New method.
1488 (writeObject): New method.
1489 * java/util/BitSet.java (serialVersionUID): New field.
1490 * java/util/Calendar.java: Replaced with Classpath file.
1491 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1492 of getDefault() for TimeZone or Locale instead of passing nulls.
1493 * java/util/Locale.java (serialVersionUID): New field.
1494 (writeObject): New method.
1495 (readObject): New method.
1496 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1498 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1500 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1501 (core_java_source_files): Put java.lang, java.io, and java.util here.
1502 (ordinary_java_source_files): Order so that core_java_source_files are
1504 (java_source_files): Reorder so that special_java_source_files are
1506 * configure.in: Don't pass -I flag to gcj.
1507 * Makefile.in: Rebuilt.
1508 * configure: Rebuilt.
1510 2000-10-25 Tom Tromey <tromey@cygnus.com>
1512 * Makefile.in: Rebuilt.
1513 * Makefile.am (install-exec-hook): New target.
1515 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1517 * java/util/EventObject.java: Merged from classpath.
1519 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1522 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1524 * java/util/AbstractSet.java (equals): Re-installed original code.
1526 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1528 * Makefile.am: Added rules for libgcjx library.
1529 * Makefile.in: Rebuilt.
1530 * configure.in: Added check for X.
1531 * configure: Rebuilt.
1532 * gnu/awt/LightweightRedirector.java: New file.
1533 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1534 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1535 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1536 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1537 * gnu/awt/j2d/MappedRaster.java: New file.
1538 * gnu/awt/xlib/XCanvasPeer.java: New file.
1539 * gnu/awt/xlib/XEventLoop.java: New file.
1540 * gnu/awt/xlib/XEventQueue.java: New file.
1541 * gnu/awt/xlib/XFontMetrics.java: New file.
1542 * gnu/awt/xlib/XFramePeer.java: New file.
1543 * gnu/awt/xlib/XGraphics.java: New file.
1544 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1545 * gnu/awt/xlib/XPanelPeer.java: New file.
1546 * gnu/awt/xlib/XToolkit.java: New file.
1547 * gnu/gcj/xlib/Clip.java: New file.
1548 * gnu/gcj/xlib/Colormap.java: New file.
1549 * gnu/gcj/xlib/Display.java: New file.
1550 * gnu/gcj/xlib/Drawable.java: New file.
1551 * gnu/gcj/xlib/Font.java: New file.
1552 * gnu/gcj/xlib/GC.java: New file.
1553 * gnu/gcj/xlib/Pixmap.java: New file.
1554 * gnu/gcj/xlib/Screen.java: New file.
1555 * gnu/gcj/xlib/Visual.java: New file.
1556 * gnu/gcj/xlib/WMSizeHints.java: New file.
1557 * gnu/gcj/xlib/Window.java: New file.
1558 * gnu/gcj/xlib/WindowAttributes.java: New file.
1559 * gnu/gcj/xlib/XAnyEvent.java: New file.
1560 * gnu/gcj/xlib/XButtonEvent.java: New file.
1561 * gnu/gcj/xlib/XColor.java: New file.
1562 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1563 * gnu/gcj/xlib/XConnectException.java: New file.
1564 * gnu/gcj/xlib/XEvent.java: New file.
1565 * gnu/gcj/xlib/XException.java: New file.
1566 * gnu/gcj/xlib/XExposeEvent.java: New file.
1567 * gnu/gcj/xlib/XID.java: New file.
1568 * gnu/gcj/xlib/XImage.java: New file.
1569 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1570 * gnu/gcj/xlib/natClip.cc: New file.
1571 * gnu/gcj/xlib/natColormap.cc: New file.
1572 * gnu/gcj/xlib/natDisplay.cc: New file.
1573 * gnu/gcj/xlib/natDrawable.cc: New file.
1574 * gnu/gcj/xlib/natFont.cc: New file.
1575 * gnu/gcj/xlib/natGC.cc: New file.
1576 * gnu/gcj/xlib/natPixmap.cc: New file.
1577 * gnu/gcj/xlib/natScreen.cc: New file.
1578 * gnu/gcj/xlib/natVisual.cc: New file.
1579 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1580 * gnu/gcj/xlib/natWindow.cc: New file.
1581 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1582 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1583 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1584 * gnu/gcj/xlib/natXColor.cc: New file.
1585 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1586 * gnu/gcj/xlib/natXException.cc: New file.
1587 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1588 * gnu/gcj/xlib/natXImage.cc: New file.
1589 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1590 * java/awt/EventDispatchThread.java: Start thead on creation.
1592 2000-10-20 Tom Tromey <tromey@cygnus.com>
1594 From Arno J. Klaassen:
1595 * interpret.cc: Include <stdlib.h> for alloca.
1596 * defineclass.cc: Include <stdlib.h> for alloca.
1598 * Makefile.in: Rebuilt.
1599 * Makefile.am: Include deps.mk.
1600 (GCJCOMPILE): Added -MD, -MT, and -MF.
1601 ($(javao_files)): Don't depend on libgcj.zip.
1602 (all-recursive): New target.
1603 (%.lo:%.cc): Do dependency tracking.
1604 ($(nat_headers)): Don't depend on libgcj.zip.
1605 * configure: Rebuilt.
1606 * configure.in: Make .d files and deps.mk.
1608 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1610 * exception.cc: Don't #include "exception".
1611 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1613 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1614 * Makefile.in: Updated.
1616 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1618 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1619 * java/awt/peer/ComponentPeer.java (disable): Removed.
1622 (minimumSize): Removed.
1623 (preferredSize): Removed.
1626 * java/awt/peer/ListPeer.java (addItem): Removed.
1628 (minimumSize): Removed.
1629 (preferredSize): Removed.
1630 (setMultipleSelections): Removed.
1631 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1632 (remove): Renamed from removeMenu.
1633 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1635 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1636 (remove): Renamed from removeItem.
1637 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1638 (getMinimumSize): Removed.
1639 (getPreferredSize): Removed.
1640 (minimumSize): Removed.
1641 (preferredSize): Removed.
1642 (replaceText): Removed.
1643 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1644 (preferredSize): Removed.
1645 (getMinimumSize): Removed.
1646 (getPreferredSize): Removed.
1647 (setEchoCharacter): Removed.
1649 2000-10-10 Warren Levy <warrenl@cygnus.com>
1651 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1652 * java/sql/Date.java (serialVersionUID): New field.
1653 * java/sql/Time.java (serialVersionUID): New field.
1654 * java/sql/Timestamp.java (serialVersionUID): New field.
1655 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1656 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1657 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1658 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1659 (readObject): New serialization method.
1660 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1661 (serialVersionOnStream): New field.
1662 (readObject): New serialization method.
1663 (getMonetaryDecimalSeparator): New method.
1664 (setMonetaryDecimalSeparator): New method.
1665 * java/text/NumberFormat.java (maxFractionDigits): New field.
1666 (maxIntegerDigits): New field.
1667 (minFractionDigits): New field.
1668 (minIntegerDigits): New field.
1669 (serialVersionOnStream): New field.
1670 (serialVersionUID): New field.
1671 (readObject): New serialization method.
1672 (writeObject): New serialization method.
1673 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1674 (serialVersionOnStream): New field.
1675 (serialVersionUID): New field.
1676 (readObject): New serialization method.
1678 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1680 * configure.in (GCJ): Avoid bogus error message when looking for
1681 (and not finding) gcj in the build tree.
1682 * configure: Rebuilt.
1684 2000-10-09 Tom Tromey <tromey@cygnus.com>
1686 * configure: Rebuilt.
1687 * configure.in: Include sys/types.h when checking for socklen_t.
1688 From Arno J. Klaassen.
1690 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1692 * include/jvm.h: Enable __builtin_expect().
1694 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1695 the main program. Fix for PR libgcj/341.
1697 2000-10-07 Tom Tromey <tromey@cygnus.com>
1699 * java/util/Properties.java: Merged with Classpath version.
1701 2000-10-05 Tom Tromey <tromey@cygnus.com>
1703 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1704 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1705 * java/lang/Class.h (Object): Added `class$' field.
1706 * java/lang/Object.h (Object): Added `class$' field.
1707 * defineclass.cc (ClassClass): Use `class$' form.
1708 (ClassObject): Likewise.
1709 * resolve.cc (ClassObject): Use `class$' form.
1710 (ObjectClass): Likewise.
1711 * interpret.cc (ClassError): Removed.
1712 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1714 (IntegerClass): Likewise.
1715 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1717 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1718 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1719 SerializableClass): Likewise.
1720 Include Serializable.h, Cloneable.h.
1721 * java/lang/natSystem.cc (SystemClass): Removed.
1722 (init_properties): Use `class$' form.
1723 * java/lang/natObject.cc (CloneableClass): Removed.
1724 (clone): Use `class$' form.
1725 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1726 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1727 ConstructorClass): Likewise.
1728 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1729 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1730 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1731 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1733 (ClassClass): Likewise.
1734 * include/jvm.h (StringClass): Use `class$' form.
1735 * prims.cc (ObjectClass): Removed.
1736 (_Jv_RunMain): Use `class$' form.
1737 (_Jv_AllocObject): Likewise.
1738 * jni.cc (ClassClass): Use `class$' form.
1739 (ThrowableClass): Likewise.
1740 (ObjectClass): Likewise.
1741 (MethodClass): Likewise.
1742 (ThreadGroupClass): Likewise.
1743 (NativeThreadClass): Likewise.
1744 * boehm.cc (ObjectClass): Removed.
1745 (ClassClass): Removed.
1746 (_Jv_MarkObj): Use `class$' form.
1747 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1750 2000-10-05 Warren Levy <warrenl@cygnus.com>
1752 * Makefile.am: Removed java/io/Replaceable.java and
1753 java/io/Resolvable.java.
1754 * Makefile.in: Rebuilt.
1755 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1757 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1759 (processResolution): Handle readResolve method via reflection with
1760 removal of Resolvable interface.
1761 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1762 method via reflection with removal of Replaceable interface.
1763 * java/io/Replaceable.java: Removed.
1764 * java/io/Resolvable.java: Removed.
1765 * java/security/Key.java (serialVersionUID): New field.
1766 * java/security/Provider.java (serialVersionUID): New field.
1767 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1769 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1771 * java/sql/DataTruncation.java (serialVersionUID): New field.
1772 * java/sql/SQLException.java (serialVersionUID): New field.
1773 * java/sql/SQLWarning.java (serialVersionUID): New field.
1774 * java/util/Date.java (serialVersionUID): New field.
1775 (millis): Made transient.
1776 (readObject): New method.
1777 (writeObject): New method.
1779 2000-10-05 Tom Tromey <tromey@cygnus.com>
1781 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1783 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1785 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1786 (JvRunMain): Set _Jv_argv and _Jv_argc.
1787 * java/awt/Component.java: Minor fixes.
1788 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1789 * java/awt/Toolkit.java (systemEventQueue): Removed.
1790 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1791 * java/awt/Window.java (getToolkit): Don't call super.
1792 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1793 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1794 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1795 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1796 * gnu/awt/gtk/GtkFramePeer.java: New file.
1797 * gnu/awt/gtk/GtkMainThread.java: New file.
1798 * gnu/awt/gtk/GtkToolkit.java: New file.
1799 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1800 * gnu/awt/gtk/gtkcommon.cc: New file.
1801 * gnu/awt/gtk/gtkcommon.h: New file.
1802 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1803 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1804 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1805 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1806 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1807 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1809 2000-09-30 Tom Tromey <tromey@cygnus.com>
1811 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1812 interrupted before modifying the cv's wait set.
1815 2000-09-30 Hans Boehm <boehm@acm.org>
1816 Bryce McKinlay <bryce@albatross.co.nz>
1818 Implement bitmap descriptor based marking for Boehm GC.
1820 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1821 * configure: Rebuilt.
1822 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1823 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1824 method get_finalizer().
1825 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1826 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1827 (_Jv_AllocObj): Add new jclass parameter.
1828 (_Jv_AllocArray): Ditto.
1829 (_Jv_BuildGCDescr): New prototype.
1830 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1831 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1832 get_finalizer() instead of direct finalizer vtable offset.
1833 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1834 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1835 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1836 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1837 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1838 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1839 (_Jv_DetermineVTableIndex): Ditto.
1840 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1841 calculations to account for new gc_descr field.
1842 * boehm.cc: #include gc_gcj.h.
1843 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1844 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1845 New commentary from HB. Mark the classes vtable.
1846 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1847 (GC_DEFAULT_DESCR): New #define.
1848 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1849 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1850 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1851 scan conservativly if size is less than min_heap_addr. Set vtable
1852 pointer of new object before returning.
1853 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1854 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1855 allocation for obj_kind_x.
1856 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1857 (_Jv_AllocObj): Set vtable on returned object.
1858 (_Jv_AllocArray): Ditto.
1859 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1860 (_Jv_NewPrimArray): Ditto.
1861 (_Jv_AllocObj): Declare as a friend.
1862 (_Jv_AllocArray): Ditto.
1863 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1864 from &ObjectClass into new array class. Remove offset-by-one
1865 adjustments from `method' size calculations to account for gc_descr
1868 2000-09-26 Tom Tromey <tromey@cygnus.com>
1870 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1871 `remove', not `add'.
1873 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1875 * java/lang/natSystem.cc (file_encoding): Added return statement.
1877 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1879 * Makefile.am: Re-work shell commands that exceeded command-line
1881 * Makefile.in: Rebuilt.
1883 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1885 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1886 * java/lang/natDouble.cc: Likewise.
1887 * java/lang/reflect/natMethod.cc: Likewise.
1888 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1890 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1892 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1894 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1895 * acinclude.m4: Arrange for automake to not bring in a new
1896 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1897 * Makefile.am: Leave it up to automake to subst GCJ.
1898 * aclocal.m4, configure, Makefile.in: Rebuilt.
1900 2000-09-13 Tom Tromey <tromey@cygnus.com>
1902 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1903 (get): Ensure Boolean class is initialized.
1904 * java/lang/reflect/natField.cc (BooleanClass): New define.
1905 (get): Ensure Boolean class is initialized.
1907 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1909 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1910 Initialize with anonymous class.
1911 (compareToIgnoreCase): New method.
1913 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1914 (uncaughtException): Set had_uncaught_exception.
1915 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1916 exit with error status if set.
1917 (_Jv_RunMain): Ditto.
1919 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1921 * configure: Rebuilt with new ../libtool.m4.
1923 2000-09-11 Tom Tromey <tromey@cygnus.com>
1925 * java/lang/reflect/Field.java (toString): Don't rely on
1928 2000-09-08 Tom Tromey <tromey@cygnus.com>
1930 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1931 default decoder use iconv.
1932 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1933 Let default encoder use iconv.
1934 * configure: Rebuilt.
1935 * configure.in: Check for nl_langinfo and <langinfo.h>.
1936 * java/lang/natSystem.cc (file_encoding): New function.
1937 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1939 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1941 * acinclude.m4: Simplify the tests for CC and CXX.
1942 * aclocal.m4, configure: Rebuilt.
1944 * acinclude.m4: Include libtool macros from the source tree.
1945 * aclocal.m4, configure: Rebuilt.
1947 2000-09-08 Warren Levy <warrenl@cygnus.com>
1949 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1950 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1951 * java/io/File.java (writeObject): Added.
1952 (readObject): Added.
1953 (serialVersionUID): Added.
1954 * java/io/ObjectOutputStream.java (writeObject): Initialized
1955 fieldsAlreadyWritten before recursion rather than after.
1956 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1957 * java/io/OptionalDataException.java (serialVersionUID): Added.
1958 (OptionalDataException): Made package private.
1959 * java/io/SyncFailedException.java (SyncFailedException): Removed
1960 default constructor to match spec.
1961 * java/lang/Boolean.java (serialVersionUID): Added.
1962 * java/lang/Byte.java (serialVersionUID): Added.
1963 * java/lang/Character.java (serialVersionUID): Added.
1964 * java/lang/Double.java (serialVersionUID): Added.
1965 * java/lang/Float.java (serialVersionUID): Added.
1966 * java/lang/Integer.java (serialVersionUID): Added.
1967 * java/lang/Long.java (serialVersionUID): Added.
1968 * java/lang/Number.java (serialVersionUID): Added.
1969 * java/lang/Short.java (serialVersionUID): Added.
1970 * java/lang/String.java (serialVersionUID): Added.
1971 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1973 * java/lang/reflect/InvocationTargetException.java
1974 (serialVersionUID): Added.
1975 * java/net/URL.java (handler): Made transient.
1976 (hashCode): Added field for serialization, per spec. and use
1977 cached value if available.
1978 (serialVersionUID): Added.
1979 (URL): Initialize hashCode.
1980 (set): Adjust hashCode.
1981 (readObject): New Method to initialize the protocol handler when
1983 (writeObject): New method.
1984 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1985 * java/text/Collator.java: Removed 'implements Serializable'.
1986 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1987 * java/util/Properties.java (serialVersionUID): Added.
1988 * java/util/Random.java (serialVersionUID): Added.
1989 (seed): Made private.
1990 (nextNextGaussian): Made private.
1991 (haveNextNextGaussian): Made private.
1992 * java/util/Stack.java (serialVersionUID): Added.
1993 * java/util/TimeZone.java (serialVersionUID): Added.
1994 * java/util/Vector.java (serialVersionUID): Added.
1996 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1998 * Makefile.am (Thread.h): Don't be friends with native threads
2000 * Makefile.in: Rebuilt.
2001 * java/lang/Thread.java (interrupt_flag): Make package-private.
2003 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2005 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2006 to avoid long long division.
2008 2000-09-06 Tom Tromey <tromey@cygnus.com>
2010 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2012 * java/lang/reflect/Method.java (toString): Use `getName' for
2015 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2016 `args' if method takes no parameters.
2018 Fix for PR java.lang/339:
2019 * java/lang/natPosixProcess.cc (fail): New function.
2020 (cleanup): New function.
2021 (startProcess): Use them. Create pipe so child can communicate
2022 exec failure back to parent.
2024 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2026 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2028 (send): Undo last patch. Remove the label only.
2030 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2032 * java/net/natInetAdress.cc: Ditto.
2034 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2036 2000-09-05 Tom Tromey <tromey@cygnus.com>
2038 * doc/cni.sgml: Updated from master copy.
2040 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2042 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2044 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2046 * java/lang/fdlibm.h: #undef __P if previously defined.
2047 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2048 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2052 2000-09-04 Tom Tromey <tromey@cygnus.com>
2054 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2057 2000-09-04 Anthony Green <green@redhat.com>
2059 Fix for PR java.io/203:
2060 * java/io/File.java (createTempFile): Obey directory argument.
2061 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2062 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2063 variable to set java.io.tmpdir on non-WIN32 systems.
2065 2000-09-04 Anthony Green <green@redhat.com>
2067 * java/io/File.java (deleteOnExit): New method.
2068 * gnu/gcj/runtime/FileDeleter.java: New class.
2069 * java/lang/natRuntime.cc (exit): Call
2070 FileDeleter.deleteOnExitNow()
2071 * Makefile.am: Add FileDeleter.java.
2072 * Makefile.in: Rebuilt.
2074 2000-09-02 Tom Tromey <tromey@cygnus.com>
2076 * Makefile.in: Rebuilt.
2077 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2078 environment variable.
2080 2000-09-01 Andrew Haley <aph@redhat.com>
2082 * java/io/StreamTokenizer.java: Don't throw a
2083 NumberFormatException if a field is numeric as far as the
2084 StreamTokenizer is concerned but not as far as Double.valueOf() is
2085 concerned: return a zero instead.
2087 2000-08-30 Tom Tromey <tromey@cygnus.com>
2089 * Makefile.in: Rebuilt.
2090 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2092 2000-08-28 Tom Tromey <tromey@cygnus.com>
2094 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2095 gnu/gcj/awt/ComponentDataBlitOp.java,
2096 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2097 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2098 java/awt/color/ICC_ColorSpace.java,
2099 java/awt/color/ICC_Profile.java,
2100 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2101 java/awt/image/ComponentColorModel.java,
2102 java/awt/image/ComponentSampleModel.java,
2103 java/awt/image/DataBuffer.java,
2104 java/awt/image/DataBufferByte.java,
2105 java/awt/image/DataBufferInt.java,
2106 java/awt/image/DataBufferUShort.java,
2107 java/awt/image/DirectColorModel.java,
2108 java/awt/image/IndexColorModel.java,
2109 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2110 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2111 java/awt/image/SinglePixelPackedSampleModel.java,
2112 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2113 Removed Latin-1 copyright symbols.
2114 * java/util/zip/ZipFile.java: Indentation fixes.
2116 2000-08-27 Mark Wielaard <mark@klomp.org>
2118 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2119 constructor, close can delete the file, finalize calls close.
2120 * java/util/jar/JarFile.java: Constructor that takes mode now
2123 2000-08-27 Anthony Green <green@redhat.com>
2125 * java/util/ArrayList.java, java/util/Timer.java,
2126 java/util/LinkedList.java, java/util/TimerTask.java,
2127 java/util/HashMap.java, java/util/AbstractMap.java,
2128 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2129 java/util/SortedSet.java: Imported from GNU Classpath.
2130 * Makefile.in: Rebuilt.
2131 * Makefile.am: Added new files.
2133 2000-08-26 Anthony Green <green@redhat.com>
2135 * Makefile.in: Rebuilt.
2136 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2139 * prims.cc: Include ClassLoader.h.
2140 (_Jv_RunMain): When executing jar files, classpath must be the jar
2141 file only. Lose our reference to the system ClassLoader in order
2142 to get a new one with the correct classpath.
2143 * java/lang/natSystem.cc (init_properties): When executing a jar
2144 file, only use the jar file for java.class.path.
2146 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2147 for bytecode archives.
2149 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2150 exists, but not Main-Class.
2152 2000-08-23 Mark Wielaard <mark@klomp.org>
2154 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2155 return -1 when fill() has no more data for the Inflater.
2157 2000-08-23 Mark Wielaard <mark@klomp.org>
2159 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2160 write(String) already does.
2162 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2164 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2165 to `alive_flag', call `init'.
2166 (init): New native method.
2167 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2170 2000-08-21 Mark Wielaard <mark@klomp.org>
2172 * Makefile.in: Rebuilt.
2173 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2175 (java/lang/reflect/Field.h): Likewise.
2176 (java/lang/reflect/Method.h): Likewise.
2177 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2180 2000-08-21 Tom Tromey <tromey@cygnus.com>
2182 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2185 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2187 * java/lang/natSystem.cc (init_properties): Change sourceware
2188 reference to sources.redhat.com.
2190 * include/java-props.h: Add _Jv_Jar_Class_Path.
2191 * prims.cc: Ditto. Set it from `gij -jar file' option.
2193 * java/lang/natSystem.cc (init_properties): Set java.class.path
2195 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2197 * java/util/PropertyPermission.java: Import from GNU Classpath.
2198 * Makefile.in: Rebuilt.
2199 * Makefile.am: Add java/util/PropertyPermission.java.
2200 * java/lang/System.java: Add setProperty method.
2202 * gij.cc (main): Add -jar option to execute jar files.
2203 (help): Describe -jar option.
2204 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2205 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2206 * gnu/gcj/runtime/FirstThread.java (main): New method.
2208 * java/util/jar/Attributes.java: Correct comment spelling.
2210 2000-08-20 Mark Wielaard <mark@klomp.org>
2212 * java/util/zip/Adler32.java: Make private variables really private
2213 * java/util/zip/CRC32.java: Make private variables really private
2214 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2216 * java/util/zip/InflaterInputStream.java: skip() could skip to
2218 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2219 * java/util/zip/ZipFile.java: size() new 1.2 method
2220 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2221 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2224 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2226 * java/util/jar/JarFile.java: Don't call
2227 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2230 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2232 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2233 Read the entire contents of the class file, not just what is
2236 * java/net/JarURLConnection.java: getEntry doesn't take any
2237 arguments. Return null if element is null.
2239 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2240 size from the archive, not the inflated size.
2242 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2243 java.util.zip.ZipFile.getEntry.
2245 * gij.cc (help): Change sourceware reference to
2248 2000-08-19 Tom Tromey <tromey@cygnus.com>
2250 * java/util/zip/ZipInputStream.java (createZipEntry):
2253 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2255 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2256 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2257 java/util/jar/JarInputStream.java,
2258 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2259 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2260 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2261 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2262 java/security/cert/Certificate.java,
2263 java/security/cert/CertificateEncodingException.java,
2264 java/security/cert/CertificateException.java,
2265 java/security/cert/CertificateExpiredException.java,
2266 java/security/cert/CertificateFactory.java,
2267 java/security/cert/CertificateFactorySpi.java,
2268 java/security/cert/CertificateNotYetValidException.java,
2269 java/security/cert/CertificateParsingException.java,
2270 java/security/cert/X509CRL.java,
2271 java/security/cert/X509CRLEntry.java,
2272 java/security/cert/X509Certificate.java,
2273 java/security/cert/X509Extension.java: Imported from Classpath.
2274 * java/util/Hashtable.java: Imported from Classpath.
2276 * java/util/zip/ZipInputStream.java: Create stub for
2279 * gcj/javaprims.h: Updated class list.
2281 * Makefile.in, gcj/Makefile.in: Rebuilt.
2282 * Makefile.am (ordinary_java_source_files): Add these new classes.
2284 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2286 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2287 * gnu/gcj/awt/GLightweightPeer.java: New file.
2288 * java/awt/BorderLayout.java: Implemented all methods.
2289 * java/awt/Button.java (actionListener, actionCommand): Renamed
2290 and modifier change.
2291 (addNotify): Call super.
2292 (dispatchEventImpl): New method.
2293 (getListeners): New method.
2294 (label): Made package-private, not private.
2295 * java/awt/Canvas.java: Implemented class body.
2296 * java/awt/Color.java (brighter): New method.
2297 (darker): New method.
2298 (hashCode): New method.
2299 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2300 (getGraphicsConfiguration): Delegate to
2301 getGraphicsConfigurationImpl().
2302 (getGraphicsConfigurationImpl): New method.
2303 (getToolkit): Only return value from peer if not null.
2304 (isDisplayable): Check with parent.
2305 (isShowing): No parent implies not showing.
2306 (getForeground): Check parent property if local is null.
2307 (getBackground): Likewise.
2308 (getFont): Likewise.
2309 (setForeground): Inform peer.
2310 (setBackground): Likewise
2311 (setLocale): Invalidate component.
2312 (getColorModel): Implemented.
2313 (setLocation): Invalidate, or ignore if no change.
2314 (setSize): Invalidate, or ignore if no change.
2315 (setBounds): Invalidate, or ignore if no change.
2316 (isOpaque): By default, heavyweight implies opaque.
2317 (isLightweight): Implemented.
2318 (getMaximumSize): Implemented.
2319 (doLayout): Implemented, NOP.
2320 (validate): Implemented, NOP.
2321 (invalidate): Only propagate to parent if parent was valid.
2322 (getGraphics): Implemented.
2323 (getFontMetrics): Implemented.
2324 (update): Implemented.
2325 (paintAll): Implemented.
2326 (repaint): Implemented all repaint methods.
2327 (print): Implemented.
2328 (printAll): Implemented.
2329 (createImage): Implemented.
2330 (dispatchEvent): Give the peer a chance to handle the event.
2331 (dispatchEventImpl): Dispatch paint events.
2332 (enableEvents): Lightweights enable events on parent component.
2333 (coalesceEvents): Coalesce paint events, and select event type
2335 (coalescePaintEvents): New method.
2336 (processEvent): Fix unfortunate ordering of statements, and call
2337 correct method for MOUSE_CLICKED.
2338 (processPaintEvent): New method.
2339 (addNotify): Allow container to notify children before event
2340 mask is set in peer.
2341 (addNotifyContainerChildren): New method.
2342 (removeNotify): Visibility should not change on removeNotify.
2343 (paramString): Implemented.
2344 (list): Implemented two of the list methods.
2345 * Container (myInsets): Removed, insets are managed by peer.
2346 (getInsets): Query peer.
2347 (addImpl): Fix reparenting, enable events for lightweights,
2348 initialize component array.
2349 (validate): Call doLayout in validateTree() instead.
2350 (validateTree): Do nothing if already valid. Call beginValidate(),
2351 endValidate() on peer. Call validateTree() instead of validate()
2352 for children that are containers. Mark valid after validation of
2354 (setFont): Partial implementation.
2355 (paint): Implemented.
2356 (visitChildren): New method.
2357 (visitChild): New method.
2358 (update): Implemented.
2359 (print): Implemented.
2360 (paintComponents): Implemented.
2361 (printComponents): Consider translation and clipping.
2362 (getComponentAt): Ignore invisible children. Return this if no
2364 (addNotify): Call super.
2365 (addNotifyContainerChildren): New method.
2366 (paramString): Implemented.
2367 (list): Implemented.
2368 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2370 (invokeLater): Likewise.
2371 (isDispatchThread): Likewise.
2372 * java/awt/FontMetrics (getLeading): Formula change.
2373 (getDescent): Consider leading also.
2374 (getMaxAscent): Default to getAscent().
2375 (getMaxDescent): Default to getDescent.
2376 (getMaxAdvance): Return value signifying unknown.
2377 (charWidth): Both methods implemented.
2378 (charsWidth): Implemented.
2379 (bytesWidth): Implemented.
2380 (getWidths): Implemented.
2381 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2383 (Frame): Rearragend constuctor chaining to disallow null being
2384 passed as a graphics configuration.
2385 (getTitle): Return empty string if null.
2387 (getIconImage): New method.
2388 (setIconImage): New method.
2389 (finalize): New method.
2390 (setMenuBar): Notify peer.
2391 (isResizable): New method.
2392 (setResizable): New method.
2393 (getState): New method.
2395 (remove): Implemented.
2396 (removeNotify): New method.
2397 (getFrames): New method.
2398 * java/awt/Graphics.java: Implemented body of class.
2399 * java/awt/Graphics2D.java: New file.
2400 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2401 * java/awt/Image.java: Implemented body of class.
2402 * java/awt/Panel.java (Panel): Call correct super constructor.
2403 (addNotify): Implemented.
2404 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2405 * java/awt/RenderingHints.java: New file.
2406 * java/awt/Toolkit.java (createComponent): Implemented.
2407 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2408 * java/awt/Window.java (Window): Two new constructors. Reordered
2409 constructor chaining.
2410 (getGraphicsConfigurationImpl): New method.
2411 (finalize): Call super.
2412 (addNotify): Call super.
2413 (pack): Do layout stuff.
2414 (show): Ensure that peer exists and that component is valid.
2415 (dispose): Dispose owned children.
2416 (getOwner): Simplify code, casting null pointers is valid.
2417 (getGraphicsConfiguration): Ask peer if local value is null.
2418 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2420 * java/awt/image/BufferedImage.java: New file.
2421 * java/awt/image/RasterOp.java: New file.
2422 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2423 More powerfull replacement for getColorModel().
2424 (getColorModel) Removed.
2425 (setEventMask) New method.
2426 * Makefile.am: Added new files.
2427 * Makefile.in: Rebuilt.
2429 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2431 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2432 (finit_leg_name): New global.
2433 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2434 `$finit$'. This is a backward compatibility hack.
2435 (java::lang::Class::_getMethods): Likewise.
2437 2000-08-15 Andrew Haley <aph@cygnus.com>
2439 * include/jvm.h (_Jv_HashCode): New hash code.
2441 2000-08-15 Tom Tromey <tromey@cygnus.com>
2443 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2445 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2447 * THANKS: More thanks.
2449 2000-08-10 Tom Tromey <tromey@cygnus.com>
2451 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2453 (connect): Likewise.
2455 (getOption): Likewise.
2456 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2457 case when errno not set.
2460 (receive): Likewise.
2461 (mcastGrp): Likewise.
2462 (setOption): Likewise.
2463 (getOption): Likewise.
2465 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2466 John Stracke <francis@ecal.com>
2468 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2469 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2471 (disconnect): Don't unset connected flag.
2472 (getHeaderField (String)): Call connect() if not connected.
2473 (getHeaderField (int)): Ditto.
2474 (getHeaderFieldKey): Ditto.
2475 (getHttpHeaders): Don't call connect().
2476 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2477 gotResponseVals): New fields.
2478 (getResponseCode): Call getResponseVals() conditionally.
2479 (getResponseMessage): Ditto.
2480 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2482 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2484 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2485 * Makefile.in: Rebuilt.
2486 * java/awt/Color.java (getTransparency): New method.
2487 * java/awt/Component.java: Various updates.
2488 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2489 after dealing with children.
2490 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2491 * java/awt/Window.java: Various new methods and updates.
2492 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2494 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2495 * java/awt/event/WindowEvent.java (paramString): Ditto.
2496 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2498 * java/awt/geom/Point2D.java (clone): Ditto.
2499 * java/awt/geom/RectangularShape.java (clone): Ditto.
2500 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2501 isAlphaPremultiplied): Make package-private, not private.
2503 2000-08-08 Tom Tromey <tromey@cygnus.com>
2505 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2506 surrogate characters.
2507 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2509 (write): Correct handling of surrogate characters.
2511 2000-08-07 Tom Tromey <tromey@cygnus.com>
2513 * java/lang/reflect/Method.java (hashCode): Use getName().
2514 (toString): Likewise.
2515 * java/lang/reflect/natMethod.cc (getType): Initialize
2518 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2520 * java/lang/reflect/Field.java (toString): Correct formatting.
2523 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2525 (receive): Streamlined.
2527 2000-08-05 Tom Tromey <tromey@cygnus.com>
2529 * java/io/PrintWriter.java: Merged comments from Classpath.
2530 (printlnUnsynchronized): Removed.
2531 (println()): Print the separator.
2532 (println): Call println(), not printlnUnsynchronized.
2533 (out): Now protected, to match spec.
2535 2000-08-04 Tom Tromey <tromey@cygnus.com>
2537 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2538 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2541 2000-08-03 Warren Levy <warrenl@cygnus.com>
2543 * java/io/ObjectInputStream.java (readFields): Turn off
2544 readDataFromBlock while reading via GetField.
2545 (GetField$1.get(String, Object)): Pass Class of default value to
2547 (getField): Allow for null default values.
2549 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2550 (PutField$1.put): Fixed calls of checkType in most of the put
2551 methods to pass the correct parameter.
2552 (PutField$1.put(String, Object)): Allow for null value arg.
2553 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2556 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2557 typo in spec'ed field name.
2558 (getSerialPersistentFields): Changed spelling of method to match
2559 the correct spelling of the spec'ed field name.
2561 2000-08-03 Tom Tromey <tromey@cygnus.com>
2563 * Makefile.in: Rebuilt.
2564 * Makefile.am (awt_java_source_files): Added new files.
2566 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2568 * Makefile.am: Add new AWT stubs.
2569 * java/awt/Canvas.java: New placeholder class.
2570 * java/awt/Checkbox.java: Ditto.
2571 * java/awt/CheckboxMenuItem.java: Ditto.
2572 * java/awt/Choice.java: Ditto.
2573 * java/awt/Dialog.java: Ditto.
2574 * java/awt/FileDialog.java: Ditto.
2575 * java/awt/List.java: Ditto.
2576 * java/awt/ScrollPane.java: Ditto.
2577 * java/awt/TextField.java: Ditto.
2578 * java/awt/datatransfer/Clipboard.java: Ditto.
2579 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2580 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2581 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2582 Some commented out. Partially implemented.
2583 * java/awt/natToolkit.cc: Removed file.
2585 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2587 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2588 Fixes "make -j" builds.
2589 * Makefile.in: Rebuild.
2591 2000-08-02 Tom Tromey <tromey@cygnus.com>
2593 * Makefile.in: Rebuilt.
2594 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2595 * java/net/natPlainSocketImpl.cc: Include posix.h.
2596 (accept): Use _Jv_select.
2597 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2598 (receive): Use _Jv_select.
2599 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2600 (available): Use _Jv_select.
2601 * java/lang/natSystem.cc: Include posix.h.
2602 (currentTimeMillis): Use _Jv_gettimeofday.
2603 * include/posix.h: New file.
2604 * posix.cc: New file.
2606 * scripts/encodings.pl: New file.
2607 * Makefile.in: Rebuilt.
2608 * Makefile.am (convert_source_files): Added IOConverter.java.
2609 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2611 (getDefaultDecodingClass): Canonicalize default encoding name.
2612 (getEncoder): Likewise.
2613 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2615 (getDefaultDecodingClass): Canonicalize default encoding name.
2616 (getDecoder): Likewise.
2617 * gnu/gcj/convert/IOConverter.java: New file.
2619 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2621 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2622 to match C declaration in ffi.h.
2623 * Makefile.am: Add java/awt/Button.java.
2624 * Makefile.in: Rebuilt.
2626 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2628 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2629 cast of the second argument to `ffi_raw_call' changed to match
2632 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2634 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2635 argument to `ffi_raw_call' changed to match prototype.
2637 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2639 * java/awt/Component.java (toString): Implemented.
2640 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2641 dispatchEvent() to dispatch the event.
2642 (removeImpl): Ditto.
2644 2000-07-30 Anthony Green <green@redhat.com>
2646 * java/awt/Component.java: Add treeLock object.
2647 (getTreeLock): Implement.
2648 (isShowing): Implement.
2650 2000-07-30 Tom Tromey <tromey@cygnus.com>
2652 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2654 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2656 * java/awt/Window.java (addNotify): Wrote.
2657 (addWindowListener): Wrote.
2659 (getWarningString): Wrote.
2660 (processEvent): Wrote.
2661 (processWindowEvent): Wrote.
2662 (removeWindowListener): Wrote.
2663 (show): Call validate(), setVisible().
2667 * java/awt/Toolkit.java (createWindow): Declare.
2669 * java/awt/Frame.java (addNotify): Use getToolkit to find
2672 * java/awt/Component.java (invalidate): Wrote.
2674 (getToolkit): Wrote.
2676 * java/awt/Container.java (addContainerListener): Removed
2678 (removeContainerListener): Likewise.
2680 (add(Component)): Use it.
2681 (add(String,Component)): Likewise.
2682 (add(Component,int)): Likewise.
2683 (add(Component,Object)): Likewise.
2684 (add(Component,Object,int)): Likewise.
2686 (getAlignmentX): Wrote.
2687 (getAlignmentY): Wrote.
2688 (getComponentAt): Wrote.
2689 (getMaximumSize): Wrote.
2690 (invalidate): Wrote.
2691 (list(PrintStream,int)): Wrote.
2692 (list(PrintWriter,int)): Wrote.
2693 (getMinimumSize): Wrote.
2694 (getPreferredSize): Wrote.
2695 (printComponents): Wrote.
2696 (processContainerEvent): Look at containerListener, not
2698 (remove): Added event processing and peer destruction.
2699 (removeAll): Use remove.
2700 (removeNotify): Wrote.
2702 (validateTree): Wrote.
2704 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2705 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2706 * java/awt/Container.java (addNotify): Don't create Container
2708 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2710 2000-07-30 Tom Tromey <tromey@cygnus.com>
2712 * java/awt/Container.java (remove(int)): Wrote.
2713 (remove(Component)): Wrote.
2714 (add(Component)): Wrote.
2715 (add(Component,int)): Wrote.
2717 (addNotify): Set our own peer.
2718 * java/awt/Scrollbar.java (listeners): Changed type.
2719 (Scrollbar): Don't initialize listeners.
2721 (setValue): Call setValues.
2722 (setMinimum): Likewise.
2723 (setMaxPriority): Likewise.
2724 (setVisibleAmount): Likewise.
2726 (setUnitIncrement): Forward to peer.
2727 (setLineIncrement): Call setUnitIncrement.
2728 (setPageIncrement): Call setBlockIncrement.
2729 (setBlockIncrement): Forward to peer.
2730 (addAdjustmentListener): Rewrote.
2731 (removeAdjustmentListener): Rewrote.
2732 (processAdjustmentEvent): Rewrote.
2733 (paramString): Wrote.
2734 * Makefile.in: Rebuilt.
2735 * Makefile.am (awt_java_source_files): Added Button.java.
2736 * java/awt/Button.java: New file.
2737 * java/awt/Toolkit.java (createLabel): Declare.
2738 (createButton): Likewise.
2739 (createScrollbar): Likewise.
2740 (createContainer): Likewise.
2741 * java/awt/Label.java (addNotify): Wrote.
2742 (setAlignment): Call setAlignment in the peer.
2743 (setText): Call setText in the peer.
2745 2000-07-28 Warren Levy <warrenl@cygnus.com>
2747 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2748 NotSerializableException with just the class name.
2750 2000-07-26 Andrew Haley <aph@cygnus.com>
2752 * interpret.cc (continue1): Insert missing break into switch.
2754 2000-07-28 Warren Levy <warrenl@cygnus.com>
2756 * java/io/ObjectStreamException.java: Made constructors protected.
2758 2000-07-27 Tom Tromey <tromey@cygnus.com>
2760 * java/io/OutputStreamWriter.java (close): Only flush if not
2763 2000-07-27 Warren Levy <warrenl@cygnus.com>
2765 * mauve-libgcj: Activated serialization tests.
2766 * gcj/field.h (getModifiers): Mask off unknown flags.
2767 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2768 spurious bits don't cause discrepancies.
2769 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2770 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2771 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2772 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2773 * java/lang/Throwable.java (serialVersionUID): New field.
2774 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2775 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2777 * java/lang/reflect/natMethod.cc: Ditto.
2778 * java/security/Key.java (serialVersionUID): Removed field for now.
2779 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2780 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2782 2000-07-22 Tom Tromey <tromey@cygnus.com>
2784 * java/awt/geom/RectangularShape.java (getPathIterator):
2787 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2789 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2790 stub libjava/java/awt/ColorModel.java which was located in the
2792 * libjava/java/awt/image/ComponentColorModel.java: New file.
2793 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2794 * libjava/java/awt/image/DataBuffer.java: New file.
2795 * libjava/java/awt/image/DataBufferByte.java: New file.
2796 * libjava/java/awt/image/DataBufferInt.java: New file.
2797 * libjava/java/awt/image/DataBufferUShort.java: New file.
2798 * libjava/java/awt/image/DirectColorModel.java: New file.
2799 * libjava/java/awt/image/PackedColorModel.java: New file.
2800 * libjava/java/awt/image/Raster.java: New file.
2801 * libjava/java/awt/image/SampleModel.java: New file.
2802 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2804 * libjava/java/awt/image/IndexColorModel.java: New file.
2805 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2806 java.awt.ColorModel stub.
2808 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2809 * gnu/gcj/util/Buffers.java: New file, utility class.
2811 * libjava/Makefile.am: Updated to include new files.
2812 * libjava/Makefile.in: Rebuilt.
2814 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2816 * java/io/StreamTokenizer.java: Merged with classpath.
2818 2000-07-20 Tom Tromey <tromey@cygnus.com>
2820 * Makefile.in: Rebuilt.
2821 * Makefile.am (awt_java_source_files): Updated for new files.
2822 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2823 * java/awt/Label.java: New file.
2824 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2825 (createIntersection, createUnion, getBounds2D): New methods.
2826 * java/awt/Scrollbar.java: New file.
2827 * java/awt/Shape.java: Updated to 1.2.
2828 * java/awt/geom/AffineTransform.java: New file.
2829 * java/awt/geom/Ellipse2D.java: New file.
2830 * java/awt/geom/NoninvertibleTransformException.java: New file.
2831 * java/awt/geom/PathIterator.java: New file.
2832 * java/awt/geom/Rectangle2D.java: New file.
2833 * java/awt/geom/RectangularShape.java: New file.
2834 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2835 * java/awt/geom/IllegalPathStateException.java: New file.
2837 * scripts/showval.java: New file.
2839 * scripts/classes.pl (scan): Print inner classes properly.
2840 * gcj/javaprims.h: Updated class list.
2842 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2843 initialize String fields for interpreted classes. Fixes bug
2844 reported by Hans Boehm.
2846 * java/io/File.java (getParentFile): New method, from Classpath
2847 via Oskar Liljeblad.
2849 * java/util/Vector.java (remove(Object)): Implemented.
2851 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2853 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2854 zero return from backtrace().
2856 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2858 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2860 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2861 before calling notifyAll().
2863 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2865 Add missing files from last check-in:
2866 * java/awt/image/ImageConsumer.java: New file.
2867 * java/awt/image/ImageProducer.java: New file.
2868 * java/awt/image/ImageObserver.java: New file.
2870 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2872 Merged implementation of java.applet from classpath:
2873 * java/applet/Applet.java: New file.
2874 * java/applet/AppletContext.java: New file.
2875 * java/applet/AppletStub.java: New file.
2876 * java/applet/AudioClip.java: New file.
2878 * Makefile.am: Added new java.applet classes.
2879 * Makefile.in: Rebuilt.
2881 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2884 * java/util/ResourceBundle.java (getLocale): stub.
2885 * Makefile.am: Added new AWT classes.
2886 * Makefile.in: Rebuilt.
2887 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2888 constructors. Fix toString() and paramString().
2889 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2890 * java/awt/CheckboxGroup.java: New class.
2891 * java/awt/ColorModel.java: New class.
2892 * java/awt/Component.java: Added stubs for most methods. Implemented
2894 * java/awt/Container.java: ditto.
2895 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2896 * java/awt/Cursor.java: ditto.
2897 * java/awt/Event.java: Fix paramString().
2898 * java/awt/EventQueue.java: New class. Implemented.
2899 * java/awt/Font.java: Added additional stub methods. Implemented
2901 * java/awt/FontMetrics.java: New class. Stubbed.
2902 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2904 * java/awt/Insets.java: New class. Implemented.
2905 * java/awt/Menu.java: Add new methods. Partially implemented.
2906 * java/awt/MenuItem.java: Add new methods and fields. Partially
2908 * java/awt/MenuShortcut.java: New class. Implemented.
2909 * java/awt/Panel.java: New class. Placeholder.
2910 * java/awt/PopupMenu.java: New class. Stubbed.
2911 * java/awt/Rectangle.java: New class. Implemented.
2912 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2913 * java/awt/event/ActionEvent.java: Implement paramString().
2914 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2915 * java/awt/event/ComponentEvent.java: Implement paramString().
2916 * java/awt/event/ContainerEvent.java: Implement paramString().
2917 * java/awt/event/FocusEvent.java: Implement paramString().
2918 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2919 * java/awt/event/HierarchyBoundsListener.java: New class.
2920 * java/awt/event/HierarchyEvent.java: New class.
2921 * java/awt/event/HierarchyListener.java: New class.
2922 * java/awt/event/InputMethodEvent.java: Implement paramString().
2923 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2924 exception if !catchExceptions.
2925 * java/awt/event/ItemEvent.java: Implement paramString().
2926 * java/awt/event/KeyEvent.java: Implement paramString().
2927 * java/awt/event/MouseEvent.java: Implement paramString().
2928 * java/awt/event/PaintEvent.java: Implement paramString().
2929 * java/awt/event/TextEvent.java: Implement paramString().
2930 * java/awt/event/WindowEvent.java: Implement paramString().
2932 AWT Peer interfaces:
2933 * java/awt/peer/ButtonPeer.java: New file.
2934 * java/awt/peer/ListPeer.java: New file.
2935 * java/awt/peer/CanvasPeer.java: New file.
2936 * java/awt/peer/MenuBarPeer.java: New file.
2937 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2938 * java/awt/peer/MenuComponentPeer.java: New file.
2939 * java/awt/peer/CheckboxPeer.java: New file.
2940 * java/awt/peer/MenuItemPeer.java: New file.
2941 * java/awt/peer/ChoicePeer.java: New file.
2942 * java/awt/peer/MenuPeer.java: New file.
2943 * java/awt/peer/ComponentPeer.java: Implemented.
2944 * java/awt/peer/PanelPeer.java: New file.
2945 * java/awt/peer/ContainerPeer.java: Implemented.
2946 * java/awt/peer/PopupMenuPeer.java: New file.
2947 * java/awt/peer/DialogPeer.java: New file.
2948 * java/awt/peer/ScrollPanePeer.java: New file.
2949 * java/awt/peer/FileDialogPeer.java: New file.
2950 * java/awt/peer/ScrollbarPeer.java: New file.
2951 * java/awt/peer/FontPeer.java: New file.
2952 * java/awt/peer/TextAreaPeer.java: New file.
2953 * java/awt/peer/FramePeer.java: Implemented.
2954 * java/awt/peer/TextComponentPeer.java: New file.
2955 * java/awt/peer/LabelPeer.java: New file.
2956 * java/awt/peer/TextFieldPeer.java: New file.
2957 * java/awt/peer/LightweightPeer.java: New file.
2958 * java/awt/peer/WindowPeer.java: Implemented.
2960 2000-07-06 Tom Tromey <tromey@cygnus.com>
2962 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2963 Initialize static final String fields.
2965 2000-07-03 Tom Tromey <tromey@cygnus.com>
2967 * java/io/PrintWriter.java (print): Call write(String), not
2968 print(String). See PR libgcj/277.
2969 (print(String)): Use write, not out.write.
2971 2000-06-30 Tom Tromey <tromey@cygnus.com>
2973 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2975 2000-06-27 Andrew Haley <aph@cygnus.com>
2977 * java/io/File.java (createTempFile): Close the FileDescriptor
2978 used to create a temp file. Fixes some of PR 203.
2979 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2980 collection if we run out of file handles.
2982 2000-06-28 Warren Levy <warrenl@cygnus.com>
2984 * gnu/java/security/provider/Gnu.java: New file.
2985 * gnu/java/security/provider/SHA.java: New file.
2986 * gnu/java/security/provider/SHA1PRNG.java: New file.
2987 * Makefile.am: Added the above files.
2988 * Makefile.in: Rebuilt.
2990 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2992 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2994 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2995 (destroyed_flag): Removed.
2996 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2997 (activeCount): Added spec note.
2999 2000-06-27 Warren Levy <warrenl@cygnus.com>
3001 * java/security/Principal.java: New file.
3002 * Makefile.am: Added Principal.java.
3003 * Makefile.in: Rebuilt.
3005 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3007 * java/awt/event/MouseEvent.java: Fixed coordinate space
3010 2000-06-27 Tom Tromey <tromey@cygnus.com>
3012 * java/io/PushbackInputStream.java (read): If there are characters
3013 in the buffer, don't also call super.read().
3014 * java/io/PushbackReader.java (read): If there are characters in
3015 the buffer, don't also call super.read().
3017 * java/lang/Double.java (valueOf): Call parseDouble().
3019 2000-06-26 Warren Levy <warrenl@cygnus.com>
3021 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3022 (newVal): Renamed to newValue.
3023 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3024 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3025 (revokeNow): Renamed to invalidateRefs.
3026 * java/io/OptionalDataException.java: Updated FIXME.
3027 (eof): New placeholder field.
3029 * java/io/WriteAbortedException.java (message): Made transient.
3030 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3031 * java/lang/Throwable.java (stackTrace): Made transient.
3032 * java/net/InetAddress.java: Made Serializable.
3033 * java/security/KeyPair.java: Made Serializable.
3034 * java/security/Provider.java: Replaced with Classpath version that
3035 implements serialization and proper methods.
3036 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3037 (limits): Renamed to choiceLimits.
3039 2000-06-24 Tom Tromey <tromey@cygnus.com>
3041 * java/lang/natDouble.cc (parseDouble): Renamed from
3043 * java/lang/Double.java (parseDouble): Renamed from
3044 doubleValueOf. Now public.
3046 2000-06-23 Andrew Haley <aph@cygnus.com>
3048 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3049 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3051 2000-06-23 Tom Tromey <tromey@cygnus.com>
3053 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3054 * java/lang/natDouble.cc: Always include <alloca.h>.
3055 Fix for PR libgcj/267.
3057 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3059 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3060 comply with classpath VM spec.
3061 (add(Group)): Rename to addGroup().
3062 * java/lang/Thread.java (Thread): Use addThread().
3063 * java/lang/natThread.cc (finish_): Use removeThread().
3065 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3067 * java/lang/ThreadGroup.java: Merged with classpath.
3068 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3069 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3071 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3072 ThreadGroup.root if Thread.currentThread is null. Honour the
3073 ThreadGroup's max priority setting.
3075 2000-06-18 Tom Tromey <tromey@cygnus.com>
3077 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3078 returned class. For PR gcj/260.
3080 2000-06-16 Tom Tromey <tromey@cygnus.com>
3082 Fix for PR libgcj/261:
3083 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3085 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3086 argument. (This is a patch from long ago that somehow went
3089 2000-06-15 Tom Tromey <tromey@cygnus.com>
3091 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3095 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3097 Fix for PR java.lang/258:
3098 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3099 JV_STATE_DONE, to prevent accidental initialization.
3100 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3101 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3102 interface or an abstract class. Remove redundant initializeClass calls.
3103 Remove duplicate if_idt test.
3104 (_Jv_InterfaceAssignableFrom): New function.
3105 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3107 2000-05-31 Tom Tromey <tromey@cygnus.com>
3109 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3110 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3111 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3112 (NUM_OBJECT_METHODS): New define.
3113 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3114 `array_vtable' parameter. Added assertion.
3115 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3118 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3120 * gcj/cni.h: Include <string.h>.
3121 * defineclass.cc: Include <alloca.h>.
3122 * interpret.cc: Ditto.
3123 * gij.cc: Include <stdlib.h>.
3125 2000-05-30 Tom Tromey <tromey@cygnus.com>
3127 * include/name-finder.h: Include <sys/wait.h>.
3128 (_Jv_name_finder::pid): Now of type `pid_t'.
3129 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3130 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3133 2000-05-24 Warren Levy <warrenl@cygnus.com>
3135 * java/io/ObjectOutputStream.java (writeObject): Use component type
3136 when writing arrays.
3139 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3141 Fix for PR libgcj/226:
3142 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3143 since this is an installed header.
3145 Fix for PR libgcj/228:
3146 * java/util/zip/ZipFile (getInputStream): Create inflater with
3149 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3150 with DataFormatException.
3152 2000-05-20 Tom Tromey <tromey@cygnus.com>
3154 * Makefile.in: Rebuilt.
3155 * Makefile.am (hack1): Removed.
3156 (awto_files): Likewise.
3157 (libgcjawt_la_SOURCES): Likewise.
3158 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3159 (libgcjawt_la_DEPENDENCIES): Likewise.
3160 (libgcjawt_la_LIBADD): Likewise.
3161 (libgcjawt_la_LDFLAGS): Likewise.
3162 (libgcjawt_la_LINK): Likewise.
3163 ($(awt_java_source_files:.java=.class)): Likewise.
3164 (libgcj.zip): Don't depend on AWT files.
3165 (MOSTLYCLEANFILES): Don't include AWT files.
3166 ($(awto_files)): Removed.
3167 (nat_headers): Removed AWT files.
3168 (cond_awt_java_source_files): Removed.
3169 (ordinary_java_source_files): Added awt_java_source_files.
3170 * libgcj.spec.in (*lib): Removed -lgcjawt.
3171 * configure: Rebuilt.
3172 * configure.in: Removed --enable-java-awt option.
3174 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3176 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3177 (ZipEntry): Copy the `name' field.
3178 (clone): Implement JDK1.2 method.
3179 (setCompressedSize): ditto.
3182 2000-05-19 Tom Tromey <tromey@cygnus.com>
3184 * java/io/BufferedWriter.java: Merged with Classpath.
3185 * java/io/BufferedOutputStream.java: Merged with Classpath.
3187 2000-05-16 Andrew Haley <aph@cygnus.com>
3189 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3190 build_ia64_frame_state.
3191 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3194 2000-05-15 Warren Levy <warrenl@cygnus.com>
3196 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3197 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3198 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3199 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3200 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3201 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3202 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3203 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3204 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3205 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3206 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3207 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3208 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3209 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3210 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3211 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3212 * gnu/gcj/io/NullOutputStream.java: Removed.
3213 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3214 * gnu/gcj/lang/ArrayHelper.java: Removed.
3215 * gnu/gcj/lang/ClassHelper.java: Removed.
3216 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3218 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3219 * gnu/java/beans/EmptyBeanInfo.java: New file.
3220 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3221 * gnu/java/beans/IntrospectionIncubator.java: New file.
3222 * gnu/java/beans/editors/ColorEditor.java: New file.
3223 * gnu/java/beans/editors/FontEditor.java: New file.
3224 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3225 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3226 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3227 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3228 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3229 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3230 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3231 * gnu/java/beans/editors/StringEditor.java: New file.
3232 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3233 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3234 * gnu/java/io/NullOutputStream.java: New file.
3235 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3236 * gnu/java/lang/ArrayHelper.java: New file.
3237 * gnu/java/lang/ClassHelper.java: New file.
3238 * gnu/java/lang/reflect/TypeSignature.java: New file.
3240 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3241 namespace back to the original Classpath gnu/java namespace.
3242 * Makefile.in: Rebuilt.
3244 * java/beans/Beans.java: Namespace change.
3245 * java/beans/EventSetDescriptor.java: Namespace change.
3246 * java/beans/Introspector.java: Namespace change.
3247 * java/beans/PropertyEditorManager.java: Namespace change.
3248 * java/io/ObjectInputStream.java: Namespace change.
3249 * java/io/ObjectOutputStream.java: Namespace change.
3250 * java/io/ObjectStreamClass.java: Namespace change.
3251 * java/io/ObjectStreamField.java: Namespace change.
3253 2000-04-21 Warren Levy <warrenl@cygnus.com>
3255 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3256 now that compiler patch is available.
3257 Removed unneeded System.loadLibrary.
3258 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3259 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3261 2000-04-19 Andrew Haley <aph@cygnus.com>
3263 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3264 and target classes have been initialized.
3266 2000-04-19 Andrew Haley <aph@cygnus.com>
3268 * java/lang/String.java: implement Serializable, Comparable.
3269 (compareTo (Object)): New method.
3271 2000-04-19 Warren Levy <warrenl@cygnus.com>
3273 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3274 instead of getField to retrieve non-public field.
3275 (getSerialPersistantFields): Ditto.
3277 2000-04-18 Warren Levy <warrenl@cygnus.com>
3279 * mauve-libgcj: Turned off object serialization tests temporarily
3280 due to compiler error.
3282 2000-04-17 Warren Levy <warrenl@cygnus.com>
3284 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3285 to avoid build problem.
3287 * mauve-libgcj: Turned on object serialization tests.
3289 2000-04-17 Tom Tromey <tromey@cygnus.com>
3291 * libgcj.spec.in (*lib): Added -lgcjawt.
3293 2000-04-17 Andrew Haley <aph@cygnus.com>
3295 * Makefile.am: Add new files:
3296 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3298 * Makefile.in: Rebuilt.
3300 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3301 interface that has no implementations.
3302 Check for an attempt to assign an abstract class to an interface.
3304 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3305 if we fail to find MessageDigest.getInstance ("SHA").
3307 * gnu/gcj/io/SimpleSHSStream.java: New file.
3308 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3309 * gnu/gcj/io/shs.cc: New file.
3310 * gnu/gcj/io/shs.h: new file.
3312 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3315 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3316 punctuation from the classname of an array element.
3318 * gcj/javaprims.h: Add SimpleDigestStream.
3320 2000-04-17 Andrew Haley <aph@cygnus.com>
3322 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3323 to getPrivateField for superclasses.
3325 2000-04-14 Andrew Haley <aph@cygnus.com>
3327 * Makefile.am: Add new files:
3328 java/io/ObjectOutputStream$PutField.h,
3329 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3330 java/io/natObjectOutputStream.cc
3331 * Makefile.in: Rebuilt.
3332 * gcj/Makefile.in: Rebuilt.
3333 * include/Makefile.in: Rebuilt.
3334 * java/lang/Class.h (getPrivateField): New method.
3335 (getPrivateMethod): Ditto.
3336 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3337 and java::io::ObjectStreamClass our friends.
3338 * java/lang/natClass.cc (getPrivateField): New method.
3339 (getPrivateMethod): Ditto.
3340 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3341 * gcj/javaprims.h: Add serialization classes.
3342 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3343 (setByteField): Ditto.
3344 (setCharField): Ditto.
3345 (setDoubleField): Ditto.
3346 (setFloatField): Ditto.
3347 (setIntField): Ditto.
3348 (setLongField): Ditto.
3349 (setShortField): Ditto.
3350 (setObjectField): Ditto.
3351 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3353 (getByteField): Ditto.
3354 (getCharField): Ditto.
3355 (getDoubleField): Ditto.
3356 (getFloatField): Ditto.
3357 (getIntField): Ditto.
3358 (getLongField): Ditto.
3359 (getShortField): Ditto.
3360 (getObjectField): Ditto.
3361 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3363 (getSerialPersistantFields): Ditto.
3364 (getDefinedSUID): Ditto.
3365 * java/io/natObjectOutputStream.cc: New file.
3366 * java/io/natObjectInputStream.cc: New file.
3368 2000-04-13 Warren Levy <warrenl@cygnus.com>
3370 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3371 problems. Revert to previous version to reproduce and when fixed.
3373 2000-04-13 Warren Levy <warrenl@cygnus.com>
3375 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3376 * gnu/gcj/io/NullOutputStream.java: New file.
3377 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3378 * java/io/BlockDataException.java: New file.
3379 * java/io/Externalizable.java: New file.
3380 * java/io/InvalidClassException.java: New file.
3381 * java/io/InvalidObjectException.java: New file.
3382 * java/io/NotActiveException.java: New file.
3383 * java/io/NotSerializableException.java: New file.
3384 * java/io/ObjectInput.java: New file.
3385 * java/io/ObjectInputStream.java: New file.
3386 * java/io/ObjectInputValidation.java: New file.
3387 * java/io/ObjectOutput.java: New file.
3388 * java/io/ObjectOutputStream.java: New file.
3389 * java/io/ObjectStreamClass.java: New file.
3390 * java/io/ObjectStreamConstants.java: New file.
3391 * java/io/ObjectStreamField.java: New file.
3392 * java/io/Replaceable.java: New file.
3393 * java/io/Resolvable.java: New file.
3394 * java/io/SerializablePermission.java: New file.
3395 * java/io/WriteAbortedException.java: New file.
3396 * java/security/BasicPermission.java: New file.
3397 * java/security/DigestOutputStream.java: New file.
3398 * java/security/Guard.java: New file.
3399 * java/security/Permission.java: New file.
3400 * java/security/PermissionCollection.java: New file.
3401 * Makefile.am: Added above files.
3402 * Makefile.in: Rebuilt.
3404 * java/beans/Beans.java (instantiate): Activated serialization code.
3405 * java/lang/SecurityManager.java (checkPermission): New method.
3407 2000-04-12 Warren Levy <warrenl@cygnus.com>
3409 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3410 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3411 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3412 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3413 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3414 * gnu/gcj/beans/editors/FontEditor.java: New file.
3415 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3416 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3417 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3418 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3419 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3420 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3421 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3422 * gnu/gcj/beans/editors/StringEditor.java: New file.
3423 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3424 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3425 * gnu/gcj/lang/ArrayHelper.java: New file.
3426 * gnu/gcj/lang/ClassHelper.java: New file.
3427 * java/beans/BeanDescriptor.java: New file.
3428 * java/beans/BeanInfo.java: New file.
3429 * java/beans/Beans.java: New file.
3430 * java/beans/Customizer.java: New file.
3431 * java/beans/DesignMode.java: New file.
3432 * java/beans/EventSetDescriptor.java: New file.
3433 * java/beans/FeatureDescriptor.java: New file.
3434 * java/beans/IndexedPropertyDescriptor.java: New file.
3435 * java/beans/IntrospectionException.java: New file.
3436 * java/beans/Introspector.java: New file.
3437 * java/beans/MethodDescriptor.java: New file.
3438 * java/beans/ParameterDescriptor.java: New file.
3439 * java/beans/PropertyChangeEvent.java: New file.
3440 * java/beans/PropertyChangeListener.java: New file.
3441 * java/beans/PropertyChangeSupport.java: New file.
3442 * java/beans/PropertyDescriptor.java: New file.
3443 * java/beans/PropertyEditor.java: New file.
3444 * java/beans/PropertyEditorManager.java: New file.
3445 * java/beans/PropertyEditorSupport.java: New file.
3446 * java/beans/PropertyVetoException.java: New file.
3447 * java/beans/SimpleBeanInfo.java: New file.
3448 * java/beans/VetoableChangeListener.java: New file.
3449 * java/beans/VetoableChangeSupport.java: New file.
3450 * java/beans/Visibility.java: New file.
3451 * java/beans/beancontext/BeanContext.java: New file.
3452 * java/beans/beancontext/BeanContextChild.java: New file.
3453 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3454 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3455 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3456 * java/beans/beancontext/BeanContextEvent.java: New file.
3457 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3458 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3459 * java/beans/beancontext/BeanContextProxy.java: New file.
3460 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3462 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3463 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3465 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3466 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3468 * java/beans/beancontext/BeanContextServices.java: New file.
3469 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3470 * java/util/AbstractCollection.java: New file.
3471 * java/util/AbstractList.java: New file.
3472 * java/util/Arrays.java: New file.
3473 * Makefile.am: Added above files.
3474 * Makefile.in: Rebuilt.
3476 2000-04-11 Warren Levy <warrenl@cygnus.com>
3478 * java/awt/AWTError.java: New file.
3479 * java/awt/AWTEvent.java: New file.
3480 * java/awt/AWTException.java: New file.
3481 * java/awt/ActiveEvent.java: New file.
3482 * java/awt/Adjustable.java: New file.
3483 * java/awt/BorderLayout.java: New file.
3484 * java/awt/Color.java: New file.
3485 * java/awt/Component.java: New file.
3486 * java/awt/Container.java: New file.
3487 * java/awt/Dimension.java: New file.
3488 * java/awt/Event.java: New file.
3489 * java/awt/Font.java: New file.
3490 * java/awt/Frame.java: New file.
3491 * java/awt/Graphics.java: New file.
3492 * java/awt/IllegalComponentStateException.java: New file.
3493 * java/awt/Image.java: New file.
3494 * java/awt/ItemSelectable.java: New file.
3495 * java/awt/LayoutManager.java: New file.
3496 * java/awt/LayoutManager2.java: New file.
3497 * java/awt/Menu.java: New file.
3498 * java/awt/MenuBar.java: New file.
3499 * java/awt/MenuComponent.java: New file.
3500 * java/awt/MenuContainer.java: New file.
3501 * java/awt/MenuItem.java: New file.
3502 * java/awt/Paint.java: New file.
3503 * java/awt/PaintContext.java: New file.
3504 * java/awt/Point.java: New file.
3505 * java/awt/Rectangle.java: New file.
3506 * java/awt/Shape.java: New file.
3507 * java/awt/TextArea.java: New file.
3508 * java/awt/TextComponent.java: New file.
3509 * java/awt/Toolkit.java: New file.
3510 * java/awt/Transparency.java: New file.
3511 * java/awt/Window.java: New file.
3512 * java/awt/natToolkit.cc: New file.
3513 * java/awt/event/AWTEventListener.java: New file.
3514 * java/awt/event/ActionEvent.java: New file.
3515 * java/awt/event/ActionListener.java: New file.
3516 * java/awt/event/AdjustmentEvent.java: New file.
3517 * java/awt/event/AdjustmentListener.java: New file.
3518 * java/awt/event/ComponentAdapter.java: New file.
3519 * java/awt/event/ComponentEvent.java: New file.
3520 * java/awt/event/ComponentListener.java: New file.
3521 * java/awt/event/ContainerAdapter.java: New file.
3522 * java/awt/event/ContainerEvent.java: New file.
3523 * java/awt/event/ContainerListener.java: New file.
3524 * java/awt/event/FocusAdapter.java: New file.
3525 * java/awt/event/FocusEvent.java: New file.
3526 * java/awt/event/FocusListener.java: New file.
3527 * java/awt/event/InputEvent.java: New file.
3528 * java/awt/event/InputMethodEvent.java: New file.
3529 * java/awt/event/InputMethodListener.java: New file.
3530 * java/awt/event/InvocationEvent.java: New file.
3531 * java/awt/event/ItemEvent.java: New file.
3532 * java/awt/event/ItemListener.java: New file.
3533 * java/awt/event/KeyAdapter.java: New file.
3534 * java/awt/event/KeyEvent.java: New file.
3535 * java/awt/event/KeyListener.java: New file.
3536 * java/awt/event/MouseAdapter.java: New file.
3537 * java/awt/event/MouseEvent.java: New file.
3538 * java/awt/event/MouseListener.java: New file.
3539 * java/awt/event/MouseMotionAdapter.java: New file.
3540 * java/awt/event/MouseMotionListener.java: New file.
3541 * java/awt/event/PaintEvent.java: New file.
3542 * java/awt/event/TextEvent.java: New file.
3543 * java/awt/event/TextListener.java: New file.
3544 * java/awt/event/WindowAdapter.java: New file.
3545 * java/awt/event/WindowEvent.java: New file.
3546 * java/awt/event/WindowListener.java: New file.
3547 * java/awt/geom/Dimension2D.java: New file.
3548 * java/awt/geom/Point2D.java: New file.
3549 * java/awt/peer/ComponentPeer.java: New file.
3550 * java/awt/peer/ContainerPeer.java: New file.
3551 * java/awt/peer/FramePeer.java: New file.
3552 * java/awt/peer/WindowPeer.java: New file.
3553 * java/util/Collection.java: New file.
3554 * java/util/Comparator.java: New file.
3555 * java/util/Iterator.java: New file.
3556 * java/util/List.java: New file.
3557 * java/util/ListIterator.java: New file.
3558 * Makefile.am: Added above files.
3559 * Makefile.in: Rebuilt.
3561 2000-04-10 Warren Levy <warrenl@cygnus.com>
3563 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3564 * java/lang/FirstThread.java: Ditto.
3565 * java/lang/StringBuffer.java: Ditto.
3566 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3568 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3569 Special case handled in java.math.BigInteger.
3570 * java/math/BigInteger.java (divide): Handle the special case when
3571 dividing by 1 and the high bit of the dividend is set.
3572 (setShiftRight): Handle case when count == 0.
3574 2000-04-05 Andrew Haley <aph@cygnus.com>
3576 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3579 2000-04-05 Andrew Haley <aph@cygnus.com>
3581 * sysdep/ia64.c (rse_address_add): Delete.
3582 (IS_NaT_COLLECTION_ADDR): Delete.
3583 (ia64_backtrace_helper): check for null unwind_info.
3585 * sysdep/ia64-frame.h: add calc_caller_bsp.
3587 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3590 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3591 (_Jv_remI): Likewise.
3592 (_Jv_divJ): Likewise.
3593 (_Jv_remJ): Likewise.
3595 * interpret.cc (continue1): Use divide subroutines to guarantee
3596 correct Java standard behaviour.
3597 Floating-point division should not abort; make it so.
3599 2000-03-29 Tom Tromey <tromey@cygnus.com>
3601 * configure: Rebuilt.
3602 * configure.in: Test against `libgcj_sjlj', not
3603 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3604 to be set even when using sjlj.
3606 2000-03-24 Andrew Haley <aph@cygnus.com>
3608 * Makefile.am: Add file addr2name.awk.
3609 * Makefile.in: Rebuilt.
3610 * addr2name.awk: New file.
3611 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3613 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3616 2000-03-22 Andrew Haley <aph@cygnus.com>
3618 * configure.host: Add -funwind-tables for IA64.
3619 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3620 * Makefile.in: Rebuilt.
3621 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3622 * sysdep/ia64.c: New file.
3623 * sysdep/ia64-frame.h: New file.
3624 * configure.in: Add sysdep/ia64.c for ia64.
3625 * configure: Rebuilt.
3627 2000-03-17 Andrew Haley <aph@cygnus.com>
3629 * java/lang/natString.cc: Remove `register' keyword.
3630 interpret.cc: ditto.
3632 2000-03-16 Andrew Haley <aph@cygnus.com>
3634 * configure.host (ia64): Enable interpreter.
3636 2000-03-14 Hans Boehm <boehm@acm.org>
3638 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3640 2000-03-14 Andrew Haley <aph@cygnus.com>
3642 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3645 2000-03-10 Andrew Haley <aph@cygnus.com>
3647 * java/lang/ieeefp.h: Import latest version from fdlibm.
3649 2000-03-14 Andrew Haley <aph@cygnus.com>
3651 * prims.cc (_Jv_ThrowSignal): New function.
3652 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3654 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3655 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3656 * include/ppc-signal.h: New file.
3658 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3660 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3661 * java/lang/natThread.java (initialize_native): Cast `data' to
3663 * gnu/gcj/RawData.java: Clarify documentation.
3665 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3666 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3667 `jarFile', not `jarFileURL'.
3669 2000-05-15 Andrew Haley <aph@cygnus.com>
3671 * include/ppc-signal.h: New file.
3673 2000-05-11 Tom Tromey <tromey@cygnus.com>
3675 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3676 file headers, don't include `size' in the skip call.
3678 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3680 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3681 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3683 (replace): Reimplemented. Fix javadoc.
3684 (reverse): Call ensureCapacity_unsynchronized().
3685 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3687 (replace): Calculate length for arraycopy() correctly.
3689 2000-05-09 Tom Tromey <tromey@cygnus.com>
3691 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3693 (insert(int,char[],int,int): New method.
3694 (delete): New method from Classpath.
3695 (deleteCharAt): Likewise.
3696 (substring): Likewise.
3697 (shared): No longer private.
3698 Added JavaDoc comments from Classpath.
3699 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3702 2000-05-07 Tom Tromey <tromey@cygnus.com>
3704 * Makefile.in: Rebuilt.
3705 * Makefile.am (LIBLINK): New macro.
3706 (libgcj_la_LINK): Use it.
3707 (libgcjawt_la_LINK): Likewise.
3709 2000-05-06 Tom Tromey <tromey@cygnus.com>
3711 * Makefile.in: Rebuilt.
3712 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3714 2000-05-05 Tom Tromey <tromey@cygnus.com>
3716 Fix for PR libgcj/220:
3717 * Makefile.in: Rebuilt.
3718 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3719 (jv_convert_LDFLAGS): Likewise.
3720 (libgcj_la_LDFLAGS): Likewise.
3721 (GCJLINK): New macro.
3722 (jv_convert_LINK): Use it.
3723 (gij_LINK): Likewise.
3724 (libgcj_la_LINK): New macro.
3725 (libgcjawt_la_LINK): Likewise.
3727 2000-05-04 Tom Tromey <tromey@cygnus.com>
3729 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3731 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3735 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3737 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3738 (_Jv_IsAssignableFrom): Ditto.
3739 (_Jv_IsInstanceOf): Ditto.
3740 (_Jv_CheckCast): Ditto.
3741 (_Jv_CheckArrayStore): Ditto.
3742 * java/lang/Class.h (_Jv_InitClass): Ditto.
3743 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3748 (_Jv_MonitorExit): Ditto.
3749 * boehm.cc (_Jv_MarkObj): Ditto.
3750 (_Jv_MarkObj): Ditto.
3751 (_Jv_MarkArray): Ditto.
3752 * prims.cc (_Jv_AllocObject): Ditto.
3753 (_Jv_NewObjectArray): Ditto.
3754 (_Jv_NewPrimArray): Ditto.
3755 (_Jv_Malloc): Ditto.
3756 (_Jv_Realloc): Ditto.
3757 (_Jv_MallocUnchecked): Ditto.
3763 2000-05-04 Tom Tromey <tromey@cygnus.com>
3765 * java/util/Locale.java (Locale): Don't explicitly check for
3767 * java/util/Hashtable.java (containsKey): Don't explicitly check
3770 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3772 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3774 * java/text/StringCharacterIterator.java
3775 (StringCharacterIterator): Don't check for null.
3776 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3778 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3779 check for null pointer.
3780 (leaveGroup): Likewise.
3781 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3783 (setData): Likewise.
3784 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3787 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3789 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3790 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3791 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3792 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3793 -rpath for in-gcc builds.
3794 * Makefile.in: Rebuilt.
3796 2000-04-28 Tom Tromey <tromey@cygnus.com>
3798 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3801 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3803 * libjava/java/lang/String.java (toString): Remove `final' hack.
3805 2000-04-05 Tom Tromey <tromey@cygnus.com>
3807 Runtime support for PR gcj/2:
3808 * prims.cc (_Jv_ThrowNullPointerException): New function.
3809 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3811 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3813 * prims.cc (_Jv_NewObjectArray): Fix typo.
3815 2000-04-26 Tom Tromey <tromey@cygnus.com>
3817 * Makefile.in: Rebuilt.
3818 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3820 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3822 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3825 2000-04-22 Anthony Green <green@cygnus.com>
3827 * include/jvm.h (__builtin_expect): Define as unused for now.
3828 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3832 (_Jv_MonitorExit): Ditto.
3833 * boehm.cc (_Jv_MarkObj): Ditto.
3834 (_Jv_MarkObj): Ditto.
3835 (_Jv_MarkArray): Ditto.
3836 (_Jv_AllocBytes): Ditto.
3837 * prims.cc (_Jv_AllocObject): Ditto.
3838 (_Jv_NewObjectArray): Ditto.
3839 (_Jv_NewPrimArray): Ditto.
3840 (_Jv_Malloc): Ditto.
3841 (_Jv_Realloc): Ditto.
3842 (_Jv_MallocUnchecked): Ditto.
3848 * include/Makefile.in: Rebuilt.
3849 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3851 2000-04-21 Tom Tromey <tromey@cygnus.com>
3853 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3854 Yet another new version from Classpath.
3856 Fix for PR libgcj/15:
3857 * java/util/natGregorianCalendar.cc (_REENTRANT,
3858 _POSIX_PTHREAD_SEMANTICS): Don't define.
3859 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3860 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3862 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3864 * configure: Rebuilt.
3865 * configure.in: If using POSIX threads, define _REENTRANT if
3866 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3867 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3869 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3870 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3871 version from Classpath.
3873 Fix for PR libgcj/213:
3874 * Makefile.in: Rebuilt.
3875 * Makefile.am (gij_SOURCES): Added gij.cc.
3876 (EXTRA_gij_SOURCES): Removed.
3877 (gij_LDADD): Removed gij.lo.
3878 (gij_DEPENDENCIES): Likewise.
3879 ($(gij_OBJECTS)): Depend on nat_headers.
3881 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3882 `setURL', not `url.set'.
3884 2000-04-20 Tom Tromey <tromey@cygnus.com>
3886 Fix for PR java.io/204:
3887 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3888 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3891 Fix for PR libgcj/212:
3892 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3893 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3894 * java/lang/Class.h (_Jv_word): Declare.
3896 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3898 2000-04-19 Tom Tromey <tromey@cygnus.com>
3900 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3901 doesn't have a loader.
3903 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3905 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3906 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3908 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3910 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3912 (available): Initialize `where' to prevent bogus compiler warning.
3914 2000-04-12 Tom Tromey <tromey@cygnus.com>
3916 * java/lang/natString.cc (intern): Temporarily disable finalizer
3919 * java/lang/natString.cc (unintern): Added `obj' argument.
3920 (intern): Register finalizer for string.
3921 * java/lang/String.java (unintern): Now static; added obj
3924 2000-04-11 Tom Tromey <tromey@cygnus.com>
3926 * java/util/Vector.java (VectorEnumeration): Now `final'.
3927 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3928 (HashtableEnumeration): Likewise.
3929 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3930 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3932 2000-04-10 Warren Levy <warrenl@cygnus.com>
3934 * java/io/ObjectStreamException.java: New file.
3935 * java/io/OptionalDataException.java: New file.
3936 * java/io/StreamCorruptedException.java: New file.
3937 * java/math/BigDecimal.java: New file.
3938 * java/sql/CallableStatement.java: New file.
3939 * java/sql/Connection.java: New file.
3940 * java/sql/DataTruncation.java: New file.
3941 * java/sql/DatabaseMetaData.java: New file.
3942 * java/sql/Date.java: New file.
3943 * java/sql/Driver.java: New file.
3944 * java/sql/DriverManager.java: New file.
3945 * java/sql/DriverPropertyInfo.java: New file.
3946 * java/sql/PreparedStatement.java: New file.
3947 * java/sql/ResultSet.java: New file.
3948 * java/sql/ResultSetMetaData.java: New file.
3949 * java/sql/SQLException.java: New file.
3950 * java/sql/SQLWarning.java: New file.
3951 * java/sql/Statement.java: New file.
3952 * java/sql/Time.java: New file.
3953 * java/sql/Timestamp.java: New file.
3954 * java/sql/Types.java: New file.
3955 * Makefile.am: Added above new files.
3956 * Makefile.in: Rebuilt.
3958 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3959 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3960 DatagramSocket constructor instead of null.
3962 2000-04-08 Anthony Green <green@cygnus.com>
3964 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3967 2000-04-08 Anthony Green <green@cygnus.com>
3969 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3970 (_Jv_MutexUnlock): Ditto.
3971 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3972 (_Jv_MutexUnlock): Ditto.
3974 2000-04-08 Anthony Green <green@cygnus.com>
3976 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3977 (ensureCapacity_unsynchronized): New private method.
3978 (append): Use ensureCapacity_unsynchronized.
3980 2000-04-08 Tom Tromey <tromey@cygnus.com>
3982 * Makefile.in: Rebuilt.
3983 * Makefile.am (awt_java_source_files): Added new files.
3984 * java/awt/IllegalComponentStateException.java: New file.
3985 * java/awt/ItemSelectable.java: New file.
3986 * java/awt/event/WindowEvent.java: Finished.
3987 * java/awt/event/TextEvent.java: Finished.
3988 * java/awt/event/ContainerEvent.java: New file.
3989 * java/awt/Component.java (getX, getY): New methods.
3990 * java/awt/event/PaintEvent.java: New file.
3991 * java/awt/event/MouseEvent.java: New file.
3992 * java/awt/ActiveEvent.java: New file.
3993 * java/awt/event/KeyEvent.java: Finished.
3994 * java/awt/event/ItemEvent.java: New file.
3995 * java/awt/Adjustable.java: New file.
3996 * java/awt/event/InputMethodEvent.java: New file.
3997 * java/awt/event/InputEvent.java: Finished.
3998 * java/awt/event/FocusEvent.java: New file.
3999 * java/awt/event/MouseMotionAdapter.java: New file.
4000 * java/awt/event/MouseAdapter.java: New file.
4001 * java/awt/event/KeyAdapter.java: New file.
4002 * java/awt/event/FocusAdapter.java: New file.
4003 * java/awt/event/ContainerAdapter.java: New file.
4004 * java/awt/event/ComponentEvent.java: Finished.
4005 * java/awt/event/AdjustmentEvent.java: New file.
4006 * java/awt/event/ComponentAdapter.java: New file.
4007 * java/awt/event/ActionEvent.java: Finished.
4008 * java/awt/event/MouseMotionListener.java: New file.
4009 * java/awt/event/MouseListener.java: New file.
4010 * java/awt/event/ItemListener.java: New file.
4011 * java/awt/event/InputMethodListener.java: New file.
4012 * java/awt/event/ContainerListener.java: New file.
4013 * java/awt/event/FocusListener.java: New file.
4014 * java/awt/event/ComponentListener.java: New file.
4015 * java/awt/event/AWTEventListener.java: New file.
4016 * java/awt/event/AdjustmentListener.java: New file.
4018 2000-04-08 Anthony Green <green@cygnus.com>
4020 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4021 check when we have to.
4023 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4026 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4029 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4030 inline hasMoreElements.
4032 2000-04-05 Tom Tromey <tromey@cygnus.com>
4034 * configure: Rebuilt.
4035 * configure.in: Recognize --enable-java-awt.
4036 (AWT): New conditional.
4037 * Makefile.in: Rebuilt.
4038 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4040 (libgcjawt_la_SOURCES): New macro.
4041 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4042 (libgcjawt_la_DEPENDENCIES): Likewise.
4043 (libgcjawt_la_LIBADD): Likewise.
4044 (libgcjawt_la_LDFLAGS): Likewise.
4045 (libgcj.zip): Depend on cond_java_awt_source_files
4046 (cond_awt_java_source_files): New macro.
4047 (MOSTLYCLEANFILES): Added awto_files.
4048 (awto_files): New macro. Use where javao_files used.
4049 (nat_headers): Use cond_awt_java_source_files.
4051 2000-04-04 Tom Tromey <tromey@cygnus.com>
4053 * Makefile.in: Rebuilt.
4054 * Makefile.am (awt_java_source_files): Added AWTException.java.
4055 * java/awt/AWTException.java: New file.
4057 2000-04-03 Tom Tromey <tromey@cygnus.com>
4059 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4060 commentary from Alex.
4062 * Makefile.in: Rebuilt.
4063 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4066 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4068 * configure: Rebuilt.
4069 * configure.in: Add --disable-jvmpi.
4070 * include/config.h.in: Rebuilt.
4071 * acconfig.h: Add ENABLE_JVMPI.
4073 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4074 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4075 (_Jv_JVMPI_Notify_THREAD_END): New define.
4076 (_Jv_JVMPI_Notify_THREAD_END): New define.
4077 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4078 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4079 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4081 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4084 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4085 (finish_): Generate JVMPI thread end events.
4086 (run_): Generate JVMPI thread start events.
4087 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4088 preloaded JNI library.
4089 Include JVMPI headers if necessary.
4090 (run): Generate JVMPI thread start events.
4092 * boehm.cc: Define GC_disable and GC_enable.
4093 (_Jv_DisableGC): New function.
4094 (_Jv_EnableGC): New function.
4095 (disable_gc_mutex): Declare.
4096 * nogc.cc (_Jv_DisableGC): New function.
4097 (_Jv_EnableGC): New function.
4099 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4100 (_Jv_JVMPI_Interface): Define.
4101 (jvmpiEnableEvent): New function.
4102 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4104 * include/jvmpi.h: New file.
4106 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4108 * Makefile.in: New #defines and friends for Thread.h.
4109 * Makefile.am: Ditto.
4110 * posix-threads.cc: (struct starter): Remove `object'.
4111 (_Jv_CondWait): Use interruptable condition variables and new
4112 recursive mutexes. New return codes on interrupt or non-ownership
4114 (_Jv_CondNotify): Ditto.
4115 (_Jv_CondNotifyAll): Ditto.
4116 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4117 the target thread by signaling its wait condition.
4118 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4119 not the starter struct. Initialize wait_mutex and wait_cond.
4120 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4122 (_Jv_MutexUnlock): Ditto.
4123 (really_start): Set info->data->thread from pthread_self() to work
4124 around a race condition. Destroy wait_mutex and wait_cond when run()
4126 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4127 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4129 startable_flag: New private field.
4130 (Thread): Initialize `startable_flag'.
4131 (toString): Check for null thread group.
4132 * java/lang/natThread.cc: (struct natThread): New fields
4133 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4134 (class locker): Removed.
4135 (initialize_native): Initialize `join_cond' and `join_mutex'.
4136 (interrupt): Now just calls _Jv_ThreadInterrupt().
4137 (join): Simplified. Just wait on the target thread's join condition.
4138 (finish_): Remove join list code. Unset thread group. Signal
4139 potential joiners by notifying the dying threads join_cond.
4140 (start): Check for illegal restarts.
4141 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4143 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4144 #defines and #ifdefs.
4145 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4146 `wait_mutex', `next'.
4147 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4148 directly mapping to pthread_cond_t.
4149 (struct _Jv_Mutex_t): New recursive implementation.
4150 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4151 _Jv_HaveCondDestroy: Never define this for posix-threads.
4152 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4153 (_Jv_CondNotifyAll): Ditto.
4154 (_Jv_MutexLock): Ditto.
4155 (_Jv_MutexUnlock): Ditto.
4156 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4157 (_Jv_MutexDestroy): Ditto.
4158 (_Jv_CondDestroy): Removed.
4159 (_Jv_PthreadGetMutex): Removed.
4160 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4161 error. Add a FIXME about this.
4162 (_Jv_CondNotifyAll): Ditto.
4163 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4164 _JV_NOT_OWNER on other errors. Add FIXME.
4166 2000-03-26 Tom Tromey <tromey@cygnus.com>
4168 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4170 (call): Don't throw exception here.
4172 2000-03-26 Tom Tromey <tromey@cygnus.com>
4174 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4175 * interpret.cc: Use SIZEOF_VOID_P.
4176 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4177 (_Jv_loadLong): Likewise.
4178 (_Jv_storeDouble): Likewise.
4179 * configure: Rebuilt.
4180 * configure.in: Check size of void*.
4182 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4184 2000-03-26 Hans Boehm <boehm@acm.org>
4186 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4187 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4189 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4190 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4191 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4192 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4194 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4195 (FFI_RAW_SIZE): Likewise.
4196 (_Jv_InterpMethod::ncode): Use them.
4197 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4198 STORED): Define differently on a 64 bit machine.
4199 (continue1): Use ffi_java_raw_call when appropriate.
4201 2000-03-24 Warren Levy <warrenl@cygnus.com>
4203 * java/math/BigInteger.java(divide): Handle the special case when
4204 dividing by 1 and the high bit of the dividend is set.
4205 (setShiftRight): Handle case when count == 0.
4207 2000-03-24 Warren Levy <warrenl@cygnus.com>
4209 * java/awt/Font.java(isBold): Fix syntax error.
4211 * java/awt/Frame.java(postEvent): ditto.
4212 * java/awt/Menu.java(postEvent): ditto.
4213 * java/awt/MenuBar.java(postEvent): ditto.
4214 * java/awt/Toolkit.java(init): Included a stub.
4216 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4218 * java/awt/Event.java: Add all the event type constants.
4219 (Event): Implemented constructors.
4220 (controlDown): Implemented.
4221 (metaDown): Implemented.
4222 (paramString): Stubbed.
4223 (shiftDown): Implemented.
4224 (toString): Implemented.
4225 (translate): Implemented.
4227 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4229 * java/lang/natClass.cc (isInstance): Initialize `this'.
4230 (isAssignableFrom): Initialize `this' and `klass'.
4231 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4232 implemented by any loaded class, so return false.
4233 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4234 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4236 2000-03-19 Warren Levy <warrenl@cygnus.com>
4238 * java/awt/Color.java: Specified java.io for Serializable.
4239 * java/awt/Toolkit.java: Imported java.net.URL.
4241 2000-03-19 Warren Levy <warrenl@cygnus.com>
4243 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4245 2000-03-16 Warren Levy <warrenl@cygnus.com>
4247 * java/awt/Color.java: New file.
4248 * java/awt/Graphics.java: New file.
4249 * java/awt/Image.java: New file.
4250 * java/awt/Paint.java: New file.
4251 * java/awt/PaintContext.java: New file.
4252 * java/awt/Transparency.java: New file.
4253 * java/util/Collection.java: New file.
4254 * java/util/Comparator.java: New file.
4255 * java/util/Iterator.java: New file.
4256 * java/util/List.java: New file.
4257 * java/util/ListIterator.java: New file.
4258 * Makefile.am: Added above new files.
4259 * Makefile.in: Rebuilt.
4261 * java/awt/Font.java (PLAIN): New field.
4263 (ITALIC): New field.
4264 (ROMAN_BASELINE): New field.
4265 (CENTER_BASELINE): New field.
4266 (HANGING_BASELINE): New field.
4270 (pointSize): New field.
4271 (Font): Implemented constructor.
4272 (isPlain): Implemented method.
4273 (isBold): Implemented method.
4274 (isItalic): Implemented method.
4275 (getName): Implemented method.
4276 (getStyle): Implemented method.
4277 (getSize): Implemented method.
4278 (getSize2D): Implemented method.
4280 * java/awt/Frame.java (getFont): Stubbed.
4281 (postEvent): Stubbed.
4283 * java/awt/Menu.java (postEvent): Stubbed.
4284 * java/awt/MenuBar.java (getFont): Stubbed.
4285 (postEvent): Stubbed.
4286 * java/awt/Toolkit.java (getImage): Added abstract method.
4288 2000-03-15 Tom Tromey <tromey@cygnus.com>
4290 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4292 * prims.cc (win32_exception_handler): Reformatted.
4294 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4295 (_Jv_HaveMutexDestroy): Likewise.
4297 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4299 * java/io/natFileDescriptorWin32.cc: New file.
4300 * java/io/natFileWin32.cc: New file.
4301 * java/net/natInetAddress.cc: Added conditional inclusion of
4302 Windows / Winsock headers.
4303 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4304 inclusion of Windows / Winsock headers.
4305 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4306 Windows / Winsock headers.
4307 * include/win32-signal.h: New file.
4308 * include/win32-threads.h: New file.
4309 * win32-threads.cc: New file.
4310 * exception.cc (win32_get_restart_frame): New function.
4311 * prims.cc (win32_exception_handler): New function.
4312 (main_init) Performs Winsock initialisation.
4313 (main_init) Installs exeception handler.
4315 2000-03-14 Tom Tromey <tromey@cygnus.com>
4317 * jni.cc (mangled_name): Fixed assertion.
4318 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4319 turned assert into actual failure.
4321 2000-03-09 Warren Levy <warrenl@cygnus.com>
4323 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4324 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4325 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4327 2000-03-09 Warren Levy <warrenl@cygnus.com>
4329 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4330 * java/security/DigestException.java: New file.
4331 * java/security/GeneralSecurityException.java: New file.
4332 * java/security/InvalidAlgorithmParameterException.java: New file.
4333 * java/security/InvalidKeyException.java: New file.
4334 * java/security/InvalidParameterException.java: New file.
4335 * java/security/Key.java: New file.
4336 * java/security/KeyException.java: New file.
4337 * java/security/KeyPair.java: New file.
4338 * java/security/KeyPairGenerator.java: New file.
4339 * java/security/KeyPairGeneratorSpi.java: New file.
4340 * java/security/NoSuchProviderException.java: New file.
4341 * java/security/PrivateKey.java: New file.
4342 * java/security/Provider.java: New file.
4343 * java/security/PublicKey.java: New file.
4344 * java/security/SecureRandom.java: New file.
4345 * java/security/Security.java: New file.
4346 * java/security/Signature.java: New file.
4347 * java/security/SignatureException.java: New file.
4348 * java/security/interfaces/DSAKey.java: New file.
4349 * java/security/interfaces/DSAParams.java: New file.
4350 * java/security/interfaces/DSAPrivateKey.java: New file.
4351 * java/security/interfaces/DSAPublicKey.java: New file.
4352 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4353 * java/security/interfaces/RSAPrivateKey.java: New file.
4354 * java/security/interfaces/RSAPublicKey.java: New file.
4355 * java/security/spec/AlgorithmParameterSpec.java: New file.
4356 * java/security/spec/InvalidKeySpecException.java: New file.
4357 * java/security/spec/InvalidParameterSpecException.java: New file.
4358 * java/security/spec/KeySpec.java: New file.
4359 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4360 * java/security/spec/RSAPrivateKeySpec.java: New file.
4361 * java/security/spec/RSAPublicKeySpec.java: New file.
4362 * Makefile.am: Added above java.security files.
4363 * Makefile.in: Rebuilt.
4365 * java/security/MessageDigest.java: Rewritten.
4366 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4368 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4372 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4374 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4375 _Jv_PrepareConstantTimeTables.
4376 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4377 classes should have an IDT, so don't return if klass is an array
4380 2000-03-08 Tom Tromey <tromey@cygnus.com>
4382 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4383 of `void' to be created.
4385 2000-03-08 Warren Levy <warrenl@cygnus.com>
4387 * java/math/BigInteger.java(signum): Handle zero properly.
4389 2000-03-07 Tom Tromey <tromey@cygnus.com>
4391 * All files: Updated copyright information.
4392 * COPYING: New file.
4393 * COPYING.LIB: Removed.
4394 * LIBGCJ_LICENSE: We now use GPL + special exception.
4396 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4398 * resolve.cc (_Jv_SearchMethodInClass): New function.
4399 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4400 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4402 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4404 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4405 (struct _Jv_ifaces): New declaration.
4406 JV_CLASS: New macro definition.
4407 (getComponentType): Relocate below isArray() for inlining.
4408 (getModifiers): Declare `inline'.
4409 (getSuperclass): Ditto.
4411 (isPrimitive): Ditto.
4412 (_Jv_IsAssignableFrom): New prototype.
4413 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4415 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4416 Check for JV_STATE_DONE before invoking initializeClass().
4417 (_Jv_PrepareConstantTimeTables): New prototype.
4418 (_Jv_GetInterfaces): Ditto.
4419 (_Jv_GenerateITable): Ditto.
4420 (_Jv_GetMethodString): Ditto.
4421 (_Jv_AppendPartialITable): Ditto.
4422 (_Jv_FindIIndex): Ditto.
4423 depth, ancestors, idt: New class fields.
4425 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4426 inline function `_Jv_IsAssignableFrom'. Use that function.
4427 (isInstance): Declare `inline'.
4428 (initializeClass): Get lock on class before checking `state'. Unlock
4429 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4431 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4432 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4433 class->depth and ancestor table.
4434 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4435 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4436 _Jv_IsAssignableFrom.
4437 (_Jv_CheckArrayStore): Ditto.
4438 (_Jv_LookupInterfaceMethodIdx): New function.
4439 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4440 (_Jv_PrepareConstantTimeTables): New function.
4441 (_Jv_IndexOf): Ditto.
4442 (_Jv_GetInterfaces): Ditto.
4443 (_Jv_GenerateITable): Ditto.
4444 (_Jv_GetMethodString): Ditto.
4445 (_Jv_AppendPartialITable): Ditto.
4446 iindex_mutex, iindex_mutex_initialized: New static fields.
4447 (_Jv_FindIIndex): New function.
4449 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4451 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4452 (_Jv_CheckArrayStore): Ditto.
4453 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4454 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4455 Moved to gcj/array.h.
4456 (_Jv_Realloc): New function.
4458 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4460 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4461 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4462 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4463 JvNewDoubleArray): Implementations moved from prims.cc and
4466 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4468 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4470 2000-03-06 Tom Tromey <tromey@cygnus.com>
4472 * jni.cc (MARK_NONE): New define.
4473 (MARK_USER): Likewise.
4474 (MARK_SYSTEM): Likewise.
4475 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4477 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4478 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4479 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4480 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4482 (call): Use MARK_SYSTEM.
4483 (_Jv_GetJNIEnvNewFrame): New function.
4484 (_Jv_LookupJNIMethod): New function.
4485 (_Jv_JNI_PopSystemFrame): New function.
4486 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4488 2000-03-05 Tom Tromey <tromey@cygnus.com>
4490 Fix for PR libgcj/43:
4491 * include/Makefile.in: Rebuilt.
4492 * include/Makefile.am (include_HEADERS): New define.
4494 2000-03-05 Anthony Green <green@redhat.com>
4496 * gcj/javaprims.h ("Java"): Remove FirstThread.
4498 * configure.host: Fix __NO_MATH_INLNES botch.
4500 * Makefile.in: Rebuilt.
4501 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4502 (gnu/gcj/runtime/FirstThread.h): Moved.
4503 (ordinary_java_source_files): Move FirstThread.java.
4504 * prims.cc: Deal with FirstThread movement.
4506 (_Jv_RunMain): Ditto.
4508 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4509 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4511 2000-03-05 Warren Levy <warrenl@cygnus.com>
4513 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4514 Handle null addresses.
4516 2000-03-04 Anthony Green <green@redhat.com>
4518 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4521 2000-03-04 Anthony Green <green@redhat.com>
4523 * configure: Rebuilt.
4524 * configure.in (ZLIBTESTSPEC): New macro.
4525 (GCTESTSPEC): New macro.
4526 (LIBGCJTESTSPEC): New macro.
4527 * libgcj-test.spec.in: New file.
4529 2000-03-02 Tom Tromey <tromey@cygnus.com>
4531 * include/java-interp.h: Don't include MethodInvocation.h.
4532 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4533 * Makefile.in: Rebuilt.
4534 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4535 (ordinary_java_source_files): Don't mention
4536 MethodInvocation.java.
4537 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4538 * interpret.cc (MethodInvocation::continue1): Removed.
4539 (run): Handle exceptions here.
4540 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4542 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4544 (defineClass2): Removed.
4546 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4548 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4550 (hack_call): Removed.
4552 * java/lang/Class.h (Class): Removed hackRunInitializers,
4554 * java/lang/natClass.cc (hackRunInitializers): Removed.
4555 (initializeClass): Catch exceptions here.
4556 Include ExceptionInInitializerError.h.
4557 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4560 * java/lang/Object.h (Object): Don't mention hack12_6.
4561 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4563 * java/lang/Object.java (hack12_6): Removed.
4565 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4566 (start): Use run_, not run__.
4567 * java/lang/Thread.java (run_): Renamed from run__; old run_
4570 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4571 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4572 (_Jv_JNI_DefineClass): Likewise.
4573 (_Jv_JNI_ThrowNew): Likewise.
4574 (_Jv_JNI_AllocObject): Likewise.
4575 (_Jv_JNI_GetAnyMethodID): Likewise.
4576 (_Jv_JNI_CallAnyMethodV): Likewise.
4577 (_Jv_JNI_CallAnyMethodA): Likewise.
4578 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4579 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4580 (_Jv_JNI_GetAnyFieldID): Likewise.
4581 (_Jv_JNI_NewString): Likewise.
4582 (_Jv_JNI_NewStringUTF): Likewise.
4583 (_Jv_JNI_GetStringUTFChars): Likewise.
4584 (_Jv_JNI_NewObjectArray): Likewise.
4585 (_Jv_JNI_NewPrimitiveArray): Likewise.
4586 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4587 (_Jv_JNI_GetStringRegion): Likewise.
4588 (_Jv_JNI_GetStringUTFRegion): Likewise.
4589 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4590 (_Jv_JNI_MonitorEnter): Likewise.
4591 (_Jv_JNI_MonitorExit): Likewise.
4592 (_Jv_JNI_ToReflectedField): Likewise.
4593 (_Jv_JNI_ToReflectedMethod): Likewise.
4594 (_Jv_JNI_RegisterNatives): Likewise.
4595 (_Jv_JNI_AttachCurrentThread): Likewise.
4596 (_Jv_JNI_DestroyJavaVM): Likewise.
4598 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4600 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4601 error caused by the incorrect casting of a long to an int.
4603 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4605 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4606 SIGSEV caused by use of the wrong instance variable.
4608 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4610 * java/io/File.java (File(String, String)): For dirPath, treat an
4611 empty String the same as `null'.
4613 2000-02-26 Anthony Green <green@cygnus.com>
4615 * gnu/gcj/io/MimeTypes.java: Test for null.
4617 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4618 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4620 * java/net/URLConnection.java: Update copyright notice.
4622 2000-02-25 Tom Tromey <tromey@cygnus.com>
4624 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4627 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4629 * java/net/URLConnection.java (initializeDateFormats): New
4631 (getHeaderFieldDate): Call initializeDateFormats if required.
4632 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4634 Fix for PR libgcj/38.
4636 2000-02-24 Warren Levy <warrenl@cygnus.com>
4638 * java/math/BigInteger.java(ival): Made private.
4642 2000-02-20 Anthony Green <green@cygnus.com>
4644 * Makefile.in: Rebuilt.
4645 * Makefile.am (ordinary_java_source_files): Add
4646 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4648 * scripts/MakeDefaultMimeTypes.java: New file.
4649 * scripts/mime.types: New file.
4650 * scripts/classes.pl: Moved from top level.
4651 * classes.pl: Moved to scripts directory.
4653 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4655 * gnu/gcj/io/MimeTypes.java: New file.
4656 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4658 2000-02-20 Tom Tromey <tromey@cygnus.com>
4660 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4662 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4664 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4667 2000-02-18 Tom Tromey <tromey@cygnus.com>
4669 * include/jvm.h (_Jv_GetJavaVM): Declare.
4670 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4671 (_Jv_MethodBase::get_method): New method.
4672 (_Jv_JNIMethod::set_function): New method.
4673 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4674 (_Jv_JNI_RegisterNatives): New function.
4675 (_Jv_JNIFunctions): Updated for new functions.
4676 (_Jv_GetJavaVM): New function.
4677 (_Jv_JNI_GetJavaVM): Use it. Now static.
4678 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4679 is already a Java thread but does not have a JNIEnv yet.
4681 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4684 2000-02-17 Tom Tromey <tromey@cygnus.com>
4686 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4689 2000-02-16 Tom Tromey <tromey@cygnus.com>
4691 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4693 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4694 (_Jv_JNI_NewObject): Likewise.
4695 (_Jv_JNI_NewObjectA): Likewise.
4696 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4697 as "return" type to _Jv_CallAnyMethodA.
4698 (_Jv_JNI_CallAnyMethodA): Likewise.
4699 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4701 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4704 2000-02-15 Tom Tromey <tromey@cygnus.com>
4706 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4708 (init_cif): Added `rtype_p' argument.
4709 * include/java-interp.h (class _Jv_MethodBase): Added
4711 (class _Jv_InterpMethod): Removed args_raw_size.
4712 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4713 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4714 class pointer as well as the ordinary arguments.
4716 * jni.cc (mangled_name): Skip leading `(' in signature.
4718 * jni.cc (add_char): Added missing `else'.
4720 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4723 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4727 * java/lang/natRuntime.cc (_load): Include library path with
4730 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4733 * java/lang/natThread.cc (dumpStack): Removed.
4734 * java/lang/Thread.java (dumpStack): Implemented.
4736 2000-02-15 Tom Tromey <tromey@cygnus.com>
4738 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4739 with `lib' for loadLibrary. Fixes PR gcj/150.
4741 2000-02-14 Warren Levy <warrenl@cygnus.com>
4743 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4745 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4749 (modPow): Rewritten to not use the naive, slow, brute force approach.
4750 (isProbablePrime): Implemented.
4751 (testBit): Implemented.
4752 (flipBit): Implemented.
4753 (getLowestSetBit): Implemented.
4755 2000-02-16 Anthony Green <green@redhat.com>
4757 * configure.host: Use the same options for i386 and i486 as we do
4760 2000-02-12 Tom Tromey <tromey@cygnus.com>
4762 * java/io/File.java (createTempFile): Use low bits from counter,
4765 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4767 * THANKS: More thanks.
4769 2000-02-11 Tom Tromey <tromey@cygnus.com>
4771 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4772 astore instruction. From Hans Boehm.
4774 2000-02-11 Warren Levy <warrenl@cygnus.com>
4776 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4777 (BigInteger(String)): New constructor.
4778 (not): Rewritten using version from Kawa's BitOps class.
4779 (valueOf): New private methods from Kawa's BitOps class.
4786 (andNot): Implemented.
4787 (clearBit): Implemented.
4788 (setBit): Implemented.
4789 (bitCount): Implemented.
4790 (toByteArray): Implemented.
4792 2000-02-11 Tom Tromey <tromey@cygnus.com>
4794 * java/io/File.java (nextValue): Now synchronized.
4796 2000-02-10 Tom Tromey <tromey@cygnus.com>
4798 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4799 * java/io/FileDescriptor.java (EXCL): New static field.
4800 * java/io/File.java (tmpdir): New static field.
4801 (createTempFile): New method.
4802 (nextValue): New method.
4803 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4806 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4807 (jboolean): Declare as an attributed int, not a bool.
4808 (_Jv_func): Declare differently for C.
4810 * gnu/gcj/jni/natNativeThread.cc: New file.
4811 * gnu/gcj/jni/NativeThread.java: New file.
4812 * java/lang/Thread.java (data): Now a RawData.
4813 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4815 * Makefile.in: Rebuilt.
4816 * Makefile.am (java/lang/Thread.h): New target.
4817 (ordinary_java_source_files): Added NativeThread.java.
4818 (nat_source_files): Added natNativeThread.cc.
4819 * java/lang/natThread.cc: Include <jni.h>
4820 (struct natThread): Added `jni_env' field.
4821 (_Jv_GetCurrentJNIEnv): New function.
4822 (_Jv_SetCurrentJNIEnv): Likewise.
4823 (initialize_native): Initialize jni_env.
4825 * jni.cc (ThreadGroupClass): New define.
4826 (_Jv_JNI_InvokeFunctions): New structure.
4827 (JNI_GetCreatedJavaVMs): New function.
4828 (the_vm): New global.
4829 (JNI_GetDefaultJavaVMInitArgs): New function.
4830 Include NativeThread.h.
4831 (NativeThreadClass): New define.
4832 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4833 (_Jv_JNI_DestroyJavaVM): New function.
4834 (_Jv_JNI_AttachCurrentThread): New function.
4835 (_Jv_JNI_DetachCurrentThread): New function.
4836 (_Jv_JNI_GetEnv): New function.
4837 (JNI_CreateJavaVM): New function.
4838 (_Jv_JNI_GetJavaVM): New function.
4839 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4840 * include/jni.h (JavaVMAttachArgs): New structure.
4841 (JNI_EDETACHED): New define.
4842 (JNI_EVERSION): Likewise.
4843 (JavaVM): Define properly.
4844 (struct JNIInvokeInterface): New structure.
4845 (class _Jv_JavaVM): New class.
4846 (JNI_OnLoad, JNI_OnUnload): Declare.
4847 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4848 JNI_GetCreatedJavaVMs): Declare.
4849 (JavaVMInitArgs): New typedef.
4850 (JavaVMOption): Likewise.
4851 (JNI_ERR): New define.
4854 2000-02-10 Andrew Haley <aph@cygnus.com>
4856 * interpret.cc: Don't include fdlibm.h.
4857 Replace #if with #ifdef throughout.
4858 Declare extern __ieee754_fmod.
4859 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4861 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4862 Search class hierarchy for superclass vtable.
4864 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4865 off the end of a pointer list.
4867 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4871 2000-02-09 Tom Tromey <tromey@cygnus.com>
4873 * java/lang/natRuntime.cc (_load): Call add_library.
4874 (loadLibraryInternal): Likewise.
4876 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4877 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4878 (Output_iconv::finalize): Likewise.
4880 2000-02-08 Tom Tromey <tromey@cygnus.com>
4882 * java/util/Properties.java (setProperty): New method.
4883 (store): New method.
4885 2000-02-07 Tom Tromey <tromey@cygnus.com>
4887 * java/lang/Runtime.java (_load): Declare.
4888 (load, loadLibrary): Wrote in terms of _load.
4889 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4891 (loadLibrary): Likewise.
4893 (_load): New method.
4894 (loadLibrary, load): Removed.
4896 * jni.cc (ThrowableClass): New define.
4897 (_Jv_JNI_Throw): Check argument.
4898 (_Jv_JNI_ThrowNew): Likewise.
4899 (wrap_value): Don't wrap object if it is NULL.
4900 (_Jv_JNI_DefineClass): Use wrap_value.
4901 (_Jv_JNI_FindClass): Likewise.
4902 (_Jv_JNI_GetSuperclass): Likewise.
4903 (_Jv_JNI_ExceptionOccurred): Likewise.
4904 (_Jv_JNI_AllocObject): Likewise.
4905 (_Jv_JNI_GetObjectClass): Likewise.
4906 (_Jv_JNI_NewString): Likewise.
4907 (_Jv_JNI_NewStringUTF): Likewise.
4908 (_Jv_JNI_NewObjectArray): Likewise.
4909 (_Jv_JNI_GetObjectArrayElement): Likewise.
4910 (_Jv_JNI_NewPrimitiveArray): Likewise.
4911 (_Jv_JNI_ToReflectedField): Likewise.
4912 (_Jv_JNI_ToReflectedMethod): Likewise.
4913 (_Jv_JNI_AllocObject): Check argument.
4914 (_Jv_JNI_NewObjectV): Likewise.
4915 (_Jv_JNI_NewObject): Likewise.
4916 (_Jv_JNI_NewObjectA): Likewise.
4917 (_Jv_JNI_GetObjectClass): Likewise.
4918 (_Jv_JNI_GetField): Likewise.
4919 (_Jv_JNI_SetField): Likewise.
4921 * interpret.cc (PUSHL): Don't use expression statement.
4926 * jni.cc (add_char): Conditional on INTERPRETER.
4927 (mangled_name): Likewise.
4929 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4931 (class _Jv_JNIMethod): Likewise.
4933 2000-02-04 Warren Levy <warrenl@cygnus.com>
4935 * Makefile.am: Added MPN.java and BigInteger.java.
4936 * Makefile.in: Rebuilt.
4937 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4939 * java/math/BigInteger.java: New file. Based primarily on
4940 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4942 2000-02-04 Tom Tromey <tromey@cygnus.com>
4944 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4946 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4947 if the method is native.
4948 * resolve.cc (ncode): Don't handle native methods.
4949 (_Jv_JNIMethod::ncode): New method.
4950 (_Jv_PrepareClass): Handle native methods.
4951 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4952 Include AbstractMethodError.h.
4953 (add_char): New function.
4954 (mangled_name): Likewise.
4955 * include/java-interp.h (class _Jv_JNIMethod): New class.
4956 (class _Jv_MethodBase): New class.
4957 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4958 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4961 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4962 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4963 libraries): New globals.
4964 (add_library): New function.
4965 (_Jv_FindSymbolInExecutable): New function.
4967 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4970 2000-02-04 Andrew Haley <aph@cygnus.com>
4972 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4973 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4974 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4975 printStackTrace to printRawStackTrace.
4977 2000-02-03 Tom Tromey <tromey@cygnus.com>
4979 * java/util/Calendar.java (toString): New method.
4980 * java/util/SimpleTimeZone.java (clone): New method.
4981 (toString): New method.
4982 * java/util/TimeZone.java (clone): New method.
4983 * java/text/SimpleDateFormat.java (clone): New method.
4984 * java/text/NumberFormat.java (clone): New method.
4985 (equals): New method.
4986 * java/text/Format.java (clone): New method.
4987 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4989 (clone): New method.
4990 * java/text/DateFormat.java (clone): New method.
4991 * java/text/Collator.java (clone): New method.
4993 2000-02-03 Tom Tromey <tromey@cygnus.com>
4995 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4998 2000-02-01 Tom Tromey <tromey@cygnus.com>
5000 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5001 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5002 constructing the closure if the function is native.
5003 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5004 a template function, #if'd out, or static.
5005 Include <java-interp.h>.
5007 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5009 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5011 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5012 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5014 (wrap_value): New function.
5015 (_Jv_JNI_CallAnyMethodV): Use it.
5016 (_Jv_JNI_CallAnyMethodA): Likewise.
5017 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5018 (_Jv_JNI_GetStaticField): Likewise.
5020 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5021 (_Jv_JNI_GetStaticField): Likewise.
5023 2000-01-31 Tom Tromey <tromey@cygnus.com>
5025 * prims.cc (_Jv_MallocUnchecked): New function.
5026 (main_init): Call _Jv_JNI_Init.
5027 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5028 (_Jv_JNI_Init): Declare.
5029 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5031 (_Jv_JNI_NewGlobalRef): New function.
5032 (_Jv_JNI_DeleteGlobalRef): New function.
5033 (_Jv_JNI_DeleteLocalRef): New function.
5034 (_Jv_JNI_conversion_call): Initialize and clear local reference
5036 (_Jv_JNI_NewLocalRef): New function.
5037 (struct _Jv_JNI_LocalFrame): New structure.
5038 (_Jv_JNI_PushLocalFrame): New function.
5039 (_Jv_JNI_EnsureLocalCapacity): New function.
5040 (FRAME_SIZE): New define.
5041 (_Jv_JNI_GetStringChars): Mark string, not characters.
5042 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5043 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5044 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5046 (_Jv_JNI_DefineClass): Make return value a local ref.
5047 (_Jv_JNI_FindClass): Likewise.
5048 (_Jv_JNI_GetSuperclass): Likewise.
5049 (_Jv_JNI_ExceptionOccurred): Likewise.
5050 (_Jv_JNI_AllocObject): Likewise.
5051 (_Jv_JNI_GetObjectClass): Likewise.
5052 (_Jv_JNI_CallAnyMethodV): Likewise.
5053 (_Jv_JNI_NewString): Likewise.
5054 (_Jv_JNI_NewStringUTF): Likewise.
5055 (_Jv_JNI_NewObjectArray): Likewise.
5056 (_Jv_JNI_GetObjectArrayElement): Likewise.
5057 (_Jv_JNI_ToReflectedField): Likewise.
5058 (_Jv_JNI_ToReflectedMethod): Likewise.
5059 (_Jv_JNIFunctions): Updated table for new functions.
5060 (_Jv_JNI_Init): New function.
5061 (mark_for_gc): Wrote.
5062 (unmark_for_gc): Wrote.
5063 * include/jni.h (struct JNINativeInterface): Removed name from
5064 PopLocalFrame parameter.
5065 (class _Jv_JNIEnv): Added `locals' field.
5067 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5069 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5072 2000-01-30 Tom Tromey <tromey@cygnus.com>
5074 * include/config.h.in: Rebuilt.
5075 * acconfig.h (HAVE_ICONV): Define.
5076 * configure: Rebuilt.
5077 * configure.in: Check for `iconv' function.
5078 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5079 no specific encoder exists.
5080 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5081 no specific encoder exists.
5082 * Makefile.in: Rebuilt.
5083 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5085 (nat_source_files): Added natIconv.cc.
5086 * gnu/gcj/convert/natIconv.cc: New file.
5087 * gnu/gcj/convert/Input_iconv.java: New file.
5088 * gnu/gcj/convert/Output_iconv.java: New file.
5090 2000-01-28 Tom Tromey <tromey@cygnus.com>
5092 * Makefile.in: Rebuilt.
5093 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5095 2000-01-26 Tom Tromey <tromey@cygnus.com>
5097 * gcj/method.h (JvNumMethods): Moved from Class.h.
5098 (JvGetFirstMethod): Likewise.
5099 * java/lang/Class.h (Object): Updated decl of
5100 _Jv_JNI_ToReflectedField.
5101 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5102 * Makefile.in: Rebuilt.
5103 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5104 argument of _Jv_JNI_ToReflectedField.
5105 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5107 (java/lang/reflect/Method.h): Likewise.
5108 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5110 (jweak): New typedef.
5111 (struct JNINativeInterface): Correctly declare remaining entries.
5112 * jni.cc: Include Class.h, ClassLoader.h.
5113 (_Jv_JNI_FindClass): New function.
5114 (_Jv_JNI_DefineClass): New function.
5115 (_Jv_JNI_conversion_call): New function.
5116 (_Jv_JNI_FindClass): Use current class loader to find class.
5117 (_Jv_JNI_ExceptionCheck): New function.
5118 (_Jv_JNI_FromReflectedField): Now static.
5119 (MethodClass): New define.
5120 (_Jv_JNI_FromReflectedMethod): New function.
5121 (_Jv_JNI_ToReflectedMethod): Likewise.
5123 (_Jv_JNI_IsAssignableFrom): Renamed.
5124 (_Jv_JNI_GetStringRegion): New function.
5125 Include StringIndexOutOfBoundsException.h.
5126 (_Jv_JNI_GetStringUTFRegion): New function.
5127 (_Jv_JNIFunctions): Updated for new functions.
5128 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5129 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5130 (_Jv_JNI_GetStringCritical): New function.
5131 (_Jv_JNI_ReleaseStringCritical): Likewise.
5132 (get_throwable): Removed.
5133 (GCJ_JV_JNIENV_FRIEND): Removed.
5134 (__GCJ_JNI_IMPL__): Define.
5137 * resolve.cc (get_ffi_type_from_signature): Handle case where
5140 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5142 * interpret.cc (run): Don't call println.
5143 Don't include PrintStream.h.
5145 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5146 nameIndex. Use "jint" as type for boffset.
5147 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5149 (Class): Likewise. Also changed type of method_count,
5150 vtable_method_count, size_in_bytes, field_count,
5151 static_field_count, interface_count.
5152 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5155 2000-01-21 Tom Tromey <tromey@cygnus.com>
5157 * java/lang/reflect/natConstructor.cc (newInstance): Use
5159 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5160 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5161 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5164 (invoke): Use _Jv_CallAnyMethodA.
5166 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5167 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5169 (struct _Jv_Method): Added getNextMethod method.
5170 (JvNumMethods): New function.
5171 (JvGetFirstMethod): Likewise.
5172 * gcj/field.h (JvGetFirstStaticField): New function.
5173 (JvNumStaticFields): Likewise.
5174 (getNextField): Renamed from getNextInstanceField.
5175 (struct _Jv_Field): New method getClass.
5176 * jni.cc: Wrote many new functions.
5177 * include/jni.h (JNI_TRUE): Define.
5178 (JNI_FALSE): Likewise.
5179 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5180 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5181 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5182 (jfieldID, jmethodID): Likewise.
5183 (JNI_COMMIT, JNI_ABORT): New defines.
5184 (JNINativeMethod): New struct.
5185 (struct JNINativeInterface): Correctly declared more entries.
5186 (class _Jv_JNIEnv): Added `ex' member.
5187 (JNI_VERSION_1_1): New define.
5188 (JNI_VERSION_1_2): Likewise.
5190 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5191 getNextInstanceField.
5193 2000-01-20 Tom Tromey <tromey@cygnus.com>
5195 * resolve.cc (StringClass): Removed.
5196 * defineclass.cc (StringClass): Removed.
5198 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5202 2000-01-19 Tom Tromey <tromey@cygnus.com>
5204 * interpret.cc (PC_REGISTER_ASM): Removed.
5206 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5207 From Bryce McKinlay.
5209 * All files: Updated copyright to reflect Cygnus purchase.
5211 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5213 * configure: Rebuilt.
5214 * configure.in: Recognize --disable-interpreter.
5216 2000-01-18 Andrew Haley <aph@cygnus.com>
5218 * name-finder.cc (lookup): Check for dladdr function.
5219 acconfig.h (HAVE_DLADDR): Add.
5220 configure.in: Check for HAVE_DLADDR
5222 include/config.h.in: Rebuilt.
5224 2000-01-17 Andrew Haley <aph@cygnus.com>
5226 * prims.cc (_Jv_RunMain): Set the name of this executable.
5228 2000-01-17 Tom Tromey <tromey@cygnus.com>
5230 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5231 when backtrace can't be computed.
5233 * configure: Rebuilt.
5234 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5236 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5237 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5238 (_Jv_FindClassInCache): Likewise.
5239 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5240 (findSystemClass): Try to load class from compiled module.
5242 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5243 (loadLibrary): Likewise.
5244 (lt_preloaded_symbols): Define.
5245 (loadLibraryInternal): New method.
5246 * include/config.h.in: Rebuilt.
5247 * acconfig.h (USE_LTDL): Added.
5248 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5249 (INCLUDES): Added $(INCLTDL).
5250 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5251 (libgcj_la_LIBADD): Likewise.
5252 * aclocal.m4, configure: Rebuilt.
5253 * configure.in: Added libltdl support.
5255 2000-01-15 Tom Tromey <tromey@cygnus.com>
5257 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5259 2000-01-14 Andrew Haley <aph@cygnus.com>
5261 * java/lang/natThrowable.cc: New file.
5263 * java/lang/Throwable.java (fillInStackTrace): Make native.
5264 (printStackTrace): Call native method to do this.
5265 (Throwable): Call fillInStackTrace.
5266 (stackTrace): New variable.
5268 * include/jvm.h: Add _Jv_ThisExecutable functions.
5270 * prims.cc: (_Jv_execName): New variable.
5271 (catch_segv): Call fillInStackTrace.
5273 (_Jv_ThisExecutable): New functions.
5274 (JvRunMain): Set the name of this executable.
5276 * Makefile.am: Add java/lang/natThrowable.cc.
5278 * Makefile.in: Rebuilt.
5280 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5282 * configure.in: Force link with __frame_state_for in
5283 FORCELIBGCCSPEC. Add new checks for backtrace.
5284 * include/config.h.in: Rebuilt.
5286 * name-finder.cc: New file.
5287 * include/name-finder.h: New file.
5289 2000-01-16 Anthony Green <green@cygnus.com>
5291 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5294 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5296 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5298 2000-01-13 Tom Tromey <tromey@cygnus.com>
5300 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5301 not system loader, as initiating loader.
5303 2000-01-11 Tom Tromey <tromey@cygnus.com>
5305 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5306 HP/UX. From David Scott Urban.
5308 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5310 * java/lang/natMath.cc (pow): Cast args to `double', not
5313 (IEEEremainder): Likewise.
5314 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5315 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5317 2000-01-09 Anthony Green <green@cygnus.com>
5319 * java/lang/natString.cc (init): Test for overflow condition
5320 during out of bounds check.
5321 (getChars): Throw StringIndexOutOfBoundsException, not
5322 ArrayIndexOutOfBoundsException.
5324 (regionMatches): Obey case option during string comparison.
5326 * configure.host (ligcj_interpreter): New variable. Enable
5327 interpreter by default on IA-32.
5328 * configure.in: Examine libgcj_interpreter.
5329 * configure: Rebuilt.
5331 2000-01-07 Tom Tromey <tromey@cygnus.com>
5333 * mauve-libgcj: Don't disable ClassTest.
5335 * java/lang/natClass.cc (getClasses): Wrote.
5337 2000-01-06 Tom Tromey <tromey@cygnus.com>
5339 * java/lang/natClass.cc (_getConstructors): Correctly check
5340 whether method name is the init name.
5341 (getMethod): Look at accflags on method in `klass', not `this'.
5343 2000-01-05 Tom Tromey <tromey@cygnus.com>
5345 * java/lang/natClass.cc (getMethod): Compute offset relative to
5346 `klass's methods table, not `this's table.
5348 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5349 In unwrapping/widening case, check whether `k' is null, not
5350 whether it is primitive. Initialize `num' from `argelts', not
5351 `paramelts'. Correct create and pass arguments to ffi_call.
5352 Don't let presence of `this' argument affect index used to look in
5354 (COPY): Set appropriate element in `values' vector.
5356 * java/lang/natClass.cc: Include <gcj/method.h>.
5358 * java/lang/Class.h (_getMethods): Correctly declare as private,
5361 * java/lang/Class.h (_getMethods): Declare.
5362 * java/lang/Class.java (_getMethods): Declare.
5363 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5364 (getDeclaredClasses): Always return empty array.
5365 (_getMethods): New method.
5366 (getMethods): Wrote.
5367 (getDeclaredMethod): Return `rmethod'.
5368 (finit_name): New global.
5369 (getDeclaredMethods): Check for finit_name.
5370 (_getMethods): Likewise.
5371 (getMethod): Only return public methods.
5373 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5374 jboolean and select correct ffi type on that basis.
5375 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5376 Constructor call always has `void' return type.
5378 2000-01-04 Tom Tromey <tromey@cygnus.com>
5380 * java/lang/Class.h (getSignature): Updated.
5381 * java/lang/Class.java (getSignature): Updated.
5382 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5384 (getConstructor): Ensure constructor is public.
5385 (_getConstructors): Check for public-ness of constructor when
5386 `declared' is false, not when it is true.
5388 2000-01-04 Warren Levy <warrenl@cygnus.com>
5390 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5392 (receive): Set the sender's address in the DatagramPacket.
5394 2000-01-04 Tom Tromey <tromey@cygnus.com>
5396 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5397 declaring class as return_type argument to
5398 _Jv_CallNonvirtualMethodA.
5399 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5400 constructor case, create object and use it as `this' argument.
5401 * java/lang/Class.h (_getConstructors): Declare.
5402 (_getFields): Declare.
5403 * java/lang/Class.java (getConstructors): Wrote.
5404 (_getConstructors): New native method.
5405 (getDeclaredConstructors): Wrote.
5406 (_getFields): Declare new native method.
5407 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5409 (getMethod): Work correctly when class is primitive.
5410 (getDeclaredMethods): Likewise. Compute offset using `method',
5412 (getDeclaredMethod): Likewise.
5413 (getConstructor): Wrote.
5414 (ConstructorClass): New define.
5415 (getDeclaredConstructor): Wrote.
5416 (_getConstructors): New method.
5417 (_getFields): New method.
5420 * Makefile.in: Rebuilt.
5421 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5423 * prims.cc: Remove `#pragma implementation'.
5424 * gcj/array.h: Remove `#pragma interface'.
5426 * prims.cc (_Jv_equaln): New function.
5427 * java/lang/Class.java (getSignature): Declare.
5428 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5429 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5431 (getSignature): New method.
5432 (getDeclaredMethod): Wrote.
5434 Include StringBuffer.h.
5435 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5436 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5438 (getSignature): Declare.
5439 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5440 (_Jv_equaln): Declare.
5441 (_Jv_CallNonvirtualMethodA): Declare.
5442 * Makefile.in: Rebuilt.
5443 * Makefile.am (nat_source_files): Added natConstructor.cc.
5444 (java/lang/reflect/Constructor.h): New target.
5445 * java/lang/reflect/natConstructor.cc: New file.
5446 * java/lang/reflect/Constructor.java (newInstance): Now native.
5447 (declaringClass): Renamed from decl_class.
5448 (offset): Renamed from index.
5449 (getType): New native method.
5450 (getModifiers): Now native.
5451 (getParameterTypes): Call getType if required.
5452 (hashCode): Include hash code from declaring class.
5453 (modifiers): Removed.
5454 (toString): Call getType if required.
5455 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5456 * java/lang/reflect/natMethod.cc (hack_call): New method.
5457 Removed `#if 0' around FFI code.
5458 Include <gnu/gcj/RawData.h>.
5459 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5460 IllegalArgumentException when argument object and class disagree.
5461 (_Jv_GetTypesFromSignature): New function.
5463 (ObjectClass): New define.
5464 (_Jv_CallNonvirtualMethodA): New function.
5465 * java/lang/reflect/Method.java (hack_trampoline): New method.
5466 (hack_call): New native method.