1 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
4 Change sources.redhat.com and sourceware.cygnus.com references to
7 2001-02-07 Tom Tromey <tromey@redhat.com>
9 Fix for PR libgcj/1906:
10 * java/text/MessageFormat.java (setLocale): Use named class
13 (format(Object,StringBuffer,FieldPosition)): Special case if
14 argument is an Object[].
16 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
18 * java/util/Arrays.java: Removed "cmp" methods.
19 (qsort): Don't use "cmp".
22 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
24 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
25 sort. Fix for PR java/1895.
27 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
29 * configure.host: Use sjlj-exceptions for Alpha.
31 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
33 * libgcj.spec.in: Don't force static libgcc into the executable.
34 * configure.in (FORCELIBGCCSPEC): Removed.
37 2001-01-31 Tom Tromey <tromey@redhat.com>
39 * Makefile.in: Rebuilt.
40 * Makefile.am (LTCXXCOMPILE): New macro.
42 2001-01-26 Andrew Haley <aph@redhat.com>
44 (INIT_FPE): Use a direct system call to set the handler.
46 2001-01-27 Richard Henderson <rth@redhat.com>
48 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
50 2001-01-27 Tom Tromey <tromey@redhat.com>
52 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
53 native interface structure.
55 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
57 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
59 (read (byte[], int, int)): Only call readNextBlock() if the block
60 buffer would actually be overrun. Increment blockDataPosition.
61 (callReadMethod): Propagate exceptions from invocation target.
62 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
63 exceptions from invocation target.
65 2001-01-26 Tom Tromey <tromey@redhat.com>
67 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
68 to internal representation.
69 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
70 _Jv_FindClassFromSignature.
72 2001-01-26 Warren Levy <warrenl@redhat.com>
74 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
75 and timezone if they are available on the system.
77 2001-01-24 Tom Tromey <tromey@redhat.com>
79 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
81 2001-01-24 Tom Tromey <tromey@redhat.com>
83 * Makefile.in: Rebuilt.
84 * Makefile.am (c_source_files): Added sf_fabs.c.
85 * java/lang/sf_fabs.c: New file.
87 2001-01-19 Warren Levy <warrenl@redhat.com>
89 * java/text/SimpleDateFormat.java (format): Compute hour for cases
90 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
91 correctly. Adjust properly from 0-23 clock hour.
93 2001-01-17 Mark Wielaard <mark@klomp.org>
95 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
97 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
99 * java/lang/Class.h (isInterface): Move implementation from
100 natClass.cc. Declare inline.
101 (Class): Add default constructor.
102 * java/lang/Object.h: Update comments.
103 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
104 initialize superclass, saving a call if super is already initialized.
106 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
108 * prims.cc (init_prim_class): Deleted.
109 (DECLARE_PRIM_TYPE): Rewritten.
110 * java/lang/Class.h (stdio.h): Include removed.
111 (stddef.h): Included.
112 (java/lang/reflect/Modifier.h): Likewise.
113 (Class): Contructor now takes arguments, initializes fields.
114 (initializePrim): Prototype deleted.
115 * java/lang/natClass.cc (initializePrim): Deleted.
117 2001-01-16 Warren Levy <warrenl@redhat.com>
119 * java/math/BigInteger.java: Update Copyright year.
121 2001-01-16 Hans Boehm <hans_boehm@hp.com>
123 * java/math/BigInteger.java (setShiftRight): Only do negative shift
126 2001-01-14 Mark Wielaard <mark@klomp.org>
127 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
128 (decode): Merge comments with Classpath, don't throw Exception
130 2001-01-12 Tom Tromey <tromey@redhat.com>
132 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
136 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
137 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
138 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
139 * gnu/awt/gtk/GtkLabelPeer.java: New file.
140 * gnu/awt/gtk/GtkButtonPeer.java: New file.
142 * java/lang/natSystem.cc: Include locale.h if it exists.
143 * configure: Rebuilt.
144 * configure.in: Check for locale.h.
146 2001-01-11 Tom Tromey <tromey@redhat.com>
148 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
149 (Cursor(int), getPredefinedCursor): Throw exception if argument
152 2001-01-03 Tom Tromey <tromey@redhat.com>
154 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
155 (getLocationOnScreen): Wrote.
157 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
159 * Makefile.am: Re-enable dependencies.
160 * Makefile.in: Rebuilt.
162 2001-01-10 Warren Levy <warrenl@redhat.com>
164 * java/math/BigDecimal.java (divide): Fixed comment.
166 2001-01-10 Warren Levy <warrenl@redhat.com>
168 Fix for PR libgcj/1596:
169 * java/math/BigDecimal.java (divide): Check newScale for validity.
170 Ensure that BigInteger.pow() is called with a non-negative value.
171 (setScale (int)): New public method.
172 (setScale (int,int)): New public method.
174 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
176 Fix for PR libgcj/1338:
177 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
178 commentChar. Fixed typos in comments.
180 2001-01-08 Warren Levy <warrenl@redhat.com>
182 Fix for PR libgcj/1411:
183 * Makefile.am: Removed java/util/natTimeZone.cc.
184 * Makefile.in: Rebuilt.
185 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
186 missing localized timezone names.
187 * java/lang/System.java (getDefaultTimeZoneId): New private method.
188 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
189 (init_properties): Set user.timezone property.
190 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
191 default timezone names; removed non-standard ones. Use standard
193 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
195 * java/util/TimeZone.java: Add standard ID names per JCL; removed
197 (getDefaultTimeZoneId): Removed.
199 * java/util/natTimeZone.cc: Removed.
201 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
203 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
204 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
205 (_Jv_GetArrayClass): New inline function.
206 (arrayclass): New field.
207 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
208 _Jv_GetArrayElementFromElementType.
209 (_Jv_NewPrimArray): Ditto.
210 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
211 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
212 Set Modifier::ABSTRACT.
213 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
214 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
215 Now synchronized. Array classes are now referenced from
216 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
217 Set array classes' accessibility flags correctly. Optimize so that
218 all array classes share the same IDT.
219 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
220 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
221 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
222 in superclasses from overwriting classes own fields.
223 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
224 Modifier::isAbstract().
225 (null_idt): New static field.
226 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
228 (_Jv_IndexOf): Made inline.
229 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
231 2001-01-08 Tom Tromey <tromey@redhat.com>
233 Fix for PR java/1586:
234 * Makefile.in: Rebuilt.
235 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
237 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
239 * Makefile.am: Use the new "-M -MF" option for generating dependencies
240 from the c++ compiler.
241 * Makefile.in: Rebuilt.
243 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
245 All files with updated copyright.
246 * prims.cc (class _Jv_PrimClass): Removed.
247 (init_prim_class): New function.
248 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
249 `_Jv_PrimClass' in primitive type declarations. Assign to the
250 value returned by `init_prim_class.'
251 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
252 primitive type declarations.
253 (JvPrimClass): Cast to `jclass' removed.
254 * java/lang/Class.h (Class): New constructor.
255 (Class): New copy constructor.
256 (initializePrim): New prototype.
257 (_Jv_PrimClass): Field removed.
258 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
259 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
260 (class java::lang::Object): `finalize' moved up front.
261 * java/lang/natClass.cc
262 (isAssignableFrom): Turned outline.
263 (isInstance): Likewise.
264 (isInterface): Likewise, fixed indentation.
265 (initializePrim): New function.
267 2001-01-07 Anthony Green <green@redhat.com>
269 * Makefile.am (texinfo): Add texinfo target for generating texinfo
271 * Makefile.in: Rebuilt.
273 * scripts/TexinfoDoclet.java: New file.
275 * doc/java-applet.texi, doc/java-lang-reflect.texi,
276 doc/java-awt-color.texi, doc/java-lang.texi,
277 doc/java-awt-datatransfer.texi, doc/java-math.texi,
278 doc/java-awt-event.texi, doc/java-net.texi,
279 doc/java-awt-geom.texi, doc/java-security-spec.texi,
280 doc/java-awt-image.texi, doc/java-security.texi,
281 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
282 doc/java-text.texi, doc/java-beans-beancontext.texi,
283 doc/java-util-jar.texi, doc/java-beans.texi,
284 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
285 doc/java-lang-ref.texi: New files.
287 2001-01-07 Anthony Green <green@redhat.com>
289 * java/net/URLConnection.java (setDoOutput): URLConnection's may
290 be used for both input and output, so don't clear doInput.
292 * java/lang/StringBuffer.java: Fix comments.
294 2001-01-06 Anthony Green <green@redhat.com>
296 * java/beans/PropertyDescriptor.java: Fix comment.
297 * java/io/PushbackReader.java: Fix comment.
298 * java/io/ObjectStreamClass.java: Fix comment.
299 * java/io/DataInputStream.java: Fix comment.
300 * java/io/PipedInputStream.java: Fix comments.
301 * java/io/PipedReader.java: Fix comments.
302 * java/sql/DatabaseMetaData.java: Fix comments.
304 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
306 * java/io/PipedReader: Synchronize on "lock" instead of this.
308 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
310 * java/lang/Thread.java: Update comment.
312 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
313 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
314 * java/io/PipedReader: New implementation based on new
316 * java/io/PipedWriter: Updated to match new PipedReader.
318 2001-01-03 Tom Tromey <tromey@redhat.com>
320 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
321 (getViewportSize): Insets include scrollbar size.
322 (doLayout): Finished.
323 (getScrollPosition): Wrote.
324 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
326 2001-01-02 Tom Tromey <tromey@redhat.com>
328 * java/awt/ScrollPane.java: Wrote.
329 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
332 * java/awt/Panel.java (Panel()): Fixed.
334 * java/awt/Component.java (isShowing): Return false if no peer
335 exists, and true if component is visible and no parent exists.
336 (getLocationOnScreen): Wrote.
337 (getPreferredSize): Removed FIXME comment.
338 (getMinimumSize): Likewise.
339 (getAlignmentX, getAlignmentY): Wrote.
341 (requestFocus): Wrote.
342 (transferFocus): Wrote.
343 (findNextFocusComponent): New method.
346 (enableEvents): Call setEventMask on the peer.
348 * java/awt/Container.java (list): Use super.list() to print self.
349 (findNextFocusComponent): New method.
350 (setLayout): Call invalidate.
351 (findComponentAt): Wrote.
353 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
355 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
356 the correct versions of various linuxthreads functions get linked.
357 * Makefile.in: Rebuilt.
358 * java/lang/natThread.cc (finalize_native): New static function. Call
359 _Jv_ThreadDestroyData.
360 (initialize_native): Register finalizer for "data".
361 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
362 (_Jv_ThreadDestroyData): New prototype.
363 * include/win32-threads.h: Ditto.
364 * include/no-threads.h: Ditto.
365 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
366 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
367 move mutex and condition variable destroy code from:
368 (really_start): ...here.
369 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
370 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
371 (_Jv_ThreadDestroyData): Implemented.
372 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
373 (_Jv_AllocArray): Ditto.
375 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
377 * java/sql/DriverManager.java (getConnection): Don't set user/password
380 2000-12-27 Warren Levy <warrenl@redhat.com>
382 Fix for PR libgcj/1358:
383 * java/lang/System.java: Update Copyright date properly.
384 * java/util/Calendar.java: Fix typo in comment.
385 (set): Set 24-hour clock hour instead of 12-hour clock hour.
386 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
387 initialize times. Spec says to set H:M:S values to zero only if
389 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
390 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
391 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
392 timezones and GMT offsets, being careful to account for units of
393 milliseconds vs. seconds.
395 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
397 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
398 not be assigned to Object.
400 Fix for PR libgcj/1516:
401 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
403 (can_widen): Declared inline. Remove redundant checks for void
404 arguments and char->short conversion. Add special case for boolean
406 (ffi_type): Declared inline.
407 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
409 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
411 * java/sql/SQLWarning.java: Fixed typo in comment.
413 2000-12-26 Tom Tromey <tromey@redhat.com>
415 * java/awt/MenuItem.java (paramString): Now protected.
417 * java/awt/MenuShortcut.java: Implements Serializable.
419 * java/awt/MenuBar.java: Rewrote from scratch.
421 * java/awt/MenuComponent.java (removeNotify): Wrote.
422 Implements Serializable.
424 * java/awt/GridBagConstraints.java (GridBagConstraints): New
427 * java/awt/CheckboxMenuItem.java: Wrote.
429 2000-12-25 Tom Tromey <tromey@redhat.com>
431 * java/awt/MenuContainer.java: Fixed typo.
433 * Makefile.in: Rebuilt.
434 * Makefile.am (awt_java_source_files): Added SystemColor.java.
435 * java/awt/SystemColor.java: New file.
437 * java/awt/Color.java (rgba): Now package-private.
439 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
441 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
444 * java/awt/MenuItem.java (addNotify): New method.
445 (MenuItem(String,MenuShortcut)): New constructor.
446 (setLabel): Notify peer of change.
447 (setEnabled): Likewise.
449 * java/awt/GridLayout.java (toString): New method.
451 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
452 (FlowLayout): Check for LEADING and TRAILING.
453 (setAlignment): Likewise.
454 (layoutContainer): Handle component orientation.
456 * java/awt/Component.java (orientatin): New field.
457 (setComponentOrientation): Wrote.
458 (getComponentOrientation): Wrote.
460 * java/awt/Event.java (Event): Implements Serializable.
461 (consumed): New field for serialization.
462 * java/awt/Dimension.java (Dimension): Implements Serializable.
463 * java/awt/Cursor.java (Cursor): Implements Serializable.
464 * java/awt/Container.java (Container): No longer abstract.
466 * java/awt/Choice.java: Wrote.
467 * java/awt/Checkbox.java: Wrote.
468 * java/awt/ItemSelectable.java: Documented.
469 * java/awt/CheckboxGroup.java: Wrote.
471 * java/awt/CardLayout.java (layoutContainer): Directly use fields
475 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
477 * java/io/FileDescriptor.java: Initialize fd to -1.
478 Remove default constructor.
480 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
482 * java/lang/mprec.h: Change C9X reference to refer to C99.
484 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
486 * java/lang/Throwable.java (trace_enabled): New static field.
487 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
488 trace_enabled not set.
489 * prims.cc (main_init): Turn off trace_enabled while creating
490 default exception objects.
492 2000-12-21 Tom Tromey <tromey@redhat.com>
494 * java/beans/PropertyChangeListener.java: Extends EventListener.
495 * java/beans/VetoableChangeListener.java: Extends EventListener.
497 * java/util/zip/Deflater.java (update, init): Now private.
499 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
501 * java/util/BasicMapEntry.java: Re-added.
502 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
503 (putAll): Test for BasicMapEntry.
504 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
505 (putAll): Test for BasicMapEntry.
506 Change references from `HashMap.Entry' to `Entry' in various places.
507 * Makefile.am: Add BasicMapEntry.java.
508 * Makefile.in: Rebuilt.
510 2000-12-18 Warren Levy <warrenl@redhat.com>
512 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
513 need to set timezone to a valid non-null value. Partial fix for
516 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
518 * java/awt/Window.java (addNotify): Remove peer casting hack now that
520 * java/awt/Button.java (addNotify): Likewise.
521 * java/awt/Label.java (addNotify): Likewise.
522 * java/awt/Panel.java (addNotify): Likewise.
523 * java/awt/Scrollbar.java (addNotify): Likewise.
524 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
525 Remove redundant null checks.
527 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
529 * COPYING: Update to current
530 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
531 to 19yy as example year in copyright notice).
533 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
535 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
536 end-of-stream if avail_in is 0.
538 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
540 * java/util/ArrayList.java (data): Declare transient.
541 (serialPersistantFields): Removed.
542 (readObject): Use defaultReadObject(), not readFields().
543 (writeObject): Use defaultWriteObject(), not writeFields().
545 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
547 * java/util/Hashtable.java (put): Remove `last' variable.
548 Link new entry to head of list.
549 * java/util/HashMap.java (put): Ditto.
551 2000-12-15 Tom Tromey <tromey@redhat.com>
553 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
554 loader to Class.forName.
556 2000-12-14 Tom Tromey <tromey@redhat.com>
558 * java/util/ResourceBundle.java
559 (getBundle(String,Locale,ClassLoader)): New method.
560 (trySomeGetBundle): Added `loader' argument.
561 (partialGetBundle): Likewise.
563 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
564 maximumFractionDigits, maximumIntegerDigits,
565 minimumFractionDigits, minimumIntegerDigits): Now
568 * java/lang/Thread.java (checkAccess): Now final.
570 * java/lang/RuntimePermission.java: Class now final.
572 * java/io/StringWriter.java (StringWriter(int)): Now public.
574 * java/io/SerializablePermission.java (legal_names): Now private.
576 * java/lang/Character.java: Updated UnicodeBlock constants.
577 * scripts/blocks.pl: Special case private use and surrogate
580 2000-12-12 Tom Tromey <tromey@redhat.com>
582 * Makefile.in: Rebuilt.
583 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
585 (GCJCOMPILE): Use it.
588 2000-12-11 Tom Tromey <tromey@redhat.com>
590 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
591 New static final fields.
593 * scripts/classes.pl (scan): Skip lines with leading `*'.
594 Fix for PR libgcj/378.
596 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
598 * configure.in: Remove check for -fuse-divide-subroutine.
599 * configure: Rebuilt.
601 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
603 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
605 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
607 * Makefile.am: Add HashSet.java and java/lang/ref classes.
608 Remove BasicMapEntry.java and Bucket.java.
609 * Makefile.in: Rebuilt.
610 * java/util/HashMap.java: Rewritten.
611 * java/util/HashSet.java: Imported from classpath.
612 * java/util/WeakHashMap.java: Imported from classpath.
613 * java/util/Hashtable.java: Rewritten based on new HashMap code.
614 * java/util/Bucket.java: Deleted.
615 * java/util/BasicMapEntry.java: Deleted.
616 * java/util/Collections.java (search): Use a for-loop, not iterator
618 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
619 of elements in source.
620 (max): Use a for-loop.
622 (reverse): Keep track of positions instead of using Iterator's
623 nextIndex() and previousIndex().
624 (shuffle(List)): Initialize defaultRandom if required using
625 double-check thread safety idiom. Call two-argument shuffle method
627 (defaultRandom): New field.
628 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
629 using previousIndex() and nextIndex().
630 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
631 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
632 * java/util/AbstractMap.java (toString): Use StringBuffer.
633 * java/lang/ref/PhantomReference.java: Imported from classpath.
634 * java/lang/ref/SoftReference.java: Ditto.
635 * java/lang/ref/Reference.java: Ditto.
636 * java/lang/ref/WeakReference.java: Ditto.
637 * java/lang/ref/ReferenceQueue.java: Ditto.
639 2000-12-10 Richard Henderson <rth@redhat.com>
641 * configure.host: Recognize alpha*-*, not alphaev6-*.
643 2000-12-09 Anthony Green <green@redhat.com>
645 * configure.host: Enable interpreter for Alpha.
647 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
649 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
650 (ZIP): Points at fastjar instead of zip.
651 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
652 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
653 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
654 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
655 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
656 ($(x_java_source_files:.java=.class):): Likewise.
657 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
659 (CLEANFILES): libgcj.jar replaces libgcj.zip.
660 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
661 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
662 java/lang/String.h:, java/lang/reflect/Constructor.h:,
663 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
664 gnu/gcj/runtime/VMClassLoader.h:,
665 java/io/ObjectInputStream$$GetField.h:,
666 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
667 (Makefile.in): Rebuilt.
669 2000-12-08 Tom Tromey <tromey@redhat.com>
672 * configure: Rebuilt.
673 * configure.in: Use echo, not `:', to create .d files.
675 2000-12-08 Warren Levy <warrenl@redhat.com>
677 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
678 NullPointerException so proper check of offset can be done.
680 2000-12-08 Warren Levy <warrenl@redhat.com>
682 * java/io/FileInputStream.java (close): Check if the fd is valid.
683 * java/io/RandomAccessFile.java (close): Ditto.
684 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
685 * java/net/PlainSocketImpl.java (close): Ditto.
687 2000-12-06 Tom Tromey <tromey@redhat.com>
689 * java/awt/GridBagConstraints.java: Filled in values for static
692 * java/util/BitSet.java: Updated copyright notice.
694 * Makefile.in: Rebuilt.
695 * Makefile.am (awt_java_source_files): Added new file.
696 * java/awt/GridBagConstraints.java: New file.
698 2000-12-05 Tom Tromey <tromey@redhat.com>
700 * java/text/Collator.java (decomposeCharacter, decmp, strength):
701 Now package-private, not protected.
702 * java/text/DateFormatSymbols.java (equals): Now private.
703 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
704 * java/util/BitSet.java: Class no longer final.
706 2000-12-04 Warren Levy <warrenl@redhat.com>
708 * java/util/TimeZone.java (getAvailableIDs): Activated commented
709 out code dependent on compiler and library changes.
711 2000-12-04 Warren Levy <warrenl@redhat.com>
713 * java/io/FilePermission.java: Made class final per spec.
714 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
715 method name to match spec (fixed typo).
716 * java/util/LinkedList.java: Implements List.
718 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
720 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
721 Edgar Villanueva <edgarvil@home.com>.
723 2000-12-03 Tom Tromey <tromey@redhat.com>
725 * java/awt/geom/Point2D.java: Added protected constructor.
726 (equals): New method.
727 (Float.setLocation(float,float)): New method.
728 * java/awt/geom/Dimension2D.java: Added protected constructor.
729 * java/awt/geom/AffineTransform.java: Made all constants public.
730 (concatenate): Fixed typo in name.
731 * java/awt/event/WindowAdapter.java: Class now abstract.
732 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
733 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
736 * java/awt/AWTError.java: Extend Error, not
737 IllegalStateException.
739 * Makefile.in: Rebuilt.
740 * Makefile.am (awt_java_source_files): Added new file.
741 * java/awt/geom/RoundRectangle2D.java: New file.
743 * Makefile.in: Rebuilt.
744 * Makefile.am (awt_java_source_files): Added new file.
745 * java/awt/FlowLayout.java: New file.
747 * Makefile.in: Rebuilt.
748 * Makefile.am (awt_java_source_files): Added new file.
749 * java/awt/GridLayout.java: New file.
751 2000-12-02 Tom Tromey <tromey@redhat.com>
753 * Makefile.in: Rebuilt.
754 * Makefile.am (awt_java_source_files): Added new files.
755 * java/awt/CardLayout.java: New file.
756 * java/awt/AWTPermission.java: New file.
758 2000-12-01 Tom Tromey <tromey@redhat.com>
760 * java/util/Vector.java (insertElementAt): Unconditionally
761 increment elementCount.
762 (removeRange): Clear unused slots in vector.
764 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
766 * java/lang/natMath.cc: Declare fabsf() function.
767 * java/lang/mprec.h: Don't include math.h.
768 * java/lang/dtoa.c: Include string.h.
769 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
772 From Adam Welc <welc@cs.purdue.edu>:
773 * java/util/LinkedList.java (removeFirst): Update `first' field.
774 Handle the last == first case.
775 (removeLast): Update `last' field. Handle the last == first case.
777 2000-12-01 Warren Levy <warrenl@cygnus.com>
779 * Makefile.am: Added entries for new java.sql modules.
780 * Makefile.in: Rebuilt.
782 2000-12-01 Warren Levy <warrenl@cygnus.com>
784 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
785 that aren't quite 1.2 compatible yet.
787 2000-11-30 Warren Levy <warrenl@cygnus.com>
789 * java/sql/Array.java: New file from classpath.
790 * java/sql/BatchUpdateException.java: Ditto.
791 * java/sql/Blob.java: Ditto.
792 * java/sql/Clob.java: Ditto.
793 * java/sql/Ref.java: Ditto.
794 * java/sql/SQLData.java: Ditto.
795 * java/sql/SQLInput.java: Ditto.
796 * java/sql/SQLOutput.java: Ditto.
797 * java/sql/Struct.java: Ditto.
798 * java/sql/CallableStatement.java: Merged file from claspath.
799 * java/sql/Connection.java: Ditto.
800 * java/sql/DataTruncation.java: Ditto.
801 * java/sql/DatabaseMetaData.java: Ditto.
802 * java/sql/DriverManager.java: Ditto.
803 * java/sql/PreparedStatement.java: Ditto.
804 * java/sql/ResultSet.java: Ditto.
805 * java/sql/ResultSetMetaData.java: Ditto.
806 * java/sql/SQLException.java: Ditto.
807 * java/sql/SQLWarning.java: Ditto.
808 * java/sql/Statement.java: Ditto.
809 * java/sql/Types.java: Ditto.
811 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
813 * java/lang/natSystem.cc (init_properties): Set user.language and
815 * configure.in: Check for setlocale.
816 * configure: Rebuilt.
817 * include/config.h.in: Rebuilt.
819 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
820 the infate() call didn't deliver any output. Throw a ZipException if
821 the needsDictionary() call returns true.
822 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
823 * java/io/InputStreamReader: Use the default buffer size for the
824 contained BufferedInputStream.
826 2000-11-28 Warren Levy <warrenl@cygnus.com>
828 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
829 more time zone entries.
830 * java/text/SimpleDateFormat.java (format): Added case for
833 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
835 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
836 directly rather than read() in all cases. Make primitive read
837 implementations more efficient, as defined in JDK online docs.
838 (skipBytes): Behave like the JDK's implementation.
839 * java/io/BufferedReader.java: Merge classpath docs. Check for a
840 closed stream with checkStatus() whenever an IOException can be
842 (checkStatus): New private method.
844 2000-11-27 Warren Levy <warrenl@cygnus.com>
846 * Makefile.am: Added natTimeZone.cc.
847 * Makefile.in: Rebuilt.
848 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
849 * java/text/DateFormatSymbols.java (ampms): Made package private.
850 (eras): Made package private.
851 (months): Made package private.
852 (shortMonths): Made package private.
853 (shortWeekdays): Made package private.
854 (weekdays): Made package private.
855 (formatPrefixes): New private field.
856 (localPatternCharsDefault): Made private.
857 (dateFormats): New package private field.
858 (timeFormats): New package private field.
859 (formatsForKey): New private method.
860 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
861 (DateFormatSymbols(DateFormatSymbols)): Ditto.
862 * java/text/SimpleDateFormat.java: Merged with Classpath.
863 * java/util/TimeZone.java: Merged with Classpath.
864 * java/util/natTimeZone.cc: New file.
866 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
868 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
869 (addElement): Don't increment elementCount twice. Doh.
870 * java/util/ArrayList.java (add): Only call ensureCapacity if the
871 array needs to be expanded.
873 * java/util/Collections.java (UnmodifiableCollection): Implement
875 (UnmodifiableList): Throw UnsupportedOperationException from
876 modification methods. Set `l' from the one-parameter constructor.
877 (UnmodifiableMap): Implement toString().
878 (SynchronizedCollection): Ditto.
879 (SynchronizedList): Set `l' from the one-parameter constructor.
880 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
881 (SynchronizedMap): Implement toString().
883 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
885 * javax/naming/NameParser.java,
886 javax/naming/directory/AttributeInUseException.java,
887 javax/naming/directory/AttributeModificationException.java,
888 javax/naming/directory/InvalidAttributeIdentifierException.java,
889 javax/naming/directory/InvalidAttributesException.java,
890 javax/naming/directory/InvalidAttributeValueException.java,
891 javax/naming/directory/InvalidSearchControlsException.java,
892 javax/naming/directory/InvalidSearchFilterException.java,
893 javax/naming/directory/NoSuchAttributeException.java,
894 javax/naming/directory/SchemaViolationException.java: New files.
896 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
898 * javax/naming/InitialContext.java (rebind): Implement.
902 (listBindings): Implement.
903 (destroySubcontext): Implement.
904 (createSubcontext): Implement.
905 (lookupLink): Implement.
906 (getNameParser): Implement.
907 (composeName): Implement.
908 (addToEnvironment): Implement.
910 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
912 * javax/naming/AuthenticationException.java,
913 javax/naming/AuthenticationNotSupportedException.java,
914 javax/naming/CannotProceedException.java,
915 javax/naming/CommunicationException.java,
916 javax/naming/ConfigurationException.java,
917 javax/naming/ContextNotEmptyException.java,
918 javax/naming/InsufficientResourcesException.java,
919 javax/naming/InterruptedNamingException.java,
920 javax/naming/InvalidNameException.java,
921 javax/naming/LimitExceededException.java,
922 javax/naming/LinkException.java,
923 javax/naming/LinkLoopException.java,
924 javax/naming/MalformedLinkException.java,
925 javax/naming/NameAlreadyBoundException.java,
926 javax/naming/NameNotFoundException.java,
927 javax/naming/NamingSecurityException.java,
928 javax/naming/NoPermissionException.java,
929 javax/naming/NotContextException.java,
930 javax/naming/PartialResultException.java,
931 javax/naming/ReferralException.java,
932 javax/naming/ServiceUnavailableException.java,
933 javax/naming/SizeLimitExceededException.java,
934 javax/naming/TimeLimitExceededException.java: New files.
936 * javax/naming/Name.java (clone): New method.
937 (compareTo): New method.
938 (isEmpty): New method.
939 (getAll): New method.
940 (getPrefix): New method.
941 (getSuffix): New method.
942 (startsWith): New method.
943 (endsWith): New method.
944 (addAll): New method.
945 (addAll): New method.
948 (remove): New method.
950 * javax/naming/Context.java (lookup): New method.
951 (rebind): New method.
952 (unbind): New method.
953 (rename): New method.
955 (listBindings): New method.
956 (destroySubcontext): New method.
957 (createSubcontext): New method.
958 (lookupLink): New method.
959 (getNameParser): New method.
960 (composeName): New method.
961 (addToEnvironment): New method.
962 (removeFromEnvironment): New method.
963 (getEnvironment): New method.
965 (getNameInNamespace): New method.
967 * javax/naming/InitialContext.java (lookup): New method.
968 (rebind): New method.
969 (unbind): New method.
970 (rename): New method.
972 (listBindings): New method.
973 (destroySubcontext): New method.
974 (createSubcontext): New method.
975 (lookupLink): New method.
976 (getNameParser): New method.
977 (composeName): New method.
978 (addToEnvironment): New method.
979 (removeFromEnvironment): New method.
980 (getEnvironment): New method.
982 (getNameInNamespace): New method.
984 2000-11-26 Tom Tromey <tromey@cygnus.com>
986 * Makefile.in: Rebuilt.
987 * Makefile.am (core_java_source_files): Added
988 RuntimePermission.java.
989 * java/lang/RuntimePermission.java: Imported from Classpath.
990 * java/lang/Thread.java (getContextClassLoader): Now
991 synchronized. Added security code.
992 (setContextClassLoader): Likewise.
994 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
995 length field of array.
996 (_Jv_NewPrimArray): Likewise.
997 * gcj/array.h (__JArray): `length' field now const. Added
1000 2000-11-26 Anthony Green <green@redhat.com>
1002 * javax/naming/spi/NamingManager.java,
1003 javax/naming/spi/ObjectFactory.java,
1004 javax/naming/spi/InitialContextFactory.java,
1005 javax/naming/spi/InitialContextFactoryBuilder.java,
1006 javax/naming/RefAddr.java, javax/naming/Reference.java,
1007 javax/naming/NamingException.java, javax/naming/Context.java,
1008 javax/naming/Referenceable.java,
1009 javax/naming/directory/InitialDirContext.java,
1010 javax/naming/directory/DirContext.java,
1011 javax/naming/directory/Attributes.java,
1012 javax/naming/directory/Attribute.java,
1013 javax/naming/StringRefAddr.java,
1014 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1015 javax/naming/InitialContext.java,
1016 javax/naming/NoInitialContextException.java: New files.
1018 2000-11-25 Anthony Green <green@redhat.com>
1020 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1021 (_Jv_NewPrimArray): Likewise.
1022 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1023 (class JArray): Removed constructor.
1025 * java/lang/Thread.java (context_class_loader): New private data.
1026 (getContextClassLoader): New method.
1027 (setContextClassLoader): New method.
1028 (Thread): Initialize context_class_loader.
1030 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1031 (getResource): Rename to findResource.
1032 (findResource): New method. Used to be getResource.
1033 (getResourceAsStream): Deleted.
1034 (jarFileize): Extracted logic from URLClassLoader constructor into
1035 this new private method.
1036 (addURL): New protected method.
1037 (URLClassLoader): Call jarFileize. Use addElement instead of
1039 (findResources): New method.
1041 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1042 (getResource): Implement correct logic.
1043 (findResource): New method.
1044 (getResources): New method.
1045 (findClass): Create a ClassNotFoundException with the name of the
1046 class rather than nothing at all.
1047 (defineClass) Only throw ClassFormatError.
1049 * java/lang/Class.java (forName): New method.
1050 * java/lang/Class.h (forName): New method.
1051 * java/lang/natClass.cc (forName): New method.
1053 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1055 * java/lang/System.java (setProperties): Only call init_properties()
1056 if properties is null.
1057 (getProperties): Ditto.
1058 (getProperty): Ditto.
1059 (setProperty): Call init_properties if properties are null.
1060 (prop_init): Remove field.
1061 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1062 method. Check for null properties after synchronizing instead of
1063 prop_init flag. Set the properties field last for thread safety.
1065 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1066 test for gcj.dumpobjects property and enable object stream dumping
1068 (dumpElement): No longer native.
1069 (dumpElementln): Ditto.
1070 (setDump): Do not define.
1071 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1072 (dumpElementln): Removed.
1075 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1077 * configure: Rebuilt.
1078 * Makefile.in: Rebuilt.
1079 * Makefile.am (built_java_source_files): Add Configuration.java.
1080 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1081 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1082 Create `gnu' directory in the build tree.
1083 * gnu/classpath/Configuration.java.in: New file.
1085 2000-11-24 Tom Tromey <tromey@cygnus.com>
1087 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1089 (_Jv_NewPrimArray): Likewise.
1091 * gcj/array.h (__JArray): `length' field now const. Added
1093 (class JArray): Added constructor.
1095 2000-11-23 Mark Wielaard <mark@klomp.org>
1097 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1100 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1102 * java/util/Vector.java: Improve exception messages.
1103 (Vector): Check initialCapacity for IllegalArgumentException.
1104 (tromToSize): Don't check for elementCount == elementData.length
1106 (toArray): Don't try to set null marker if target array is the same
1107 length as the vector.
1109 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1111 * Makefile.in: Rebuilt.
1112 * Makefile.am (core_java_source_files): Added Collections.java.
1113 * java/util/List.java: Merged from classpath.
1114 * java/util/Vector.java: Ditto.
1115 * java/util/Collections.java: From classpath.
1116 * java/util/ArrayList.java (addAll(Collection)): Call
1117 addAll(int,Collection) instead of duplicating code.
1118 (indexOf): Clean up int initialization.
1119 (clear): Set cleared array entries to null, to allow garbage
1121 * java/util/List.java: Minor formatting fixes.
1122 * java/util/SimpleTimeZone.java: ditto.
1124 2000-11-18 Tom Tromey <tromey@cygnus.com>
1126 * Makefile.in: Rebuilt.
1127 * Makefile.am (core_java_source_files): Added new files.
1128 * java/lang/reflect/ReflectPermission.java: New class.
1129 * java/io/FileFilter.java: From Classpath
1130 * java/io/FilePermission.java: From Classpath.
1132 2000-11-17 Tom Tromey <tromey@cygnus.com>
1134 * java/lang/reflect/AccessibleObject.java (isAccessible,
1135 setAccessible): Now public.
1137 * java/lang/natString.cc: Include Locale.h.
1138 (toUpperCase): Added `locale' argument. Handle locale
1140 (toLowerCase): Added `locale' argument. Handle locale
1142 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1143 CAPITAL_I): New defines.
1144 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1147 (toUpperCase, toLowerCase): New methods. Variants which accept
1150 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1153 * java/util/PropertyPermission.java: Re-merged from Classpath.
1155 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1157 * java/text/StringCharacterIterator.java: Reindented.
1158 (setText): New method.
1160 2000-11-17 Mark Wielaard <mark@klomp.org>
1162 Merge with Classpath (changes by Bryce McKinlay)
1163 * java/util/jar/*.java: Reformat all to unofficial standard coding
1164 style. No changes of substance.
1166 2000-11-17 Mark Wielaard <mark@klomp.org>
1168 * java/util/zip/*.java: Javadoc updates.
1170 2000-11-17 Tom Tromey <tromey@cygnus.com>
1172 * java/text/CollationKey.java: Implement Comparable.
1173 (compareTo(Object)): New method.
1174 * java/text/Collator.java (compare(Object,Object)): New method.
1175 Implement Comparator.
1177 * java/util/zip/InflaterInputStream.java (available): New method.
1178 (close): New method.
1179 (read, available, skip, fill): Throw exception if stream closed.
1180 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1181 getNextEntry): Throw exception if closed.
1183 2000-11-16 Tom Tromey <tromey@cygnus.com>
1185 * java/io/PushbackReader.java: Merged with Classpath.
1186 * java/util/Arrays.java: Updated from Classpath.
1188 * scripts/blocks.pl: New file.
1189 * java/lang/Character.java (Subset): New class.
1190 (UnicodeBlock): New class.
1192 * java/lang/Math.java (toDegrees, toRadians): New methods.
1194 * java/lang/Float.java: Implement Comparable.
1195 (compareTo): New methods.
1196 * java/lang/Double.java: Implement Comparable.
1197 (compareTo): New methods.
1199 2000-11-16 Warren Levy <warrenl@cygnus.com>
1201 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1203 (listeners): Made transient.
1204 (source): Renamed from 'bean'.
1205 (children): New field for serialization.
1206 (propertyChangeSupportSerializedDataVersion): Ditto.
1207 (serialVersionUID): Ditto.
1208 (writeObject): New serialization method.
1209 (readObject): New serialization method.
1210 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1212 (listeners): Made transient.
1213 (source): Renamed from 'bean'.
1214 (children): New field for serialization.
1215 (vetoableChangeSupportSerializedDataVersion): Ditto.
1216 (serialVersionUID): Ditto.
1217 (writeObject): New serialization method.
1218 (readObject): New serialization method.
1219 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1220 to allow constructor to have a return type (i.e. the class that the
1221 constructor constructs).
1223 2000-11-14 Tom Tromey <tromey@cygnus.com>
1225 * Makefile.in: Rebuilt.
1226 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1229 2000-11-02 Warren Levy <warrenl@cygnus.com>
1231 * java/io/ObjectInputStream.java (readObject): Added code to
1232 conditionally dump out the serialized data.
1233 Handle ENDBLOCKDATA case a bit more gracefully since the current
1234 behavior doesn't seem to work as expected.
1235 (readStreamHeader): Added code for serialized data dumper.
1236 (readNextBlock): Ditto.
1237 (readFields): Ditto.
1238 (dump): New private static field for turning on/off dumper.
1239 (setDump): New native method.
1240 (dumpElement): New native method.
1241 (dumpElementln): New native method.
1242 * java/io/natObjectInputStream.cc (setDump): New method.
1243 (dumpElement): New method.
1244 (dumpElementln): New method.
1246 2000-11-02 Warren Levy <warrenl@cygnus.com>
1248 * java/net/InetAddress.java (addr): Renamed from 'address'.
1249 (address): New field to match Serialized Form doc.
1250 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1251 (family): New serialization field.
1252 (serialVersionUID): New field.
1253 (readObject): New method.
1254 (writeObject): New method.
1255 (getFamily): New native method.
1256 (InetAddress): Set family.
1257 * java/net/natInetAddress.cc (getFamily): New method.
1258 (addr): Renamed from 'address'.
1259 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1260 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1261 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1263 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1265 * java/util/AbstractList.java (SubList): Make it a top-level private
1267 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1269 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1270 * Makefile.in: Rebuilt.
1272 2000-11-02 Tom Tromey <tromey@cygnus.com>
1274 * Makefile.in: Rebuilt.
1275 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1278 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1280 * java/util/AbstractList.java (remove): Comment out modCount increment
1281 to work around compiler bug.
1284 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1286 * java/util/AbstractList.java: Throw messages with
1287 IndexOutOfBoundsExceptions.
1288 (listIterator()): Call listIterator(0).
1289 (size): New field. Initialize to size().
1290 (hasNext): Test position against size, not size().
1291 (remove): Increment knownMod by one instead of resetting it from
1294 (SubList.upMod): Removed.
1295 (SubList.set): Don't call upMod() or update knownMod.
1296 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1297 (SubList.remove): Ditto.
1298 (SubList.addAll): Don't call backingList.size(). Increment size from
1300 (SubList.iterator): New method. Call listIterator(0).
1301 (SubList.listIterator): New method. Restore code to return an anonymous
1302 listIterator implementation (with some changes).
1303 * java/util/AbstractSequentialList.java: Throw messages with
1304 IndexOutOfBoundsExceptions.
1305 (addAll): Add a specnote.
1306 * java/util/ArrayList.java (removeRange): Get the math right.
1307 (addAll): Increment modCount _before_ creating iterator.
1308 * java/util/LinkedList.java: Rewritten, mostly.
1310 2000-11-01 Tom Tromey <tromey@cygnus.com>
1312 * scripts/encodings.pl: Added `ASCII' alias.
1313 * Makefile.in: Rebuilt.
1314 * Makefile.am (convert_source_files): Added new files.
1315 * gnu/gcj/convert/Input_ASCII.java: New file.
1316 * gnu/gcj/convert/Output_ASCII.java: New file.
1317 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1318 out-of-range characters.
1319 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1320 (read): Swap bytes if required. Treat `count' as character count,
1322 (write): Likewise. Also, handle case where iconv fails on a given
1324 (init): Put encoding into exception.
1325 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1326 (static): Call iconv_init. Rebuilt alias list.
1327 (iconv_init): New private method.
1329 2000-11-01 Tom Tromey <tromey@cygnus.com>
1331 * Makefile.in: Rebuilt.
1332 * Makefile.am (install-exec-hook): Only make a single symlink, and
1333 remove the destination before making the link.
1334 * configure: Rebuilt.
1335 * configure.in: Call AC_PROG_LN_S.
1337 2000-10-31 Warren Levy <warrenl@cygnus.com>
1339 * jni.cc: Added include of java/lang/ThreadGroup.h.
1340 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1341 per change of 2000-10-05.
1343 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1345 * java/util/BitSet.java: Updated @specnote.
1347 * java/io/Reader.java: Merge docs from classpath.
1348 (skip): Synchronize on `lock'.
1349 * java/io/FileReader.java: Import correct implementation from
1351 * java/io/StringReader.java: Merge docs from classpath.
1352 (ready): Throw IOException if stream is closed.
1354 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1356 * java/util/AbstractCollection.java (addAll): Use size() instead of
1357 hasNext() in iterator loop.
1359 (contains): Ditto. Simplify loop.
1360 (containsAll): Ditto.
1365 (toString): Ditto. Use string concatenation operators, not
1367 * java/util/AbstractList.java (addAll): Use size() instead of
1368 hasNext() in iterator loop.
1371 (indexOf): Ditto. Don't take null check outside of the loop.
1372 (iterator): Return an AbstractListItr instead of anonymous class.
1373 (lastIndexOf): Use a for loop bounded by size() instead of
1374 hasPrevious() in iterator loop.
1375 (listIterator): Return an AbstractListItr.
1376 (removeRange): Remove bounds checking code and docs.
1377 (AbstractListItr): New inner class. Code moved here from
1379 (SubList.iterator): Removed. Use default implementation from
1380 AbstractList instead.
1381 (SubList.listIterator): As above.
1382 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1383 instead of hasNext() in iterator loop.
1384 (containsValue): Ditto.
1390 (toString): Ditto. Use string concatenation operators, not
1392 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1393 bounded by size() instead of hasNext() in iterator loop.
1394 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1395 part of normal execution flow. Do an explicit null check instead.
1396 * java/util/ArrayList.java (_iSize): Rename to `size'.
1397 (_arData): Rename to `data'.
1398 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1401 (removeRange): Make protected. Don't check bounds.
1402 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1404 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1406 (addAll (int, Collection)): Check lower bounds. Simplify exception
1408 (clone): Clone the data array too.
1409 (indexOf): Inline doesEqual().
1410 (lastIndexOf): Ditto.
1411 (clear): Don't set array data to null.
1412 (set): Check lower bounds. Simplify exception string.
1413 (toArray): Correct comment.
1414 (trimToSize): Don't update modCount, this is not a structural change.
1417 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1419 (toString): Declare `bit' as long, not int.
1420 (data): Made package-private, not private.
1422 2000-10-27 Warren Levy <warrenl@cygnus.com>
1424 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1425 array elements to true.
1427 2000-10-27 Warren Levy <warrenl@cygnus.com>
1429 * Makefile.am: Added locale files from Classpath.
1430 * Makefile.in: Rebuilt.
1431 * gnu/java/locale/Calendar.java: New file.
1432 * gnu/java/locale/Calendar_de.java: New file.
1433 * gnu/java/locale/Calendar_en.java: New file.
1434 * gnu/java/locale/Calendar_nl.java: New file.
1435 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1436 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1437 serialization compatibility.
1438 (scale): Made private.
1439 (serialVersionUID): New field.
1440 * java/math/BigInteger.java (ival): Made transient.
1441 (words): Made transient.
1442 (bitCount): New serialization field.
1444 (firstNonzeroByteNum): Ditto.
1445 (lowestSetBit): Ditto.
1448 (serialVersionUID): New field.
1449 (readObject): New method.
1450 (writeObject): New method.
1451 * java/util/BitSet.java (serialVersionUID): New field.
1452 * java/util/Calendar.java: Replaced with Classpath file.
1453 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1454 of getDefault() for TimeZone or Locale instead of passing nulls.
1455 * java/util/Locale.java (serialVersionUID): New field.
1456 (writeObject): New method.
1457 (readObject): New method.
1458 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1460 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1462 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1463 (core_java_source_files): Put java.lang, java.io, and java.util here.
1464 (ordinary_java_source_files): Order so that core_java_source_files are
1466 (java_source_files): Reorder so that special_java_source_files are
1468 * configure.in: Don't pass -I flag to gcj.
1469 * Makefile.in: Rebuilt.
1470 * configure: Rebuilt.
1472 2000-10-25 Tom Tromey <tromey@cygnus.com>
1474 * Makefile.in: Rebuilt.
1475 * Makefile.am (install-exec-hook): New target.
1477 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1479 * java/util/EventObject.java: Merged from classpath.
1481 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1484 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1486 * java/util/AbstractSet.java (equals): Re-installed original code.
1488 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1490 * Makefile.am: Added rules for libgcjx library.
1491 * Makefile.in: Rebuilt.
1492 * configure.in: Added check for X.
1493 * configure: Rebuilt.
1494 * gnu/awt/LightweightRedirector.java: New file.
1495 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1496 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1497 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1498 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1499 * gnu/awt/j2d/MappedRaster.java: New file.
1500 * gnu/awt/xlib/XCanvasPeer.java: New file.
1501 * gnu/awt/xlib/XEventLoop.java: New file.
1502 * gnu/awt/xlib/XEventQueue.java: New file.
1503 * gnu/awt/xlib/XFontMetrics.java: New file.
1504 * gnu/awt/xlib/XFramePeer.java: New file.
1505 * gnu/awt/xlib/XGraphics.java: New file.
1506 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1507 * gnu/awt/xlib/XPanelPeer.java: New file.
1508 * gnu/awt/xlib/XToolkit.java: New file.
1509 * gnu/gcj/xlib/Clip.java: New file.
1510 * gnu/gcj/xlib/Colormap.java: New file.
1511 * gnu/gcj/xlib/Display.java: New file.
1512 * gnu/gcj/xlib/Drawable.java: New file.
1513 * gnu/gcj/xlib/Font.java: New file.
1514 * gnu/gcj/xlib/GC.java: New file.
1515 * gnu/gcj/xlib/Pixmap.java: New file.
1516 * gnu/gcj/xlib/Screen.java: New file.
1517 * gnu/gcj/xlib/Visual.java: New file.
1518 * gnu/gcj/xlib/WMSizeHints.java: New file.
1519 * gnu/gcj/xlib/Window.java: New file.
1520 * gnu/gcj/xlib/WindowAttributes.java: New file.
1521 * gnu/gcj/xlib/XAnyEvent.java: New file.
1522 * gnu/gcj/xlib/XButtonEvent.java: New file.
1523 * gnu/gcj/xlib/XColor.java: New file.
1524 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1525 * gnu/gcj/xlib/XConnectException.java: New file.
1526 * gnu/gcj/xlib/XEvent.java: New file.
1527 * gnu/gcj/xlib/XException.java: New file.
1528 * gnu/gcj/xlib/XExposeEvent.java: New file.
1529 * gnu/gcj/xlib/XID.java: New file.
1530 * gnu/gcj/xlib/XImage.java: New file.
1531 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1532 * gnu/gcj/xlib/natClip.cc: New file.
1533 * gnu/gcj/xlib/natColormap.cc: New file.
1534 * gnu/gcj/xlib/natDisplay.cc: New file.
1535 * gnu/gcj/xlib/natDrawable.cc: New file.
1536 * gnu/gcj/xlib/natFont.cc: New file.
1537 * gnu/gcj/xlib/natGC.cc: New file.
1538 * gnu/gcj/xlib/natPixmap.cc: New file.
1539 * gnu/gcj/xlib/natScreen.cc: New file.
1540 * gnu/gcj/xlib/natVisual.cc: New file.
1541 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1542 * gnu/gcj/xlib/natWindow.cc: New file.
1543 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1544 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1545 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1546 * gnu/gcj/xlib/natXColor.cc: New file.
1547 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1548 * gnu/gcj/xlib/natXException.cc: New file.
1549 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1550 * gnu/gcj/xlib/natXImage.cc: New file.
1551 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1552 * java/awt/EventDispatchThread.java: Start thead on creation.
1554 2000-10-20 Tom Tromey <tromey@cygnus.com>
1556 From Arno J. Klaassen:
1557 * interpret.cc: Include <stdlib.h> for alloca.
1558 * defineclass.cc: Include <stdlib.h> for alloca.
1560 * Makefile.in: Rebuilt.
1561 * Makefile.am: Include deps.mk.
1562 (GCJCOMPILE): Added -MD, -MT, and -MF.
1563 ($(javao_files)): Don't depend on libgcj.zip.
1564 (all-recursive): New target.
1565 (%.lo:%.cc): Do dependency tracking.
1566 ($(nat_headers)): Don't depend on libgcj.zip.
1567 * configure: Rebuilt.
1568 * configure.in: Make .d files and deps.mk.
1570 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1572 * exception.cc: Don't #include "exception".
1573 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1575 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1576 * Makefile.in: Updated.
1578 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1580 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1581 * java/awt/peer/ComponentPeer.java (disable): Removed.
1584 (minimumSize): Removed.
1585 (preferredSize): Removed.
1588 * java/awt/peer/ListPeer.java (addItem): Removed.
1590 (minimumSize): Removed.
1591 (preferredSize): Removed.
1592 (setMultipleSelections): Removed.
1593 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1594 (remove): Renamed from removeMenu.
1595 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1597 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1598 (remove): Renamed from removeItem.
1599 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1600 (getMinimumSize): Removed.
1601 (getPreferredSize): Removed.
1602 (minimumSize): Removed.
1603 (preferredSize): Removed.
1604 (replaceText): Removed.
1605 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1606 (preferredSize): Removed.
1607 (getMinimumSize): Removed.
1608 (getPreferredSize): Removed.
1609 (setEchoCharacter): Removed.
1611 2000-10-10 Warren Levy <warrenl@cygnus.com>
1613 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1614 * java/sql/Date.java (serialVersionUID): New field.
1615 * java/sql/Time.java (serialVersionUID): New field.
1616 * java/sql/Timestamp.java (serialVersionUID): New field.
1617 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1618 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1619 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1620 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1621 (readObject): New serialization method.
1622 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1623 (serialVersionOnStream): New field.
1624 (readObject): New serialization method.
1625 (getMonetaryDecimalSeparator): New method.
1626 (setMonetaryDecimalSeparator): New method.
1627 * java/text/NumberFormat.java (maxFractionDigits): New field.
1628 (maxIntegerDigits): New field.
1629 (minFractionDigits): New field.
1630 (minIntegerDigits): New field.
1631 (serialVersionOnStream): New field.
1632 (serialVersionUID): New field.
1633 (readObject): New serialization method.
1634 (writeObject): New serialization method.
1635 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1636 (serialVersionOnStream): New field.
1637 (serialVersionUID): New field.
1638 (readObject): New serialization method.
1640 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1642 * configure.in (GCJ): Avoid bogus error message when looking for
1643 (and not finding) gcj in the build tree.
1644 * configure: Rebuilt.
1646 2000-10-09 Tom Tromey <tromey@cygnus.com>
1648 * configure: Rebuilt.
1649 * configure.in: Include sys/types.h when checking for socklen_t.
1650 From Arno J. Klaassen.
1652 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1654 * include/jvm.h: Enable __builtin_expect().
1656 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1657 the main program. Fix for PR libgcj/341.
1659 2000-10-07 Tom Tromey <tromey@cygnus.com>
1661 * java/util/Properties.java: Merged with Classpath version.
1663 2000-10-05 Tom Tromey <tromey@cygnus.com>
1665 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1666 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1667 * java/lang/Class.h (Object): Added `class$' field.
1668 * java/lang/Object.h (Object): Added `class$' field.
1669 * defineclass.cc (ClassClass): Use `class$' form.
1670 (ClassObject): Likewise.
1671 * resolve.cc (ClassObject): Use `class$' form.
1672 (ObjectClass): Likewise.
1673 * interpret.cc (ClassError): Removed.
1674 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1676 (IntegerClass): Likewise.
1677 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1679 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1680 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1681 SerializableClass): Likewise.
1682 Include Serializable.h, Cloneable.h.
1683 * java/lang/natSystem.cc (SystemClass): Removed.
1684 (init_properties): Use `class$' form.
1685 * java/lang/natObject.cc (CloneableClass): Removed.
1686 (clone): Use `class$' form.
1687 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1688 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1689 ConstructorClass): Likewise.
1690 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1691 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1692 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1693 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1695 (ClassClass): Likewise.
1696 * include/jvm.h (StringClass): Use `class$' form.
1697 * prims.cc (ObjectClass): Removed.
1698 (_Jv_RunMain): Use `class$' form.
1699 (_Jv_AllocObject): Likewise.
1700 * jni.cc (ClassClass): Use `class$' form.
1701 (ThrowableClass): Likewise.
1702 (ObjectClass): Likewise.
1703 (MethodClass): Likewise.
1704 (ThreadGroupClass): Likewise.
1705 (NativeThreadClass): Likewise.
1706 * boehm.cc (ObjectClass): Removed.
1707 (ClassClass): Removed.
1708 (_Jv_MarkObj): Use `class$' form.
1709 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1712 2000-10-05 Warren Levy <warrenl@cygnus.com>
1714 * Makefile.am: Removed java/io/Replaceable.java and
1715 java/io/Resolvable.java.
1716 * Makefile.in: Rebuilt.
1717 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1719 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1721 (processResolution): Handle readResolve method via reflection with
1722 removal of Resolvable interface.
1723 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1724 method via reflection with removal of Replaceable interface.
1725 * java/io/Replaceable.java: Removed.
1726 * java/io/Resolvable.java: Removed.
1727 * java/security/Key.java (serialVersionUID): New field.
1728 * java/security/Provider.java (serialVersionUID): New field.
1729 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1731 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1733 * java/sql/DataTruncation.java (serialVersionUID): New field.
1734 * java/sql/SQLException.java (serialVersionUID): New field.
1735 * java/sql/SQLWarning.java (serialVersionUID): New field.
1736 * java/util/Date.java (serialVersionUID): New field.
1737 (millis): Made transient.
1738 (readObject): New method.
1739 (writeObject): New method.
1741 2000-10-05 Tom Tromey <tromey@cygnus.com>
1743 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1745 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1747 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1748 (JvRunMain): Set _Jv_argv and _Jv_argc.
1749 * java/awt/Component.java: Minor fixes.
1750 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1751 * java/awt/Toolkit.java (systemEventQueue): Removed.
1752 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1753 * java/awt/Window.java (getToolkit): Don't call super.
1754 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1755 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1756 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1757 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1758 * gnu/awt/gtk/GtkFramePeer.java: New file.
1759 * gnu/awt/gtk/GtkMainThread.java: New file.
1760 * gnu/awt/gtk/GtkToolkit.java: New file.
1761 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1762 * gnu/awt/gtk/gtkcommon.cc: New file.
1763 * gnu/awt/gtk/gtkcommon.h: New file.
1764 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1765 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1766 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1767 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1768 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1769 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1771 2000-09-30 Tom Tromey <tromey@cygnus.com>
1773 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1774 interrupted before modifying the cv's wait set.
1777 2000-09-30 Hans Boehm <boehm@acm.org>
1778 Bryce McKinlay <bryce@albatross.co.nz>
1780 Implement bitmap descriptor based marking for Boehm GC.
1782 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1783 * configure: Rebuilt.
1784 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1785 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1786 method get_finalizer().
1787 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1788 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1789 (_Jv_AllocObj): Add new jclass parameter.
1790 (_Jv_AllocArray): Ditto.
1791 (_Jv_BuildGCDescr): New prototype.
1792 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1793 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1794 get_finalizer() instead of direct finalizer vtable offset.
1795 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1796 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1797 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1798 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1799 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1800 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1801 (_Jv_DetermineVTableIndex): Ditto.
1802 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1803 calculations to account for new gc_descr field.
1804 * boehm.cc: #include gc_gcj.h.
1805 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1806 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1807 New commentary from HB. Mark the classes vtable.
1808 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1809 (GC_DEFAULT_DESCR): New #define.
1810 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1811 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1812 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1813 scan conservativly if size is less than min_heap_addr. Set vtable
1814 pointer of new object before returning.
1815 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1816 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1817 allocation for obj_kind_x.
1818 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1819 (_Jv_AllocObj): Set vtable on returned object.
1820 (_Jv_AllocArray): Ditto.
1821 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1822 (_Jv_NewPrimArray): Ditto.
1823 (_Jv_AllocObj): Declare as a friend.
1824 (_Jv_AllocArray): Ditto.
1825 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1826 from &ObjectClass into new array class. Remove offset-by-one
1827 adjustments from `method' size calculations to account for gc_descr
1830 2000-09-26 Tom Tromey <tromey@cygnus.com>
1832 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1833 `remove', not `add'.
1835 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1837 * java/lang/natSystem.cc (file_encoding): Added return statement.
1839 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1841 * Makefile.am: Re-work shell commands that exceeded command-line
1843 * Makefile.in: Rebuilt.
1845 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1847 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1848 * java/lang/natDouble.cc: Likewise.
1849 * java/lang/reflect/natMethod.cc: Likewise.
1850 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1852 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1854 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1856 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1857 * acinclude.m4: Arrange for automake to not bring in a new
1858 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1859 * Makefile.am: Leave it up to automake to subst GCJ.
1860 * aclocal.m4, configure, Makefile.in: Rebuilt.
1862 2000-09-13 Tom Tromey <tromey@cygnus.com>
1864 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1865 (get): Ensure Boolean class is initialized.
1866 * java/lang/reflect/natField.cc (BooleanClass): New define.
1867 (get): Ensure Boolean class is initialized.
1869 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1871 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1872 Initialize with anonymous class.
1873 (compareToIgnoreCase): New method.
1875 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1876 (uncaughtException): Set had_uncaught_exception.
1877 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1878 exit with error status if set.
1879 (_Jv_RunMain): Ditto.
1881 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1883 * configure: Rebuilt with new ../libtool.m4.
1885 2000-09-11 Tom Tromey <tromey@cygnus.com>
1887 * java/lang/reflect/Field.java (toString): Don't rely on
1890 2000-09-08 Tom Tromey <tromey@cygnus.com>
1892 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1893 default decoder use iconv.
1894 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1895 Let default encoder use iconv.
1896 * configure: Rebuilt.
1897 * configure.in: Check for nl_langinfo and <langinfo.h>.
1898 * java/lang/natSystem.cc (file_encoding): New function.
1899 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1901 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1903 * acinclude.m4: Simplify the tests for CC and CXX.
1904 * aclocal.m4, configure: Rebuilt.
1906 * acinclude.m4: Include libtool macros from the source tree.
1907 * aclocal.m4, configure: Rebuilt.
1909 2000-09-08 Warren Levy <warrenl@cygnus.com>
1911 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1912 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1913 * java/io/File.java (writeObject): Added.
1914 (readObject): Added.
1915 (serialVersionUID): Added.
1916 * java/io/ObjectOutputStream.java (writeObject): Initialized
1917 fieldsAlreadyWritten before recursion rather than after.
1918 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1919 * java/io/OptionalDataException.java (serialVersionUID): Added.
1920 (OptionalDataException): Made package private.
1921 * java/io/SyncFailedException.java (SyncFailedException): Removed
1922 default constructor to match spec.
1923 * java/lang/Boolean.java (serialVersionUID): Added.
1924 * java/lang/Byte.java (serialVersionUID): Added.
1925 * java/lang/Character.java (serialVersionUID): Added.
1926 * java/lang/Double.java (serialVersionUID): Added.
1927 * java/lang/Float.java (serialVersionUID): Added.
1928 * java/lang/Integer.java (serialVersionUID): Added.
1929 * java/lang/Long.java (serialVersionUID): Added.
1930 * java/lang/Number.java (serialVersionUID): Added.
1931 * java/lang/Short.java (serialVersionUID): Added.
1932 * java/lang/String.java (serialVersionUID): Added.
1933 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1935 * java/lang/reflect/InvocationTargetException.java
1936 (serialVersionUID): Added.
1937 * java/net/URL.java (handler): Made transient.
1938 (hashCode): Added field for serialization, per spec. and use
1939 cached value if available.
1940 (serialVersionUID): Added.
1941 (URL): Initialize hashCode.
1942 (set): Adjust hashCode.
1943 (readObject): New Method to initialize the protocol handler when
1945 (writeObject): New method.
1946 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1947 * java/text/Collator.java: Removed 'implements Serializable'.
1948 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1949 * java/util/Properties.java (serialVersionUID): Added.
1950 * java/util/Random.java (serialVersionUID): Added.
1951 (seed): Made private.
1952 (nextNextGaussian): Made private.
1953 (haveNextNextGaussian): Made private.
1954 * java/util/Stack.java (serialVersionUID): Added.
1955 * java/util/TimeZone.java (serialVersionUID): Added.
1956 * java/util/Vector.java (serialVersionUID): Added.
1958 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1960 * Makefile.am (Thread.h): Don't be friends with native threads
1962 * Makefile.in: Rebuilt.
1963 * java/lang/Thread.java (interrupt_flag): Make package-private.
1965 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1967 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1968 to avoid long long division.
1970 2000-09-06 Tom Tromey <tromey@cygnus.com>
1972 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1974 * java/lang/reflect/Method.java (toString): Use `getName' for
1977 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1978 `args' if method takes no parameters.
1980 Fix for PR java.lang/339:
1981 * java/lang/natPosixProcess.cc (fail): New function.
1982 (cleanup): New function.
1983 (startProcess): Use them. Create pipe so child can communicate
1984 exec failure back to parent.
1986 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1988 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1990 (send): Undo last patch. Remove the label only.
1992 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1994 * java/net/natInetAdress.cc: Ditto.
1996 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1998 2000-09-05 Tom Tromey <tromey@cygnus.com>
2000 * doc/cni.sgml: Updated from master copy.
2002 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2004 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2006 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2008 * java/lang/fdlibm.h: #undef __P if previously defined.
2009 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2010 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2014 2000-09-04 Tom Tromey <tromey@cygnus.com>
2016 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2019 2000-09-04 Anthony Green <green@redhat.com>
2021 Fix for PR java.io/203:
2022 * java/io/File.java (createTempFile): Obey directory argument.
2023 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2024 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2025 variable to set java.io.tmpdir on non-WIN32 systems.
2027 2000-09-04 Anthony Green <green@redhat.com>
2029 * java/io/File.java (deleteOnExit): New method.
2030 * gnu/gcj/runtime/FileDeleter.java: New class.
2031 * java/lang/natRuntime.cc (exit): Call
2032 FileDeleter.deleteOnExitNow()
2033 * Makefile.am: Add FileDeleter.java.
2034 * Makefile.in: Rebuilt.
2036 2000-09-02 Tom Tromey <tromey@cygnus.com>
2038 * Makefile.in: Rebuilt.
2039 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2040 environment variable.
2042 2000-09-01 Andrew Haley <aph@redhat.com>
2044 * java/io/StreamTokenizer.java: Don't throw a
2045 NumberFormatException if a field is numeric as far as the
2046 StreamTokenizer is concerned but not as far as Double.valueOf() is
2047 concerned: return a zero instead.
2049 2000-08-30 Tom Tromey <tromey@cygnus.com>
2051 * Makefile.in: Rebuilt.
2052 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2054 2000-08-28 Tom Tromey <tromey@cygnus.com>
2056 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2057 gnu/gcj/awt/ComponentDataBlitOp.java,
2058 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2059 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2060 java/awt/color/ICC_ColorSpace.java,
2061 java/awt/color/ICC_Profile.java,
2062 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2063 java/awt/image/ComponentColorModel.java,
2064 java/awt/image/ComponentSampleModel.java,
2065 java/awt/image/DataBuffer.java,
2066 java/awt/image/DataBufferByte.java,
2067 java/awt/image/DataBufferInt.java,
2068 java/awt/image/DataBufferUShort.java,
2069 java/awt/image/DirectColorModel.java,
2070 java/awt/image/IndexColorModel.java,
2071 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2072 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2073 java/awt/image/SinglePixelPackedSampleModel.java,
2074 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2075 Removed Latin-1 copyright symbols.
2076 * java/util/zip/ZipFile.java: Indentation fixes.
2078 2000-08-27 Mark Wielaard <mark@klomp.org>
2080 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2081 constructor, close can delete the file, finalize calls close.
2082 * java/util/jar/JarFile.java: Constructor that takes mode now
2085 2000-08-27 Anthony Green <green@redhat.com>
2087 * java/util/ArrayList.java, java/util/Timer.java,
2088 java/util/LinkedList.java, java/util/TimerTask.java,
2089 java/util/HashMap.java, java/util/AbstractMap.java,
2090 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2091 java/util/SortedSet.java: Imported from GNU Classpath.
2092 * Makefile.in: Rebuilt.
2093 * Makefile.am: Added new files.
2095 2000-08-26 Anthony Green <green@redhat.com>
2097 * Makefile.in: Rebuilt.
2098 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2101 * prims.cc: Include ClassLoader.h.
2102 (_Jv_RunMain): When executing jar files, classpath must be the jar
2103 file only. Lose our reference to the system ClassLoader in order
2104 to get a new one with the correct classpath.
2105 * java/lang/natSystem.cc (init_properties): When executing a jar
2106 file, only use the jar file for java.class.path.
2108 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2109 for bytecode archives.
2111 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2112 exists, but not Main-Class.
2114 2000-08-23 Mark Wielaard <mark@klomp.org>
2116 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2117 return -1 when fill() has no more data for the Inflater.
2119 2000-08-23 Mark Wielaard <mark@klomp.org>
2121 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2122 write(String) already does.
2124 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2126 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2127 to `alive_flag', call `init'.
2128 (init): New native method.
2129 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2132 2000-08-21 Mark Wielaard <mark@klomp.org>
2134 * Makefile.in: Rebuilt.
2135 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2137 (java/lang/reflect/Field.h): Likewise.
2138 (java/lang/reflect/Method.h): Likewise.
2139 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2142 2000-08-21 Tom Tromey <tromey@cygnus.com>
2144 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2147 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2149 * java/lang/natSystem.cc (init_properties): Change sourceware
2150 reference to sources.redhat.com.
2152 * include/java-props.h: Add _Jv_Jar_Class_Path.
2153 * prims.cc: Ditto. Set it from `gij -jar file' option.
2155 * java/lang/natSystem.cc (init_properties): Set java.class.path
2157 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2159 * java/util/PropertyPermission.java: Import from GNU Classpath.
2160 * Makefile.in: Rebuilt.
2161 * Makefile.am: Add java/util/PropertyPermission.java.
2162 * java/lang/System.java: Add setProperty method.
2164 * gij.cc (main): Add -jar option to execute jar files.
2165 (help): Describe -jar option.
2166 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2167 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2168 * gnu/gcj/runtime/FirstThread.java (main): New method.
2170 * java/util/jar/Attributes.java: Correct comment spelling.
2172 2000-08-20 Mark Wielaard <mark@klomp.org>
2174 * java/util/zip/Adler32.java: Make private variables really private
2175 * java/util/zip/CRC32.java: Make private variables really private
2176 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2178 * java/util/zip/InflaterInputStream.java: skip() could skip to
2180 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2181 * java/util/zip/ZipFile.java: size() new 1.2 method
2182 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2183 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2186 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2188 * java/util/jar/JarFile.java: Don't call
2189 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2192 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2194 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2195 Read the entire contents of the class file, not just what is
2198 * java/net/JarURLConnection.java: getEntry doesn't take any
2199 arguments. Return null if element is null.
2201 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2202 size from the archive, not the inflated size.
2204 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2205 java.util.zip.ZipFile.getEntry.
2207 * gij.cc (help): Change sourceware reference to
2210 2000-08-19 Tom Tromey <tromey@cygnus.com>
2212 * java/util/zip/ZipInputStream.java (createZipEntry):
2215 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2217 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2218 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2219 java/util/jar/JarInputStream.java,
2220 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2221 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2222 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2223 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2224 java/security/cert/Certificate.java,
2225 java/security/cert/CertificateEncodingException.java,
2226 java/security/cert/CertificateException.java,
2227 java/security/cert/CertificateExpiredException.java,
2228 java/security/cert/CertificateFactory.java,
2229 java/security/cert/CertificateFactorySpi.java,
2230 java/security/cert/CertificateNotYetValidException.java,
2231 java/security/cert/CertificateParsingException.java,
2232 java/security/cert/X509CRL.java,
2233 java/security/cert/X509CRLEntry.java,
2234 java/security/cert/X509Certificate.java,
2235 java/security/cert/X509Extension.java: Imported from Classpath.
2236 * java/util/Hashtable.java: Imported from Classpath.
2238 * java/util/zip/ZipInputStream.java: Create stub for
2241 * gcj/javaprims.h: Updated class list.
2243 * Makefile.in, gcj/Makefile.in: Rebuilt.
2244 * Makefile.am (ordinary_java_source_files): Add these new classes.
2246 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2248 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2249 * gnu/gcj/awt/GLightweightPeer.java: New file.
2250 * java/awt/BorderLayout.java: Implemented all methods.
2251 * java/awt/Button.java (actionListener, actionCommand): Renamed
2252 and modifier change.
2253 (addNotify): Call super.
2254 (dispatchEventImpl): New method.
2255 (getListeners): New method.
2256 (label): Made package-private, not private.
2257 * java/awt/Canvas.java: Implemented class body.
2258 * java/awt/Color.java (brighter): New method.
2259 (darker): New method.
2260 (hashCode): New method.
2261 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2262 (getGraphicsConfiguration): Delegate to
2263 getGraphicsConfigurationImpl().
2264 (getGraphicsConfigurationImpl): New method.
2265 (getToolkit): Only return value from peer if not null.
2266 (isDisplayable): Check with parent.
2267 (isShowing): No parent implies not showing.
2268 (getForeground): Check parent property if local is null.
2269 (getBackground): Likewise.
2270 (getFont): Likewise.
2271 (setForeground): Inform peer.
2272 (setBackground): Likewise
2273 (setLocale): Invalidate component.
2274 (getColorModel): Implemented.
2275 (setLocation): Invalidate, or ignore if no change.
2276 (setSize): Invalidate, or ignore if no change.
2277 (setBounds): Invalidate, or ignore if no change.
2278 (isOpaque): By default, heavyweight implies opaque.
2279 (isLightweight): Implemented.
2280 (getMaximumSize): Implemented.
2281 (doLayout): Implemented, NOP.
2282 (validate): Implemented, NOP.
2283 (invalidate): Only propagate to parent if parent was valid.
2284 (getGraphics): Implemented.
2285 (getFontMetrics): Implemented.
2286 (update): Implemented.
2287 (paintAll): Implemented.
2288 (repaint): Implemented all repaint methods.
2289 (print): Implemented.
2290 (printAll): Implemented.
2291 (createImage): Implemented.
2292 (dispatchEvent): Give the peer a chance to handle the event.
2293 (dispatchEventImpl): Dispatch paint events.
2294 (enableEvents): Lightweights enable events on parent component.
2295 (coalesceEvents): Coalesce paint events, and select event type
2297 (coalescePaintEvents): New method.
2298 (processEvent): Fix unfortunate ordering of statements, and call
2299 correct method for MOUSE_CLICKED.
2300 (processPaintEvent): New method.
2301 (addNotify): Allow container to notify children before event
2302 mask is set in peer.
2303 (addNotifyContainerChildren): New method.
2304 (removeNotify): Visibility should not change on removeNotify.
2305 (paramString): Implemented.
2306 (list): Implemented two of the list methods.
2307 * Container (myInsets): Removed, insets are managed by peer.
2308 (getInsets): Query peer.
2309 (addImpl): Fix reparenting, enable events for lightweights,
2310 initialize component array.
2311 (validate): Call doLayout in validateTree() instead.
2312 (validateTree): Do nothing if already valid. Call beginValidate(),
2313 endValidate() on peer. Call validateTree() instead of validate()
2314 for children that are containers. Mark valid after validation of
2316 (setFont): Partial implementation.
2317 (paint): Implemented.
2318 (visitChildren): New method.
2319 (visitChild): New method.
2320 (update): Implemented.
2321 (print): Implemented.
2322 (paintComponents): Implemented.
2323 (printComponents): Consider translation and clipping.
2324 (getComponentAt): Ignore invisible children. Return this if no
2326 (addNotify): Call super.
2327 (addNotifyContainerChildren): New method.
2328 (paramString): Implemented.
2329 (list): Implemented.
2330 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2332 (invokeLater): Likewise.
2333 (isDispatchThread): Likewise.
2334 * java/awt/FontMetrics (getLeading): Formula change.
2335 (getDescent): Consider leading also.
2336 (getMaxAscent): Default to getAscent().
2337 (getMaxDescent): Default to getDescent.
2338 (getMaxAdvance): Return value signifying unknown.
2339 (charWidth): Both methods implemented.
2340 (charsWidth): Implemented.
2341 (bytesWidth): Implemented.
2342 (getWidths): Implemented.
2343 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2345 (Frame): Rearragend constuctor chaining to disallow null being
2346 passed as a graphics configuration.
2347 (getTitle): Return empty string if null.
2349 (getIconImage): New method.
2350 (setIconImage): New method.
2351 (finalize): New method.
2352 (setMenuBar): Notify peer.
2353 (isResizable): New method.
2354 (setResizable): New method.
2355 (getState): New method.
2357 (remove): Implemented.
2358 (removeNotify): New method.
2359 (getFrames): New method.
2360 * java/awt/Graphics.java: Implemented body of class.
2361 * java/awt/Graphics2D.java: New file.
2362 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2363 * java/awt/Image.java: Implemented body of class.
2364 * java/awt/Panel.java (Panel): Call correct super constructor.
2365 (addNotify): Implemented.
2366 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2367 * java/awt/RenderingHints.java: New file.
2368 * java/awt/Toolkit.java (createComponent): Implemented.
2369 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2370 * java/awt/Window.java (Window): Two new constructors. Reordered
2371 constructor chaining.
2372 (getGraphicsConfigurationImpl): New method.
2373 (finalize): Call super.
2374 (addNotify): Call super.
2375 (pack): Do layout stuff.
2376 (show): Ensure that peer exists and that component is valid.
2377 (dispose): Dispose owned children.
2378 (getOwner): Simplify code, casting null pointers is valid.
2379 (getGraphicsConfiguration): Ask peer if local value is null.
2380 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2382 * java/awt/image/BufferedImage.java: New file.
2383 * java/awt/image/RasterOp.java: New file.
2384 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2385 More powerfull replacement for getColorModel().
2386 (getColorModel) Removed.
2387 (setEventMask) New method.
2388 * Makefile.am: Added new files.
2389 * Makefile.in: Rebuilt.
2391 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2393 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2394 (finit_leg_name): New global.
2395 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2396 `$finit$'. This is a backward compatibility hack.
2397 (java::lang::Class::_getMethods): Likewise.
2399 2000-08-15 Andrew Haley <aph@cygnus.com>
2401 * include/jvm.h (_Jv_HashCode): New hash code.
2403 2000-08-15 Tom Tromey <tromey@cygnus.com>
2405 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2407 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2409 * THANKS: More thanks.
2411 2000-08-10 Tom Tromey <tromey@cygnus.com>
2413 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2415 (connect): Likewise.
2417 (getOption): Likewise.
2418 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2419 case when errno not set.
2422 (receive): Likewise.
2423 (mcastGrp): Likewise.
2424 (setOption): Likewise.
2425 (getOption): Likewise.
2427 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2428 John Stracke <francis@ecal.com>
2430 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2431 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2433 (disconnect): Don't unset connected flag.
2434 (getHeaderField (String)): Call connect() if not connected.
2435 (getHeaderField (int)): Ditto.
2436 (getHeaderFieldKey): Ditto.
2437 (getHttpHeaders): Don't call connect().
2438 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2439 gotResponseVals): New fields.
2440 (getResponseCode): Call getResponseVals() conditionally.
2441 (getResponseMessage): Ditto.
2442 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2444 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2446 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2447 * Makefile.in: Rebuilt.
2448 * java/awt/Color.java (getTransparency): New method.
2449 * java/awt/Component.java: Various updates.
2450 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2451 after dealing with children.
2452 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2453 * java/awt/Window.java: Various new methods and updates.
2454 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2456 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2457 * java/awt/event/WindowEvent.java (paramString): Ditto.
2458 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2460 * java/awt/geom/Point2D.java (clone): Ditto.
2461 * java/awt/geom/RectangularShape.java (clone): Ditto.
2462 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2463 isAlphaPremultiplied): Make package-private, not private.
2465 2000-08-08 Tom Tromey <tromey@cygnus.com>
2467 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2468 surrogate characters.
2469 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2471 (write): Correct handling of surrogate characters.
2473 2000-08-07 Tom Tromey <tromey@cygnus.com>
2475 * java/lang/reflect/Method.java (hashCode): Use getName().
2476 (toString): Likewise.
2477 * java/lang/reflect/natMethod.cc (getType): Initialize
2480 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2482 * java/lang/reflect/Field.java (toString): Correct formatting.
2485 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2487 (receive): Streamlined.
2489 2000-08-05 Tom Tromey <tromey@cygnus.com>
2491 * java/io/PrintWriter.java: Merged comments from Classpath.
2492 (printlnUnsynchronized): Removed.
2493 (println()): Print the separator.
2494 (println): Call println(), not printlnUnsynchronized.
2495 (out): Now protected, to match spec.
2497 2000-08-04 Tom Tromey <tromey@cygnus.com>
2499 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2500 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2503 2000-08-03 Warren Levy <warrenl@cygnus.com>
2505 * java/io/ObjectInputStream.java (readFields): Turn off
2506 readDataFromBlock while reading via GetField.
2507 (GetField$1.get(String, Object)): Pass Class of default value to
2509 (getField): Allow for null default values.
2511 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2512 (PutField$1.put): Fixed calls of checkType in most of the put
2513 methods to pass the correct parameter.
2514 (PutField$1.put(String, Object)): Allow for null value arg.
2515 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2518 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2519 typo in spec'ed field name.
2520 (getSerialPersistentFields): Changed spelling of method to match
2521 the correct spelling of the spec'ed field name.
2523 2000-08-03 Tom Tromey <tromey@cygnus.com>
2525 * Makefile.in: Rebuilt.
2526 * Makefile.am (awt_java_source_files): Added new files.
2528 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2530 * Makefile.am: Add new AWT stubs.
2531 * java/awt/Canvas.java: New placeholder class.
2532 * java/awt/Checkbox.java: Ditto.
2533 * java/awt/CheckboxMenuItem.java: Ditto.
2534 * java/awt/Choice.java: Ditto.
2535 * java/awt/Dialog.java: Ditto.
2536 * java/awt/FileDialog.java: Ditto.
2537 * java/awt/List.java: Ditto.
2538 * java/awt/ScrollPane.java: Ditto.
2539 * java/awt/TextField.java: Ditto.
2540 * java/awt/datatransfer/Clipboard.java: Ditto.
2541 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2542 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2543 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2544 Some commented out. Partially implemented.
2545 * java/awt/natToolkit.cc: Removed file.
2547 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2549 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2550 Fixes "make -j" builds.
2551 * Makefile.in: Rebuild.
2553 2000-08-02 Tom Tromey <tromey@cygnus.com>
2555 * Makefile.in: Rebuilt.
2556 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2557 * java/net/natPlainSocketImpl.cc: Include posix.h.
2558 (accept): Use _Jv_select.
2559 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2560 (receive): Use _Jv_select.
2561 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2562 (available): Use _Jv_select.
2563 * java/lang/natSystem.cc: Include posix.h.
2564 (currentTimeMillis): Use _Jv_gettimeofday.
2565 * include/posix.h: New file.
2566 * posix.cc: New file.
2568 * scripts/encodings.pl: New file.
2569 * Makefile.in: Rebuilt.
2570 * Makefile.am (convert_source_files): Added IOConverter.java.
2571 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2573 (getDefaultDecodingClass): Canonicalize default encoding name.
2574 (getEncoder): Likewise.
2575 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2577 (getDefaultDecodingClass): Canonicalize default encoding name.
2578 (getDecoder): Likewise.
2579 * gnu/gcj/convert/IOConverter.java: New file.
2581 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2583 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2584 to match C declaration in ffi.h.
2585 * Makefile.am: Add java/awt/Button.java.
2586 * Makefile.in: Rebuilt.
2588 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2590 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2591 cast of the second argument to `ffi_raw_call' changed to match
2594 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2596 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2597 argument to `ffi_raw_call' changed to match prototype.
2599 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2601 * java/awt/Component.java (toString): Implemented.
2602 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2603 dispatchEvent() to dispatch the event.
2604 (removeImpl): Ditto.
2606 2000-07-30 Anthony Green <green@redhat.com>
2608 * java/awt/Component.java: Add treeLock object.
2609 (getTreeLock): Implement.
2610 (isShowing): Implement.
2612 2000-07-30 Tom Tromey <tromey@cygnus.com>
2614 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2616 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2618 * java/awt/Window.java (addNotify): Wrote.
2619 (addWindowListener): Wrote.
2621 (getWarningString): Wrote.
2622 (processEvent): Wrote.
2623 (processWindowEvent): Wrote.
2624 (removeWindowListener): Wrote.
2625 (show): Call validate(), setVisible().
2629 * java/awt/Toolkit.java (createWindow): Declare.
2631 * java/awt/Frame.java (addNotify): Use getToolkit to find
2634 * java/awt/Component.java (invalidate): Wrote.
2636 (getToolkit): Wrote.
2638 * java/awt/Container.java (addContainerListener): Removed
2640 (removeContainerListener): Likewise.
2642 (add(Component)): Use it.
2643 (add(String,Component)): Likewise.
2644 (add(Component,int)): Likewise.
2645 (add(Component,Object)): Likewise.
2646 (add(Component,Object,int)): Likewise.
2648 (getAlignmentX): Wrote.
2649 (getAlignmentY): Wrote.
2650 (getComponentAt): Wrote.
2651 (getMaximumSize): Wrote.
2652 (invalidate): Wrote.
2653 (list(PrintStream,int)): Wrote.
2654 (list(PrintWriter,int)): Wrote.
2655 (getMinimumSize): Wrote.
2656 (getPreferredSize): Wrote.
2657 (printComponents): Wrote.
2658 (processContainerEvent): Look at containerListener, not
2660 (remove): Added event processing and peer destruction.
2661 (removeAll): Use remove.
2662 (removeNotify): Wrote.
2664 (validateTree): Wrote.
2666 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2667 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2668 * java/awt/Container.java (addNotify): Don't create Container
2670 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2672 2000-07-30 Tom Tromey <tromey@cygnus.com>
2674 * java/awt/Container.java (remove(int)): Wrote.
2675 (remove(Component)): Wrote.
2676 (add(Component)): Wrote.
2677 (add(Component,int)): Wrote.
2679 (addNotify): Set our own peer.
2680 * java/awt/Scrollbar.java (listeners): Changed type.
2681 (Scrollbar): Don't initialize listeners.
2683 (setValue): Call setValues.
2684 (setMinimum): Likewise.
2685 (setMaxPriority): Likewise.
2686 (setVisibleAmount): Likewise.
2688 (setUnitIncrement): Forward to peer.
2689 (setLineIncrement): Call setUnitIncrement.
2690 (setPageIncrement): Call setBlockIncrement.
2691 (setBlockIncrement): Forward to peer.
2692 (addAdjustmentListener): Rewrote.
2693 (removeAdjustmentListener): Rewrote.
2694 (processAdjustmentEvent): Rewrote.
2695 (paramString): Wrote.
2696 * Makefile.in: Rebuilt.
2697 * Makefile.am (awt_java_source_files): Added Button.java.
2698 * java/awt/Button.java: New file.
2699 * java/awt/Toolkit.java (createLabel): Declare.
2700 (createButton): Likewise.
2701 (createScrollbar): Likewise.
2702 (createContainer): Likewise.
2703 * java/awt/Label.java (addNotify): Wrote.
2704 (setAlignment): Call setAlignment in the peer.
2705 (setText): Call setText in the peer.
2707 2000-07-28 Warren Levy <warrenl@cygnus.com>
2709 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2710 NotSerializableException with just the class name.
2712 2000-07-26 Andrew Haley <aph@cygnus.com>
2714 * interpret.cc (continue1): Insert missing break into switch.
2716 2000-07-28 Warren Levy <warrenl@cygnus.com>
2718 * java/io/ObjectStreamException.java: Made constructors protected.
2720 2000-07-27 Tom Tromey <tromey@cygnus.com>
2722 * java/io/OutputStreamWriter.java (close): Only flush if not
2725 2000-07-27 Warren Levy <warrenl@cygnus.com>
2727 * mauve-libgcj: Activated serialization tests.
2728 * gcj/field.h (getModifiers): Mask off unknown flags.
2729 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2730 spurious bits don't cause discrepancies.
2731 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2732 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2733 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2734 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2735 * java/lang/Throwable.java (serialVersionUID): New field.
2736 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2737 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2739 * java/lang/reflect/natMethod.cc: Ditto.
2740 * java/security/Key.java (serialVersionUID): Removed field for now.
2741 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2742 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2744 2000-07-22 Tom Tromey <tromey@cygnus.com>
2746 * java/awt/geom/RectangularShape.java (getPathIterator):
2749 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2751 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2752 stub libjava/java/awt/ColorModel.java which was located in the
2754 * libjava/java/awt/image/ComponentColorModel.java: New file.
2755 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2756 * libjava/java/awt/image/DataBuffer.java: New file.
2757 * libjava/java/awt/image/DataBufferByte.java: New file.
2758 * libjava/java/awt/image/DataBufferInt.java: New file.
2759 * libjava/java/awt/image/DataBufferUShort.java: New file.
2760 * libjava/java/awt/image/DirectColorModel.java: New file.
2761 * libjava/java/awt/image/PackedColorModel.java: New file.
2762 * libjava/java/awt/image/Raster.java: New file.
2763 * libjava/java/awt/image/SampleModel.java: New file.
2764 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2766 * libjava/java/awt/image/IndexColorModel.java: New file.
2767 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2768 java.awt.ColorModel stub.
2770 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2771 * gnu/gcj/util/Buffers.java: New file, utility class.
2773 * libjava/Makefile.am: Updated to include new files.
2774 * libjava/Makefile.in: Rebuilt.
2776 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2778 * java/io/StreamTokenizer.java: Merged with classpath.
2780 2000-07-20 Tom Tromey <tromey@cygnus.com>
2782 * Makefile.in: Rebuilt.
2783 * Makefile.am (awt_java_source_files): Updated for new files.
2784 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2785 * java/awt/Label.java: New file.
2786 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2787 (createIntersection, createUnion, getBounds2D): New methods.
2788 * java/awt/Scrollbar.java: New file.
2789 * java/awt/Shape.java: Updated to 1.2.
2790 * java/awt/geom/AffineTransform.java: New file.
2791 * java/awt/geom/Ellipse2D.java: New file.
2792 * java/awt/geom/NoninvertibleTransformException.java: New file.
2793 * java/awt/geom/PathIterator.java: New file.
2794 * java/awt/geom/Rectangle2D.java: New file.
2795 * java/awt/geom/RectangularShape.java: New file.
2796 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2797 * java/awt/geom/IllegalPathStateException.java: New file.
2799 * scripts/showval.java: New file.
2801 * scripts/classes.pl (scan): Print inner classes properly.
2802 * gcj/javaprims.h: Updated class list.
2804 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2805 initialize String fields for interpreted classes. Fixes bug
2806 reported by Hans Boehm.
2808 * java/io/File.java (getParentFile): New method, from Classpath
2809 via Oskar Liljeblad.
2811 * java/util/Vector.java (remove(Object)): Implemented.
2813 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2815 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2816 zero return from backtrace().
2818 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2820 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2822 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2823 before calling notifyAll().
2825 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2827 Add missing files from last check-in:
2828 * java/awt/image/ImageConsumer.java: New file.
2829 * java/awt/image/ImageProducer.java: New file.
2830 * java/awt/image/ImageObserver.java: New file.
2832 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2834 Merged implementation of java.applet from classpath:
2835 * java/applet/Applet.java: New file.
2836 * java/applet/AppletContext.java: New file.
2837 * java/applet/AppletStub.java: New file.
2838 * java/applet/AudioClip.java: New file.
2840 * Makefile.am: Added new java.applet classes.
2841 * Makefile.in: Rebuilt.
2843 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2846 * java/util/ResourceBundle.java (getLocale): stub.
2847 * Makefile.am: Added new AWT classes.
2848 * Makefile.in: Rebuilt.
2849 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2850 constructors. Fix toString() and paramString().
2851 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2852 * java/awt/CheckboxGroup.java: New class.
2853 * java/awt/ColorModel.java: New class.
2854 * java/awt/Component.java: Added stubs for most methods. Implemented
2856 * java/awt/Container.java: ditto.
2857 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2858 * java/awt/Cursor.java: ditto.
2859 * java/awt/Event.java: Fix paramString().
2860 * java/awt/EventQueue.java: New class. Implemented.
2861 * java/awt/Font.java: Added additional stub methods. Implemented
2863 * java/awt/FontMetrics.java: New class. Stubbed.
2864 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2866 * java/awt/Insets.java: New class. Implemented.
2867 * java/awt/Menu.java: Add new methods. Partially implemented.
2868 * java/awt/MenuItem.java: Add new methods and fields. Partially
2870 * java/awt/MenuShortcut.java: New class. Implemented.
2871 * java/awt/Panel.java: New class. Placeholder.
2872 * java/awt/PopupMenu.java: New class. Stubbed.
2873 * java/awt/Rectangle.java: New class. Implemented.
2874 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2875 * java/awt/event/ActionEvent.java: Implement paramString().
2876 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2877 * java/awt/event/ComponentEvent.java: Implement paramString().
2878 * java/awt/event/ContainerEvent.java: Implement paramString().
2879 * java/awt/event/FocusEvent.java: Implement paramString().
2880 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2881 * java/awt/event/HierarchyBoundsListener.java: New class.
2882 * java/awt/event/HierarchyEvent.java: New class.
2883 * java/awt/event/HierarchyListener.java: New class.
2884 * java/awt/event/InputMethodEvent.java: Implement paramString().
2885 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2886 exception if !catchExceptions.
2887 * java/awt/event/ItemEvent.java: Implement paramString().
2888 * java/awt/event/KeyEvent.java: Implement paramString().
2889 * java/awt/event/MouseEvent.java: Implement paramString().
2890 * java/awt/event/PaintEvent.java: Implement paramString().
2891 * java/awt/event/TextEvent.java: Implement paramString().
2892 * java/awt/event/WindowEvent.java: Implement paramString().
2894 AWT Peer interfaces:
2895 * java/awt/peer/ButtonPeer.java: New file.
2896 * java/awt/peer/ListPeer.java: New file.
2897 * java/awt/peer/CanvasPeer.java: New file.
2898 * java/awt/peer/MenuBarPeer.java: New file.
2899 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2900 * java/awt/peer/MenuComponentPeer.java: New file.
2901 * java/awt/peer/CheckboxPeer.java: New file.
2902 * java/awt/peer/MenuItemPeer.java: New file.
2903 * java/awt/peer/ChoicePeer.java: New file.
2904 * java/awt/peer/MenuPeer.java: New file.
2905 * java/awt/peer/ComponentPeer.java: Implemented.
2906 * java/awt/peer/PanelPeer.java: New file.
2907 * java/awt/peer/ContainerPeer.java: Implemented.
2908 * java/awt/peer/PopupMenuPeer.java: New file.
2909 * java/awt/peer/DialogPeer.java: New file.
2910 * java/awt/peer/ScrollPanePeer.java: New file.
2911 * java/awt/peer/FileDialogPeer.java: New file.
2912 * java/awt/peer/ScrollbarPeer.java: New file.
2913 * java/awt/peer/FontPeer.java: New file.
2914 * java/awt/peer/TextAreaPeer.java: New file.
2915 * java/awt/peer/FramePeer.java: Implemented.
2916 * java/awt/peer/TextComponentPeer.java: New file.
2917 * java/awt/peer/LabelPeer.java: New file.
2918 * java/awt/peer/TextFieldPeer.java: New file.
2919 * java/awt/peer/LightweightPeer.java: New file.
2920 * java/awt/peer/WindowPeer.java: Implemented.
2922 2000-07-06 Tom Tromey <tromey@cygnus.com>
2924 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2925 Initialize static final String fields.
2927 2000-07-03 Tom Tromey <tromey@cygnus.com>
2929 * java/io/PrintWriter.java (print): Call write(String), not
2930 print(String). See PR libgcj/277.
2931 (print(String)): Use write, not out.write.
2933 2000-06-30 Tom Tromey <tromey@cygnus.com>
2935 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2937 2000-06-27 Andrew Haley <aph@cygnus.com>
2939 * java/io/File.java (createTempFile): Close the FileDescriptor
2940 used to create a temp file. Fixes some of PR 203.
2941 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2942 collection if we run out of file handles.
2944 2000-06-28 Warren Levy <warrenl@cygnus.com>
2946 * gnu/java/security/provider/Gnu.java: New file.
2947 * gnu/java/security/provider/SHA.java: New file.
2948 * gnu/java/security/provider/SHA1PRNG.java: New file.
2949 * Makefile.am: Added the above files.
2950 * Makefile.in: Rebuilt.
2952 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2954 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2956 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2957 (destroyed_flag): Removed.
2958 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2959 (activeCount): Added spec note.
2961 2000-06-27 Warren Levy <warrenl@cygnus.com>
2963 * java/security/Principal.java: New file.
2964 * Makefile.am: Added Principal.java.
2965 * Makefile.in: Rebuilt.
2967 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2969 * java/awt/event/MouseEvent.java: Fixed coordinate space
2972 2000-06-27 Tom Tromey <tromey@cygnus.com>
2974 * java/io/PushbackInputStream.java (read): If there are characters
2975 in the buffer, don't also call super.read().
2976 * java/io/PushbackReader.java (read): If there are characters in
2977 the buffer, don't also call super.read().
2979 * java/lang/Double.java (valueOf): Call parseDouble().
2981 2000-06-26 Warren Levy <warrenl@cygnus.com>
2983 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2984 (newVal): Renamed to newValue.
2985 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2986 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2987 (revokeNow): Renamed to invalidateRefs.
2988 * java/io/OptionalDataException.java: Updated FIXME.
2989 (eof): New placeholder field.
2991 * java/io/WriteAbortedException.java (message): Made transient.
2992 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2993 * java/lang/Throwable.java (stackTrace): Made transient.
2994 * java/net/InetAddress.java: Made Serializable.
2995 * java/security/KeyPair.java: Made Serializable.
2996 * java/security/Provider.java: Replaced with Classpath version that
2997 implements serialization and proper methods.
2998 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2999 (limits): Renamed to choiceLimits.
3001 2000-06-24 Tom Tromey <tromey@cygnus.com>
3003 * java/lang/natDouble.cc (parseDouble): Renamed from
3005 * java/lang/Double.java (parseDouble): Renamed from
3006 doubleValueOf. Now public.
3008 2000-06-23 Andrew Haley <aph@cygnus.com>
3010 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3011 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3013 2000-06-23 Tom Tromey <tromey@cygnus.com>
3015 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3016 * java/lang/natDouble.cc: Always include <alloca.h>.
3017 Fix for PR libgcj/267.
3019 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3021 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3022 comply with classpath VM spec.
3023 (add(Group)): Rename to addGroup().
3024 * java/lang/Thread.java (Thread): Use addThread().
3025 * java/lang/natThread.cc (finish_): Use removeThread().
3027 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3029 * java/lang/ThreadGroup.java: Merged with classpath.
3030 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3031 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3033 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3034 ThreadGroup.root if Thread.currentThread is null. Honour the
3035 ThreadGroup's max priority setting.
3037 2000-06-18 Tom Tromey <tromey@cygnus.com>
3039 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3040 returned class. For PR gcj/260.
3042 2000-06-16 Tom Tromey <tromey@cygnus.com>
3044 Fix for PR libgcj/261:
3045 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3047 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3048 argument. (This is a patch from long ago that somehow went
3051 2000-06-15 Tom Tromey <tromey@cygnus.com>
3053 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3057 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3059 Fix for PR java.lang/258:
3060 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3061 JV_STATE_DONE, to prevent accidental initialization.
3062 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3063 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3064 interface or an abstract class. Remove redundant initializeClass calls.
3065 Remove duplicate if_idt test.
3066 (_Jv_InterfaceAssignableFrom): New function.
3067 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3069 2000-05-31 Tom Tromey <tromey@cygnus.com>
3071 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3072 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3073 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3074 (NUM_OBJECT_METHODS): New define.
3075 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3076 `array_vtable' parameter. Added assertion.
3077 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3080 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3082 * gcj/cni.h: Include <string.h>.
3083 * defineclass.cc: Include <alloca.h>.
3084 * interpret.cc: Ditto.
3085 * gij.cc: Include <stdlib.h>.
3087 2000-05-30 Tom Tromey <tromey@cygnus.com>
3089 * include/name-finder.h: Include <sys/wait.h>.
3090 (_Jv_name_finder::pid): Now of type `pid_t'.
3091 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3092 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3095 2000-05-24 Warren Levy <warrenl@cygnus.com>
3097 * java/io/ObjectOutputStream.java (writeObject): Use component type
3098 when writing arrays.
3101 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3103 Fix for PR libgcj/226:
3104 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3105 since this is an installed header.
3107 Fix for PR libgcj/228:
3108 * java/util/zip/ZipFile (getInputStream): Create inflater with
3111 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3112 with DataFormatException.
3114 2000-05-20 Tom Tromey <tromey@cygnus.com>
3116 * Makefile.in: Rebuilt.
3117 * Makefile.am (hack1): Removed.
3118 (awto_files): Likewise.
3119 (libgcjawt_la_SOURCES): Likewise.
3120 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3121 (libgcjawt_la_DEPENDENCIES): Likewise.
3122 (libgcjawt_la_LIBADD): Likewise.
3123 (libgcjawt_la_LDFLAGS): Likewise.
3124 (libgcjawt_la_LINK): Likewise.
3125 ($(awt_java_source_files:.java=.class)): Likewise.
3126 (libgcj.zip): Don't depend on AWT files.
3127 (MOSTLYCLEANFILES): Don't include AWT files.
3128 ($(awto_files)): Removed.
3129 (nat_headers): Removed AWT files.
3130 (cond_awt_java_source_files): Removed.
3131 (ordinary_java_source_files): Added awt_java_source_files.
3132 * libgcj.spec.in (*lib): Removed -lgcjawt.
3133 * configure: Rebuilt.
3134 * configure.in: Removed --enable-java-awt option.
3136 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3138 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3139 (ZipEntry): Copy the `name' field.
3140 (clone): Implement JDK1.2 method.
3141 (setCompressedSize): ditto.
3144 2000-05-19 Tom Tromey <tromey@cygnus.com>
3146 * java/io/BufferedWriter.java: Merged with Classpath.
3147 * java/io/BufferedOutputStream.java: Merged with Classpath.
3149 2000-05-16 Andrew Haley <aph@cygnus.com>
3151 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3152 build_ia64_frame_state.
3153 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3156 2000-05-15 Warren Levy <warrenl@cygnus.com>
3158 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3159 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3160 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3161 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3162 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3163 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3164 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3165 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3166 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3167 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3168 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3169 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3170 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3171 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3172 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3173 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3174 * gnu/gcj/io/NullOutputStream.java: Removed.
3175 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3176 * gnu/gcj/lang/ArrayHelper.java: Removed.
3177 * gnu/gcj/lang/ClassHelper.java: Removed.
3178 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3180 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3181 * gnu/java/beans/EmptyBeanInfo.java: New file.
3182 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3183 * gnu/java/beans/IntrospectionIncubator.java: New file.
3184 * gnu/java/beans/editors/ColorEditor.java: New file.
3185 * gnu/java/beans/editors/FontEditor.java: New file.
3186 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3187 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3188 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3189 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3190 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3191 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3192 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3193 * gnu/java/beans/editors/StringEditor.java: New file.
3194 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3195 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3196 * gnu/java/io/NullOutputStream.java: New file.
3197 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3198 * gnu/java/lang/ArrayHelper.java: New file.
3199 * gnu/java/lang/ClassHelper.java: New file.
3200 * gnu/java/lang/reflect/TypeSignature.java: New file.
3202 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3203 namespace back to the original Classpath gnu/java namespace.
3204 * Makefile.in: Rebuilt.
3206 * java/beans/Beans.java: Namespace change.
3207 * java/beans/EventSetDescriptor.java: Namespace change.
3208 * java/beans/Introspector.java: Namespace change.
3209 * java/beans/PropertyEditorManager.java: Namespace change.
3210 * java/io/ObjectInputStream.java: Namespace change.
3211 * java/io/ObjectOutputStream.java: Namespace change.
3212 * java/io/ObjectStreamClass.java: Namespace change.
3213 * java/io/ObjectStreamField.java: Namespace change.
3215 2000-04-21 Warren Levy <warrenl@cygnus.com>
3217 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3218 now that compiler patch is available.
3219 Removed unneeded System.loadLibrary.
3220 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3221 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3223 2000-04-19 Andrew Haley <aph@cygnus.com>
3225 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3226 and target classes have been initialized.
3228 2000-04-19 Andrew Haley <aph@cygnus.com>
3230 * java/lang/String.java: implement Serializable, Comparable.
3231 (compareTo (Object)): New method.
3233 2000-04-19 Warren Levy <warrenl@cygnus.com>
3235 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3236 instead of getField to retrieve non-public field.
3237 (getSerialPersistantFields): Ditto.
3239 2000-04-18 Warren Levy <warrenl@cygnus.com>
3241 * mauve-libgcj: Turned off object serialization tests temporarily
3242 due to compiler error.
3244 2000-04-17 Warren Levy <warrenl@cygnus.com>
3246 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3247 to avoid build problem.
3249 * mauve-libgcj: Turned on object serialization tests.
3251 2000-04-17 Tom Tromey <tromey@cygnus.com>
3253 * libgcj.spec.in (*lib): Added -lgcjawt.
3255 2000-04-17 Andrew Haley <aph@cygnus.com>
3257 * Makefile.am: Add new files:
3258 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3260 * Makefile.in: Rebuilt.
3262 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3263 interface that has no implementations.
3264 Check for an attempt to assign an abstract class to an interface.
3266 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3267 if we fail to find MessageDigest.getInstance ("SHA").
3269 * gnu/gcj/io/SimpleSHSStream.java: New file.
3270 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3271 * gnu/gcj/io/shs.cc: New file.
3272 * gnu/gcj/io/shs.h: new file.
3274 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3277 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3278 punctuation from the classname of an array element.
3280 * gcj/javaprims.h: Add SimpleDigestStream.
3282 2000-04-17 Andrew Haley <aph@cygnus.com>
3284 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3285 to getPrivateField for superclasses.
3287 2000-04-14 Andrew Haley <aph@cygnus.com>
3289 * Makefile.am: Add new files:
3290 java/io/ObjectOutputStream$PutField.h,
3291 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3292 java/io/natObjectOutputStream.cc
3293 * Makefile.in: Rebuilt.
3294 * gcj/Makefile.in: Rebuilt.
3295 * include/Makefile.in: Rebuilt.
3296 * java/lang/Class.h (getPrivateField): New method.
3297 (getPrivateMethod): Ditto.
3298 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3299 and java::io::ObjectStreamClass our friends.
3300 * java/lang/natClass.cc (getPrivateField): New method.
3301 (getPrivateMethod): Ditto.
3302 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3303 * gcj/javaprims.h: Add serialization classes.
3304 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3305 (setByteField): Ditto.
3306 (setCharField): Ditto.
3307 (setDoubleField): Ditto.
3308 (setFloatField): Ditto.
3309 (setIntField): Ditto.
3310 (setLongField): Ditto.
3311 (setShortField): Ditto.
3312 (setObjectField): Ditto.
3313 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3315 (getByteField): Ditto.
3316 (getCharField): Ditto.
3317 (getDoubleField): Ditto.
3318 (getFloatField): Ditto.
3319 (getIntField): Ditto.
3320 (getLongField): Ditto.
3321 (getShortField): Ditto.
3322 (getObjectField): Ditto.
3323 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3325 (getSerialPersistantFields): Ditto.
3326 (getDefinedSUID): Ditto.
3327 * java/io/natObjectOutputStream.cc: New file.
3328 * java/io/natObjectInputStream.cc: New file.
3330 2000-04-13 Warren Levy <warrenl@cygnus.com>
3332 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3333 problems. Revert to previous version to reproduce and when fixed.
3335 2000-04-13 Warren Levy <warrenl@cygnus.com>
3337 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3338 * gnu/gcj/io/NullOutputStream.java: New file.
3339 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3340 * java/io/BlockDataException.java: New file.
3341 * java/io/Externalizable.java: New file.
3342 * java/io/InvalidClassException.java: New file.
3343 * java/io/InvalidObjectException.java: New file.
3344 * java/io/NotActiveException.java: New file.
3345 * java/io/NotSerializableException.java: New file.
3346 * java/io/ObjectInput.java: New file.
3347 * java/io/ObjectInputStream.java: New file.
3348 * java/io/ObjectInputValidation.java: New file.
3349 * java/io/ObjectOutput.java: New file.
3350 * java/io/ObjectOutputStream.java: New file.
3351 * java/io/ObjectStreamClass.java: New file.
3352 * java/io/ObjectStreamConstants.java: New file.
3353 * java/io/ObjectStreamField.java: New file.
3354 * java/io/Replaceable.java: New file.
3355 * java/io/Resolvable.java: New file.
3356 * java/io/SerializablePermission.java: New file.
3357 * java/io/WriteAbortedException.java: New file.
3358 * java/security/BasicPermission.java: New file.
3359 * java/security/DigestOutputStream.java: New file.
3360 * java/security/Guard.java: New file.
3361 * java/security/Permission.java: New file.
3362 * java/security/PermissionCollection.java: New file.
3363 * Makefile.am: Added above files.
3364 * Makefile.in: Rebuilt.
3366 * java/beans/Beans.java (instantiate): Activated serialization code.
3367 * java/lang/SecurityManager.java (checkPermission): New method.
3369 2000-04-12 Warren Levy <warrenl@cygnus.com>
3371 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3372 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3373 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3374 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3375 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3376 * gnu/gcj/beans/editors/FontEditor.java: New file.
3377 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3378 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3379 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3380 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3381 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3382 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3383 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3384 * gnu/gcj/beans/editors/StringEditor.java: New file.
3385 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3386 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3387 * gnu/gcj/lang/ArrayHelper.java: New file.
3388 * gnu/gcj/lang/ClassHelper.java: New file.
3389 * java/beans/BeanDescriptor.java: New file.
3390 * java/beans/BeanInfo.java: New file.
3391 * java/beans/Beans.java: New file.
3392 * java/beans/Customizer.java: New file.
3393 * java/beans/DesignMode.java: New file.
3394 * java/beans/EventSetDescriptor.java: New file.
3395 * java/beans/FeatureDescriptor.java: New file.
3396 * java/beans/IndexedPropertyDescriptor.java: New file.
3397 * java/beans/IntrospectionException.java: New file.
3398 * java/beans/Introspector.java: New file.
3399 * java/beans/MethodDescriptor.java: New file.
3400 * java/beans/ParameterDescriptor.java: New file.
3401 * java/beans/PropertyChangeEvent.java: New file.
3402 * java/beans/PropertyChangeListener.java: New file.
3403 * java/beans/PropertyChangeSupport.java: New file.
3404 * java/beans/PropertyDescriptor.java: New file.
3405 * java/beans/PropertyEditor.java: New file.
3406 * java/beans/PropertyEditorManager.java: New file.
3407 * java/beans/PropertyEditorSupport.java: New file.
3408 * java/beans/PropertyVetoException.java: New file.
3409 * java/beans/SimpleBeanInfo.java: New file.
3410 * java/beans/VetoableChangeListener.java: New file.
3411 * java/beans/VetoableChangeSupport.java: New file.
3412 * java/beans/Visibility.java: New file.
3413 * java/beans/beancontext/BeanContext.java: New file.
3414 * java/beans/beancontext/BeanContextChild.java: New file.
3415 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3416 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3417 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3418 * java/beans/beancontext/BeanContextEvent.java: New file.
3419 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3420 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3421 * java/beans/beancontext/BeanContextProxy.java: New file.
3422 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3424 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3425 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3427 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3428 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3430 * java/beans/beancontext/BeanContextServices.java: New file.
3431 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3432 * java/util/AbstractCollection.java: New file.
3433 * java/util/AbstractList.java: New file.
3434 * java/util/Arrays.java: New file.
3435 * Makefile.am: Added above files.
3436 * Makefile.in: Rebuilt.
3438 2000-04-11 Warren Levy <warrenl@cygnus.com>
3440 * java/awt/AWTError.java: New file.
3441 * java/awt/AWTEvent.java: New file.
3442 * java/awt/AWTException.java: New file.
3443 * java/awt/ActiveEvent.java: New file.
3444 * java/awt/Adjustable.java: New file.
3445 * java/awt/BorderLayout.java: New file.
3446 * java/awt/Color.java: New file.
3447 * java/awt/Component.java: New file.
3448 * java/awt/Container.java: New file.
3449 * java/awt/Dimension.java: New file.
3450 * java/awt/Event.java: New file.
3451 * java/awt/Font.java: New file.
3452 * java/awt/Frame.java: New file.
3453 * java/awt/Graphics.java: New file.
3454 * java/awt/IllegalComponentStateException.java: New file.
3455 * java/awt/Image.java: New file.
3456 * java/awt/ItemSelectable.java: New file.
3457 * java/awt/LayoutManager.java: New file.
3458 * java/awt/LayoutManager2.java: New file.
3459 * java/awt/Menu.java: New file.
3460 * java/awt/MenuBar.java: New file.
3461 * java/awt/MenuComponent.java: New file.
3462 * java/awt/MenuContainer.java: New file.
3463 * java/awt/MenuItem.java: New file.
3464 * java/awt/Paint.java: New file.
3465 * java/awt/PaintContext.java: New file.
3466 * java/awt/Point.java: New file.
3467 * java/awt/Rectangle.java: New file.
3468 * java/awt/Shape.java: New file.
3469 * java/awt/TextArea.java: New file.
3470 * java/awt/TextComponent.java: New file.
3471 * java/awt/Toolkit.java: New file.
3472 * java/awt/Transparency.java: New file.
3473 * java/awt/Window.java: New file.
3474 * java/awt/natToolkit.cc: New file.
3475 * java/awt/event/AWTEventListener.java: New file.
3476 * java/awt/event/ActionEvent.java: New file.
3477 * java/awt/event/ActionListener.java: New file.
3478 * java/awt/event/AdjustmentEvent.java: New file.
3479 * java/awt/event/AdjustmentListener.java: New file.
3480 * java/awt/event/ComponentAdapter.java: New file.
3481 * java/awt/event/ComponentEvent.java: New file.
3482 * java/awt/event/ComponentListener.java: New file.
3483 * java/awt/event/ContainerAdapter.java: New file.
3484 * java/awt/event/ContainerEvent.java: New file.
3485 * java/awt/event/ContainerListener.java: New file.
3486 * java/awt/event/FocusAdapter.java: New file.
3487 * java/awt/event/FocusEvent.java: New file.
3488 * java/awt/event/FocusListener.java: New file.
3489 * java/awt/event/InputEvent.java: New file.
3490 * java/awt/event/InputMethodEvent.java: New file.
3491 * java/awt/event/InputMethodListener.java: New file.
3492 * java/awt/event/InvocationEvent.java: New file.
3493 * java/awt/event/ItemEvent.java: New file.
3494 * java/awt/event/ItemListener.java: New file.
3495 * java/awt/event/KeyAdapter.java: New file.
3496 * java/awt/event/KeyEvent.java: New file.
3497 * java/awt/event/KeyListener.java: New file.
3498 * java/awt/event/MouseAdapter.java: New file.
3499 * java/awt/event/MouseEvent.java: New file.
3500 * java/awt/event/MouseListener.java: New file.
3501 * java/awt/event/MouseMotionAdapter.java: New file.
3502 * java/awt/event/MouseMotionListener.java: New file.
3503 * java/awt/event/PaintEvent.java: New file.
3504 * java/awt/event/TextEvent.java: New file.
3505 * java/awt/event/TextListener.java: New file.
3506 * java/awt/event/WindowAdapter.java: New file.
3507 * java/awt/event/WindowEvent.java: New file.
3508 * java/awt/event/WindowListener.java: New file.
3509 * java/awt/geom/Dimension2D.java: New file.
3510 * java/awt/geom/Point2D.java: New file.
3511 * java/awt/peer/ComponentPeer.java: New file.
3512 * java/awt/peer/ContainerPeer.java: New file.
3513 * java/awt/peer/FramePeer.java: New file.
3514 * java/awt/peer/WindowPeer.java: New file.
3515 * java/util/Collection.java: New file.
3516 * java/util/Comparator.java: New file.
3517 * java/util/Iterator.java: New file.
3518 * java/util/List.java: New file.
3519 * java/util/ListIterator.java: New file.
3520 * Makefile.am: Added above files.
3521 * Makefile.in: Rebuilt.
3523 2000-04-10 Warren Levy <warrenl@cygnus.com>
3525 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3526 * java/lang/FirstThread.java: Ditto.
3527 * java/lang/StringBuffer.java: Ditto.
3528 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3530 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3531 Special case handled in java.math.BigInteger.
3532 * java/math/BigInteger.java (divide): Handle the special case when
3533 dividing by 1 and the high bit of the dividend is set.
3534 (setShiftRight): Handle case when count == 0.
3536 2000-04-05 Andrew Haley <aph@cygnus.com>
3538 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3541 2000-04-05 Andrew Haley <aph@cygnus.com>
3543 * sysdep/ia64.c (rse_address_add): Delete.
3544 (IS_NaT_COLLECTION_ADDR): Delete.
3545 (ia64_backtrace_helper): check for null unwind_info.
3547 * sysdep/ia64-frame.h: add calc_caller_bsp.
3549 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3552 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3553 (_Jv_remI): Likewise.
3554 (_Jv_divJ): Likewise.
3555 (_Jv_remJ): Likewise.
3557 * interpret.cc (continue1): Use divide subroutines to guarantee
3558 correct Java standard behaviour.
3559 Floating-point division should not abort; make it so.
3561 2000-03-29 Tom Tromey <tromey@cygnus.com>
3563 * configure: Rebuilt.
3564 * configure.in: Test against `libgcj_sjlj', not
3565 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3566 to be set even when using sjlj.
3568 2000-03-24 Andrew Haley <aph@cygnus.com>
3570 * Makefile.am: Add file addr2name.awk.
3571 * Makefile.in: Rebuilt.
3572 * addr2name.awk: New file.
3573 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3575 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3578 2000-03-22 Andrew Haley <aph@cygnus.com>
3580 * configure.host: Add -funwind-tables for IA64.
3581 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3582 * Makefile.in: Rebuilt.
3583 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3584 * sysdep/ia64.c: New file.
3585 * sysdep/ia64-frame.h: New file.
3586 * configure.in: Add sysdep/ia64.c for ia64.
3587 * configure: Rebuilt.
3589 2000-03-17 Andrew Haley <aph@cygnus.com>
3591 * java/lang/natString.cc: Remove `register' keyword.
3592 interpret.cc: ditto.
3594 2000-03-16 Andrew Haley <aph@cygnus.com>
3596 * configure.host (ia64): Enable interpreter.
3598 2000-03-14 Hans Boehm <boehm@acm.org>
3600 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3602 2000-03-14 Andrew Haley <aph@cygnus.com>
3604 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3607 2000-03-10 Andrew Haley <aph@cygnus.com>
3609 * java/lang/ieeefp.h: Import latest version from fdlibm.
3611 2000-03-14 Andrew Haley <aph@cygnus.com>
3613 * prims.cc (_Jv_ThrowSignal): New function.
3614 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3616 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3617 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3618 * include/ppc-signal.h: New file.
3620 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3622 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3623 * java/lang/natThread.java (initialize_native): Cast `data' to
3625 * gnu/gcj/RawData.java: Clarify documentation.
3627 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3628 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3629 `jarFile', not `jarFileURL'.
3631 2000-05-15 Andrew Haley <aph@cygnus.com>
3633 * include/ppc-signal.h: New file.
3635 2000-05-11 Tom Tromey <tromey@cygnus.com>
3637 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3638 file headers, don't include `size' in the skip call.
3640 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3642 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3643 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3645 (replace): Reimplemented. Fix javadoc.
3646 (reverse): Call ensureCapacity_unsynchronized().
3647 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3649 (replace): Calculate length for arraycopy() correctly.
3651 2000-05-09 Tom Tromey <tromey@cygnus.com>
3653 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3655 (insert(int,char[],int,int): New method.
3656 (delete): New method from Classpath.
3657 (deleteCharAt): Likewise.
3658 (substring): Likewise.
3659 (shared): No longer private.
3660 Added JavaDoc comments from Classpath.
3661 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3664 2000-05-07 Tom Tromey <tromey@cygnus.com>
3666 * Makefile.in: Rebuilt.
3667 * Makefile.am (LIBLINK): New macro.
3668 (libgcj_la_LINK): Use it.
3669 (libgcjawt_la_LINK): Likewise.
3671 2000-05-06 Tom Tromey <tromey@cygnus.com>
3673 * Makefile.in: Rebuilt.
3674 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3676 2000-05-05 Tom Tromey <tromey@cygnus.com>
3678 Fix for PR libgcj/220:
3679 * Makefile.in: Rebuilt.
3680 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3681 (jv_convert_LDFLAGS): Likewise.
3682 (libgcj_la_LDFLAGS): Likewise.
3683 (GCJLINK): New macro.
3684 (jv_convert_LINK): Use it.
3685 (gij_LINK): Likewise.
3686 (libgcj_la_LINK): New macro.
3687 (libgcjawt_la_LINK): Likewise.
3689 2000-05-04 Tom Tromey <tromey@cygnus.com>
3691 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3693 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3697 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3699 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3700 (_Jv_IsAssignableFrom): Ditto.
3701 (_Jv_IsInstanceOf): Ditto.
3702 (_Jv_CheckCast): Ditto.
3703 (_Jv_CheckArrayStore): Ditto.
3704 * java/lang/Class.h (_Jv_InitClass): Ditto.
3705 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3710 (_Jv_MonitorExit): Ditto.
3711 * boehm.cc (_Jv_MarkObj): Ditto.
3712 (_Jv_MarkObj): Ditto.
3713 (_Jv_MarkArray): Ditto.
3714 * prims.cc (_Jv_AllocObject): Ditto.
3715 (_Jv_NewObjectArray): Ditto.
3716 (_Jv_NewPrimArray): Ditto.
3717 (_Jv_Malloc): Ditto.
3718 (_Jv_Realloc): Ditto.
3719 (_Jv_MallocUnchecked): Ditto.
3725 2000-05-04 Tom Tromey <tromey@cygnus.com>
3727 * java/util/Locale.java (Locale): Don't explicitly check for
3729 * java/util/Hashtable.java (containsKey): Don't explicitly check
3732 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3734 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3736 * java/text/StringCharacterIterator.java
3737 (StringCharacterIterator): Don't check for null.
3738 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3740 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3741 check for null pointer.
3742 (leaveGroup): Likewise.
3743 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3745 (setData): Likewise.
3746 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3749 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3751 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3752 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3753 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3754 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3755 -rpath for in-gcc builds.
3756 * Makefile.in: Rebuilt.
3758 2000-04-28 Tom Tromey <tromey@cygnus.com>
3760 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3763 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3765 * libjava/java/lang/String.java (toString): Remove `final' hack.
3767 2000-04-05 Tom Tromey <tromey@cygnus.com>
3769 Runtime support for PR gcj/2:
3770 * prims.cc (_Jv_ThrowNullPointerException): New function.
3771 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3773 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3775 * prims.cc (_Jv_NewObjectArray): Fix typo.
3777 2000-04-26 Tom Tromey <tromey@cygnus.com>
3779 * Makefile.in: Rebuilt.
3780 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3782 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3784 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3787 2000-04-22 Anthony Green <green@cygnus.com>
3789 * include/jvm.h (__builtin_expect): Define as unused for now.
3790 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3794 (_Jv_MonitorExit): Ditto.
3795 * boehm.cc (_Jv_MarkObj): Ditto.
3796 (_Jv_MarkObj): Ditto.
3797 (_Jv_MarkArray): Ditto.
3798 (_Jv_AllocBytes): Ditto.
3799 * prims.cc (_Jv_AllocObject): Ditto.
3800 (_Jv_NewObjectArray): Ditto.
3801 (_Jv_NewPrimArray): Ditto.
3802 (_Jv_Malloc): Ditto.
3803 (_Jv_Realloc): Ditto.
3804 (_Jv_MallocUnchecked): Ditto.
3810 * include/Makefile.in: Rebuilt.
3811 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3813 2000-04-21 Tom Tromey <tromey@cygnus.com>
3815 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3816 Yet another new version from Classpath.
3818 Fix for PR libgcj/15:
3819 * java/util/natGregorianCalendar.cc (_REENTRANT,
3820 _POSIX_PTHREAD_SEMANTICS): Don't define.
3821 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3822 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3824 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3826 * configure: Rebuilt.
3827 * configure.in: If using POSIX threads, define _REENTRANT if
3828 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3829 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3831 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3832 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3833 version from Classpath.
3835 Fix for PR libgcj/213:
3836 * Makefile.in: Rebuilt.
3837 * Makefile.am (gij_SOURCES): Added gij.cc.
3838 (EXTRA_gij_SOURCES): Removed.
3839 (gij_LDADD): Removed gij.lo.
3840 (gij_DEPENDENCIES): Likewise.
3841 ($(gij_OBJECTS)): Depend on nat_headers.
3843 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3844 `setURL', not `url.set'.
3846 2000-04-20 Tom Tromey <tromey@cygnus.com>
3848 Fix for PR java.io/204:
3849 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3850 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3853 Fix for PR libgcj/212:
3854 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3855 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3856 * java/lang/Class.h (_Jv_word): Declare.
3858 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3860 2000-04-19 Tom Tromey <tromey@cygnus.com>
3862 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3863 doesn't have a loader.
3865 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3867 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3868 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3870 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3872 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3874 (available): Initialize `where' to prevent bogus compiler warning.
3876 2000-04-12 Tom Tromey <tromey@cygnus.com>
3878 * java/lang/natString.cc (intern): Temporarily disable finalizer
3881 * java/lang/natString.cc (unintern): Added `obj' argument.
3882 (intern): Register finalizer for string.
3883 * java/lang/String.java (unintern): Now static; added obj
3886 2000-04-11 Tom Tromey <tromey@cygnus.com>
3888 * java/util/Vector.java (VectorEnumeration): Now `final'.
3889 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3890 (HashtableEnumeration): Likewise.
3891 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3892 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3894 2000-04-10 Warren Levy <warrenl@cygnus.com>
3896 * java/io/ObjectStreamException.java: New file.
3897 * java/io/OptionalDataException.java: New file.
3898 * java/io/StreamCorruptedException.java: New file.
3899 * java/math/BigDecimal.java: New file.
3900 * java/sql/CallableStatement.java: New file.
3901 * java/sql/Connection.java: New file.
3902 * java/sql/DataTruncation.java: New file.
3903 * java/sql/DatabaseMetaData.java: New file.
3904 * java/sql/Date.java: New file.
3905 * java/sql/Driver.java: New file.
3906 * java/sql/DriverManager.java: New file.
3907 * java/sql/DriverPropertyInfo.java: New file.
3908 * java/sql/PreparedStatement.java: New file.
3909 * java/sql/ResultSet.java: New file.
3910 * java/sql/ResultSetMetaData.java: New file.
3911 * java/sql/SQLException.java: New file.
3912 * java/sql/SQLWarning.java: New file.
3913 * java/sql/Statement.java: New file.
3914 * java/sql/Time.java: New file.
3915 * java/sql/Timestamp.java: New file.
3916 * java/sql/Types.java: New file.
3917 * Makefile.am: Added above new files.
3918 * Makefile.in: Rebuilt.
3920 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3921 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3922 DatagramSocket constructor instead of null.
3924 2000-04-08 Anthony Green <green@cygnus.com>
3926 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3929 2000-04-08 Anthony Green <green@cygnus.com>
3931 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3932 (_Jv_MutexUnlock): Ditto.
3933 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3934 (_Jv_MutexUnlock): Ditto.
3936 2000-04-08 Anthony Green <green@cygnus.com>
3938 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3939 (ensureCapacity_unsynchronized): New private method.
3940 (append): Use ensureCapacity_unsynchronized.
3942 2000-04-08 Tom Tromey <tromey@cygnus.com>
3944 * Makefile.in: Rebuilt.
3945 * Makefile.am (awt_java_source_files): Added new files.
3946 * java/awt/IllegalComponentStateException.java: New file.
3947 * java/awt/ItemSelectable.java: New file.
3948 * java/awt/event/WindowEvent.java: Finished.
3949 * java/awt/event/TextEvent.java: Finished.
3950 * java/awt/event/ContainerEvent.java: New file.
3951 * java/awt/Component.java (getX, getY): New methods.
3952 * java/awt/event/PaintEvent.java: New file.
3953 * java/awt/event/MouseEvent.java: New file.
3954 * java/awt/ActiveEvent.java: New file.
3955 * java/awt/event/KeyEvent.java: Finished.
3956 * java/awt/event/ItemEvent.java: New file.
3957 * java/awt/Adjustable.java: New file.
3958 * java/awt/event/InputMethodEvent.java: New file.
3959 * java/awt/event/InputEvent.java: Finished.
3960 * java/awt/event/FocusEvent.java: New file.
3961 * java/awt/event/MouseMotionAdapter.java: New file.
3962 * java/awt/event/MouseAdapter.java: New file.
3963 * java/awt/event/KeyAdapter.java: New file.
3964 * java/awt/event/FocusAdapter.java: New file.
3965 * java/awt/event/ContainerAdapter.java: New file.
3966 * java/awt/event/ComponentEvent.java: Finished.
3967 * java/awt/event/AdjustmentEvent.java: New file.
3968 * java/awt/event/ComponentAdapter.java: New file.
3969 * java/awt/event/ActionEvent.java: Finished.
3970 * java/awt/event/MouseMotionListener.java: New file.
3971 * java/awt/event/MouseListener.java: New file.
3972 * java/awt/event/ItemListener.java: New file.
3973 * java/awt/event/InputMethodListener.java: New file.
3974 * java/awt/event/ContainerListener.java: New file.
3975 * java/awt/event/FocusListener.java: New file.
3976 * java/awt/event/ComponentListener.java: New file.
3977 * java/awt/event/AWTEventListener.java: New file.
3978 * java/awt/event/AdjustmentListener.java: New file.
3980 2000-04-08 Anthony Green <green@cygnus.com>
3982 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3983 check when we have to.
3985 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3988 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3991 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3992 inline hasMoreElements.
3994 2000-04-05 Tom Tromey <tromey@cygnus.com>
3996 * configure: Rebuilt.
3997 * configure.in: Recognize --enable-java-awt.
3998 (AWT): New conditional.
3999 * Makefile.in: Rebuilt.
4000 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4002 (libgcjawt_la_SOURCES): New macro.
4003 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4004 (libgcjawt_la_DEPENDENCIES): Likewise.
4005 (libgcjawt_la_LIBADD): Likewise.
4006 (libgcjawt_la_LDFLAGS): Likewise.
4007 (libgcj.zip): Depend on cond_java_awt_source_files
4008 (cond_awt_java_source_files): New macro.
4009 (MOSTLYCLEANFILES): Added awto_files.
4010 (awto_files): New macro. Use where javao_files used.
4011 (nat_headers): Use cond_awt_java_source_files.
4013 2000-04-04 Tom Tromey <tromey@cygnus.com>
4015 * Makefile.in: Rebuilt.
4016 * Makefile.am (awt_java_source_files): Added AWTException.java.
4017 * java/awt/AWTException.java: New file.
4019 2000-04-03 Tom Tromey <tromey@cygnus.com>
4021 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4022 commentary from Alex.
4024 * Makefile.in: Rebuilt.
4025 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4028 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4030 * configure: Rebuilt.
4031 * configure.in: Add --disable-jvmpi.
4032 * include/config.h.in: Rebuilt.
4033 * acconfig.h: Add ENABLE_JVMPI.
4035 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4036 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4037 (_Jv_JVMPI_Notify_THREAD_END): New define.
4038 (_Jv_JVMPI_Notify_THREAD_END): New define.
4039 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4040 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4041 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4043 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4046 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4047 (finish_): Generate JVMPI thread end events.
4048 (run_): Generate JVMPI thread start events.
4049 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4050 preloaded JNI library.
4051 Include JVMPI headers if necessary.
4052 (run): Generate JVMPI thread start events.
4054 * boehm.cc: Define GC_disable and GC_enable.
4055 (_Jv_DisableGC): New function.
4056 (_Jv_EnableGC): New function.
4057 (disable_gc_mutex): Declare.
4058 * nogc.cc (_Jv_DisableGC): New function.
4059 (_Jv_EnableGC): New function.
4061 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4062 (_Jv_JVMPI_Interface): Define.
4063 (jvmpiEnableEvent): New function.
4064 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4066 * include/jvmpi.h: New file.
4068 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4070 * Makefile.in: New #defines and friends for Thread.h.
4071 * Makefile.am: Ditto.
4072 * posix-threads.cc: (struct starter): Remove `object'.
4073 (_Jv_CondWait): Use interruptable condition variables and new
4074 recursive mutexes. New return codes on interrupt or non-ownership
4076 (_Jv_CondNotify): Ditto.
4077 (_Jv_CondNotifyAll): Ditto.
4078 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4079 the target thread by signaling its wait condition.
4080 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4081 not the starter struct. Initialize wait_mutex and wait_cond.
4082 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4084 (_Jv_MutexUnlock): Ditto.
4085 (really_start): Set info->data->thread from pthread_self() to work
4086 around a race condition. Destroy wait_mutex and wait_cond when run()
4088 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4089 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4091 startable_flag: New private field.
4092 (Thread): Initialize `startable_flag'.
4093 (toString): Check for null thread group.
4094 * java/lang/natThread.cc: (struct natThread): New fields
4095 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4096 (class locker): Removed.
4097 (initialize_native): Initialize `join_cond' and `join_mutex'.
4098 (interrupt): Now just calls _Jv_ThreadInterrupt().
4099 (join): Simplified. Just wait on the target thread's join condition.
4100 (finish_): Remove join list code. Unset thread group. Signal
4101 potential joiners by notifying the dying threads join_cond.
4102 (start): Check for illegal restarts.
4103 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4105 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4106 #defines and #ifdefs.
4107 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4108 `wait_mutex', `next'.
4109 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4110 directly mapping to pthread_cond_t.
4111 (struct _Jv_Mutex_t): New recursive implementation.
4112 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4113 _Jv_HaveCondDestroy: Never define this for posix-threads.
4114 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4115 (_Jv_CondNotifyAll): Ditto.
4116 (_Jv_MutexLock): Ditto.
4117 (_Jv_MutexUnlock): Ditto.
4118 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4119 (_Jv_MutexDestroy): Ditto.
4120 (_Jv_CondDestroy): Removed.
4121 (_Jv_PthreadGetMutex): Removed.
4122 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4123 error. Add a FIXME about this.
4124 (_Jv_CondNotifyAll): Ditto.
4125 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4126 _JV_NOT_OWNER on other errors. Add FIXME.
4128 2000-03-26 Tom Tromey <tromey@cygnus.com>
4130 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4132 (call): Don't throw exception here.
4134 2000-03-26 Tom Tromey <tromey@cygnus.com>
4136 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4137 * interpret.cc: Use SIZEOF_VOID_P.
4138 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4139 (_Jv_loadLong): Likewise.
4140 (_Jv_storeDouble): Likewise.
4141 * configure: Rebuilt.
4142 * configure.in: Check size of void*.
4144 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4146 2000-03-26 Hans Boehm <boehm@acm.org>
4148 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4149 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4151 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4152 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4153 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4154 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4156 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4157 (FFI_RAW_SIZE): Likewise.
4158 (_Jv_InterpMethod::ncode): Use them.
4159 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4160 STORED): Define differently on a 64 bit machine.
4161 (continue1): Use ffi_java_raw_call when appropriate.
4163 2000-03-24 Warren Levy <warrenl@cygnus.com>
4165 * java/math/BigInteger.java(divide): Handle the special case when
4166 dividing by 1 and the high bit of the dividend is set.
4167 (setShiftRight): Handle case when count == 0.
4169 2000-03-24 Warren Levy <warrenl@cygnus.com>
4171 * java/awt/Font.java(isBold): Fix syntax error.
4173 * java/awt/Frame.java(postEvent): ditto.
4174 * java/awt/Menu.java(postEvent): ditto.
4175 * java/awt/MenuBar.java(postEvent): ditto.
4176 * java/awt/Toolkit.java(init): Included a stub.
4178 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4180 * java/awt/Event.java: Add all the event type constants.
4181 (Event): Implemented constructors.
4182 (controlDown): Implemented.
4183 (metaDown): Implemented.
4184 (paramString): Stubbed.
4185 (shiftDown): Implemented.
4186 (toString): Implemented.
4187 (translate): Implemented.
4189 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4191 * java/lang/natClass.cc (isInstance): Initialize `this'.
4192 (isAssignableFrom): Initialize `this' and `klass'.
4193 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4194 implemented by any loaded class, so return false.
4195 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4196 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4198 2000-03-19 Warren Levy <warrenl@cygnus.com>
4200 * java/awt/Color.java: Specified java.io for Serializable.
4201 * java/awt/Toolkit.java: Imported java.net.URL.
4203 2000-03-19 Warren Levy <warrenl@cygnus.com>
4205 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4207 2000-03-16 Warren Levy <warrenl@cygnus.com>
4209 * java/awt/Color.java: New file.
4210 * java/awt/Graphics.java: New file.
4211 * java/awt/Image.java: New file.
4212 * java/awt/Paint.java: New file.
4213 * java/awt/PaintContext.java: New file.
4214 * java/awt/Transparency.java: New file.
4215 * java/util/Collection.java: New file.
4216 * java/util/Comparator.java: New file.
4217 * java/util/Iterator.java: New file.
4218 * java/util/List.java: New file.
4219 * java/util/ListIterator.java: New file.
4220 * Makefile.am: Added above new files.
4221 * Makefile.in: Rebuilt.
4223 * java/awt/Font.java (PLAIN): New field.
4225 (ITALIC): New field.
4226 (ROMAN_BASELINE): New field.
4227 (CENTER_BASELINE): New field.
4228 (HANGING_BASELINE): New field.
4232 (pointSize): New field.
4233 (Font): Implemented constructor.
4234 (isPlain): Implemented method.
4235 (isBold): Implemented method.
4236 (isItalic): Implemented method.
4237 (getName): Implemented method.
4238 (getStyle): Implemented method.
4239 (getSize): Implemented method.
4240 (getSize2D): Implemented method.
4242 * java/awt/Frame.java (getFont): Stubbed.
4243 (postEvent): Stubbed.
4245 * java/awt/Menu.java (postEvent): Stubbed.
4246 * java/awt/MenuBar.java (getFont): Stubbed.
4247 (postEvent): Stubbed.
4248 * java/awt/Toolkit.java (getImage): Added abstract method.
4250 2000-03-15 Tom Tromey <tromey@cygnus.com>
4252 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4254 * prims.cc (win32_exception_handler): Reformatted.
4256 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4257 (_Jv_HaveMutexDestroy): Likewise.
4259 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4261 * java/io/natFileDescriptorWin32.cc: New file.
4262 * java/io/natFileWin32.cc: New file.
4263 * java/net/natInetAddress.cc: Added conditional inclusion of
4264 Windows / Winsock headers.
4265 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4266 inclusion of Windows / Winsock headers.
4267 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4268 Windows / Winsock headers.
4269 * include/win32-signal.h: New file.
4270 * include/win32-threads.h: New file.
4271 * win32-threads.cc: New file.
4272 * exception.cc (win32_get_restart_frame): New function.
4273 * prims.cc (win32_exception_handler): New function.
4274 (main_init) Performs Winsock initialisation.
4275 (main_init) Installs exeception handler.
4277 2000-03-14 Tom Tromey <tromey@cygnus.com>
4279 * jni.cc (mangled_name): Fixed assertion.
4280 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4281 turned assert into actual failure.
4283 2000-03-09 Warren Levy <warrenl@cygnus.com>
4285 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4286 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4287 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4289 2000-03-09 Warren Levy <warrenl@cygnus.com>
4291 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4292 * java/security/DigestException.java: New file.
4293 * java/security/GeneralSecurityException.java: New file.
4294 * java/security/InvalidAlgorithmParameterException.java: New file.
4295 * java/security/InvalidKeyException.java: New file.
4296 * java/security/InvalidParameterException.java: New file.
4297 * java/security/Key.java: New file.
4298 * java/security/KeyException.java: New file.
4299 * java/security/KeyPair.java: New file.
4300 * java/security/KeyPairGenerator.java: New file.
4301 * java/security/KeyPairGeneratorSpi.java: New file.
4302 * java/security/NoSuchProviderException.java: New file.
4303 * java/security/PrivateKey.java: New file.
4304 * java/security/Provider.java: New file.
4305 * java/security/PublicKey.java: New file.
4306 * java/security/SecureRandom.java: New file.
4307 * java/security/Security.java: New file.
4308 * java/security/Signature.java: New file.
4309 * java/security/SignatureException.java: New file.
4310 * java/security/interfaces/DSAKey.java: New file.
4311 * java/security/interfaces/DSAParams.java: New file.
4312 * java/security/interfaces/DSAPrivateKey.java: New file.
4313 * java/security/interfaces/DSAPublicKey.java: New file.
4314 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4315 * java/security/interfaces/RSAPrivateKey.java: New file.
4316 * java/security/interfaces/RSAPublicKey.java: New file.
4317 * java/security/spec/AlgorithmParameterSpec.java: New file.
4318 * java/security/spec/InvalidKeySpecException.java: New file.
4319 * java/security/spec/InvalidParameterSpecException.java: New file.
4320 * java/security/spec/KeySpec.java: New file.
4321 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4322 * java/security/spec/RSAPrivateKeySpec.java: New file.
4323 * java/security/spec/RSAPublicKeySpec.java: New file.
4324 * Makefile.am: Added above java.security files.
4325 * Makefile.in: Rebuilt.
4327 * java/security/MessageDigest.java: Rewritten.
4328 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4330 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4334 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4336 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4337 _Jv_PrepareConstantTimeTables.
4338 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4339 classes should have an IDT, so don't return if klass is an array
4342 2000-03-08 Tom Tromey <tromey@cygnus.com>
4344 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4345 of `void' to be created.
4347 2000-03-08 Warren Levy <warrenl@cygnus.com>
4349 * java/math/BigInteger.java(signum): Handle zero properly.
4351 2000-03-07 Tom Tromey <tromey@cygnus.com>
4353 * All files: Updated copyright information.
4354 * COPYING: New file.
4355 * COPYING.LIB: Removed.
4356 * LIBGCJ_LICENSE: We now use GPL + special exception.
4358 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4360 * resolve.cc (_Jv_SearchMethodInClass): New function.
4361 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4362 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4364 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4366 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4367 (struct _Jv_ifaces): New declaration.
4368 JV_CLASS: New macro definition.
4369 (getComponentType): Relocate below isArray() for inlining.
4370 (getModifiers): Declare `inline'.
4371 (getSuperclass): Ditto.
4373 (isPrimitive): Ditto.
4374 (_Jv_IsAssignableFrom): New prototype.
4375 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4377 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4378 Check for JV_STATE_DONE before invoking initializeClass().
4379 (_Jv_PrepareConstantTimeTables): New prototype.
4380 (_Jv_GetInterfaces): Ditto.
4381 (_Jv_GenerateITable): Ditto.
4382 (_Jv_GetMethodString): Ditto.
4383 (_Jv_AppendPartialITable): Ditto.
4384 (_Jv_FindIIndex): Ditto.
4385 depth, ancestors, idt: New class fields.
4387 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4388 inline function `_Jv_IsAssignableFrom'. Use that function.
4389 (isInstance): Declare `inline'.
4390 (initializeClass): Get lock on class before checking `state'. Unlock
4391 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4393 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4394 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4395 class->depth and ancestor table.
4396 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4397 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4398 _Jv_IsAssignableFrom.
4399 (_Jv_CheckArrayStore): Ditto.
4400 (_Jv_LookupInterfaceMethodIdx): New function.
4401 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4402 (_Jv_PrepareConstantTimeTables): New function.
4403 (_Jv_IndexOf): Ditto.
4404 (_Jv_GetInterfaces): Ditto.
4405 (_Jv_GenerateITable): Ditto.
4406 (_Jv_GetMethodString): Ditto.
4407 (_Jv_AppendPartialITable): Ditto.
4408 iindex_mutex, iindex_mutex_initialized: New static fields.
4409 (_Jv_FindIIndex): New function.
4411 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4413 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4414 (_Jv_CheckArrayStore): Ditto.
4415 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4416 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4417 Moved to gcj/array.h.
4418 (_Jv_Realloc): New function.
4420 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4422 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4423 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4424 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4425 JvNewDoubleArray): Implementations moved from prims.cc and
4428 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4430 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4432 2000-03-06 Tom Tromey <tromey@cygnus.com>
4434 * jni.cc (MARK_NONE): New define.
4435 (MARK_USER): Likewise.
4436 (MARK_SYSTEM): Likewise.
4437 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4439 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4440 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4441 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4442 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4444 (call): Use MARK_SYSTEM.
4445 (_Jv_GetJNIEnvNewFrame): New function.
4446 (_Jv_LookupJNIMethod): New function.
4447 (_Jv_JNI_PopSystemFrame): New function.
4448 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4450 2000-03-05 Tom Tromey <tromey@cygnus.com>
4452 Fix for PR libgcj/43:
4453 * include/Makefile.in: Rebuilt.
4454 * include/Makefile.am (include_HEADERS): New define.
4456 2000-03-05 Anthony Green <green@redhat.com>
4458 * gcj/javaprims.h ("Java"): Remove FirstThread.
4460 * configure.host: Fix __NO_MATH_INLNES botch.
4462 * Makefile.in: Rebuilt.
4463 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4464 (gnu/gcj/runtime/FirstThread.h): Moved.
4465 (ordinary_java_source_files): Move FirstThread.java.
4466 * prims.cc: Deal with FirstThread movement.
4468 (_Jv_RunMain): Ditto.
4470 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4471 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4473 2000-03-05 Warren Levy <warrenl@cygnus.com>
4475 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4476 Handle null addresses.
4478 2000-03-04 Anthony Green <green@redhat.com>
4480 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4483 2000-03-04 Anthony Green <green@redhat.com>
4485 * configure: Rebuilt.
4486 * configure.in (ZLIBTESTSPEC): New macro.
4487 (GCTESTSPEC): New macro.
4488 (LIBGCJTESTSPEC): New macro.
4489 * libgcj-test.spec.in: New file.
4491 2000-03-02 Tom Tromey <tromey@cygnus.com>
4493 * include/java-interp.h: Don't include MethodInvocation.h.
4494 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4495 * Makefile.in: Rebuilt.
4496 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4497 (ordinary_java_source_files): Don't mention
4498 MethodInvocation.java.
4499 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4500 * interpret.cc (MethodInvocation::continue1): Removed.
4501 (run): Handle exceptions here.
4502 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4504 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4506 (defineClass2): Removed.
4508 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4510 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4512 (hack_call): Removed.
4514 * java/lang/Class.h (Class): Removed hackRunInitializers,
4516 * java/lang/natClass.cc (hackRunInitializers): Removed.
4517 (initializeClass): Catch exceptions here.
4518 Include ExceptionInInitializerError.h.
4519 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4522 * java/lang/Object.h (Object): Don't mention hack12_6.
4523 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4525 * java/lang/Object.java (hack12_6): Removed.
4527 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4528 (start): Use run_, not run__.
4529 * java/lang/Thread.java (run_): Renamed from run__; old run_
4532 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4533 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4534 (_Jv_JNI_DefineClass): Likewise.
4535 (_Jv_JNI_ThrowNew): Likewise.
4536 (_Jv_JNI_AllocObject): Likewise.
4537 (_Jv_JNI_GetAnyMethodID): Likewise.
4538 (_Jv_JNI_CallAnyMethodV): Likewise.
4539 (_Jv_JNI_CallAnyMethodA): Likewise.
4540 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4541 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4542 (_Jv_JNI_GetAnyFieldID): Likewise.
4543 (_Jv_JNI_NewString): Likewise.
4544 (_Jv_JNI_NewStringUTF): Likewise.
4545 (_Jv_JNI_GetStringUTFChars): Likewise.
4546 (_Jv_JNI_NewObjectArray): Likewise.
4547 (_Jv_JNI_NewPrimitiveArray): Likewise.
4548 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4549 (_Jv_JNI_GetStringRegion): Likewise.
4550 (_Jv_JNI_GetStringUTFRegion): Likewise.
4551 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4552 (_Jv_JNI_MonitorEnter): Likewise.
4553 (_Jv_JNI_MonitorExit): Likewise.
4554 (_Jv_JNI_ToReflectedField): Likewise.
4555 (_Jv_JNI_ToReflectedMethod): Likewise.
4556 (_Jv_JNI_RegisterNatives): Likewise.
4557 (_Jv_JNI_AttachCurrentThread): Likewise.
4558 (_Jv_JNI_DestroyJavaVM): Likewise.
4560 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4562 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4563 error caused by the incorrect casting of a long to an int.
4565 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4567 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4568 SIGSEV caused by use of the wrong instance variable.
4570 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4572 * java/io/File.java (File(String, String)): For dirPath, treat an
4573 empty String the same as `null'.
4575 2000-02-26 Anthony Green <green@cygnus.com>
4577 * gnu/gcj/io/MimeTypes.java: Test for null.
4579 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4580 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4582 * java/net/URLConnection.java: Update copyright notice.
4584 2000-02-25 Tom Tromey <tromey@cygnus.com>
4586 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4589 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4591 * java/net/URLConnection.java (initializeDateFormats): New
4593 (getHeaderFieldDate): Call initializeDateFormats if required.
4594 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4596 Fix for PR libgcj/38.
4598 2000-02-24 Warren Levy <warrenl@cygnus.com>
4600 * java/math/BigInteger.java(ival): Made private.
4604 2000-02-20 Anthony Green <green@cygnus.com>
4606 * Makefile.in: Rebuilt.
4607 * Makefile.am (ordinary_java_source_files): Add
4608 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4610 * scripts/MakeDefaultMimeTypes.java: New file.
4611 * scripts/mime.types: New file.
4612 * scripts/classes.pl: Moved from top level.
4613 * classes.pl: Moved to scripts directory.
4615 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4617 * gnu/gcj/io/MimeTypes.java: New file.
4618 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4620 2000-02-20 Tom Tromey <tromey@cygnus.com>
4622 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4624 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4626 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4629 2000-02-18 Tom Tromey <tromey@cygnus.com>
4631 * include/jvm.h (_Jv_GetJavaVM): Declare.
4632 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4633 (_Jv_MethodBase::get_method): New method.
4634 (_Jv_JNIMethod::set_function): New method.
4635 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4636 (_Jv_JNI_RegisterNatives): New function.
4637 (_Jv_JNIFunctions): Updated for new functions.
4638 (_Jv_GetJavaVM): New function.
4639 (_Jv_JNI_GetJavaVM): Use it. Now static.
4640 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4641 is already a Java thread but does not have a JNIEnv yet.
4643 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4646 2000-02-17 Tom Tromey <tromey@cygnus.com>
4648 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4651 2000-02-16 Tom Tromey <tromey@cygnus.com>
4653 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4655 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4656 (_Jv_JNI_NewObject): Likewise.
4657 (_Jv_JNI_NewObjectA): Likewise.
4658 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4659 as "return" type to _Jv_CallAnyMethodA.
4660 (_Jv_JNI_CallAnyMethodA): Likewise.
4661 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4663 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4666 2000-02-15 Tom Tromey <tromey@cygnus.com>
4668 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4670 (init_cif): Added `rtype_p' argument.
4671 * include/java-interp.h (class _Jv_MethodBase): Added
4673 (class _Jv_InterpMethod): Removed args_raw_size.
4674 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4675 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4676 class pointer as well as the ordinary arguments.
4678 * jni.cc (mangled_name): Skip leading `(' in signature.
4680 * jni.cc (add_char): Added missing `else'.
4682 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4685 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4689 * java/lang/natRuntime.cc (_load): Include library path with
4692 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4695 * java/lang/natThread.cc (dumpStack): Removed.
4696 * java/lang/Thread.java (dumpStack): Implemented.
4698 2000-02-15 Tom Tromey <tromey@cygnus.com>
4700 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4701 with `lib' for loadLibrary. Fixes PR gcj/150.
4703 2000-02-14 Warren Levy <warrenl@cygnus.com>
4705 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4707 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4711 (modPow): Rewritten to not use the naive, slow, brute force approach.
4712 (isProbablePrime): Implemented.
4713 (testBit): Implemented.
4714 (flipBit): Implemented.
4715 (getLowestSetBit): Implemented.
4717 2000-02-16 Anthony Green <green@redhat.com>
4719 * configure.host: Use the same options for i386 and i486 as we do
4722 2000-02-12 Tom Tromey <tromey@cygnus.com>
4724 * java/io/File.java (createTempFile): Use low bits from counter,
4727 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4729 * THANKS: More thanks.
4731 2000-02-11 Tom Tromey <tromey@cygnus.com>
4733 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4734 astore instruction. From Hans Boehm.
4736 2000-02-11 Warren Levy <warrenl@cygnus.com>
4738 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4739 (BigInteger(String)): New constructor.
4740 (not): Rewritten using version from Kawa's BitOps class.
4741 (valueOf): New private methods from Kawa's BitOps class.
4748 (andNot): Implemented.
4749 (clearBit): Implemented.
4750 (setBit): Implemented.
4751 (bitCount): Implemented.
4752 (toByteArray): Implemented.
4754 2000-02-11 Tom Tromey <tromey@cygnus.com>
4756 * java/io/File.java (nextValue): Now synchronized.
4758 2000-02-10 Tom Tromey <tromey@cygnus.com>
4760 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4761 * java/io/FileDescriptor.java (EXCL): New static field.
4762 * java/io/File.java (tmpdir): New static field.
4763 (createTempFile): New method.
4764 (nextValue): New method.
4765 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4768 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4769 (jboolean): Declare as an attributed int, not a bool.
4770 (_Jv_func): Declare differently for C.
4772 * gnu/gcj/jni/natNativeThread.cc: New file.
4773 * gnu/gcj/jni/NativeThread.java: New file.
4774 * java/lang/Thread.java (data): Now a RawData.
4775 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4777 * Makefile.in: Rebuilt.
4778 * Makefile.am (java/lang/Thread.h): New target.
4779 (ordinary_java_source_files): Added NativeThread.java.
4780 (nat_source_files): Added natNativeThread.cc.
4781 * java/lang/natThread.cc: Include <jni.h>
4782 (struct natThread): Added `jni_env' field.
4783 (_Jv_GetCurrentJNIEnv): New function.
4784 (_Jv_SetCurrentJNIEnv): Likewise.
4785 (initialize_native): Initialize jni_env.
4787 * jni.cc (ThreadGroupClass): New define.
4788 (_Jv_JNI_InvokeFunctions): New structure.
4789 (JNI_GetCreatedJavaVMs): New function.
4790 (the_vm): New global.
4791 (JNI_GetDefaultJavaVMInitArgs): New function.
4792 Include NativeThread.h.
4793 (NativeThreadClass): New define.
4794 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4795 (_Jv_JNI_DestroyJavaVM): New function.
4796 (_Jv_JNI_AttachCurrentThread): New function.
4797 (_Jv_JNI_DetachCurrentThread): New function.
4798 (_Jv_JNI_GetEnv): New function.
4799 (JNI_CreateJavaVM): New function.
4800 (_Jv_JNI_GetJavaVM): New function.
4801 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4802 * include/jni.h (JavaVMAttachArgs): New structure.
4803 (JNI_EDETACHED): New define.
4804 (JNI_EVERSION): Likewise.
4805 (JavaVM): Define properly.
4806 (struct JNIInvokeInterface): New structure.
4807 (class _Jv_JavaVM): New class.
4808 (JNI_OnLoad, JNI_OnUnload): Declare.
4809 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4810 JNI_GetCreatedJavaVMs): Declare.
4811 (JavaVMInitArgs): New typedef.
4812 (JavaVMOption): Likewise.
4813 (JNI_ERR): New define.
4816 2000-02-10 Andrew Haley <aph@cygnus.com>
4818 * interpret.cc: Don't include fdlibm.h.
4819 Replace #if with #ifdef throughout.
4820 Declare extern __ieee754_fmod.
4821 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4823 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4824 Search class hierarchy for superclass vtable.
4826 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4827 off the end of a pointer list.
4829 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4833 2000-02-09 Tom Tromey <tromey@cygnus.com>
4835 * java/lang/natRuntime.cc (_load): Call add_library.
4836 (loadLibraryInternal): Likewise.
4838 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4839 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4840 (Output_iconv::finalize): Likewise.
4842 2000-02-08 Tom Tromey <tromey@cygnus.com>
4844 * java/util/Properties.java (setProperty): New method.
4845 (store): New method.
4847 2000-02-07 Tom Tromey <tromey@cygnus.com>
4849 * java/lang/Runtime.java (_load): Declare.
4850 (load, loadLibrary): Wrote in terms of _load.
4851 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4853 (loadLibrary): Likewise.
4855 (_load): New method.
4856 (loadLibrary, load): Removed.
4858 * jni.cc (ThrowableClass): New define.
4859 (_Jv_JNI_Throw): Check argument.
4860 (_Jv_JNI_ThrowNew): Likewise.
4861 (wrap_value): Don't wrap object if it is NULL.
4862 (_Jv_JNI_DefineClass): Use wrap_value.
4863 (_Jv_JNI_FindClass): Likewise.
4864 (_Jv_JNI_GetSuperclass): Likewise.
4865 (_Jv_JNI_ExceptionOccurred): Likewise.
4866 (_Jv_JNI_AllocObject): Likewise.
4867 (_Jv_JNI_GetObjectClass): Likewise.
4868 (_Jv_JNI_NewString): Likewise.
4869 (_Jv_JNI_NewStringUTF): Likewise.
4870 (_Jv_JNI_NewObjectArray): Likewise.
4871 (_Jv_JNI_GetObjectArrayElement): Likewise.
4872 (_Jv_JNI_NewPrimitiveArray): Likewise.
4873 (_Jv_JNI_ToReflectedField): Likewise.
4874 (_Jv_JNI_ToReflectedMethod): Likewise.
4875 (_Jv_JNI_AllocObject): Check argument.
4876 (_Jv_JNI_NewObjectV): Likewise.
4877 (_Jv_JNI_NewObject): Likewise.
4878 (_Jv_JNI_NewObjectA): Likewise.
4879 (_Jv_JNI_GetObjectClass): Likewise.
4880 (_Jv_JNI_GetField): Likewise.
4881 (_Jv_JNI_SetField): Likewise.
4883 * interpret.cc (PUSHL): Don't use expression statement.
4888 * jni.cc (add_char): Conditional on INTERPRETER.
4889 (mangled_name): Likewise.
4891 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4893 (class _Jv_JNIMethod): Likewise.
4895 2000-02-04 Warren Levy <warrenl@cygnus.com>
4897 * Makefile.am: Added MPN.java and BigInteger.java.
4898 * Makefile.in: Rebuilt.
4899 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4901 * java/math/BigInteger.java: New file. Based primarily on
4902 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4904 2000-02-04 Tom Tromey <tromey@cygnus.com>
4906 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4908 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4909 if the method is native.
4910 * resolve.cc (ncode): Don't handle native methods.
4911 (_Jv_JNIMethod::ncode): New method.
4912 (_Jv_PrepareClass): Handle native methods.
4913 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4914 Include AbstractMethodError.h.
4915 (add_char): New function.
4916 (mangled_name): Likewise.
4917 * include/java-interp.h (class _Jv_JNIMethod): New class.
4918 (class _Jv_MethodBase): New class.
4919 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4920 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4923 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4924 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4925 libraries): New globals.
4926 (add_library): New function.
4927 (_Jv_FindSymbolInExecutable): New function.
4929 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4932 2000-02-04 Andrew Haley <aph@cygnus.com>
4934 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4935 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4936 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4937 printStackTrace to printRawStackTrace.
4939 2000-02-03 Tom Tromey <tromey@cygnus.com>
4941 * java/util/Calendar.java (toString): New method.
4942 * java/util/SimpleTimeZone.java (clone): New method.
4943 (toString): New method.
4944 * java/util/TimeZone.java (clone): New method.
4945 * java/text/SimpleDateFormat.java (clone): New method.
4946 * java/text/NumberFormat.java (clone): New method.
4947 (equals): New method.
4948 * java/text/Format.java (clone): New method.
4949 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4951 (clone): New method.
4952 * java/text/DateFormat.java (clone): New method.
4953 * java/text/Collator.java (clone): New method.
4955 2000-02-03 Tom Tromey <tromey@cygnus.com>
4957 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4960 2000-02-01 Tom Tromey <tromey@cygnus.com>
4962 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4963 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4964 constructing the closure if the function is native.
4965 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4966 a template function, #if'd out, or static.
4967 Include <java-interp.h>.
4969 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4971 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4973 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4974 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4976 (wrap_value): New function.
4977 (_Jv_JNI_CallAnyMethodV): Use it.
4978 (_Jv_JNI_CallAnyMethodA): Likewise.
4979 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4980 (_Jv_JNI_GetStaticField): Likewise.
4982 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4983 (_Jv_JNI_GetStaticField): Likewise.
4985 2000-01-31 Tom Tromey <tromey@cygnus.com>
4987 * prims.cc (_Jv_MallocUnchecked): New function.
4988 (main_init): Call _Jv_JNI_Init.
4989 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4990 (_Jv_JNI_Init): Declare.
4991 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4993 (_Jv_JNI_NewGlobalRef): New function.
4994 (_Jv_JNI_DeleteGlobalRef): New function.
4995 (_Jv_JNI_DeleteLocalRef): New function.
4996 (_Jv_JNI_conversion_call): Initialize and clear local reference
4998 (_Jv_JNI_NewLocalRef): New function.
4999 (struct _Jv_JNI_LocalFrame): New structure.
5000 (_Jv_JNI_PushLocalFrame): New function.
5001 (_Jv_JNI_EnsureLocalCapacity): New function.
5002 (FRAME_SIZE): New define.
5003 (_Jv_JNI_GetStringChars): Mark string, not characters.
5004 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5005 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5006 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5008 (_Jv_JNI_DefineClass): Make return value a local ref.
5009 (_Jv_JNI_FindClass): Likewise.
5010 (_Jv_JNI_GetSuperclass): Likewise.
5011 (_Jv_JNI_ExceptionOccurred): Likewise.
5012 (_Jv_JNI_AllocObject): Likewise.
5013 (_Jv_JNI_GetObjectClass): Likewise.
5014 (_Jv_JNI_CallAnyMethodV): Likewise.
5015 (_Jv_JNI_NewString): Likewise.
5016 (_Jv_JNI_NewStringUTF): Likewise.
5017 (_Jv_JNI_NewObjectArray): Likewise.
5018 (_Jv_JNI_GetObjectArrayElement): Likewise.
5019 (_Jv_JNI_ToReflectedField): Likewise.
5020 (_Jv_JNI_ToReflectedMethod): Likewise.
5021 (_Jv_JNIFunctions): Updated table for new functions.
5022 (_Jv_JNI_Init): New function.
5023 (mark_for_gc): Wrote.
5024 (unmark_for_gc): Wrote.
5025 * include/jni.h (struct JNINativeInterface): Removed name from
5026 PopLocalFrame parameter.
5027 (class _Jv_JNIEnv): Added `locals' field.
5029 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5031 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5034 2000-01-30 Tom Tromey <tromey@cygnus.com>
5036 * include/config.h.in: Rebuilt.
5037 * acconfig.h (HAVE_ICONV): Define.
5038 * configure: Rebuilt.
5039 * configure.in: Check for `iconv' function.
5040 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5041 no specific encoder exists.
5042 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5043 no specific encoder exists.
5044 * Makefile.in: Rebuilt.
5045 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5047 (nat_source_files): Added natIconv.cc.
5048 * gnu/gcj/convert/natIconv.cc: New file.
5049 * gnu/gcj/convert/Input_iconv.java: New file.
5050 * gnu/gcj/convert/Output_iconv.java: New file.
5052 2000-01-28 Tom Tromey <tromey@cygnus.com>
5054 * Makefile.in: Rebuilt.
5055 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5057 2000-01-26 Tom Tromey <tromey@cygnus.com>
5059 * gcj/method.h (JvNumMethods): Moved from Class.h.
5060 (JvGetFirstMethod): Likewise.
5061 * java/lang/Class.h (Object): Updated decl of
5062 _Jv_JNI_ToReflectedField.
5063 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5064 * Makefile.in: Rebuilt.
5065 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5066 argument of _Jv_JNI_ToReflectedField.
5067 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5069 (java/lang/reflect/Method.h): Likewise.
5070 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5072 (jweak): New typedef.
5073 (struct JNINativeInterface): Correctly declare remaining entries.
5074 * jni.cc: Include Class.h, ClassLoader.h.
5075 (_Jv_JNI_FindClass): New function.
5076 (_Jv_JNI_DefineClass): New function.
5077 (_Jv_JNI_conversion_call): New function.
5078 (_Jv_JNI_FindClass): Use current class loader to find class.
5079 (_Jv_JNI_ExceptionCheck): New function.
5080 (_Jv_JNI_FromReflectedField): Now static.
5081 (MethodClass): New define.
5082 (_Jv_JNI_FromReflectedMethod): New function.
5083 (_Jv_JNI_ToReflectedMethod): Likewise.
5085 (_Jv_JNI_IsAssignableFrom): Renamed.
5086 (_Jv_JNI_GetStringRegion): New function.
5087 Include StringIndexOutOfBoundsException.h.
5088 (_Jv_JNI_GetStringUTFRegion): New function.
5089 (_Jv_JNIFunctions): Updated for new functions.
5090 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5091 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5092 (_Jv_JNI_GetStringCritical): New function.
5093 (_Jv_JNI_ReleaseStringCritical): Likewise.
5094 (get_throwable): Removed.
5095 (GCJ_JV_JNIENV_FRIEND): Removed.
5096 (__GCJ_JNI_IMPL__): Define.
5099 * resolve.cc (get_ffi_type_from_signature): Handle case where
5102 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5104 * interpret.cc (run): Don't call println.
5105 Don't include PrintStream.h.
5107 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5108 nameIndex. Use "jint" as type for boffset.
5109 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5111 (Class): Likewise. Also changed type of method_count,
5112 vtable_method_count, size_in_bytes, field_count,
5113 static_field_count, interface_count.
5114 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5117 2000-01-21 Tom Tromey <tromey@cygnus.com>
5119 * java/lang/reflect/natConstructor.cc (newInstance): Use
5121 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5122 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5123 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5126 (invoke): Use _Jv_CallAnyMethodA.
5128 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5129 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5131 (struct _Jv_Method): Added getNextMethod method.
5132 (JvNumMethods): New function.
5133 (JvGetFirstMethod): Likewise.
5134 * gcj/field.h (JvGetFirstStaticField): New function.
5135 (JvNumStaticFields): Likewise.
5136 (getNextField): Renamed from getNextInstanceField.
5137 (struct _Jv_Field): New method getClass.
5138 * jni.cc: Wrote many new functions.
5139 * include/jni.h (JNI_TRUE): Define.
5140 (JNI_FALSE): Likewise.
5141 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5142 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5143 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5144 (jfieldID, jmethodID): Likewise.
5145 (JNI_COMMIT, JNI_ABORT): New defines.
5146 (JNINativeMethod): New struct.
5147 (struct JNINativeInterface): Correctly declared more entries.
5148 (class _Jv_JNIEnv): Added `ex' member.
5149 (JNI_VERSION_1_1): New define.
5150 (JNI_VERSION_1_2): Likewise.
5152 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5153 getNextInstanceField.
5155 2000-01-20 Tom Tromey <tromey@cygnus.com>
5157 * resolve.cc (StringClass): Removed.
5158 * defineclass.cc (StringClass): Removed.
5160 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5164 2000-01-19 Tom Tromey <tromey@cygnus.com>
5166 * interpret.cc (PC_REGISTER_ASM): Removed.
5168 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5169 From Bryce McKinlay.
5171 * All files: Updated copyright to reflect Cygnus purchase.
5173 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5175 * configure: Rebuilt.
5176 * configure.in: Recognize --disable-interpreter.
5178 2000-01-18 Andrew Haley <aph@cygnus.com>
5180 * name-finder.cc (lookup): Check for dladdr function.
5181 acconfig.h (HAVE_DLADDR): Add.
5182 configure.in: Check for HAVE_DLADDR
5184 include/config.h.in: Rebuilt.
5186 2000-01-17 Andrew Haley <aph@cygnus.com>
5188 * prims.cc (_Jv_RunMain): Set the name of this executable.
5190 2000-01-17 Tom Tromey <tromey@cygnus.com>
5192 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5193 when backtrace can't be computed.
5195 * configure: Rebuilt.
5196 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5198 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5199 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5200 (_Jv_FindClassInCache): Likewise.
5201 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5202 (findSystemClass): Try to load class from compiled module.
5204 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5205 (loadLibrary): Likewise.
5206 (lt_preloaded_symbols): Define.
5207 (loadLibraryInternal): New method.
5208 * include/config.h.in: Rebuilt.
5209 * acconfig.h (USE_LTDL): Added.
5210 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5211 (INCLUDES): Added $(INCLTDL).
5212 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5213 (libgcj_la_LIBADD): Likewise.
5214 * aclocal.m4, configure: Rebuilt.
5215 * configure.in: Added libltdl support.
5217 2000-01-15 Tom Tromey <tromey@cygnus.com>
5219 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5221 2000-01-14 Andrew Haley <aph@cygnus.com>
5223 * java/lang/natThrowable.cc: New file.
5225 * java/lang/Throwable.java (fillInStackTrace): Make native.
5226 (printStackTrace): Call native method to do this.
5227 (Throwable): Call fillInStackTrace.
5228 (stackTrace): New variable.
5230 * include/jvm.h: Add _Jv_ThisExecutable functions.
5232 * prims.cc: (_Jv_execName): New variable.
5233 (catch_segv): Call fillInStackTrace.
5235 (_Jv_ThisExecutable): New functions.
5236 (JvRunMain): Set the name of this executable.
5238 * Makefile.am: Add java/lang/natThrowable.cc.
5240 * Makefile.in: Rebuilt.
5242 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5244 * configure.in: Force link with __frame_state_for in
5245 FORCELIBGCCSPEC. Add new checks for backtrace.
5246 * include/config.h.in: Rebuilt.
5248 * name-finder.cc: New file.
5249 * include/name-finder.h: New file.
5251 2000-01-16 Anthony Green <green@cygnus.com>
5253 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5256 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5258 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5260 2000-01-13 Tom Tromey <tromey@cygnus.com>
5262 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5263 not system loader, as initiating loader.
5265 2000-01-11 Tom Tromey <tromey@cygnus.com>
5267 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5268 HP/UX. From David Scott Urban.
5270 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5272 * java/lang/natMath.cc (pow): Cast args to `double', not
5275 (IEEEremainder): Likewise.
5276 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5277 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5279 2000-01-09 Anthony Green <green@cygnus.com>
5281 * java/lang/natString.cc (init): Test for overflow condition
5282 during out of bounds check.
5283 (getChars): Throw StringIndexOutOfBoundsException, not
5284 ArrayIndexOutOfBoundsException.
5286 (regionMatches): Obey case option during string comparison.
5288 * configure.host (ligcj_interpreter): New variable. Enable
5289 interpreter by default on IA-32.
5290 * configure.in: Examine libgcj_interpreter.
5291 * configure: Rebuilt.
5293 2000-01-07 Tom Tromey <tromey@cygnus.com>
5295 * mauve-libgcj: Don't disable ClassTest.
5297 * java/lang/natClass.cc (getClasses): Wrote.
5299 2000-01-06 Tom Tromey <tromey@cygnus.com>
5301 * java/lang/natClass.cc (_getConstructors): Correctly check
5302 whether method name is the init name.
5303 (getMethod): Look at accflags on method in `klass', not `this'.
5305 2000-01-05 Tom Tromey <tromey@cygnus.com>
5307 * java/lang/natClass.cc (getMethod): Compute offset relative to
5308 `klass's methods table, not `this's table.
5310 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5311 In unwrapping/widening case, check whether `k' is null, not
5312 whether it is primitive. Initialize `num' from `argelts', not
5313 `paramelts'. Correct create and pass arguments to ffi_call.
5314 Don't let presence of `this' argument affect index used to look in
5316 (COPY): Set appropriate element in `values' vector.
5318 * java/lang/natClass.cc: Include <gcj/method.h>.
5320 * java/lang/Class.h (_getMethods): Correctly declare as private,
5323 * java/lang/Class.h (_getMethods): Declare.
5324 * java/lang/Class.java (_getMethods): Declare.
5325 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5326 (getDeclaredClasses): Always return empty array.
5327 (_getMethods): New method.
5328 (getMethods): Wrote.
5329 (getDeclaredMethod): Return `rmethod'.
5330 (finit_name): New global.
5331 (getDeclaredMethods): Check for finit_name.
5332 (_getMethods): Likewise.
5333 (getMethod): Only return public methods.
5335 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5336 jboolean and select correct ffi type on that basis.
5337 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5338 Constructor call always has `void' return type.
5340 2000-01-04 Tom Tromey <tromey@cygnus.com>
5342 * java/lang/Class.h (getSignature): Updated.
5343 * java/lang/Class.java (getSignature): Updated.
5344 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5346 (getConstructor): Ensure constructor is public.
5347 (_getConstructors): Check for public-ness of constructor when
5348 `declared' is false, not when it is true.
5350 2000-01-04 Warren Levy <warrenl@cygnus.com>
5352 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5354 (receive): Set the sender's address in the DatagramPacket.
5356 2000-01-04 Tom Tromey <tromey@cygnus.com>
5358 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5359 declaring class as return_type argument to
5360 _Jv_CallNonvirtualMethodA.
5361 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5362 constructor case, create object and use it as `this' argument.
5363 * java/lang/Class.h (_getConstructors): Declare.
5364 (_getFields): Declare.
5365 * java/lang/Class.java (getConstructors): Wrote.
5366 (_getConstructors): New native method.
5367 (getDeclaredConstructors): Wrote.
5368 (_getFields): Declare new native method.
5369 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5371 (getMethod): Work correctly when class is primitive.
5372 (getDeclaredMethods): Likewise. Compute offset using `method',
5374 (getDeclaredMethod): Likewise.
5375 (getConstructor): Wrote.
5376 (ConstructorClass): New define.
5377 (getDeclaredConstructor): Wrote.
5378 (_getConstructors): New method.
5379 (_getFields): New method.
5382 * Makefile.in: Rebuilt.
5383 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5385 * prims.cc: Remove `#pragma implementation'.
5386 * gcj/array.h: Remove `#pragma interface'.
5388 * prims.cc (_Jv_equaln): New function.
5389 * java/lang/Class.java (getSignature): Declare.
5390 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5391 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5393 (getSignature): New method.
5394 (getDeclaredMethod): Wrote.
5396 Include StringBuffer.h.
5397 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5398 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5400 (getSignature): Declare.
5401 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5402 (_Jv_equaln): Declare.
5403 (_Jv_CallNonvirtualMethodA): Declare.
5404 * Makefile.in: Rebuilt.
5405 * Makefile.am (nat_source_files): Added natConstructor.cc.
5406 (java/lang/reflect/Constructor.h): New target.
5407 * java/lang/reflect/natConstructor.cc: New file.
5408 * java/lang/reflect/Constructor.java (newInstance): Now native.
5409 (declaringClass): Renamed from decl_class.
5410 (offset): Renamed from index.
5411 (getType): New native method.
5412 (getModifiers): Now native.
5413 (getParameterTypes): Call getType if required.
5414 (hashCode): Include hash code from declaring class.
5415 (modifiers): Removed.
5416 (toString): Call getType if required.
5417 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5418 * java/lang/reflect/natMethod.cc (hack_call): New method.
5419 Removed `#if 0' around FFI code.
5420 Include <gnu/gcj/RawData.h>.
5421 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5422 IllegalArgumentException when argument object and class disagree.
5423 (_Jv_GetTypesFromSignature): New function.
5425 (ObjectClass): New define.
5426 (_Jv_CallNonvirtualMethodA): New function.
5427 * java/lang/reflect/Method.java (hack_trampoline): New method.
5428 (hack_call): New native method.