1 2001-01-14 Mark Wielaard <mark@klomp.org>
2 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3 (decode): Merge comments with Classpath, don't throw Exception
5 2001-01-12 Tom Tromey <tromey@redhat.com>
7 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
11 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
12 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
13 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
14 * gnu/awt/gtk/GtkLabelPeer.java: New file.
15 * gnu/awt/gtk/GtkButtonPeer.java: New file.
17 * java/lang/natSystem.cc: Include locale.h if it exists.
19 * configure.in: Check for locale.h.
21 2001-01-11 Tom Tromey <tromey@redhat.com>
23 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
24 (Cursor(int), getPredefinedCursor): Throw exception if argument
27 2001-01-03 Tom Tromey <tromey@redhat.com>
29 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
30 (getLocationOnScreen): Wrote.
32 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
34 * Makefile.am: Re-enable dependencies.
35 * Makefile.in: Rebuilt.
37 2001-01-10 Warren Levy <warrenl@redhat.com>
39 * java/math/BigDecimal.java (divide): Fixed comment.
41 2001-01-10 Warren Levy <warrenl@redhat.com>
43 Fix for PR libgcj/1596:
44 * java/math/BigDecimal.java (divide): Check newScale for validity.
45 Ensure that BigInteger.pow() is called with a non-negative value.
46 (setScale (int)): New public method.
47 (setScale (int,int)): New public method.
49 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
51 Fix for PR libgcj/1338:
52 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
53 commentChar. Fixed typos in comments.
55 2001-01-08 Warren Levy <warrenl@redhat.com>
57 Fix for PR libgcj/1411:
58 * Makefile.am: Removed java/util/natTimeZone.cc.
59 * Makefile.in: Rebuilt.
60 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
61 missing localized timezone names.
62 * java/lang/System.java (getDefaultTimeZoneId): New private method.
63 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
64 (init_properties): Set user.timezone property.
65 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
66 default timezone names; removed non-standard ones. Use standard
68 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
70 * java/util/TimeZone.java: Add standard ID names per JCL; removed
72 (getDefaultTimeZoneId): Removed.
74 (getDefaultTimeZoneId): Removed.
75 * java/util/natTimeZone.cc: Removed.
77 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
79 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
80 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
81 (_Jv_GetArrayClass): New inline function.
82 (arrayclass): New field.
83 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
84 _Jv_GetArrayElementFromElementType.
85 (_Jv_NewPrimArray): Ditto.
86 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
87 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
88 Set Modifier::ABSTRACT.
89 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
90 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
91 Now synchronized. Array classes are now referenced from
92 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
93 Set array classes' accessibility flags correctly. Optimize so that
94 all array classes share the same IDT.
95 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
96 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
97 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
98 in superclasses from overwriting classes own fields.
99 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
100 Modifier::isAbstract().
101 (null_idt): New static field.
102 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
104 (_Jv_IndexOf): Made inline.
105 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
107 2001-01-08 Tom Tromey <tromey@redhat.com>
109 Fix for PR java/1586:
110 * Makefile.in: Rebuilt.
111 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
113 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
115 * Makefile.am: Use the new "-M -MF" option for generating dependencies
116 from the c++ compiler.
117 * Makefile.in: Rebuilt.
119 2001-01-07 Anthony Green <green@redhat.com>
121 * Makefile.am (texinfo): Add texinfo target for generating texinfo
123 * Makefile.in: Rebuilt.
125 * scripts/TexinfoDoclet.java: New file.
127 * doc/java-applet.texi, doc/java-lang-reflect.texi,
128 doc/java-awt-color.texi, doc/java-lang.texi,
129 doc/java-awt-datatransfer.texi, doc/java-math.texi,
130 doc/java-awt-event.texi, doc/java-net.texi,
131 doc/java-awt-geom.texi, doc/java-security-spec.texi,
132 doc/java-awt-image.texi, doc/java-security.texi,
133 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
134 doc/java-text.texi, doc/java-beans-beancontext.texi,
135 doc/java-util-jar.texi, doc/java-beans.texi,
136 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
137 doc/java-lang-ref.texi: New files.
139 2001-01-07 Anthony Green <green@redhat.com>
141 * java/net/URLConnection.java (setDoOutput): URLConnection's may
142 be used for both input and output, so don't clear doInput.
144 * java/lang/StringBuffer.java: Fix comments.
146 2001-01-06 Anthony Green <green@redhat.com>
148 * java/beans/PropertyDescriptor.java: Fix comment.
149 * java/io/PushbackReader.java: Fix comment.
150 * java/io/ObjectStreamClass.java: Fix comment.
151 * java/io/DataInputStream.java: Fix comment.
152 * java/io/PipedInputStream.java: Fix comments.
153 * java/io/PipedReader.java: Fix comments.
154 * java/sql/DatabaseMetaData.java: Fix comments.
156 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
158 * java/io/PipedReader: Synchronize on "lock" instead of this.
160 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
162 * java/lang/Thread.java: Update comment.
164 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
165 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
166 * java/io/PipedReader: New implementation based on new
168 * java/io/PipedWriter: Updated to match new PipedReader.
170 2001-01-03 Tom Tromey <tromey@redhat.com>
172 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
173 (getViewportSize): Insets include scrollbar size.
174 (doLayout): Finished.
175 (getScrollPosition): Wrote.
176 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
178 2001-01-02 Tom Tromey <tromey@redhat.com>
180 * java/awt/ScrollPane.java: Wrote.
181 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
184 * java/awt/Panel.java (Panel()): Fixed.
186 * java/awt/Component.java (isShowing): Return false if no peer
187 exists, and true if component is visible and no parent exists.
188 (getLocationOnScreen): Wrote.
189 (getPreferredSize): Removed FIXME comment.
190 (getMinimumSize): Likewise.
191 (getAlignmentX, getAlignmentY): Wrote.
193 (requestFocus): Wrote.
194 (transferFocus): Wrote.
195 (findNextFocusComponent): New method.
198 (enableEvents): Call setEventMask on the peer.
200 * java/awt/Container.java (list): Use super.list() to print self.
201 (findNextFocusComponent): New method.
202 (setLayout): Call invalidate.
203 (findComponentAt): Wrote.
205 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
207 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
208 the correct versions of various linuxthreads functions get linked.
209 * Makefile.in: Rebuilt.
210 * java/lang/natThread.cc (finalize_native): New static function. Call
211 _Jv_ThreadDestroyData.
212 (initialize_native): Register finalizer for "data".
213 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
214 (_Jv_ThreadDestroyData): New prototype.
215 * include/win32-threads.h: Ditto.
216 * include/no-threads.h: Ditto.
217 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
218 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
219 move mutex and condition variable destroy code from:
220 (really_start): ...here.
221 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
222 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
223 (_Jv_ThreadDestroyData): Implemented.
224 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
225 (_Jv_AllocArray): Ditto.
227 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
229 * java/sql/DriverManager.java (getConnection): Don't set user/password
232 2000-12-27 Warren Levy <warrenl@redhat.com>
234 Fix for PR libgcj/1358:
235 * java/lang/System.java: Update Copyright date properly.
236 * java/util/Calendar.java: Fix typo in comment.
237 (set): Set 24-hour clock hour instead of 12-hour clock hour.
238 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
239 initialize times. Spec says to set H:M:S values to zero only if
241 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
242 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
243 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
244 timezones and GMT offsets, being careful to account for units of
245 milliseconds vs. seconds.
247 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
249 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
250 not be assigned to Object.
252 Fix for PR libgcj/1516:
253 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
255 (can_widen): Declared inline. Remove redundant checks for void
256 arguments and char->short conversion. Add special case for boolean
258 (ffi_type): Declared inline.
259 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
261 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
263 * java/sql/SQLWarning.java: Fixed typo in comment.
265 2000-12-26 Tom Tromey <tromey@redhat.com>
267 * java/awt/MenuItem.java (paramString): Now protected.
269 * java/awt/MenuShortcut.java: Implements Serializable.
271 * java/awt/MenuBar.java: Rewrote from scratch.
273 * java/awt/MenuComponent.java (removeNotify): Wrote.
274 Implements Serializable.
276 * java/awt/GridBagConstraints.java (GridBagConstraints): New
279 * java/awt/CheckboxMenuItem.java: Wrote.
281 2000-12-25 Tom Tromey <tromey@redhat.com>
283 * java/awt/MenuContainer.java: Fixed typo.
285 * Makefile.in: Rebuilt.
286 * Makefile.am (awt_java_source_files): Added SystemColor.java.
287 * java/awt/SystemColor.java: New file.
289 * java/awt/Color.java (rgba): Now package-private.
291 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
293 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
296 * java/awt/MenuItem.java (addNotify): New method.
297 (MenuItem(String,MenuShortcut)): New constructor.
298 (setLabel): Notify peer of change.
299 (setEnabled): Likewise.
301 * java/awt/GridLayout.java (toString): New method.
303 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
304 (FlowLayout): Check for LEADING and TRAILING.
305 (setAlignment): Likewise.
306 (layoutContainer): Handle component orientation.
308 * java/awt/Component.java (orientatin): New field.
309 (setComponentOrientation): Wrote.
310 (getComponentOrientation): Wrote.
312 * java/awt/Event.java (Event): Implements Serializable.
313 (consumed): New field for serialization.
314 * java/awt/Dimension.java (Dimension): Implements Serializable.
315 * java/awt/Cursor.java (Cursor): Implements Serializable.
316 * java/awt/Container.java (Container): No longer abstract.
318 * java/awt/Choice.java: Wrote.
319 * java/awt/Checkbox.java: Wrote.
320 * java/awt/ItemSelectable.java: Documented.
321 * java/awt/CheckboxGroup.java: Wrote.
323 * java/awt/CardLayout.java (layoutContainer): Directly use fields
327 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
329 * java/io/FileDescriptor.java: Initialize fd to -1.
330 Remove default constructor.
332 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
334 * java/lang/mprec.h: Change C9X reference to refer to C99.
336 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
338 * java/lang/Throwable.java (trace_enabled): New static field.
339 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
340 trace_enabled not set.
341 * prims.cc (main_init): Turn off trace_enabled while creating
342 default exception objects.
344 2000-12-21 Tom Tromey <tromey@redhat.com>
346 * java/beans/PropertyChangeListener.java: Extends EventListener.
347 * java/beans/VetoableChangeListener.java: Extends EventListener.
349 * java/util/zip/Deflater.java (update, init): Now private.
351 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
353 * java/util/BasicMapEntry.java: Re-added.
354 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
355 (putAll): Test for BasicMapEntry.
356 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
357 (putAll): Test for BasicMapEntry.
358 Change references from `HashMap.Entry' to `Entry' in various places.
359 * Makefile.am: Add BasicMapEntry.java.
360 * Makefile.in: Rebuilt.
362 2000-12-18 Warren Levy <warrenl@redhat.com>
364 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
365 need to set timezone to a valid non-null value. Partial fix for
368 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
370 * java/awt/Window.java (addNotify): Remove peer casting hack now that
372 * java/awt/Button.java (addNotify): Likewise.
373 * java/awt/Label.java (addNotify): Likewise.
374 * java/awt/Panel.java (addNotify): Likewise.
375 * java/awt/Scrollbar.java (addNotify): Likewise.
376 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
377 Remove redundant null checks.
379 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
381 * COPYING: Update to current
382 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
383 to 19yy as example year in copyright notice).
385 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
387 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
388 end-of-stream if avail_in is 0.
390 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
392 * java/util/ArrayList.java (data): Declare transient.
393 (serialPersistantFields): Removed.
394 (readObject): Use defaultReadObject(), not readFields().
395 (writeObject): Use defaultWriteObject(), not writeFields().
397 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
399 * java/util/Hashtable.java (put): Remove `last' variable.
400 Link new entry to head of list.
401 * java/util/HashMap.java (put): Ditto.
403 2000-12-15 Tom Tromey <tromey@redhat.com>
405 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
406 loader to Class.forName.
408 2000-12-14 Tom Tromey <tromey@redhat.com>
410 * java/util/ResourceBundle.java
411 (getBundle(String,Locale,ClassLoader)): New method.
412 (trySomeGetBundle): Added `loader' argument.
413 (partialGetBundle): Likewise.
415 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
416 maximumFractionDigits, maximumIntegerDigits,
417 minimumFractionDigits, minimumIntegerDigits): Now
420 * java/lang/Thread.java (checkAccess): Now final.
422 * java/lang/RuntimePermission.java: Class now final.
424 * java/io/StringWriter.java (StringWriter(int)): Now public.
426 * java/io/SerializablePermission.java (legal_names): Now private.
428 * java/lang/Character.java: Updated UnicodeBlock constants.
429 * scripts/blocks.pl: Special case private use and surrogate
432 2000-12-12 Tom Tromey <tromey@redhat.com>
434 * Makefile.in: Rebuilt.
435 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
437 (GCJCOMPILE): Use it.
440 2000-12-11 Tom Tromey <tromey@redhat.com>
442 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
443 New static final fields.
445 * scripts/classes.pl (scan): Skip lines with leading `*'.
446 Fix for PR libgcj/378.
448 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
450 * configure.in: Remove check for -fuse-divide-subroutine.
451 * configure: Rebuilt.
453 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
455 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
457 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
459 * Makefile.am: Add HashSet.java and java/lang/ref classes.
460 Remove BasicMapEntry.java and Bucket.java.
461 * Makefile.in: Rebuilt.
462 * java/util/HashMap.java: Rewritten.
463 * java/util/HashSet.java: Imported from classpath.
464 * java/util/WeakHashMap.java: Imported from classpath.
465 * java/util/Hashtable.java: Rewritten based on new HashMap code.
466 * java/util/Bucket.java: Deleted.
467 * java/util/BasicMapEntry.java: Deleted.
468 * java/util/Collections.java (search): Use a for-loop, not iterator
470 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
471 of elements in source.
472 (max): Use a for-loop.
474 (reverse): Keep track of positions instead of using Iterator's
475 nextIndex() and previousIndex().
476 (shuffle(List)): Initialize defaultRandom if required using
477 double-check thread safety idiom. Call two-argument shuffle method
479 (defaultRandom): New field.
480 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
481 using previousIndex() and nextIndex().
482 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
483 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
484 * java/util/AbstractMap.java (toString): Use StringBuffer.
485 * java/lang/ref/PhantomReference.java: Imported from classpath.
486 * java/lang/ref/SoftReference.java: Ditto.
487 * java/lang/ref/Reference.java: Ditto.
488 * java/lang/ref/WeakReference.java: Ditto.
489 * java/lang/ref/ReferenceQueue.java: Ditto.
491 2000-12-10 Richard Henderson <rth@redhat.com>
493 * configure.host: Recognize alpha*-*, not alphaev6-*.
495 2000-12-09 Anthony Green <green@redhat.com>
497 * configure.host: Enable interpreter for Alpha.
499 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
501 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
502 (ZIP): Points at fastjar instead of zip.
503 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
504 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
505 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
506 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
507 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
508 ($(x_java_source_files:.java=.class):): Likewise.
509 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
511 (CLEANFILES): libgcj.jar replaces libgcj.zip.
512 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
513 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
514 java/lang/String.h:, java/lang/reflect/Constructor.h:,
515 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
516 gnu/gcj/runtime/VMClassLoader.h:,
517 java/io/ObjectInputStream$$GetField.h:,
518 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
519 (Makefile.in): Rebuilt.
521 2000-12-08 Tom Tromey <tromey@redhat.com>
524 * configure: Rebuilt.
525 * configure.in: Use echo, not `:', to create .d files.
527 2000-12-08 Warren Levy <warrenl@redhat.com>
529 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
530 NullPointerException so proper check of offset can be done.
532 2000-12-08 Warren Levy <warrenl@redhat.com>
534 * java/io/FileInputStream.java (close): Check if the fd is valid.
535 * java/io/RandomAccessFile.java (close): Ditto.
536 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
537 * java/net/PlainSocketImpl.java (close): Ditto.
539 2000-12-06 Tom Tromey <tromey@redhat.com>
541 * java/awt/GridBagConstraints.java: Filled in values for static
544 * java/util/BitSet.java: Updated copyright notice.
546 * Makefile.in: Rebuilt.
547 * Makefile.am (awt_java_source_files): Added new file.
548 * java/awt/GridBagConstraints.java: New file.
550 2000-12-05 Tom Tromey <tromey@redhat.com>
552 * java/text/Collator.java (decomposeCharacter, decmp, strength):
553 Now package-private, not protected.
554 * java/text/DateFormatSymbols.java (equals): Now private.
555 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
556 * java/util/BitSet.java: Class no longer final.
558 2000-12-04 Warren Levy <warrenl@redhat.com>
560 * java/util/TimeZone.java (getAvailableIDs): Activated commented
561 out code dependent on compiler and library changes.
563 2000-12-04 Warren Levy <warrenl@redhat.com>
565 * java/io/FilePermission.java: Made class final per spec.
566 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
567 method name to match spec (fixed typo).
568 * java/util/LinkedList.java: Implements List.
570 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
572 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
573 Edgar Villanueva <edgarvil@home.com>.
575 2000-12-03 Tom Tromey <tromey@redhat.com>
577 * java/awt/geom/Point2D.java: Added protected constructor.
578 (equals): New method.
579 (Float.setLocation(float,float)): New method.
580 * java/awt/geom/Dimension2D.java: Added protected constructor.
581 * java/awt/geom/AffineTransform.java: Made all constants public.
582 (concatenate): Fixed typo in name.
583 * java/awt/event/WindowAdapter.java: Class now abstract.
584 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
585 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
588 * java/awt/AWTError.java: Extend Error, not
589 IllegalStateException.
591 * Makefile.in: Rebuilt.
592 * Makefile.am (awt_java_source_files): Added new file.
593 * java/awt/geom/RoundRectangle2D.java: New file.
595 * Makefile.in: Rebuilt.
596 * Makefile.am (awt_java_source_files): Added new file.
597 * java/awt/FlowLayout.java: New file.
599 * Makefile.in: Rebuilt.
600 * Makefile.am (awt_java_source_files): Added new file.
601 * java/awt/GridLayout.java: New file.
603 2000-12-02 Tom Tromey <tromey@redhat.com>
605 * Makefile.in: Rebuilt.
606 * Makefile.am (awt_java_source_files): Added new files.
607 * java/awt/CardLayout.java: New file.
608 * java/awt/AWTPermission.java: New file.
610 2000-12-01 Tom Tromey <tromey@redhat.com>
612 * java/util/Vector.java (insertElementAt): Unconditionally
613 increment elementCount.
614 (removeRange): Clear unused slots in vector.
616 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
618 * java/lang/natMath.cc: Declare fabsf() function.
619 * java/lang/mprec.h: Don't include math.h.
620 * java/lang/dtoa.c: Include string.h.
621 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
624 From Adam Welc <welc@cs.purdue.edu>:
625 * java/util/LinkedList.java (removeFirst): Update `first' field.
626 Handle the last == first case.
627 (removeLast): Update `last' field. Handle the last == first case.
629 2000-12-01 Warren Levy <warrenl@cygnus.com>
631 * Makefile.am: Added entries for new java.sql modules.
632 * Makefile.in: Rebuilt.
634 2000-12-01 Warren Levy <warrenl@cygnus.com>
636 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
637 that aren't quite 1.2 compatible yet.
639 2000-11-30 Warren Levy <warrenl@cygnus.com>
641 * java/sql/Array.java: New file from classpath.
642 * java/sql/BatchUpdateException.java: Ditto.
643 * java/sql/Blob.java: Ditto.
644 * java/sql/Clob.java: Ditto.
645 * java/sql/Ref.java: Ditto.
646 * java/sql/SQLData.java: Ditto.
647 * java/sql/SQLInput.java: Ditto.
648 * java/sql/SQLOutput.java: Ditto.
649 * java/sql/Struct.java: Ditto.
650 * java/sql/CallableStatement.java: Merged file from claspath.
651 * java/sql/Connection.java: Ditto.
652 * java/sql/DataTruncation.java: Ditto.
653 * java/sql/DatabaseMetaData.java: Ditto.
654 * java/sql/DriverManager.java: Ditto.
655 * java/sql/PreparedStatement.java: Ditto.
656 * java/sql/ResultSet.java: Ditto.
657 * java/sql/ResultSetMetaData.java: Ditto.
658 * java/sql/SQLException.java: Ditto.
659 * java/sql/SQLWarning.java: Ditto.
660 * java/sql/Statement.java: Ditto.
661 * java/sql/Types.java: Ditto.
663 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
665 * java/lang/natSystem.cc (init_properties): Set user.language and
667 * configure.in: Check for setlocale.
668 * configure: Rebuilt.
669 * include/config.h.in: Rebuilt.
671 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
672 the infate() call didn't deliver any output. Throw a ZipException if
673 the needsDictionary() call returns true.
674 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
675 * java/io/InputStreamReader: Use the default buffer size for the
676 contained BufferedInputStream.
678 2000-11-28 Warren Levy <warrenl@cygnus.com>
680 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
681 more time zone entries.
682 * java/text/SimpleDateFormat.java (format): Added case for
685 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
687 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
688 directly rather than read() in all cases. Make primitive read
689 implementations more efficient, as defined in JDK online docs.
690 (skipBytes): Behave like the JDK's implementation.
691 * java/io/BufferedReader.java: Merge classpath docs. Check for a
692 closed stream with checkStatus() whenever an IOException can be
694 (checkStatus): New private method.
696 2000-11-27 Warren Levy <warrenl@cygnus.com>
698 * Makefile.am: Added natTimeZone.cc.
699 * Makefile.in: Rebuilt.
700 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
701 * java/text/DateFormatSymbols.java (ampms): Made package private.
702 (eras): Made package private.
703 (months): Made package private.
704 (shortMonths): Made package private.
705 (shortWeekdays): Made package private.
706 (weekdays): Made package private.
707 (formatPrefixes): New private field.
708 (localPatternCharsDefault): Made private.
709 (dateFormats): New package private field.
710 (timeFormats): New package private field.
711 (formatsForKey): New private method.
712 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
713 (DateFormatSymbols(DateFormatSymbols)): Ditto.
714 * java/text/SimpleDateFormat.java: Merged with Classpath.
715 * java/util/TimeZone.java: Merged with Classpath.
716 * java/util/natTimeZone.cc: New file.
718 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
720 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
721 (addElement): Don't increment elementCount twice. Doh.
722 * java/util/ArrayList.java (add): Only call ensureCapacity if the
723 array needs to be expanded.
725 * java/util/Collections.java (UnmodifiableCollection): Implement
727 (UnmodifiableList): Throw UnsupportedOperationException from
728 modification methods. Set `l' from the one-parameter constructor.
729 (UnmodifiableMap): Implement toString().
730 (SynchronizedCollection): Ditto.
731 (SynchronizedList): Set `l' from the one-parameter constructor.
732 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
733 (SynchronizedMap): Implement toString().
735 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
737 * javax/naming/NameParser.java,
738 javax/naming/directory/AttributeInUseException.java,
739 javax/naming/directory/AttributeModificationException.java,
740 javax/naming/directory/InvalidAttributeIdentifierException.java,
741 javax/naming/directory/InvalidAttributesException.java,
742 javax/naming/directory/InvalidAttributeValueException.java,
743 javax/naming/directory/InvalidSearchControlsException.java,
744 javax/naming/directory/InvalidSearchFilterException.java,
745 javax/naming/directory/NoSuchAttributeException.java,
746 javax/naming/directory/SchemaViolationException.java: New files.
748 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
750 * javax/naming/InitialContext.java (rebind): Implement.
754 (listBindings): Implement.
755 (destroySubcontext): Implement.
756 (createSubcontext): Implement.
757 (lookupLink): Implement.
758 (getNameParser): Implement.
759 (composeName): Implement.
760 (addToEnvironment): Implement.
762 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
764 * javax/naming/AuthenticationException.java,
765 javax/naming/AuthenticationNotSupportedException.java,
766 javax/naming/CannotProceedException.java,
767 javax/naming/CommunicationException.java,
768 javax/naming/ConfigurationException.java,
769 javax/naming/ContextNotEmptyException.java,
770 javax/naming/InsufficientResourcesException.java,
771 javax/naming/InterruptedNamingException.java,
772 javax/naming/InvalidNameException.java,
773 javax/naming/LimitExceededException.java,
774 javax/naming/LinkException.java,
775 javax/naming/LinkLoopException.java,
776 javax/naming/MalformedLinkException.java,
777 javax/naming/NameAlreadyBoundException.java,
778 javax/naming/NameNotFoundException.java,
779 javax/naming/NamingSecurityException.java,
780 javax/naming/NoPermissionException.java,
781 javax/naming/NotContextException.java,
782 javax/naming/PartialResultException.java,
783 javax/naming/ReferralException.java,
784 javax/naming/ServiceUnavailableException.java,
785 javax/naming/SizeLimitExceededException.java,
786 javax/naming/TimeLimitExceededException.java: New files.
788 * javax/naming/Name.java (clone): New method.
789 (compareTo): New method.
790 (isEmpty): New method.
791 (getAll): New method.
792 (getPrefix): New method.
793 (getSuffix): New method.
794 (startsWith): New method.
795 (endsWith): New method.
796 (addAll): New method.
797 (addAll): New method.
800 (remove): New method.
802 * javax/naming/Context.java (lookup): New method.
803 (rebind): New method.
804 (unbind): New method.
805 (rename): New method.
807 (listBindings): New method.
808 (destroySubcontext): New method.
809 (createSubcontext): New method.
810 (lookupLink): New method.
811 (getNameParser): New method.
812 (composeName): New method.
813 (addToEnvironment): New method.
814 (removeFromEnvironment): New method.
815 (getEnvironment): New method.
817 (getNameInNamespace): New method.
819 * javax/naming/InitialContext.java (lookup): New method.
820 (rebind): New method.
821 (unbind): New method.
822 (rename): New method.
824 (listBindings): New method.
825 (destroySubcontext): New method.
826 (createSubcontext): New method.
827 (lookupLink): New method.
828 (getNameParser): New method.
829 (composeName): New method.
830 (addToEnvironment): New method.
831 (removeFromEnvironment): New method.
832 (getEnvironment): New method.
834 (getNameInNamespace): New method.
836 2000-11-26 Tom Tromey <tromey@cygnus.com>
838 * Makefile.in: Rebuilt.
839 * Makefile.am (core_java_source_files): Added
840 RuntimePermission.java.
841 * java/lang/RuntimePermission.java: Imported from Classpath.
842 * java/lang/Thread.java (getContextClassLoader): Now
843 synchronized. Added security code.
844 (setContextClassLoader): Likewise.
846 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
847 length field of array.
848 (_Jv_NewPrimArray): Likewise.
849 * gcj/array.h (__JArray): `length' field now const. Added
852 2000-11-26 Anthony Green <green@redhat.com>
854 * javax/naming/spi/NamingManager.java,
855 javax/naming/spi/ObjectFactory.java,
856 javax/naming/spi/InitialContextFactory.java,
857 javax/naming/spi/InitialContextFactoryBuilder.java,
858 javax/naming/RefAddr.java, javax/naming/Reference.java,
859 javax/naming/NamingException.java, javax/naming/Context.java,
860 javax/naming/Referenceable.java,
861 javax/naming/directory/InitialDirContext.java,
862 javax/naming/directory/DirContext.java,
863 javax/naming/directory/Attributes.java,
864 javax/naming/directory/Attribute.java,
865 javax/naming/StringRefAddr.java,
866 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
867 javax/naming/InitialContext.java,
868 javax/naming/NoInitialContextException.java: New files.
870 2000-11-25 Anthony Green <green@redhat.com>
872 * prims.cc (_Jv_NewObjectArray): Undo placement change.
873 (_Jv_NewPrimArray): Likewise.
874 * gcj/array.h (__JArray): Undo const change. Removed constructor.
875 (class JArray): Removed constructor.
877 * java/lang/Thread.java (context_class_loader): New private data.
878 (getContextClassLoader): New method.
879 (setContextClassLoader): New method.
880 (Thread): Initialize context_class_loader.
882 * java/net/URLClassLoader.java: Import java.util.Enumeration.
883 (getResource): Rename to findResource.
884 (findResource): New method. Used to be getResource.
885 (getResourceAsStream): Deleted.
886 (jarFileize): Extracted logic from URLClassLoader constructor into
887 this new private method.
888 (addURL): New protected method.
889 (URLClassLoader): Call jarFileize. Use addElement instead of
891 (findResources): New method.
893 * java/lang/ClassLoader.java: Import java.util.Enumeration.
894 (getResource): Implement correct logic.
895 (findResource): New method.
896 (getResources): New method.
897 (findClass): Create a ClassNotFoundException with the name of the
898 class rather than nothing at all.
899 (defineClass) Only throw ClassFormatError.
901 * java/lang/Class.java (forName): New method.
902 * java/lang/Class.h (forName): New method.
903 * java/lang/natClass.cc (forName): New method.
905 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
907 * java/lang/System.java (setProperties): Only call init_properties()
908 if properties is null.
909 (getProperties): Ditto.
910 (getProperty): Ditto.
911 (setProperty): Call init_properties if properties are null.
912 (prop_init): Remove field.
913 * java/lang/natSystem.cc (init_properties): Synchronize the entire
914 method. Check for null properties after synchronizing instead of
915 prop_init flag. Set the properties field last for thread safety.
917 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
918 test for gcj.dumpobjects property and enable object stream dumping
920 (dumpElement): No longer native.
921 (dumpElementln): Ditto.
922 (setDump): Do not define.
923 * java/io/natObjectInputStream.cc (dumpElement): Removed.
924 (dumpElementln): Removed.
927 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
929 * configure: Rebuilt.
930 * Makefile.in: Rebuilt.
931 * Makefile.am (built_java_source_files): Add Configuration.java.
932 * configure.in: Add Configuration.java to CONFIG_FILES. Set
933 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
934 Create `gnu' directory in the build tree.
935 * gnu/classpath/Configuration.java.in: New file.
937 2000-11-24 Tom Tromey <tromey@cygnus.com>
939 * prims.cc (_Jv_NewObjectArray): Use placement new to create
941 (_Jv_NewPrimArray): Likewise.
943 * gcj/array.h (__JArray): `length' field now const. Added
945 (class JArray): Added constructor.
947 2000-11-23 Mark Wielaard <mark@klomp.org>
949 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
952 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
954 * java/util/Vector.java: Improve exception messages.
955 (Vector): Check initialCapacity for IllegalArgumentException.
956 (tromToSize): Don't check for elementCount == elementData.length
958 (toArray): Don't try to set null marker if target array is the same
959 length as the vector.
961 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
963 * Makefile.in: Rebuilt.
964 * Makefile.am (core_java_source_files): Added Collections.java.
965 * java/util/List.java: Merged from classpath.
966 * java/util/Vector.java: Ditto.
967 * java/util/Collections.java: From classpath.
968 * java/util/ArrayList.java (addAll(Collection)): Call
969 addAll(int,Collection) instead of duplicating code.
970 (indexOf): Clean up int initialization.
971 (clear): Set cleared array entries to null, to allow garbage
973 * java/util/List.java: Minor formatting fixes.
974 * java/util/SimpleTimeZone.java: ditto.
976 2000-11-18 Tom Tromey <tromey@cygnus.com>
978 * Makefile.in: Rebuilt.
979 * Makefile.am (core_java_source_files): Added new files.
980 * java/lang/reflect/ReflectPermission.java: New class.
981 * java/io/FileFilter.java: From Classpath
982 * java/io/FilePermission.java: From Classpath.
984 2000-11-17 Tom Tromey <tromey@cygnus.com>
986 * java/lang/reflect/AccessibleObject.java (isAccessible,
987 setAccessible): Now public.
989 * java/lang/natString.cc: Include Locale.h.
990 (toUpperCase): Added `locale' argument. Handle locale
992 (toLowerCase): Added `locale' argument. Handle locale
994 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
995 CAPITAL_I): New defines.
996 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
999 (toUpperCase, toLowerCase): New methods. Variants which accept
1002 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1005 * java/util/PropertyPermission.java: Re-merged from Classpath.
1007 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1009 * java/text/StringCharacterIterator.java: Reindented.
1010 (setText): New method.
1012 2000-11-17 Mark Wielaard <mark@klomp.org>
1014 Merge with Classpath (changes by Bryce McKinlay)
1015 * java/util/jar/*.java: Reformat all to unofficial standard coding
1016 style. No changes of substance.
1018 2000-11-17 Mark Wielaard <mark@klomp.org>
1020 * java/util/zip/*.java: Javadoc updates.
1022 2000-11-17 Tom Tromey <tromey@cygnus.com>
1024 * java/text/CollationKey.java: Implement Comparable.
1025 (compareTo(Object)): New method.
1026 * java/text/Collator.java (compare(Object,Object)): New method.
1027 Implement Comparator.
1029 * java/util/zip/InflaterInputStream.java (available): New method.
1030 (close): New method.
1031 (read, available, skip, fill): Throw exception if stream closed.
1032 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1033 getNextEntry): Throw exception if closed.
1035 2000-11-16 Tom Tromey <tromey@cygnus.com>
1037 * java/io/PushbackReader.java: Merged with Classpath.
1038 * java/util/Arrays.java: Updated from Classpath.
1040 * scripts/blocks.pl: New file.
1041 * java/lang/Character.java (Subset): New class.
1042 (UnicodeBlock): New class.
1044 * java/lang/Math.java (toDegrees, toRadians): New methods.
1046 * java/lang/Float.java: Implement Comparable.
1047 (compareTo): New methods.
1048 * java/lang/Double.java: Implement Comparable.
1049 (compareTo): New methods.
1051 2000-11-16 Warren Levy <warrenl@cygnus.com>
1053 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1055 (listeners): Made transient.
1056 (source): Renamed from 'bean'.
1057 (children): New field for serialization.
1058 (propertyChangeSupportSerializedDataVersion): Ditto.
1059 (serialVersionUID): Ditto.
1060 (writeObject): New serialization method.
1061 (readObject): New serialization method.
1062 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1064 (listeners): Made transient.
1065 (source): Renamed from 'bean'.
1066 (children): New field for serialization.
1067 (vetoableChangeSupportSerializedDataVersion): Ditto.
1068 (serialVersionUID): Ditto.
1069 (writeObject): New serialization method.
1070 (readObject): New serialization method.
1071 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1072 to allow constructor to have a return type (i.e. the class that the
1073 constructor constructs).
1075 2000-11-14 Tom Tromey <tromey@cygnus.com>
1077 * Makefile.in: Rebuilt.
1078 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1081 2000-11-02 Warren Levy <warrenl@cygnus.com>
1083 * java/io/ObjectInputStream.java (readObject): Added code to
1084 conditionally dump out the serialized data.
1085 Handle ENDBLOCKDATA case a bit more gracefully since the current
1086 behavior doesn't seem to work as expected.
1087 (readStreamHeader): Added code for serialized data dumper.
1088 (readNextBlock): Ditto.
1089 (readFields): Ditto.
1090 (dump): New private static field for turning on/off dumper.
1091 (setDump): New native method.
1092 (dumpElement): New native method.
1093 (dumpElementln): New native method.
1094 * java/io/natObjectInputStream.cc (setDump): New method.
1095 (dumpElement): New method.
1096 (dumpElementln): New method.
1098 2000-11-02 Warren Levy <warrenl@cygnus.com>
1100 * java/net/InetAddress.java (addr): Renamed from 'address'.
1101 (address): New field to match Serialized Form doc.
1102 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1103 (family): New serialization field.
1104 (serialVersionUID): New field.
1105 (readObject): New method.
1106 (writeObject): New method.
1107 (getFamily): New native method.
1108 (InetAddress): Set family.
1109 * java/net/natInetAddress.cc (getFamily): New method.
1110 (addr): Renamed from 'address'.
1111 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1112 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1113 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1115 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1117 * java/util/AbstractList.java (SubList): Make it a top-level private
1119 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1121 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1122 * Makefile.in: Rebuilt.
1124 2000-11-02 Tom Tromey <tromey@cygnus.com>
1126 * Makefile.in: Rebuilt.
1127 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1130 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1132 * java/util/AbstractList.java (remove): Comment out modCount increment
1133 to work around compiler bug.
1136 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1138 * java/util/AbstractList.java: Throw messages with
1139 IndexOutOfBoundsExceptions.
1140 (listIterator()): Call listIterator(0).
1141 (size): New field. Initialize to size().
1142 (hasNext): Test position against size, not size().
1143 (remove): Increment knownMod by one instead of resetting it from
1146 (SubList.upMod): Removed.
1147 (SubList.set): Don't call upMod() or update knownMod.
1148 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1149 (SubList.remove): Ditto.
1150 (SubList.addAll): Don't call backingList.size(). Increment size from
1152 (SubList.iterator): New method. Call listIterator(0).
1153 (SubList.listIterator): New method. Restore code to return an anonymous
1154 listIterator implementation (with some changes).
1155 * java/util/AbstractSequentialList.java: Throw messages with
1156 IndexOutOfBoundsExceptions.
1157 (addAll): Add a specnote.
1158 * java/util/ArrayList.java (removeRange): Get the math right.
1159 (addAll): Increment modCount _before_ creating iterator.
1160 * java/util/LinkedList.java: Rewritten, mostly.
1162 2000-11-01 Tom Tromey <tromey@cygnus.com>
1164 * scripts/encodings.pl: Added `ASCII' alias.
1165 * Makefile.in: Rebuilt.
1166 * Makefile.am (convert_source_files): Added new files.
1167 * gnu/gcj/convert/Input_ASCII.java: New file.
1168 * gnu/gcj/convert/Output_ASCII.java: New file.
1169 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1170 out-of-range characters.
1171 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1172 (read): Swap bytes if required. Treat `count' as character count,
1174 (write): Likewise. Also, handle case where iconv fails on a given
1176 (init): Put encoding into exception.
1177 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1178 (static): Call iconv_init. Rebuilt alias list.
1179 (iconv_init): New private method.
1181 2000-11-01 Tom Tromey <tromey@cygnus.com>
1183 * Makefile.in: Rebuilt.
1184 * Makefile.am (install-exec-hook): Only make a single symlink, and
1185 remove the destination before making the link.
1186 * configure: Rebuilt.
1187 * configure.in: Call AC_PROG_LN_S.
1189 2000-10-31 Warren Levy <warrenl@cygnus.com>
1191 * jni.cc: Added include of java/lang/ThreadGroup.h.
1192 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1193 per change of 2000-10-05.
1195 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1197 * java/util/BitSet.java: Updated @specnote.
1199 * java/io/Reader.java: Merge docs from classpath.
1200 (skip): Synchronize on `lock'.
1201 * java/io/FileReader.java: Import correct implementation from
1203 * java/io/StringReader.java: Merge docs from classpath.
1204 (ready): Throw IOException if stream is closed.
1206 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1208 * java/util/AbstractCollection.java (addAll): Use size() instead of
1209 hasNext() in iterator loop.
1211 (contains): Ditto. Simplify loop.
1212 (containsAll): Ditto.
1217 (toString): Ditto. Use string concatenation operators, not
1219 * java/util/AbstractList.java (addAll): Use size() instead of
1220 hasNext() in iterator loop.
1223 (indexOf): Ditto. Don't take null check outside of the loop.
1224 (iterator): Return an AbstractListItr instead of anonymous class.
1225 (lastIndexOf): Use a for loop bounded by size() instead of
1226 hasPrevious() in iterator loop.
1227 (listIterator): Return an AbstractListItr.
1228 (removeRange): Remove bounds checking code and docs.
1229 (AbstractListItr): New inner class. Code moved here from
1231 (SubList.iterator): Removed. Use default implementation from
1232 AbstractList instead.
1233 (SubList.listIterator): As above.
1234 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1235 instead of hasNext() in iterator loop.
1236 (containsValue): Ditto.
1242 (toString): Ditto. Use string concatenation operators, not
1244 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1245 bounded by size() instead of hasNext() in iterator loop.
1246 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1247 part of normal execution flow. Do an explicit null check instead.
1248 * java/util/ArrayList.java (_iSize): Rename to `size'.
1249 (_arData): Rename to `data'.
1250 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1253 (removeRange): Make protected. Don't check bounds.
1254 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1256 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1258 (addAll (int, Collection)): Check lower bounds. Simplify exception
1260 (clone): Clone the data array too.
1261 (indexOf): Inline doesEqual().
1262 (lastIndexOf): Ditto.
1263 (clear): Don't set array data to null.
1264 (set): Check lower bounds. Simplify exception string.
1265 (toArray): Correct comment.
1266 (trimToSize): Don't update modCount, this is not a structural change.
1269 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1271 (toString): Declare `bit' as long, not int.
1272 (data): Made package-private, not private.
1274 2000-10-27 Warren Levy <warrenl@cygnus.com>
1276 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1277 array elements to true.
1279 2000-10-27 Warren Levy <warrenl@cygnus.com>
1281 * Makefile.am: Added locale files from Classpath.
1282 * Makefile.in: Rebuilt.
1283 * gnu/java/locale/Calendar.java: New file.
1284 * gnu/java/locale/Calendar_de.java: New file.
1285 * gnu/java/locale/Calendar_en.java: New file.
1286 * gnu/java/locale/Calendar_nl.java: New file.
1287 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1288 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1289 serialization compatibility.
1290 (scale): Made private.
1291 (serialVersionUID): New field.
1292 * java/math/BigInteger.java (ival): Made transient.
1293 (words): Made transient.
1294 (bitCount): New serialization field.
1296 (firstNonzeroByteNum): Ditto.
1297 (lowestSetBit): Ditto.
1300 (serialVersionUID): New field.
1301 (readObject): New method.
1302 (writeObject): New method.
1303 * java/util/BitSet.java (serialVersionUID): New field.
1304 * java/util/Calendar.java: Replaced with Classpath file.
1305 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1306 of getDefault() for TimeZone or Locale instead of passing nulls.
1307 * java/util/Locale.java (serialVersionUID): New field.
1308 (writeObject): New method.
1309 (readObject): New method.
1310 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1312 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1314 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1315 (core_java_source_files): Put java.lang, java.io, and java.util here.
1316 (ordinary_java_source_files): Order so that core_java_source_files are
1318 (java_source_files): Reorder so that special_java_source_files are
1320 * configure.in: Don't pass -I flag to gcj.
1321 * Makefile.in: Rebuilt.
1322 * configure: Rebuilt.
1324 2000-10-25 Tom Tromey <tromey@cygnus.com>
1326 * Makefile.in: Rebuilt.
1327 * Makefile.am (install-exec-hook): New target.
1329 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1331 * java/util/EventObject.java: Merged from classpath.
1333 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1336 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1338 * java/util/AbstractSet.java (equals): Re-installed original code.
1340 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1342 * Makefile.am: Added rules for libgcjx library.
1343 * Makefile.in: Rebuilt.
1344 * configure.in: Added check for X.
1345 * configure: Rebuilt.
1346 * gnu/awt/LightweightRedirector.java: New file.
1347 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1348 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1349 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1350 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1351 * gnu/awt/j2d/MappedRaster.java: New file.
1352 * gnu/awt/xlib/XCanvasPeer.java: New file.
1353 * gnu/awt/xlib/XEventLoop.java: New file.
1354 * gnu/awt/xlib/XEventQueue.java: New file.
1355 * gnu/awt/xlib/XFontMetrics.java: New file.
1356 * gnu/awt/xlib/XFramePeer.java: New file.
1357 * gnu/awt/xlib/XGraphics.java: New file.
1358 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1359 * gnu/awt/xlib/XPanelPeer.java: New file.
1360 * gnu/awt/xlib/XToolkit.java: New file.
1361 * gnu/gcj/xlib/Clip.java: New file.
1362 * gnu/gcj/xlib/Colormap.java: New file.
1363 * gnu/gcj/xlib/Display.java: New file.
1364 * gnu/gcj/xlib/Drawable.java: New file.
1365 * gnu/gcj/xlib/Font.java: New file.
1366 * gnu/gcj/xlib/GC.java: New file.
1367 * gnu/gcj/xlib/Pixmap.java: New file.
1368 * gnu/gcj/xlib/Screen.java: New file.
1369 * gnu/gcj/xlib/Visual.java: New file.
1370 * gnu/gcj/xlib/WMSizeHints.java: New file.
1371 * gnu/gcj/xlib/Window.java: New file.
1372 * gnu/gcj/xlib/WindowAttributes.java: New file.
1373 * gnu/gcj/xlib/XAnyEvent.java: New file.
1374 * gnu/gcj/xlib/XButtonEvent.java: New file.
1375 * gnu/gcj/xlib/XColor.java: New file.
1376 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1377 * gnu/gcj/xlib/XConnectException.java: New file.
1378 * gnu/gcj/xlib/XEvent.java: New file.
1379 * gnu/gcj/xlib/XException.java: New file.
1380 * gnu/gcj/xlib/XExposeEvent.java: New file.
1381 * gnu/gcj/xlib/XID.java: New file.
1382 * gnu/gcj/xlib/XImage.java: New file.
1383 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1384 * gnu/gcj/xlib/natClip.cc: New file.
1385 * gnu/gcj/xlib/natColormap.cc: New file.
1386 * gnu/gcj/xlib/natDisplay.cc: New file.
1387 * gnu/gcj/xlib/natDrawable.cc: New file.
1388 * gnu/gcj/xlib/natFont.cc: New file.
1389 * gnu/gcj/xlib/natGC.cc: New file.
1390 * gnu/gcj/xlib/natPixmap.cc: New file.
1391 * gnu/gcj/xlib/natScreen.cc: New file.
1392 * gnu/gcj/xlib/natVisual.cc: New file.
1393 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1394 * gnu/gcj/xlib/natWindow.cc: New file.
1395 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1396 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1397 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1398 * gnu/gcj/xlib/natXColor.cc: New file.
1399 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1400 * gnu/gcj/xlib/natXException.cc: New file.
1401 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1402 * gnu/gcj/xlib/natXImage.cc: New file.
1403 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1404 * java/awt/EventDispatchThread.java: Start thead on creation.
1406 2000-10-20 Tom Tromey <tromey@cygnus.com>
1408 From Arno J. Klaassen:
1409 * interpret.cc: Include <stdlib.h> for alloca.
1410 * defineclass.cc: Include <stdlib.h> for alloca.
1412 * Makefile.in: Rebuilt.
1413 * Makefile.am: Include deps.mk.
1414 (GCJCOMPILE): Added -MD, -MT, and -MF.
1415 ($(javao_files)): Don't depend on libgcj.zip.
1416 (all-recursive): New target.
1417 (%.lo:%.cc): Do dependency tracking.
1418 ($(nat_headers)): Don't depend on libgcj.zip.
1419 * configure: Rebuilt.
1420 * configure.in: Make .d files and deps.mk.
1422 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1424 * exception.cc: Don't #include "exception".
1425 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1427 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1428 * Makefile.in: Updated.
1430 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1432 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1433 * java/awt/peer/ComponentPeer.java (disable): Removed.
1436 (minimumSize): Removed.
1437 (preferredSize): Removed.
1440 * java/awt/peer/ListPeer.java (addItem): Removed.
1442 (minimumSize): Removed.
1443 (preferredSize): Removed.
1444 (setMultipleSelections): Removed.
1445 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1446 (remove): Renamed from removeMenu.
1447 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1449 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1450 (remove): Renamed from removeItem.
1451 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1452 (getMinimumSize): Removed.
1453 (getPreferredSize): Removed.
1454 (minimumSize): Removed.
1455 (preferredSize): Removed.
1456 (replaceText): Removed.
1457 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1458 (preferredSize): Removed.
1459 (getMinimumSize): Removed.
1460 (getPreferredSize): Removed.
1461 (setEchoCharacter): Removed.
1463 2000-10-10 Warren Levy <warrenl@cygnus.com>
1465 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1466 * java/sql/Date.java (serialVersionUID): New field.
1467 * java/sql/Time.java (serialVersionUID): New field.
1468 * java/sql/Timestamp.java (serialVersionUID): New field.
1469 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1470 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1471 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1472 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1473 (readObject): New serialization method.
1474 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1475 (serialVersionOnStream): New field.
1476 (readObject): New serialization method.
1477 (getMonetaryDecimalSeparator): New method.
1478 (setMonetaryDecimalSeparator): New method.
1479 * java/text/NumberFormat.java (maxFractionDigits): New field.
1480 (maxIntegerDigits): New field.
1481 (minFractionDigits): New field.
1482 (minIntegerDigits): New field.
1483 (serialVersionOnStream): New field.
1484 (serialVersionUID): New field.
1485 (readObject): New serialization method.
1486 (writeObject): New serialization method.
1487 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1488 (serialVersionOnStream): New field.
1489 (serialVersionUID): New field.
1490 (readObject): New serialization method.
1492 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1494 * configure.in (GCJ): Avoid bogus error message when looking for
1495 (and not finding) gcj in the build tree.
1496 * configure: Rebuilt.
1498 2000-10-09 Tom Tromey <tromey@cygnus.com>
1500 * configure: Rebuilt.
1501 * configure.in: Include sys/types.h when checking for socklen_t.
1502 From Arno J. Klaassen.
1504 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1506 * include/jvm.h: Enable __builtin_expect().
1508 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1509 the main program. Fix for PR libgcj/341.
1511 2000-10-07 Tom Tromey <tromey@cygnus.com>
1513 * java/util/Properties.java: Merged with Classpath version.
1515 2000-10-05 Tom Tromey <tromey@cygnus.com>
1517 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1518 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1519 * java/lang/Class.h (Object): Added `class$' field.
1520 * java/lang/Object.h (Object): Added `class$' field.
1521 * defineclass.cc (ClassClass): Use `class$' form.
1522 (ClassObject): Likewise.
1523 * resolve.cc (ClassObject): Use `class$' form.
1524 (ObjectClass): Likewise.
1525 * interpret.cc (ClassError): Removed.
1526 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1528 (IntegerClass): Likewise.
1529 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1531 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1532 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1533 SerializableClass): Likewise.
1534 Include Serializable.h, Cloneable.h.
1535 * java/lang/natSystem.cc (SystemClass): Removed.
1536 (init_properties): Use `class$' form.
1537 * java/lang/natObject.cc (CloneableClass): Removed.
1538 (clone): Use `class$' form.
1539 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1540 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1541 ConstructorClass): Likewise.
1542 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1543 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1544 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1545 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1547 (ClassClass): Likewise.
1548 * include/jvm.h (StringClass): Use `class$' form.
1549 * prims.cc (ObjectClass): Removed.
1550 (_Jv_RunMain): Use `class$' form.
1551 (_Jv_AllocObject): Likewise.
1552 * jni.cc (ClassClass): Use `class$' form.
1553 (ThrowableClass): Likewise.
1554 (ObjectClass): Likewise.
1555 (MethodClass): Likewise.
1556 (ThreadGroupClass): Likewise.
1557 (NativeThreadClass): Likewise.
1558 * boehm.cc (ObjectClass): Removed.
1559 (ClassClass): Removed.
1560 (_Jv_MarkObj): Use `class$' form.
1561 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1564 2000-10-05 Warren Levy <warrenl@cygnus.com>
1566 * Makefile.am: Removed java/io/Replaceable.java and
1567 java/io/Resolvable.java.
1568 * Makefile.in: Rebuilt.
1569 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1571 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1573 (processResolution): Handle readResolve method via reflection with
1574 removal of Resolvable interface.
1575 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1576 method via reflection with removal of Replaceable interface.
1577 * java/io/Replaceable.java: Removed.
1578 * java/io/Resolvable.java: Removed.
1579 * java/security/Key.java (serialVersionUID): New field.
1580 * java/security/Provider.java (serialVersionUID): New field.
1581 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1583 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1585 * java/sql/DataTruncation.java (serialVersionUID): New field.
1586 * java/sql/SQLException.java (serialVersionUID): New field.
1587 * java/sql/SQLWarning.java (serialVersionUID): New field.
1588 * java/util/Date.java (serialVersionUID): New field.
1589 (millis): Made transient.
1590 (readObject): New method.
1591 (writeObject): New method.
1593 2000-10-05 Tom Tromey <tromey@cygnus.com>
1595 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1597 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1599 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1600 (JvRunMain): Set _Jv_argv and _Jv_argc.
1601 * java/awt/Component.java: Minor fixes.
1602 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1603 * java/awt/Toolkit.java (systemEventQueue): Removed.
1604 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1605 * java/awt/Window.java (getToolkit): Don't call super.
1606 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1607 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1608 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1609 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1610 * gnu/awt/gtk/GtkFramePeer.java: New file.
1611 * gnu/awt/gtk/GtkMainThread.java: New file.
1612 * gnu/awt/gtk/GtkToolkit.java: New file.
1613 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1614 * gnu/awt/gtk/gtkcommon.cc: New file.
1615 * gnu/awt/gtk/gtkcommon.h: New file.
1616 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1617 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1618 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1619 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1620 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1621 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1623 2000-09-30 Tom Tromey <tromey@cygnus.com>
1625 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1626 interrupted before modifying the cv's wait set.
1629 2000-09-30 Hans Boehm <boehm@acm.org>
1630 Bryce McKinlay <bryce@albatross.co.nz>
1632 Implement bitmap descriptor based marking for Boehm GC.
1634 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1635 * configure: Rebuilt.
1636 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1637 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1638 method get_finalizer().
1639 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1640 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1641 (_Jv_AllocObj): Add new jclass parameter.
1642 (_Jv_AllocArray): Ditto.
1643 (_Jv_BuildGCDescr): New prototype.
1644 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1645 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1646 get_finalizer() instead of direct finalizer vtable offset.
1647 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1648 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1649 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1650 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1651 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1652 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1653 (_Jv_DetermineVTableIndex): Ditto.
1654 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1655 calculations to account for new gc_descr field.
1656 * boehm.cc: #include gc_gcj.h.
1657 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1658 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1659 New commentary from HB. Mark the classes vtable.
1660 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1661 (GC_DEFAULT_DESCR): New #define.
1662 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1663 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1664 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1665 scan conservativly if size is less than min_heap_addr. Set vtable
1666 pointer of new object before returning.
1667 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1668 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1669 allocation for obj_kind_x.
1670 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1671 (_Jv_AllocObj): Set vtable on returned object.
1672 (_Jv_AllocArray): Ditto.
1673 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1674 (_Jv_NewPrimArray): Ditto.
1675 (_Jv_AllocObj): Declare as a friend.
1676 (_Jv_AllocArray): Ditto.
1677 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1678 from &ObjectClass into new array class. Remove offset-by-one
1679 adjustments from `method' size calculations to account for gc_descr
1682 2000-09-26 Tom Tromey <tromey@cygnus.com>
1684 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1685 `remove', not `add'.
1687 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1689 * java/lang/natSystem.cc (file_encoding): Added return statement.
1691 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1693 * Makefile.am: Re-work shell commands that exceeded command-line
1695 * Makefile.in: Rebuilt.
1697 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1699 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1700 * java/lang/natDouble.cc: Likewise.
1701 * java/lang/reflect/natMethod.cc: Likewise.
1702 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1704 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1706 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1708 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1709 * acinclude.m4: Arrange for automake to not bring in a new
1710 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1711 * Makefile.am: Leave it up to automake to subst GCJ.
1712 * aclocal.m4, configure, Makefile.in: Rebuilt.
1714 2000-09-13 Tom Tromey <tromey@cygnus.com>
1716 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1717 (get): Ensure Boolean class is initialized.
1718 * java/lang/reflect/natField.cc (BooleanClass): New define.
1719 (get): Ensure Boolean class is initialized.
1721 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1723 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1724 Initialize with anonymous class.
1725 (compareToIgnoreCase): New method.
1727 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1728 (uncaughtException): Set had_uncaught_exception.
1729 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1730 exit with error status if set.
1731 (_Jv_RunMain): Ditto.
1733 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1735 * configure: Rebuilt with new ../libtool.m4.
1737 2000-09-11 Tom Tromey <tromey@cygnus.com>
1739 * java/lang/reflect/Field.java (toString): Don't rely on
1742 2000-09-08 Tom Tromey <tromey@cygnus.com>
1744 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1745 default decoder use iconv.
1746 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1747 Let default encoder use iconv.
1748 * configure: Rebuilt.
1749 * configure.in: Check for nl_langinfo and <langinfo.h>.
1750 * java/lang/natSystem.cc (file_encoding): New function.
1751 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1753 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1755 * acinclude.m4: Simplify the tests for CC and CXX.
1756 * aclocal.m4, configure: Rebuilt.
1758 * acinclude.m4: Include libtool macros from the source tree.
1759 * aclocal.m4, configure: Rebuilt.
1761 2000-09-08 Warren Levy <warrenl@cygnus.com>
1763 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1764 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1765 * java/io/File.java (writeObject): Added.
1766 (readObject): Added.
1767 (serialVersionUID): Added.
1768 * java/io/ObjectOutputStream.java (writeObject): Initialized
1769 fieldsAlreadyWritten before recursion rather than after.
1770 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1771 * java/io/OptionalDataException.java (serialVersionUID): Added.
1772 (OptionalDataException): Made package private.
1773 * java/io/SyncFailedException.java (SyncFailedException): Removed
1774 default constructor to match spec.
1775 * java/lang/Boolean.java (serialVersionUID): Added.
1776 * java/lang/Byte.java (serialVersionUID): Added.
1777 * java/lang/Character.java (serialVersionUID): Added.
1778 * java/lang/Double.java (serialVersionUID): Added.
1779 * java/lang/Float.java (serialVersionUID): Added.
1780 * java/lang/Integer.java (serialVersionUID): Added.
1781 * java/lang/Long.java (serialVersionUID): Added.
1782 * java/lang/Number.java (serialVersionUID): Added.
1783 * java/lang/Short.java (serialVersionUID): Added.
1784 * java/lang/String.java (serialVersionUID): Added.
1785 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1787 * java/lang/reflect/InvocationTargetException.java
1788 (serialVersionUID): Added.
1789 * java/net/URL.java (handler): Made transient.
1790 (hashCode): Added field for serialization, per spec. and use
1791 cached value if available.
1792 (serialVersionUID): Added.
1793 (URL): Initialize hashCode.
1794 (set): Adjust hashCode.
1795 (readObject): New Method to initialize the protocol handler when
1797 (writeObject): New method.
1798 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1799 * java/text/Collator.java: Removed 'implements Serializable'.
1800 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1801 * java/util/Properties.java (serialVersionUID): Added.
1802 * java/util/Random.java (serialVersionUID): Added.
1803 (seed): Made private.
1804 (nextNextGaussian): Made private.
1805 (haveNextNextGaussian): Made private.
1806 * java/util/Stack.java (serialVersionUID): Added.
1807 * java/util/TimeZone.java (serialVersionUID): Added.
1808 * java/util/Vector.java (serialVersionUID): Added.
1810 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1812 * Makefile.am (Thread.h): Don't be friends with native threads
1814 * Makefile.in: Rebuilt.
1815 * java/lang/Thread.java (interrupt_flag): Make package-private.
1817 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1819 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1820 to avoid long long division.
1822 2000-09-06 Tom Tromey <tromey@cygnus.com>
1824 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1826 * java/lang/reflect/Method.java (toString): Use `getName' for
1829 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1830 `args' if method takes no parameters.
1832 Fix for PR java.lang/339:
1833 * java/lang/natPosixProcess.cc (fail): New function.
1834 (cleanup): New function.
1835 (startProcess): Use them. Create pipe so child can communicate
1836 exec failure back to parent.
1838 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1840 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1842 (send): Undo last patch. Remove the label only.
1844 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1846 * java/net/natInetAdress.cc: Ditto.
1848 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1850 2000-09-05 Tom Tromey <tromey@cygnus.com>
1852 * doc/cni.sgml: Updated from master copy.
1854 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1856 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1858 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1860 * java/lang/fdlibm.h: #undef __P if previously defined.
1861 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1862 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1866 2000-09-04 Tom Tromey <tromey@cygnus.com>
1868 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1871 2000-09-04 Anthony Green <green@redhat.com>
1873 Fix for PR java.io/203:
1874 * java/io/File.java (createTempFile): Obey directory argument.
1875 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1876 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1877 variable to set java.io.tmpdir on non-WIN32 systems.
1879 2000-09-04 Anthony Green <green@redhat.com>
1881 * java/io/File.java (deleteOnExit): New method.
1882 * gnu/gcj/runtime/FileDeleter.java: New class.
1883 * java/lang/natRuntime.cc (exit): Call
1884 FileDeleter.deleteOnExitNow()
1885 * Makefile.am: Add FileDeleter.java.
1886 * Makefile.in: Rebuilt.
1888 2000-09-02 Tom Tromey <tromey@cygnus.com>
1890 * Makefile.in: Rebuilt.
1891 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1892 environment variable.
1894 2000-09-01 Andrew Haley <aph@redhat.com>
1896 * java/io/StreamTokenizer.java: Don't throw a
1897 NumberFormatException if a field is numeric as far as the
1898 StreamTokenizer is concerned but not as far as Double.valueOf() is
1899 concerned: return a zero instead.
1901 2000-08-30 Tom Tromey <tromey@cygnus.com>
1903 * Makefile.in: Rebuilt.
1904 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1906 2000-08-28 Tom Tromey <tromey@cygnus.com>
1908 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1909 gnu/gcj/awt/ComponentDataBlitOp.java,
1910 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1911 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1912 java/awt/color/ICC_ColorSpace.java,
1913 java/awt/color/ICC_Profile.java,
1914 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1915 java/awt/image/ComponentColorModel.java,
1916 java/awt/image/ComponentSampleModel.java,
1917 java/awt/image/DataBuffer.java,
1918 java/awt/image/DataBufferByte.java,
1919 java/awt/image/DataBufferInt.java,
1920 java/awt/image/DataBufferUShort.java,
1921 java/awt/image/DirectColorModel.java,
1922 java/awt/image/IndexColorModel.java,
1923 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1924 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1925 java/awt/image/SinglePixelPackedSampleModel.java,
1926 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1927 Removed Latin-1 copyright symbols.
1928 * java/util/zip/ZipFile.java: Indentation fixes.
1930 2000-08-27 Mark Wielaard <mark@klomp.org>
1932 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1933 constructor, close can delete the file, finalize calls close.
1934 * java/util/jar/JarFile.java: Constructor that takes mode now
1937 2000-08-27 Anthony Green <green@redhat.com>
1939 * java/util/ArrayList.java, java/util/Timer.java,
1940 java/util/LinkedList.java, java/util/TimerTask.java,
1941 java/util/HashMap.java, java/util/AbstractMap.java,
1942 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1943 java/util/SortedSet.java: Imported from GNU Classpath.
1944 * Makefile.in: Rebuilt.
1945 * Makefile.am: Added new files.
1947 2000-08-26 Anthony Green <green@redhat.com>
1949 * Makefile.in: Rebuilt.
1950 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1953 * prims.cc: Include ClassLoader.h.
1954 (_Jv_RunMain): When executing jar files, classpath must be the jar
1955 file only. Lose our reference to the system ClassLoader in order
1956 to get a new one with the correct classpath.
1957 * java/lang/natSystem.cc (init_properties): When executing a jar
1958 file, only use the jar file for java.class.path.
1960 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1961 for bytecode archives.
1963 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1964 exists, but not Main-Class.
1966 2000-08-23 Mark Wielaard <mark@klomp.org>
1968 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1969 return -1 when fill() has no more data for the Inflater.
1971 2000-08-23 Mark Wielaard <mark@klomp.org>
1973 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
1974 write(String) already does.
1976 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1978 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
1979 to `alive_flag', call `init'.
1980 (init): New native method.
1981 * gnu/gcj/jni/natNativeThread.cc (init): New native method
1984 2000-08-21 Mark Wielaard <mark@klomp.org>
1986 * Makefile.in: Rebuilt.
1987 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
1989 (java/lang/reflect/Field.h): Likewise.
1990 (java/lang/reflect/Method.h): Likewise.
1991 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
1994 2000-08-21 Tom Tromey <tromey@cygnus.com>
1996 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
1999 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2001 * java/lang/natSystem.cc (init_properties): Change sourceware
2002 reference to sources.redhat.com.
2004 * include/java-props.h: Add _Jv_Jar_Class_Path.
2005 * prims.cc: Ditto. Set it from `gij -jar file' option.
2007 * java/lang/natSystem.cc (init_properties): Set java.class.path
2009 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2011 * java/util/PropertyPermission.java: Import from GNU Classpath.
2012 * Makefile.in: Rebuilt.
2013 * Makefile.am: Add java/util/PropertyPermission.java.
2014 * java/lang/System.java: Add setProperty method.
2016 * gij.cc (main): Add -jar option to execute jar files.
2017 (help): Describe -jar option.
2018 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2019 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2020 * gnu/gcj/runtime/FirstThread.java (main): New method.
2022 * java/util/jar/Attributes.java: Correct comment spelling.
2024 2000-08-20 Mark Wielaard <mark@klomp.org>
2026 * java/util/zip/Adler32.java: Make private variables really private
2027 * java/util/zip/CRC32.java: Make private variables really private
2028 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2030 * java/util/zip/InflaterInputStream.java: skip() could skip to
2032 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2033 * java/util/zip/ZipFile.java: size() new 1.2 method
2034 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2035 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2038 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2040 * java/util/jar/JarFile.java: Don't call
2041 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2044 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2046 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2047 Read the entire contents of the class file, not just what is
2050 * java/net/JarURLConnection.java: getEntry doesn't take any
2051 arguments. Return null if element is null.
2053 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2054 size from the archive, not the inflated size.
2056 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2057 java.util.zip.ZipFile.getEntry.
2059 * gij.cc (help): Change sourceware reference to
2062 2000-08-19 Tom Tromey <tromey@cygnus.com>
2064 * java/util/zip/ZipInputStream.java (createZipEntry):
2067 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2069 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2070 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2071 java/util/jar/JarInputStream.java,
2072 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2073 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2074 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2075 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2076 java/security/cert/Certificate.java,
2077 java/security/cert/CertificateEncodingException.java,
2078 java/security/cert/CertificateException.java,
2079 java/security/cert/CertificateExpiredException.java,
2080 java/security/cert/CertificateFactory.java,
2081 java/security/cert/CertificateFactorySpi.java,
2082 java/security/cert/CertificateNotYetValidException.java,
2083 java/security/cert/CertificateParsingException.java,
2084 java/security/cert/X509CRL.java,
2085 java/security/cert/X509CRLEntry.java,
2086 java/security/cert/X509Certificate.java,
2087 java/security/cert/X509Extension.java: Imported from Classpath.
2088 * java/util/Hashtable.java: Imported from Classpath.
2090 * java/util/zip/ZipInputStream.java: Create stub for
2093 * gcj/javaprims.h: Updated class list.
2095 * Makefile.in, gcj/Makefile.in: Rebuilt.
2096 * Makefile.am (ordinary_java_source_files): Add these new classes.
2098 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2100 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2101 * gnu/gcj/awt/GLightweightPeer.java: New file.
2102 * java/awt/BorderLayout.java: Implemented all methods.
2103 * java/awt/Button.java (actionListener, actionCommand): Renamed
2104 and modifier change.
2105 (addNotify): Call super.
2106 (dispatchEventImpl): New method.
2107 (getListeners): New method.
2108 (label): Made package-private, not private.
2109 * java/awt/Canvas.java: Implemented class body.
2110 * java/awt/Color.java (brighter): New method.
2111 (darker): New method.
2112 (hashCode): New method.
2113 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2114 (getGraphicsConfiguration): Delegate to
2115 getGraphicsConfigurationImpl().
2116 (getGraphicsConfigurationImpl): New method.
2117 (getToolkit): Only return value from peer if not null.
2118 (isDisplayable): Check with parent.
2119 (isShowing): No parent implies not showing.
2120 (getForeground): Check parent property if local is null.
2121 (getBackground): Likewise.
2122 (getFont): Likewise.
2123 (setForeground): Inform peer.
2124 (setBackground): Likewise
2125 (setLocale): Invalidate component.
2126 (getColorModel): Implemented.
2127 (setLocation): Invalidate, or ignore if no change.
2128 (setSize): Invalidate, or ignore if no change.
2129 (setBounds): Invalidate, or ignore if no change.
2130 (isOpaque): By default, heavyweight implies opaque.
2131 (isLightweight): Implemented.
2132 (getMaximumSize): Implemented.
2133 (doLayout): Implemented, NOP.
2134 (validate): Implemented, NOP.
2135 (invalidate): Only propagate to parent if parent was valid.
2136 (getGraphics): Implemented.
2137 (getFontMetrics): Implemented.
2138 (update): Implemented.
2139 (paintAll): Implemented.
2140 (repaint): Implemented all repaint methods.
2141 (print): Implemented.
2142 (printAll): Implemented.
2143 (createImage): Implemented.
2144 (dispatchEvent): Give the peer a chance to handle the event.
2145 (dispatchEventImpl): Dispatch paint events.
2146 (enableEvents): Lightweights enable events on parent component.
2147 (coalesceEvents): Coalesce paint events, and select event type
2149 (coalescePaintEvents): New method.
2150 (processEvent): Fix unfortunate ordering of statements, and call
2151 correct method for MOUSE_CLICKED.
2152 (processPaintEvent): New method.
2153 (addNotify): Allow container to notify children before event
2154 mask is set in peer.
2155 (addNotifyContainerChildren): New method.
2156 (removeNotify): Visibility should not change on removeNotify.
2157 (paramString): Implemented.
2158 (list): Implemented two of the list methods.
2159 * Container (myInsets): Removed, insets are managed by peer.
2160 (getInsets): Query peer.
2161 (addImpl): Fix reparenting, enable events for lightweights,
2162 initialize component array.
2163 (validate): Call doLayout in validateTree() instead.
2164 (validateTree): Do nothing if already valid. Call beginValidate(),
2165 endValidate() on peer. Call validateTree() instead of validate()
2166 for children that are containers. Mark valid after validation of
2168 (setFont): Partial implementation.
2169 (paint): Implemented.
2170 (visitChildren): New method.
2171 (visitChild): New method.
2172 (update): Implemented.
2173 (print): Implemented.
2174 (paintComponents): Implemented.
2175 (printComponents): Consider translation and clipping.
2176 (getComponentAt): Ignore invisible children. Return this if no
2178 (addNotify): Call super.
2179 (addNotifyContainerChildren): New method.
2180 (paramString): Implemented.
2181 (list): Implemented.
2182 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2184 (invokeLater): Likewise.
2185 (isDispatchThread): Likewise.
2186 * java/awt/FontMetrics (getLeading): Formula change.
2187 (getDescent): Consider leading also.
2188 (getMaxAscent): Default to getAscent().
2189 (getMaxDescent): Default to getDescent.
2190 (getMaxAdvance): Return value signifying unknown.
2191 (charWidth): Both methods implemented.
2192 (charsWidth): Implemented.
2193 (bytesWidth): Implemented.
2194 (getWidths): Implemented.
2195 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2197 (Frame): Rearragend constuctor chaining to disallow null being
2198 passed as a graphics configuration.
2199 (getTitle): Return empty string if null.
2201 (getIconImage): New method.
2202 (setIconImage): New method.
2203 (finalize): New method.
2204 (setMenuBar): Notify peer.
2205 (isResizable): New method.
2206 (setResizable): New method.
2207 (getState): New method.
2209 (remove): Implemented.
2210 (removeNotify): New method.
2211 (getFrames): New method.
2212 * java/awt/Graphics.java: Implemented body of class.
2213 * java/awt/Graphics2D.java: New file.
2214 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2215 * java/awt/Image.java: Implemented body of class.
2216 * java/awt/Panel.java (Panel): Call correct super constructor.
2217 (addNotify): Implemented.
2218 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2219 * java/awt/RenderingHints.java: New file.
2220 * java/awt/Toolkit.java (createComponent): Implemented.
2221 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2222 * java/awt/Window.java (Window): Two new constructors. Reordered
2223 constructor chaining.
2224 (getGraphicsConfigurationImpl): New method.
2225 (finalize): Call super.
2226 (addNotify): Call super.
2227 (pack): Do layout stuff.
2228 (show): Ensure that peer exists and that component is valid.
2229 (dispose): Dispose owned children.
2230 (getOwner): Simplify code, casting null pointers is valid.
2231 (getGraphicsConfiguration): Ask peer if local value is null.
2232 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2234 * java/awt/image/BufferedImage.java: New file.
2235 * java/awt/image/RasterOp.java: New file.
2236 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2237 More powerfull replacement for getColorModel().
2238 (getColorModel) Removed.
2239 (setEventMask) New method.
2240 * Makefile.am: Added new files.
2241 * Makefile.in: Rebuilt.
2243 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2245 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2246 (finit_leg_name): New global.
2247 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2248 `$finit$'. This is a backward compatibility hack.
2249 (java::lang::Class::_getMethods): Likewise.
2251 2000-08-15 Andrew Haley <aph@cygnus.com>
2253 * include/jvm.h (_Jv_HashCode): New hash code.
2255 2000-08-15 Tom Tromey <tromey@cygnus.com>
2257 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2259 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2261 * THANKS: More thanks.
2263 2000-08-10 Tom Tromey <tromey@cygnus.com>
2265 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2267 (connect): Likewise.
2269 (getOption): Likewise.
2270 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2271 case when errno not set.
2274 (receive): Likewise.
2275 (mcastGrp): Likewise.
2276 (setOption): Likewise.
2277 (getOption): Likewise.
2279 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2280 John Stracke <francis@ecal.com>
2282 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2283 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2285 (disconnect): Don't unset connected flag.
2286 (getHeaderField (String)): Call connect() if not connected.
2287 (getHeaderField (int)): Ditto.
2288 (getHeaderFieldKey): Ditto.
2289 (getHttpHeaders): Don't call connect().
2290 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2291 gotResponseVals): New fields.
2292 (getResponseCode): Call getResponseVals() conditionally.
2293 (getResponseMessage): Ditto.
2294 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2296 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2298 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2299 * Makefile.in: Rebuilt.
2300 * java/awt/Color.java (getTransparency): New method.
2301 * java/awt/Component.java: Various updates.
2302 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2303 after dealing with children.
2304 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2305 * java/awt/Window.java: Various new methods and updates.
2306 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2308 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2309 * java/awt/event/WindowEvent.java (paramString): Ditto.
2310 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2312 * java/awt/geom/Point2D.java (clone): Ditto.
2313 * java/awt/geom/RectangularShape.java (clone): Ditto.
2314 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2315 isAlphaPremultiplied): Make package-private, not private.
2317 2000-08-08 Tom Tromey <tromey@cygnus.com>
2319 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2320 surrogate characters.
2321 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2323 (write): Correct handling of surrogate characters.
2325 2000-08-07 Tom Tromey <tromey@cygnus.com>
2327 * java/lang/reflect/Method.java (hashCode): Use getName().
2328 (toString): Likewise.
2329 * java/lang/reflect/natMethod.cc (getType): Initialize
2332 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2334 * java/lang/reflect/Field.java (toString): Correct formatting.
2337 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2339 (receive): Streamlined.
2341 2000-08-05 Tom Tromey <tromey@cygnus.com>
2343 * java/io/PrintWriter.java: Merged comments from Classpath.
2344 (printlnUnsynchronized): Removed.
2345 (println()): Print the separator.
2346 (println): Call println(), not printlnUnsynchronized.
2347 (out): Now protected, to match spec.
2349 2000-08-04 Tom Tromey <tromey@cygnus.com>
2351 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2352 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2355 2000-08-03 Warren Levy <warrenl@cygnus.com>
2357 * java/io/ObjectInputStream.java (readFields): Turn off
2358 readDataFromBlock while reading via GetField.
2359 (GetField$1.get(String, Object)): Pass Class of default value to
2361 (getField): Allow for null default values.
2363 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2364 (PutField$1.put): Fixed calls of checkType in most of the put
2365 methods to pass the correct parameter.
2366 (PutField$1.put(String, Object)): Allow for null value arg.
2367 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2370 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2371 typo in spec'ed field name.
2372 (getSerialPersistentFields): Changed spelling of method to match
2373 the correct spelling of the spec'ed field name.
2375 2000-08-03 Tom Tromey <tromey@cygnus.com>
2377 * Makefile.in: Rebuilt.
2378 * Makefile.am (awt_java_source_files): Added new files.
2380 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2382 * Makefile.am: Add new AWT stubs.
2383 * java/awt/Canvas.java: New placeholder class.
2384 * java/awt/Checkbox.java: Ditto.
2385 * java/awt/CheckboxMenuItem.java: Ditto.
2386 * java/awt/Choice.java: Ditto.
2387 * java/awt/Dialog.java: Ditto.
2388 * java/awt/FileDialog.java: Ditto.
2389 * java/awt/List.java: Ditto.
2390 * java/awt/ScrollPane.java: Ditto.
2391 * java/awt/TextField.java: Ditto.
2392 * java/awt/datatransfer/Clipboard.java: Ditto.
2393 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2394 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2395 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2396 Some commented out. Partially implemented.
2397 * java/awt/natToolkit.cc: Removed file.
2399 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2401 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2402 Fixes "make -j" builds.
2403 * Makefile.in: Rebuild.
2405 2000-08-02 Tom Tromey <tromey@cygnus.com>
2407 * Makefile.in: Rebuilt.
2408 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2409 * java/net/natPlainSocketImpl.cc: Include posix.h.
2410 (accept): Use _Jv_select.
2411 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2412 (receive): Use _Jv_select.
2413 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2414 (available): Use _Jv_select.
2415 * java/lang/natSystem.cc: Include posix.h.
2416 (currentTimeMillis): Use _Jv_gettimeofday.
2417 * include/posix.h: New file.
2418 * posix.cc: New file.
2420 * scripts/encodings.pl: New file.
2421 * Makefile.in: Rebuilt.
2422 * Makefile.am (convert_source_files): Added IOConverter.java.
2423 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2425 (getDefaultDecodingClass): Canonicalize default encoding name.
2426 (getEncoder): Likewise.
2427 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2429 (getDefaultDecodingClass): Canonicalize default encoding name.
2430 (getDecoder): Likewise.
2431 * gnu/gcj/convert/IOConverter.java: New file.
2433 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2435 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2436 to match C declaration in ffi.h.
2437 * Makefile.am: Add java/awt/Button.java.
2438 * Makefile.in: Rebuilt.
2440 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2442 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2443 cast of the second argument to `ffi_raw_call' changed to match
2446 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2448 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2449 argument to `ffi_raw_call' changed to match prototype.
2451 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2453 * java/awt/Component.java (toString): Implemented.
2454 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2455 dispatchEvent() to dispatch the event.
2456 (removeImpl): Ditto.
2458 2000-07-30 Anthony Green <green@redhat.com>
2460 * java/awt/Component.java: Add treeLock object.
2461 (getTreeLock): Implement.
2462 (isShowing): Implement.
2464 2000-07-30 Tom Tromey <tromey@cygnus.com>
2466 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2468 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2470 * java/awt/Window.java (addNotify): Wrote.
2471 (addWindowListener): Wrote.
2473 (getWarningString): Wrote.
2474 (processEvent): Wrote.
2475 (processWindowEvent): Wrote.
2476 (removeWindowListener): Wrote.
2477 (show): Call validate(), setVisible().
2481 * java/awt/Toolkit.java (createWindow): Declare.
2483 * java/awt/Frame.java (addNotify): Use getToolkit to find
2486 * java/awt/Component.java (invalidate): Wrote.
2488 (getToolkit): Wrote.
2490 * java/awt/Container.java (addContainerListener): Removed
2492 (removeContainerListener): Likewise.
2494 (add(Component)): Use it.
2495 (add(String,Component)): Likewise.
2496 (add(Component,int)): Likewise.
2497 (add(Component,Object)): Likewise.
2498 (add(Component,Object,int)): Likewise.
2500 (getAlignmentX): Wrote.
2501 (getAlignmentY): Wrote.
2502 (getComponentAt): Wrote.
2503 (getMaximumSize): Wrote.
2504 (invalidate): Wrote.
2505 (list(PrintStream,int)): Wrote.
2506 (list(PrintWriter,int)): Wrote.
2507 (getMinimumSize): Wrote.
2508 (getPreferredSize): Wrote.
2509 (printComponents): Wrote.
2510 (processContainerEvent): Look at containerListener, not
2512 (remove): Added event processing and peer destruction.
2513 (removeAll): Use remove.
2514 (removeNotify): Wrote.
2516 (validateTree): Wrote.
2518 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2519 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2520 * java/awt/Container.java (addNotify): Don't create Container
2522 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2524 2000-07-30 Tom Tromey <tromey@cygnus.com>
2526 * java/awt/Container.java (remove(int)): Wrote.
2527 (remove(Component)): Wrote.
2528 (add(Component)): Wrote.
2529 (add(Component,int)): Wrote.
2531 (addNotify): Set our own peer.
2532 * java/awt/Scrollbar.java (listeners): Changed type.
2533 (Scrollbar): Don't initialize listeners.
2535 (setValue): Call setValues.
2536 (setMinimum): Likewise.
2537 (setMaxPriority): Likewise.
2538 (setVisibleAmount): Likewise.
2540 (setUnitIncrement): Forward to peer.
2541 (setLineIncrement): Call setUnitIncrement.
2542 (setPageIncrement): Call setBlockIncrement.
2543 (setBlockIncrement): Forward to peer.
2544 (addAdjustmentListener): Rewrote.
2545 (removeAdjustmentListener): Rewrote.
2546 (processAdjustmentEvent): Rewrote.
2547 (paramString): Wrote.
2548 * Makefile.in: Rebuilt.
2549 * Makefile.am (awt_java_source_files): Added Button.java.
2550 * java/awt/Button.java: New file.
2551 * java/awt/Toolkit.java (createLabel): Declare.
2552 (createButton): Likewise.
2553 (createScrollbar): Likewise.
2554 (createContainer): Likewise.
2555 * java/awt/Label.java (addNotify): Wrote.
2556 (setAlignment): Call setAlignment in the peer.
2557 (setText): Call setText in the peer.
2559 2000-07-28 Warren Levy <warrenl@cygnus.com>
2561 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2562 NotSerializableException with just the class name.
2564 2000-07-26 Andrew Haley <aph@cygnus.com>
2566 * interpret.cc (continue1): Insert missing break into switch.
2568 2000-07-28 Warren Levy <warrenl@cygnus.com>
2570 * java/io/ObjectStreamException.java: Made constructors protected.
2572 2000-07-27 Tom Tromey <tromey@cygnus.com>
2574 * java/io/OutputStreamWriter.java (close): Only flush if not
2577 2000-07-27 Warren Levy <warrenl@cygnus.com>
2579 * mauve-libgcj: Activated serialization tests.
2580 * gcj/field.h (getModifiers): Mask off unknown flags.
2581 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2582 spurious bits don't cause discrepancies.
2583 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2584 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2585 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2586 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2587 * java/lang/Throwable.java (serialVersionUID): New field.
2588 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2589 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2591 * java/lang/reflect/natMethod.cc: Ditto.
2592 * java/security/Key.java (serialVersionUID): Removed field for now.
2593 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2594 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2596 2000-07-22 Tom Tromey <tromey@cygnus.com>
2598 * java/awt/geom/RectangularShape.java (getPathIterator):
2601 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2603 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2604 stub libjava/java/awt/ColorModel.java which was located in the
2606 * libjava/java/awt/image/ComponentColorModel.java: New file.
2607 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2608 * libjava/java/awt/image/DataBuffer.java: New file.
2609 * libjava/java/awt/image/DataBufferByte.java: New file.
2610 * libjava/java/awt/image/DataBufferInt.java: New file.
2611 * libjava/java/awt/image/DataBufferUShort.java: New file.
2612 * libjava/java/awt/image/DirectColorModel.java: New file.
2613 * libjava/java/awt/image/PackedColorModel.java: New file.
2614 * libjava/java/awt/image/Raster.java: New file.
2615 * libjava/java/awt/image/SampleModel.java: New file.
2616 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2618 * libjava/java/awt/image/IndexColorModel.java: New file.
2619 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2620 java.awt.ColorModel stub.
2622 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2623 * gnu/gcj/util/Buffers.java: New file, utility class.
2625 * libjava/Makefile.am: Updated to include new files.
2626 * libjava/Makefile.in: Rebuilt.
2628 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2630 * java/io/StreamTokenizer.java: Merged with classpath.
2632 2000-07-20 Tom Tromey <tromey@cygnus.com>
2634 * Makefile.in: Rebuilt.
2635 * Makefile.am (awt_java_source_files): Updated for new files.
2636 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2637 * java/awt/Label.java: New file.
2638 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2639 (createIntersection, createUnion, getBounds2D): New methods.
2640 * java/awt/Scrollbar.java: New file.
2641 * java/awt/Shape.java: Updated to 1.2.
2642 * java/awt/geom/AffineTransform.java: New file.
2643 * java/awt/geom/Ellipse2D.java: New file.
2644 * java/awt/geom/NoninvertibleTransformException.java: New file.
2645 * java/awt/geom/PathIterator.java: New file.
2646 * java/awt/geom/Rectangle2D.java: New file.
2647 * java/awt/geom/RectangularShape.java: New file.
2648 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2649 * java/awt/geom/IllegalPathStateException.java: New file.
2651 * scripts/showval.java: New file.
2653 * scripts/classes.pl (scan): Print inner classes properly.
2654 * gcj/javaprims.h: Updated class list.
2656 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2657 initialize String fields for interpreted classes. Fixes bug
2658 reported by Hans Boehm.
2660 * java/io/File.java (getParentFile): New method, from Classpath
2661 via Oskar Liljeblad.
2663 * java/util/Vector.java (remove(Object)): Implemented.
2665 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2667 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2668 zero return from backtrace().
2670 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2672 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2674 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2675 before calling notifyAll().
2677 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2679 Add missing files from last check-in:
2680 * java/awt/image/ImageConsumer.java: New file.
2681 * java/awt/image/ImageProducer.java: New file.
2682 * java/awt/image/ImageObserver.java: New file.
2684 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2686 Merged implementation of java.applet from classpath:
2687 * java/applet/Applet.java: New file.
2688 * java/applet/AppletContext.java: New file.
2689 * java/applet/AppletStub.java: New file.
2690 * java/applet/AudioClip.java: New file.
2692 * Makefile.am: Added new java.applet classes.
2693 * Makefile.in: Rebuilt.
2695 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2698 * java/util/ResourceBundle.java (getLocale): stub.
2699 * Makefile.am: Added new AWT classes.
2700 * Makefile.in: Rebuilt.
2701 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2702 constructors. Fix toString() and paramString().
2703 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2704 * java/awt/CheckboxGroup.java: New class.
2705 * java/awt/ColorModel.java: New class.
2706 * java/awt/Component.java: Added stubs for most methods. Implemented
2708 * java/awt/Container.java: ditto.
2709 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2710 * java/awt/Cursor.java: ditto.
2711 * java/awt/Event.java: Fix paramString().
2712 * java/awt/EventQueue.java: New class. Implemented.
2713 * java/awt/Font.java: Added additional stub methods. Implemented
2715 * java/awt/FontMetrics.java: New class. Stubbed.
2716 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2718 * java/awt/Insets.java: New class. Implemented.
2719 * java/awt/Menu.java: Add new methods. Partially implemented.
2720 * java/awt/MenuItem.java: Add new methods and fields. Partially
2722 * java/awt/MenuShortcut.java: New class. Implemented.
2723 * java/awt/Panel.java: New class. Placeholder.
2724 * java/awt/PopupMenu.java: New class. Stubbed.
2725 * java/awt/Rectangle.java: New class. Implemented.
2726 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2727 * java/awt/event/ActionEvent.java: Implement paramString().
2728 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2729 * java/awt/event/ComponentEvent.java: Implement paramString().
2730 * java/awt/event/ContainerEvent.java: Implement paramString().
2731 * java/awt/event/FocusEvent.java: Implement paramString().
2732 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2733 * java/awt/event/HierarchyBoundsListener.java: New class.
2734 * java/awt/event/HierarchyEvent.java: New class.
2735 * java/awt/event/HierarchyListener.java: New class.
2736 * java/awt/event/InputMethodEvent.java: Implement paramString().
2737 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2738 exception if !catchExceptions.
2739 * java/awt/event/ItemEvent.java: Implement paramString().
2740 * java/awt/event/KeyEvent.java: Implement paramString().
2741 * java/awt/event/MouseEvent.java: Implement paramString().
2742 * java/awt/event/PaintEvent.java: Implement paramString().
2743 * java/awt/event/TextEvent.java: Implement paramString().
2744 * java/awt/event/WindowEvent.java: Implement paramString().
2746 AWT Peer interfaces:
2747 * java/awt/peer/ButtonPeer.java: New file.
2748 * java/awt/peer/ListPeer.java: New file.
2749 * java/awt/peer/CanvasPeer.java: New file.
2750 * java/awt/peer/MenuBarPeer.java: New file.
2751 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2752 * java/awt/peer/MenuComponentPeer.java: New file.
2753 * java/awt/peer/CheckboxPeer.java: New file.
2754 * java/awt/peer/MenuItemPeer.java: New file.
2755 * java/awt/peer/ChoicePeer.java: New file.
2756 * java/awt/peer/MenuPeer.java: New file.
2757 * java/awt/peer/ComponentPeer.java: Implemented.
2758 * java/awt/peer/PanelPeer.java: New file.
2759 * java/awt/peer/ContainerPeer.java: Implemented.
2760 * java/awt/peer/PopupMenuPeer.java: New file.
2761 * java/awt/peer/DialogPeer.java: New file.
2762 * java/awt/peer/ScrollPanePeer.java: New file.
2763 * java/awt/peer/FileDialogPeer.java: New file.
2764 * java/awt/peer/ScrollbarPeer.java: New file.
2765 * java/awt/peer/FontPeer.java: New file.
2766 * java/awt/peer/TextAreaPeer.java: New file.
2767 * java/awt/peer/FramePeer.java: Implemented.
2768 * java/awt/peer/TextComponentPeer.java: New file.
2769 * java/awt/peer/LabelPeer.java: New file.
2770 * java/awt/peer/TextFieldPeer.java: New file.
2771 * java/awt/peer/LightweightPeer.java: New file.
2772 * java/awt/peer/WindowPeer.java: Implemented.
2774 2000-07-06 Tom Tromey <tromey@cygnus.com>
2776 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2777 Initialize static final String fields.
2779 2000-07-03 Tom Tromey <tromey@cygnus.com>
2781 * java/io/PrintWriter.java (print): Call write(String), not
2782 print(String). See PR libgcj/277.
2783 (print(String)): Use write, not out.write.
2785 2000-06-30 Tom Tromey <tromey@cygnus.com>
2787 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2789 2000-06-27 Andrew Haley <aph@cygnus.com>
2791 * java/io/File.java (createTempFile): Close the FileDescriptor
2792 used to create a temp file. Fixes some of PR 203.
2793 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2794 collection if we run out of file handles.
2796 2000-06-28 Warren Levy <warrenl@cygnus.com>
2798 * gnu/java/security/provider/Gnu.java: New file.
2799 * gnu/java/security/provider/SHA.java: New file.
2800 * gnu/java/security/provider/SHA1PRNG.java: New file.
2801 * Makefile.am: Added the above files.
2802 * Makefile.in: Rebuilt.
2804 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2806 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2808 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2809 (destroyed_flag): Removed.
2810 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2811 (activeCount): Added spec note.
2813 2000-06-27 Warren Levy <warrenl@cygnus.com>
2815 * java/security/Principal.java: New file.
2816 * Makefile.am: Added Principal.java.
2817 * Makefile.in: Rebuilt.
2819 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2821 * java/awt/event/MouseEvent.java: Fixed coordinate space
2824 2000-06-27 Tom Tromey <tromey@cygnus.com>
2826 * java/io/PushbackInputStream.java (read): If there are characters
2827 in the buffer, don't also call super.read().
2828 * java/io/PushbackReader.java (read): If there are characters in
2829 the buffer, don't also call super.read().
2831 * java/lang/Double.java (valueOf): Call parseDouble().
2833 2000-06-26 Warren Levy <warrenl@cygnus.com>
2835 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2836 (newVal): Renamed to newValue.
2837 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2838 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2839 (revokeNow): Renamed to invalidateRefs.
2840 * java/io/OptionalDataException.java: Updated FIXME.
2841 (eof): New placeholder field.
2843 * java/io/WriteAbortedException.java (message): Made transient.
2844 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2845 * java/lang/Throwable.java (stackTrace): Made transient.
2846 * java/net/InetAddress.java: Made Serializable.
2847 * java/security/KeyPair.java: Made Serializable.
2848 * java/security/Provider.java: Replaced with Classpath version that
2849 implements serialization and proper methods.
2850 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2851 (limits): Renamed to choiceLimits.
2853 2000-06-24 Tom Tromey <tromey@cygnus.com>
2855 * java/lang/natDouble.cc (parseDouble): Renamed from
2857 * java/lang/Double.java (parseDouble): Renamed from
2858 doubleValueOf. Now public.
2860 2000-06-23 Andrew Haley <aph@cygnus.com>
2862 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2863 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2865 2000-06-23 Tom Tromey <tromey@cygnus.com>
2867 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2868 * java/lang/natDouble.cc: Always include <alloca.h>.
2869 Fix for PR libgcj/267.
2871 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2873 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2874 comply with classpath VM spec.
2875 (add(Group)): Rename to addGroup().
2876 * java/lang/Thread.java (Thread): Use addThread().
2877 * java/lang/natThread.cc (finish_): Use removeThread().
2879 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2881 * java/lang/ThreadGroup.java: Merged with classpath.
2882 * prims.cc (_Jv_RunMain): Don't use `main_group'.
2883 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2885 * java/lang/Thread.java (Thread): Bootstrap initial thread from
2886 ThreadGroup.root if Thread.currentThread is null. Honour the
2887 ThreadGroup's max priority setting.
2889 2000-06-18 Tom Tromey <tromey@cygnus.com>
2891 * java/lang/natClass.cc (forName): Removed dead code. Initialize
2892 returned class. For PR gcj/260.
2894 2000-06-16 Tom Tromey <tromey@cygnus.com>
2896 Fix for PR libgcj/261:
2897 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2899 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2900 argument. (This is a patch from long ago that somehow went
2903 2000-06-15 Tom Tromey <tromey@cygnus.com>
2905 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2909 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2911 Fix for PR java.lang/258:
2912 * prims.cc (_Jv_PrimClass): Set state of primitive class to
2913 JV_STATE_DONE, to prevent accidental initialization.
2914 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
2915 _Jv_InterfaceAssignableFrom if target is an interface and source is an
2916 interface or an abstract class. Remove redundant initializeClass calls.
2917 Remove duplicate if_idt test.
2918 (_Jv_InterfaceAssignableFrom): New function.
2919 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2921 2000-05-31 Tom Tromey <tromey@cygnus.com>
2923 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2924 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2925 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2926 (NUM_OBJECT_METHODS): New define.
2927 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2928 `array_vtable' parameter. Added assertion.
2929 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2932 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
2934 * gcj/cni.h: Include <string.h>.
2935 * defineclass.cc: Include <alloca.h>.
2936 * interpret.cc: Ditto.
2937 * gij.cc: Include <stdlib.h>.
2939 2000-05-30 Tom Tromey <tromey@cygnus.com>
2941 * include/name-finder.h: Include <sys/wait.h>.
2942 (_Jv_name_finder::pid): Now of type `pid_t'.
2943 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2944 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2947 2000-05-24 Warren Levy <warrenl@cygnus.com>
2949 * java/io/ObjectOutputStream.java (writeObject): Use component type
2950 when writing arrays.
2953 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2955 Fix for PR libgcj/226:
2956 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2957 since this is an installed header.
2959 Fix for PR libgcj/228:
2960 * java/util/zip/ZipFile (getInputStream): Create inflater with
2963 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2964 with DataFormatException.
2966 2000-05-20 Tom Tromey <tromey@cygnus.com>
2968 * Makefile.in: Rebuilt.
2969 * Makefile.am (hack1): Removed.
2970 (awto_files): Likewise.
2971 (libgcjawt_la_SOURCES): Likewise.
2972 (EXTRA_libgcjawt_la_SOURCES): Likewise.
2973 (libgcjawt_la_DEPENDENCIES): Likewise.
2974 (libgcjawt_la_LIBADD): Likewise.
2975 (libgcjawt_la_LDFLAGS): Likewise.
2976 (libgcjawt_la_LINK): Likewise.
2977 ($(awt_java_source_files:.java=.class)): Likewise.
2978 (libgcj.zip): Don't depend on AWT files.
2979 (MOSTLYCLEANFILES): Don't include AWT files.
2980 ($(awto_files)): Removed.
2981 (nat_headers): Removed AWT files.
2982 (cond_awt_java_source_files): Removed.
2983 (ordinary_java_source_files): Added awt_java_source_files.
2984 * libgcj.spec.in (*lib): Removed -lgcjawt.
2985 * configure: Rebuilt.
2986 * configure.in: Removed --enable-java-awt option.
2988 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2990 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
2991 (ZipEntry): Copy the `name' field.
2992 (clone): Implement JDK1.2 method.
2993 (setCompressedSize): ditto.
2996 2000-05-19 Tom Tromey <tromey@cygnus.com>
2998 * java/io/BufferedWriter.java: Merged with Classpath.
2999 * java/io/BufferedOutputStream.java: Merged with Classpath.
3001 2000-05-16 Andrew Haley <aph@cygnus.com>
3003 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3004 build_ia64_frame_state.
3005 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3008 2000-05-15 Warren Levy <warrenl@cygnus.com>
3010 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3011 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3012 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3013 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3014 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3015 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3016 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3017 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3018 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3019 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3020 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3021 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3022 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3023 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3024 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3025 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3026 * gnu/gcj/io/NullOutputStream.java: Removed.
3027 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3028 * gnu/gcj/lang/ArrayHelper.java: Removed.
3029 * gnu/gcj/lang/ClassHelper.java: Removed.
3030 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3032 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3033 * gnu/java/beans/EmptyBeanInfo.java: New file.
3034 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3035 * gnu/java/beans/IntrospectionIncubator.java: New file.
3036 * gnu/java/beans/editors/ColorEditor.java: New file.
3037 * gnu/java/beans/editors/FontEditor.java: New file.
3038 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3039 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3040 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3041 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3042 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3043 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3044 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3045 * gnu/java/beans/editors/StringEditor.java: New file.
3046 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3047 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3048 * gnu/java/io/NullOutputStream.java: New file.
3049 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3050 * gnu/java/lang/ArrayHelper.java: New file.
3051 * gnu/java/lang/ClassHelper.java: New file.
3052 * gnu/java/lang/reflect/TypeSignature.java: New file.
3054 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3055 namespace back to the original Classpath gnu/java namespace.
3056 * Makefile.in: Rebuilt.
3058 * java/beans/Beans.java: Namespace change.
3059 * java/beans/EventSetDescriptor.java: Namespace change.
3060 * java/beans/Introspector.java: Namespace change.
3061 * java/beans/PropertyEditorManager.java: Namespace change.
3062 * java/io/ObjectInputStream.java: Namespace change.
3063 * java/io/ObjectOutputStream.java: Namespace change.
3064 * java/io/ObjectStreamClass.java: Namespace change.
3065 * java/io/ObjectStreamField.java: Namespace change.
3067 2000-04-21 Warren Levy <warrenl@cygnus.com>
3069 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3070 now that compiler patch is available.
3071 Removed unneeded System.loadLibrary.
3072 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3073 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3075 2000-04-19 Andrew Haley <aph@cygnus.com>
3077 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3078 and target classes have been initialized.
3080 2000-04-19 Andrew Haley <aph@cygnus.com>
3082 * java/lang/String.java: implement Serializable, Comparable.
3083 (compareTo (Object)): New method.
3085 2000-04-19 Warren Levy <warrenl@cygnus.com>
3087 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3088 instead of getField to retrieve non-public field.
3089 (getSerialPersistantFields): Ditto.
3091 2000-04-18 Warren Levy <warrenl@cygnus.com>
3093 * mauve-libgcj: Turned off object serialization tests temporarily
3094 due to compiler error.
3096 2000-04-17 Warren Levy <warrenl@cygnus.com>
3098 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3099 to avoid build problem.
3101 * mauve-libgcj: Turned on object serialization tests.
3103 2000-04-17 Tom Tromey <tromey@cygnus.com>
3105 * libgcj.spec.in (*lib): Added -lgcjawt.
3107 2000-04-17 Andrew Haley <aph@cygnus.com>
3109 * Makefile.am: Add new files:
3110 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3112 * Makefile.in: Rebuilt.
3114 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3115 interface that has no implementations.
3116 Check for an attempt to assign an abstract class to an interface.
3118 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3119 if we fail to find MessageDigest.getInstance ("SHA").
3121 * gnu/gcj/io/SimpleSHSStream.java: New file.
3122 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3123 * gnu/gcj/io/shs.cc: New file.
3124 * gnu/gcj/io/shs.h: new file.
3126 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3129 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3130 punctuation from the classname of an array element.
3132 * gcj/javaprims.h: Add SimpleDigestStream.
3134 2000-04-17 Andrew Haley <aph@cygnus.com>
3136 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3137 to getPrivateField for superclasses.
3139 2000-04-14 Andrew Haley <aph@cygnus.com>
3141 * Makefile.am: Add new files:
3142 java/io/ObjectOutputStream$PutField.h,
3143 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3144 java/io/natObjectOutputStream.cc
3145 * Makefile.in: Rebuilt.
3146 * gcj/Makefile.in: Rebuilt.
3147 * include/Makefile.in: Rebuilt.
3148 * java/lang/Class.h (getPrivateField): New method.
3149 (getPrivateMethod): Ditto.
3150 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3151 and java::io::ObjectStreamClass our friends.
3152 * java/lang/natClass.cc (getPrivateField): New method.
3153 (getPrivateMethod): Ditto.
3154 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3155 * gcj/javaprims.h: Add serialization classes.
3156 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3157 (setByteField): Ditto.
3158 (setCharField): Ditto.
3159 (setDoubleField): Ditto.
3160 (setFloatField): Ditto.
3161 (setIntField): Ditto.
3162 (setLongField): Ditto.
3163 (setShortField): Ditto.
3164 (setObjectField): Ditto.
3165 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3167 (getByteField): Ditto.
3168 (getCharField): Ditto.
3169 (getDoubleField): Ditto.
3170 (getFloatField): Ditto.
3171 (getIntField): Ditto.
3172 (getLongField): Ditto.
3173 (getShortField): Ditto.
3174 (getObjectField): Ditto.
3175 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3177 (getSerialPersistantFields): Ditto.
3178 (getDefinedSUID): Ditto.
3179 * java/io/natObjectOutputStream.cc: New file.
3180 * java/io/natObjectInputStream.cc: New file.
3182 2000-04-13 Warren Levy <warrenl@cygnus.com>
3184 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3185 problems. Revert to previous version to reproduce and when fixed.
3187 2000-04-13 Warren Levy <warrenl@cygnus.com>
3189 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3190 * gnu/gcj/io/NullOutputStream.java: New file.
3191 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3192 * java/io/BlockDataException.java: New file.
3193 * java/io/Externalizable.java: New file.
3194 * java/io/InvalidClassException.java: New file.
3195 * java/io/InvalidObjectException.java: New file.
3196 * java/io/NotActiveException.java: New file.
3197 * java/io/NotSerializableException.java: New file.
3198 * java/io/ObjectInput.java: New file.
3199 * java/io/ObjectInputStream.java: New file.
3200 * java/io/ObjectInputValidation.java: New file.
3201 * java/io/ObjectOutput.java: New file.
3202 * java/io/ObjectOutputStream.java: New file.
3203 * java/io/ObjectStreamClass.java: New file.
3204 * java/io/ObjectStreamConstants.java: New file.
3205 * java/io/ObjectStreamField.java: New file.
3206 * java/io/Replaceable.java: New file.
3207 * java/io/Resolvable.java: New file.
3208 * java/io/SerializablePermission.java: New file.
3209 * java/io/WriteAbortedException.java: New file.
3210 * java/security/BasicPermission.java: New file.
3211 * java/security/DigestOutputStream.java: New file.
3212 * java/security/Guard.java: New file.
3213 * java/security/Permission.java: New file.
3214 * java/security/PermissionCollection.java: New file.
3215 * Makefile.am: Added above files.
3216 * Makefile.in: Rebuilt.
3218 * java/beans/Beans.java (instantiate): Activated serialization code.
3219 * java/lang/SecurityManager.java (checkPermission): New method.
3221 2000-04-12 Warren Levy <warrenl@cygnus.com>
3223 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3224 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3225 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3226 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3227 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3228 * gnu/gcj/beans/editors/FontEditor.java: New file.
3229 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3230 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3231 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3232 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3233 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3234 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3235 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3236 * gnu/gcj/beans/editors/StringEditor.java: New file.
3237 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3238 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3239 * gnu/gcj/lang/ArrayHelper.java: New file.
3240 * gnu/gcj/lang/ClassHelper.java: New file.
3241 * java/beans/BeanDescriptor.java: New file.
3242 * java/beans/BeanInfo.java: New file.
3243 * java/beans/Beans.java: New file.
3244 * java/beans/Customizer.java: New file.
3245 * java/beans/DesignMode.java: New file.
3246 * java/beans/EventSetDescriptor.java: New file.
3247 * java/beans/FeatureDescriptor.java: New file.
3248 * java/beans/IndexedPropertyDescriptor.java: New file.
3249 * java/beans/IntrospectionException.java: New file.
3250 * java/beans/Introspector.java: New file.
3251 * java/beans/MethodDescriptor.java: New file.
3252 * java/beans/ParameterDescriptor.java: New file.
3253 * java/beans/PropertyChangeEvent.java: New file.
3254 * java/beans/PropertyChangeListener.java: New file.
3255 * java/beans/PropertyChangeSupport.java: New file.
3256 * java/beans/PropertyDescriptor.java: New file.
3257 * java/beans/PropertyEditor.java: New file.
3258 * java/beans/PropertyEditorManager.java: New file.
3259 * java/beans/PropertyEditorSupport.java: New file.
3260 * java/beans/PropertyVetoException.java: New file.
3261 * java/beans/SimpleBeanInfo.java: New file.
3262 * java/beans/VetoableChangeListener.java: New file.
3263 * java/beans/VetoableChangeSupport.java: New file.
3264 * java/beans/Visibility.java: New file.
3265 * java/beans/beancontext/BeanContext.java: New file.
3266 * java/beans/beancontext/BeanContextChild.java: New file.
3267 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3268 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3269 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3270 * java/beans/beancontext/BeanContextEvent.java: New file.
3271 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3272 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3273 * java/beans/beancontext/BeanContextProxy.java: New file.
3274 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3276 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3277 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3279 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3280 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3282 * java/beans/beancontext/BeanContextServices.java: New file.
3283 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3284 * java/util/AbstractCollection.java: New file.
3285 * java/util/AbstractList.java: New file.
3286 * java/util/Arrays.java: New file.
3287 * Makefile.am: Added above files.
3288 * Makefile.in: Rebuilt.
3290 2000-04-11 Warren Levy <warrenl@cygnus.com>
3292 * java/awt/AWTError.java: New file.
3293 * java/awt/AWTEvent.java: New file.
3294 * java/awt/AWTException.java: New file.
3295 * java/awt/ActiveEvent.java: New file.
3296 * java/awt/Adjustable.java: New file.
3297 * java/awt/BorderLayout.java: New file.
3298 * java/awt/Color.java: New file.
3299 * java/awt/Component.java: New file.
3300 * java/awt/Container.java: New file.
3301 * java/awt/Dimension.java: New file.
3302 * java/awt/Event.java: New file.
3303 * java/awt/Font.java: New file.
3304 * java/awt/Frame.java: New file.
3305 * java/awt/Graphics.java: New file.
3306 * java/awt/IllegalComponentStateException.java: New file.
3307 * java/awt/Image.java: New file.
3308 * java/awt/ItemSelectable.java: New file.
3309 * java/awt/LayoutManager.java: New file.
3310 * java/awt/LayoutManager2.java: New file.
3311 * java/awt/Menu.java: New file.
3312 * java/awt/MenuBar.java: New file.
3313 * java/awt/MenuComponent.java: New file.
3314 * java/awt/MenuContainer.java: New file.
3315 * java/awt/MenuItem.java: New file.
3316 * java/awt/Paint.java: New file.
3317 * java/awt/PaintContext.java: New file.
3318 * java/awt/Point.java: New file.
3319 * java/awt/Rectangle.java: New file.
3320 * java/awt/Shape.java: New file.
3321 * java/awt/TextArea.java: New file.
3322 * java/awt/TextComponent.java: New file.
3323 * java/awt/Toolkit.java: New file.
3324 * java/awt/Transparency.java: New file.
3325 * java/awt/Window.java: New file.
3326 * java/awt/natToolkit.cc: New file.
3327 * java/awt/event/AWTEventListener.java: New file.
3328 * java/awt/event/ActionEvent.java: New file.
3329 * java/awt/event/ActionListener.java: New file.
3330 * java/awt/event/AdjustmentEvent.java: New file.
3331 * java/awt/event/AdjustmentListener.java: New file.
3332 * java/awt/event/ComponentAdapter.java: New file.
3333 * java/awt/event/ComponentEvent.java: New file.
3334 * java/awt/event/ComponentListener.java: New file.
3335 * java/awt/event/ContainerAdapter.java: New file.
3336 * java/awt/event/ContainerEvent.java: New file.
3337 * java/awt/event/ContainerListener.java: New file.
3338 * java/awt/event/FocusAdapter.java: New file.
3339 * java/awt/event/FocusEvent.java: New file.
3340 * java/awt/event/FocusListener.java: New file.
3341 * java/awt/event/InputEvent.java: New file.
3342 * java/awt/event/InputMethodEvent.java: New file.
3343 * java/awt/event/InputMethodListener.java: New file.
3344 * java/awt/event/InvocationEvent.java: New file.
3345 * java/awt/event/ItemEvent.java: New file.
3346 * java/awt/event/ItemListener.java: New file.
3347 * java/awt/event/KeyAdapter.java: New file.
3348 * java/awt/event/KeyEvent.java: New file.
3349 * java/awt/event/KeyListener.java: New file.
3350 * java/awt/event/MouseAdapter.java: New file.
3351 * java/awt/event/MouseEvent.java: New file.
3352 * java/awt/event/MouseListener.java: New file.
3353 * java/awt/event/MouseMotionAdapter.java: New file.
3354 * java/awt/event/MouseMotionListener.java: New file.
3355 * java/awt/event/PaintEvent.java: New file.
3356 * java/awt/event/TextEvent.java: New file.
3357 * java/awt/event/TextListener.java: New file.
3358 * java/awt/event/WindowAdapter.java: New file.
3359 * java/awt/event/WindowEvent.java: New file.
3360 * java/awt/event/WindowListener.java: New file.
3361 * java/awt/geom/Dimension2D.java: New file.
3362 * java/awt/geom/Point2D.java: New file.
3363 * java/awt/peer/ComponentPeer.java: New file.
3364 * java/awt/peer/ContainerPeer.java: New file.
3365 * java/awt/peer/FramePeer.java: New file.
3366 * java/awt/peer/WindowPeer.java: New file.
3367 * java/util/Collection.java: New file.
3368 * java/util/Comparator.java: New file.
3369 * java/util/Iterator.java: New file.
3370 * java/util/List.java: New file.
3371 * java/util/ListIterator.java: New file.
3372 * Makefile.am: Added above files.
3373 * Makefile.in: Rebuilt.
3375 2000-04-10 Warren Levy <warrenl@cygnus.com>
3377 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3378 * java/lang/FirstThread.java: Ditto.
3379 * java/lang/StringBuffer.java: Ditto.
3380 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3382 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3383 Special case handled in java.math.BigInteger.
3384 * java/math/BigInteger.java (divide): Handle the special case when
3385 dividing by 1 and the high bit of the dividend is set.
3386 (setShiftRight): Handle case when count == 0.
3388 2000-04-05 Andrew Haley <aph@cygnus.com>
3390 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3393 2000-04-05 Andrew Haley <aph@cygnus.com>
3395 * sysdep/ia64.c (rse_address_add): Delete.
3396 (IS_NaT_COLLECTION_ADDR): Delete.
3397 (ia64_backtrace_helper): check for null unwind_info.
3399 * sysdep/ia64-frame.h: add calc_caller_bsp.
3401 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3404 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3405 (_Jv_remI): Likewise.
3406 (_Jv_divJ): Likewise.
3407 (_Jv_remJ): Likewise.
3409 * interpret.cc (continue1): Use divide subroutines to guarantee
3410 correct Java standard behaviour.
3411 Floating-point division should not abort; make it so.
3413 2000-03-29 Tom Tromey <tromey@cygnus.com>
3415 * configure: Rebuilt.
3416 * configure.in: Test against `libgcj_sjlj', not
3417 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3418 to be set even when using sjlj.
3420 2000-03-24 Andrew Haley <aph@cygnus.com>
3422 * Makefile.am: Add file addr2name.awk.
3423 * Makefile.in: Rebuilt.
3424 * addr2name.awk: New file.
3425 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3427 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3430 2000-03-22 Andrew Haley <aph@cygnus.com>
3432 * configure.host: Add -funwind-tables for IA64.
3433 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3434 * Makefile.in: Rebuilt.
3435 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3436 * sysdep/ia64.c: New file.
3437 * sysdep/ia64-frame.h: New file.
3438 * configure.in: Add sysdep/ia64.c for ia64.
3439 * configure: Rebuilt.
3441 2000-03-17 Andrew Haley <aph@cygnus.com>
3443 * java/lang/natString.cc: Remove `register' keyword.
3444 interpret.cc: ditto.
3446 2000-03-16 Andrew Haley <aph@cygnus.com>
3448 * configure.host (ia64): Enable interpreter.
3450 2000-03-14 Hans Boehm <boehm@acm.org>
3452 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3454 2000-03-14 Andrew Haley <aph@cygnus.com>
3456 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3459 2000-03-10 Andrew Haley <aph@cygnus.com>
3461 * java/lang/ieeefp.h: Import latest version from fdlibm.
3463 2000-03-14 Andrew Haley <aph@cygnus.com>
3465 * prims.cc (_Jv_ThrowSignal): New function.
3466 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3468 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3469 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3470 * include/ppc-signal.h: New file.
3472 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3474 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3475 * java/lang/natThread.java (initialize_native): Cast `data' to
3477 * gnu/gcj/RawData.java: Clarify documentation.
3479 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3480 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3481 `jarFile', not `jarFileURL'.
3483 2000-05-15 Andrew Haley <aph@cygnus.com>
3485 * include/ppc-signal.h: New file.
3487 2000-05-11 Tom Tromey <tromey@cygnus.com>
3489 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3490 file headers, don't include `size' in the skip call.
3492 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3494 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3495 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3497 (replace): Reimplemented. Fix javadoc.
3498 (reverse): Call ensureCapacity_unsynchronized().
3499 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3501 (replace): Calculate length for arraycopy() correctly.
3503 2000-05-09 Tom Tromey <tromey@cygnus.com>
3505 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3507 (insert(int,char[],int,int): New method.
3508 (delete): New method from Classpath.
3509 (deleteCharAt): Likewise.
3510 (substring): Likewise.
3511 (shared): No longer private.
3512 Added JavaDoc comments from Classpath.
3513 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3516 2000-05-07 Tom Tromey <tromey@cygnus.com>
3518 * Makefile.in: Rebuilt.
3519 * Makefile.am (LIBLINK): New macro.
3520 (libgcj_la_LINK): Use it.
3521 (libgcjawt_la_LINK): Likewise.
3523 2000-05-06 Tom Tromey <tromey@cygnus.com>
3525 * Makefile.in: Rebuilt.
3526 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3528 2000-05-05 Tom Tromey <tromey@cygnus.com>
3530 Fix for PR libgcj/220:
3531 * Makefile.in: Rebuilt.
3532 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3533 (jv_convert_LDFLAGS): Likewise.
3534 (libgcj_la_LDFLAGS): Likewise.
3535 (GCJLINK): New macro.
3536 (jv_convert_LINK): Use it.
3537 (gij_LINK): Likewise.
3538 (libgcj_la_LINK): New macro.
3539 (libgcjawt_la_LINK): Likewise.
3541 2000-05-04 Tom Tromey <tromey@cygnus.com>
3543 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3545 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3549 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3551 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3552 (_Jv_IsAssignableFrom): Ditto.
3553 (_Jv_IsInstanceOf): Ditto.
3554 (_Jv_CheckCast): Ditto.
3555 (_Jv_CheckArrayStore): Ditto.
3556 * java/lang/Class.h (_Jv_InitClass): Ditto.
3557 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3562 (_Jv_MonitorExit): Ditto.
3563 * boehm.cc (_Jv_MarkObj): Ditto.
3564 (_Jv_MarkObj): Ditto.
3565 (_Jv_MarkArray): Ditto.
3566 * prims.cc (_Jv_AllocObject): Ditto.
3567 (_Jv_NewObjectArray): Ditto.
3568 (_Jv_NewPrimArray): Ditto.
3569 (_Jv_Malloc): Ditto.
3570 (_Jv_Realloc): Ditto.
3571 (_Jv_MallocUnchecked): Ditto.
3577 2000-05-04 Tom Tromey <tromey@cygnus.com>
3579 * java/util/Locale.java (Locale): Don't explicitly check for
3581 * java/util/Hashtable.java (containsKey): Don't explicitly check
3584 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3586 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3588 * java/text/StringCharacterIterator.java
3589 (StringCharacterIterator): Don't check for null.
3590 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3592 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3593 check for null pointer.
3594 (leaveGroup): Likewise.
3595 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3597 (setData): Likewise.
3598 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3601 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3603 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3604 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3605 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3606 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3607 -rpath for in-gcc builds.
3608 * Makefile.in: Rebuilt.
3610 2000-04-28 Tom Tromey <tromey@cygnus.com>
3612 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3615 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3617 * libjava/java/lang/String.java (toString): Remove `final' hack.
3619 2000-04-05 Tom Tromey <tromey@cygnus.com>
3621 Runtime support for PR gcj/2:
3622 * prims.cc (_Jv_ThrowNullPointerException): New function.
3623 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3625 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3627 * prims.cc (_Jv_NewObjectArray): Fix typo.
3629 2000-04-26 Tom Tromey <tromey@cygnus.com>
3631 * Makefile.in: Rebuilt.
3632 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3634 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3636 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3639 2000-04-22 Anthony Green <green@cygnus.com>
3641 * include/jvm.h (__builtin_expect): Define as unused for now.
3642 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3646 (_Jv_MonitorExit): Ditto.
3647 * boehm.cc (_Jv_MarkObj): Ditto.
3648 (_Jv_MarkObj): Ditto.
3649 (_Jv_MarkArray): Ditto.
3650 (_Jv_AllocBytes): Ditto.
3651 * prims.cc (_Jv_AllocObject): Ditto.
3652 (_Jv_NewObjectArray): Ditto.
3653 (_Jv_NewPrimArray): Ditto.
3654 (_Jv_Malloc): Ditto.
3655 (_Jv_Realloc): Ditto.
3656 (_Jv_MallocUnchecked): Ditto.
3662 * include/Makefile.in: Rebuilt.
3663 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3665 2000-04-21 Tom Tromey <tromey@cygnus.com>
3667 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3668 Yet another new version from Classpath.
3670 Fix for PR libgcj/15:
3671 * java/util/natGregorianCalendar.cc (_REENTRANT,
3672 _POSIX_PTHREAD_SEMANTICS): Don't define.
3673 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3674 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3676 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3678 * configure: Rebuilt.
3679 * configure.in: If using POSIX threads, define _REENTRANT if
3680 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3681 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3683 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3684 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3685 version from Classpath.
3687 Fix for PR libgcj/213:
3688 * Makefile.in: Rebuilt.
3689 * Makefile.am (gij_SOURCES): Added gij.cc.
3690 (EXTRA_gij_SOURCES): Removed.
3691 (gij_LDADD): Removed gij.lo.
3692 (gij_DEPENDENCIES): Likewise.
3693 ($(gij_OBJECTS)): Depend on nat_headers.
3695 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3696 `setURL', not `url.set'.
3698 2000-04-20 Tom Tromey <tromey@cygnus.com>
3700 Fix for PR java.io/204:
3701 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3702 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3705 Fix for PR libgcj/212:
3706 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3707 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3708 * java/lang/Class.h (_Jv_word): Declare.
3710 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3712 2000-04-19 Tom Tromey <tromey@cygnus.com>
3714 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3715 doesn't have a loader.
3717 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3719 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3720 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3722 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3724 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3726 (available): Initialize `where' to prevent bogus compiler warning.
3728 2000-04-12 Tom Tromey <tromey@cygnus.com>
3730 * java/lang/natString.cc (intern): Temporarily disable finalizer
3733 * java/lang/natString.cc (unintern): Added `obj' argument.
3734 (intern): Register finalizer for string.
3735 * java/lang/String.java (unintern): Now static; added obj
3738 2000-04-11 Tom Tromey <tromey@cygnus.com>
3740 * java/util/Vector.java (VectorEnumeration): Now `final'.
3741 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3742 (HashtableEnumeration): Likewise.
3743 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3744 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3746 2000-04-10 Warren Levy <warrenl@cygnus.com>
3748 * java/io/ObjectStreamException.java: New file.
3749 * java/io/OptionalDataException.java: New file.
3750 * java/io/StreamCorruptedException.java: New file.
3751 * java/math/BigDecimal.java: New file.
3752 * java/sql/CallableStatement.java: New file.
3753 * java/sql/Connection.java: New file.
3754 * java/sql/DataTruncation.java: New file.
3755 * java/sql/DatabaseMetaData.java: New file.
3756 * java/sql/Date.java: New file.
3757 * java/sql/Driver.java: New file.
3758 * java/sql/DriverManager.java: New file.
3759 * java/sql/DriverPropertyInfo.java: New file.
3760 * java/sql/PreparedStatement.java: New file.
3761 * java/sql/ResultSet.java: New file.
3762 * java/sql/ResultSetMetaData.java: New file.
3763 * java/sql/SQLException.java: New file.
3764 * java/sql/SQLWarning.java: New file.
3765 * java/sql/Statement.java: New file.
3766 * java/sql/Time.java: New file.
3767 * java/sql/Timestamp.java: New file.
3768 * java/sql/Types.java: New file.
3769 * Makefile.am: Added above new files.
3770 * Makefile.in: Rebuilt.
3772 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3773 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3774 DatagramSocket constructor instead of null.
3776 2000-04-08 Anthony Green <green@cygnus.com>
3778 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3781 2000-04-08 Anthony Green <green@cygnus.com>
3783 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3784 (_Jv_MutexUnlock): Ditto.
3785 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3786 (_Jv_MutexUnlock): Ditto.
3788 2000-04-08 Anthony Green <green@cygnus.com>
3790 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3791 (ensureCapacity_unsynchronized): New private method.
3792 (append): Use ensureCapacity_unsynchronized.
3794 2000-04-08 Tom Tromey <tromey@cygnus.com>
3796 * Makefile.in: Rebuilt.
3797 * Makefile.am (awt_java_source_files): Added new files.
3798 * java/awt/IllegalComponentStateException.java: New file.
3799 * java/awt/ItemSelectable.java: New file.
3800 * java/awt/event/WindowEvent.java: Finished.
3801 * java/awt/event/TextEvent.java: Finished.
3802 * java/awt/event/ContainerEvent.java: New file.
3803 * java/awt/Component.java (getX, getY): New methods.
3804 * java/awt/event/PaintEvent.java: New file.
3805 * java/awt/event/MouseEvent.java: New file.
3806 * java/awt/ActiveEvent.java: New file.
3807 * java/awt/event/KeyEvent.java: Finished.
3808 * java/awt/event/ItemEvent.java: New file.
3809 * java/awt/Adjustable.java: New file.
3810 * java/awt/event/InputMethodEvent.java: New file.
3811 * java/awt/event/InputEvent.java: Finished.
3812 * java/awt/event/FocusEvent.java: New file.
3813 * java/awt/event/MouseMotionAdapter.java: New file.
3814 * java/awt/event/MouseAdapter.java: New file.
3815 * java/awt/event/KeyAdapter.java: New file.
3816 * java/awt/event/FocusAdapter.java: New file.
3817 * java/awt/event/ContainerAdapter.java: New file.
3818 * java/awt/event/ComponentEvent.java: Finished.
3819 * java/awt/event/AdjustmentEvent.java: New file.
3820 * java/awt/event/ComponentAdapter.java: New file.
3821 * java/awt/event/ActionEvent.java: Finished.
3822 * java/awt/event/MouseMotionListener.java: New file.
3823 * java/awt/event/MouseListener.java: New file.
3824 * java/awt/event/ItemListener.java: New file.
3825 * java/awt/event/InputMethodListener.java: New file.
3826 * java/awt/event/ContainerListener.java: New file.
3827 * java/awt/event/FocusListener.java: New file.
3828 * java/awt/event/ComponentListener.java: New file.
3829 * java/awt/event/AWTEventListener.java: New file.
3830 * java/awt/event/AdjustmentListener.java: New file.
3832 2000-04-08 Anthony Green <green@cygnus.com>
3834 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3835 check when we have to.
3837 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3840 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3843 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3844 inline hasMoreElements.
3846 2000-04-05 Tom Tromey <tromey@cygnus.com>
3848 * configure: Rebuilt.
3849 * configure.in: Recognize --enable-java-awt.
3850 (AWT): New conditional.
3851 * Makefile.in: Rebuilt.
3852 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3854 (libgcjawt_la_SOURCES): New macro.
3855 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3856 (libgcjawt_la_DEPENDENCIES): Likewise.
3857 (libgcjawt_la_LIBADD): Likewise.
3858 (libgcjawt_la_LDFLAGS): Likewise.
3859 (libgcj.zip): Depend on cond_java_awt_source_files
3860 (cond_awt_java_source_files): New macro.
3861 (MOSTLYCLEANFILES): Added awto_files.
3862 (awto_files): New macro. Use where javao_files used.
3863 (nat_headers): Use cond_awt_java_source_files.
3865 2000-04-04 Tom Tromey <tromey@cygnus.com>
3867 * Makefile.in: Rebuilt.
3868 * Makefile.am (awt_java_source_files): Added AWTException.java.
3869 * java/awt/AWTException.java: New file.
3871 2000-04-03 Tom Tromey <tromey@cygnus.com>
3873 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3874 commentary from Alex.
3876 * Makefile.in: Rebuilt.
3877 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3880 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
3882 * configure: Rebuilt.
3883 * configure.in: Add --disable-jvmpi.
3884 * include/config.h.in: Rebuilt.
3885 * acconfig.h: Add ENABLE_JVMPI.
3887 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3888 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3889 (_Jv_JVMPI_Notify_THREAD_END): New define.
3890 (_Jv_JVMPI_Notify_THREAD_END): New define.
3891 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3892 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3893 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3895 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3898 * java/lang/natThread.cc: Include JVMPI headers if necessary.
3899 (finish_): Generate JVMPI thread end events.
3900 (run_): Generate JVMPI thread start events.
3901 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3902 preloaded JNI library.
3903 Include JVMPI headers if necessary.
3904 (run): Generate JVMPI thread start events.
3906 * boehm.cc: Define GC_disable and GC_enable.
3907 (_Jv_DisableGC): New function.
3908 (_Jv_EnableGC): New function.
3909 (disable_gc_mutex): Declare.
3910 * nogc.cc (_Jv_DisableGC): New function.
3911 (_Jv_EnableGC): New function.
3913 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3914 (_Jv_JVMPI_Interface): Define.
3915 (jvmpiEnableEvent): New function.
3916 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3918 * include/jvmpi.h: New file.
3920 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
3922 * Makefile.in: New #defines and friends for Thread.h.
3923 * Makefile.am: Ditto.
3924 * posix-threads.cc: (struct starter): Remove `object'.
3925 (_Jv_CondWait): Use interruptable condition variables and new
3926 recursive mutexes. New return codes on interrupt or non-ownership
3928 (_Jv_CondNotify): Ditto.
3929 (_Jv_CondNotifyAll): Ditto.
3930 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3931 the target thread by signaling its wait condition.
3932 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3933 not the starter struct. Initialize wait_mutex and wait_cond.
3934 (_Jv_MutexLock): New recursive mutex implementation. Moved from
3936 (_Jv_MutexUnlock): Ditto.
3937 (really_start): Set info->data->thread from pthread_self() to work
3938 around a race condition. Destroy wait_mutex and wait_cond when run()
3940 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3941 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3943 startable_flag: New private field.
3944 (Thread): Initialize `startable_flag'.
3945 (toString): Check for null thread group.
3946 * java/lang/natThread.cc: (struct natThread): New fields
3947 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3948 (class locker): Removed.
3949 (initialize_native): Initialize `join_cond' and `join_mutex'.
3950 (interrupt): Now just calls _Jv_ThreadInterrupt().
3951 (join): Simplified. Just wait on the target thread's join condition.
3952 (finish_): Remove join list code. Unset thread group. Signal
3953 potential joiners by notifying the dying threads join_cond.
3954 (start): Check for illegal restarts.
3955 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3957 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3958 #defines and #ifdefs.
3959 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3960 `wait_mutex', `next'.
3961 (struct _Jv_ConditionVariable_t): Define as a struct instead of
3962 directly mapping to pthread_cond_t.
3963 (struct _Jv_Mutex_t): New recursive implementation.
3964 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3965 _Jv_HaveCondDestroy: Never define this for posix-threads.
3966 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3967 (_Jv_CondNotifyAll): Ditto.
3968 (_Jv_MutexLock): Ditto.
3969 (_Jv_MutexUnlock): Ditto.
3970 (_Jv_MutexInit): Changed to reflect new mutex implementation.
3971 (_Jv_MutexDestroy): Ditto.
3972 (_Jv_CondDestroy): Removed.
3973 (_Jv_PthreadGetMutex): Removed.
3974 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
3975 error. Add a FIXME about this.
3976 (_Jv_CondNotifyAll): Ditto.
3977 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
3978 _JV_NOT_OWNER on other errors. Add FIXME.
3980 2000-03-26 Tom Tromey <tromey@cygnus.com>
3982 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
3984 (call): Don't throw exception here.
3986 2000-03-26 Tom Tromey <tromey@cygnus.com>
3988 * java/lang/mprec.h: Use SIZEOF_VOID_P.
3989 * interpret.cc: Use SIZEOF_VOID_P.
3990 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
3991 (_Jv_loadLong): Likewise.
3992 (_Jv_storeDouble): Likewise.
3993 * configure: Rebuilt.
3994 * configure.in: Check size of void*.
3996 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
3998 2000-03-26 Hans Boehm <boehm@acm.org>
4000 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4001 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4003 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4004 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4005 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4006 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4008 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4009 (FFI_RAW_SIZE): Likewise.
4010 (_Jv_InterpMethod::ncode): Use them.
4011 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4012 STORED): Define differently on a 64 bit machine.
4013 (continue1): Use ffi_java_raw_call when appropriate.
4015 2000-03-24 Warren Levy <warrenl@cygnus.com>
4017 * java/math/BigInteger.java(divide): Handle the special case when
4018 dividing by 1 and the high bit of the dividend is set.
4019 (setShiftRight): Handle case when count == 0.
4021 2000-03-24 Warren Levy <warrenl@cygnus.com>
4023 * java/awt/Font.java(isBold): Fix syntax error.
4025 * java/awt/Frame.java(postEvent): ditto.
4026 * java/awt/Menu.java(postEvent): ditto.
4027 * java/awt/MenuBar.java(postEvent): ditto.
4028 * java/awt/Toolkit.java(init): Included a stub.
4030 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4032 * java/awt/Event.java: Add all the event type constants.
4033 (Event): Implemented constructors.
4034 (controlDown): Implemented.
4035 (metaDown): Implemented.
4036 (paramString): Stubbed.
4037 (shiftDown): Implemented.
4038 (toString): Implemented.
4039 (translate): Implemented.
4041 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4043 * java/lang/natClass.cc (isInstance): Initialize `this'.
4044 (isAssignableFrom): Initialize `this' and `klass'.
4045 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4046 implemented by any loaded class, so return false.
4047 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4048 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4050 2000-03-19 Warren Levy <warrenl@cygnus.com>
4052 * java/awt/Color.java: Specified java.io for Serializable.
4053 * java/awt/Toolkit.java: Imported java.net.URL.
4055 2000-03-19 Warren Levy <warrenl@cygnus.com>
4057 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4059 2000-03-16 Warren Levy <warrenl@cygnus.com>
4061 * java/awt/Color.java: New file.
4062 * java/awt/Graphics.java: New file.
4063 * java/awt/Image.java: New file.
4064 * java/awt/Paint.java: New file.
4065 * java/awt/PaintContext.java: New file.
4066 * java/awt/Transparency.java: New file.
4067 * java/util/Collection.java: New file.
4068 * java/util/Comparator.java: New file.
4069 * java/util/Iterator.java: New file.
4070 * java/util/List.java: New file.
4071 * java/util/ListIterator.java: New file.
4072 * Makefile.am: Added above new files.
4073 * Makefile.in: Rebuilt.
4075 * java/awt/Font.java (PLAIN): New field.
4077 (ITALIC): New field.
4078 (ROMAN_BASELINE): New field.
4079 (CENTER_BASELINE): New field.
4080 (HANGING_BASELINE): New field.
4084 (pointSize): New field.
4085 (Font): Implemented constructor.
4086 (isPlain): Implemented method.
4087 (isBold): Implemented method.
4088 (isItalic): Implemented method.
4089 (getName): Implemented method.
4090 (getStyle): Implemented method.
4091 (getSize): Implemented method.
4092 (getSize2D): Implemented method.
4094 * java/awt/Frame.java (getFont): Stubbed.
4095 (postEvent): Stubbed.
4097 * java/awt/Menu.java (postEvent): Stubbed.
4098 * java/awt/MenuBar.java (getFont): Stubbed.
4099 (postEvent): Stubbed.
4100 * java/awt/Toolkit.java (getImage): Added abstract method.
4102 2000-03-15 Tom Tromey <tromey@cygnus.com>
4104 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4106 * prims.cc (win32_exception_handler): Reformatted.
4108 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4109 (_Jv_HaveMutexDestroy): Likewise.
4111 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4113 * java/io/natFileDescriptorWin32.cc: New file.
4114 * java/io/natFileWin32.cc: New file.
4115 * java/net/natInetAddress.cc: Added conditional inclusion of
4116 Windows / Winsock headers.
4117 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4118 inclusion of Windows / Winsock headers.
4119 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4120 Windows / Winsock headers.
4121 * include/win32-signal.h: New file.
4122 * include/win32-threads.h: New file.
4123 * win32-threads.cc: New file.
4124 * exception.cc (win32_get_restart_frame): New function.
4125 * prims.cc (win32_exception_handler): New function.
4126 (main_init) Performs Winsock initialisation.
4127 (main_init) Installs exeception handler.
4129 2000-03-14 Tom Tromey <tromey@cygnus.com>
4131 * jni.cc (mangled_name): Fixed assertion.
4132 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4133 turned assert into actual failure.
4135 2000-03-09 Warren Levy <warrenl@cygnus.com>
4137 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4138 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4139 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4141 2000-03-09 Warren Levy <warrenl@cygnus.com>
4143 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4144 * java/security/DigestException.java: New file.
4145 * java/security/GeneralSecurityException.java: New file.
4146 * java/security/InvalidAlgorithmParameterException.java: New file.
4147 * java/security/InvalidKeyException.java: New file.
4148 * java/security/InvalidParameterException.java: New file.
4149 * java/security/Key.java: New file.
4150 * java/security/KeyException.java: New file.
4151 * java/security/KeyPair.java: New file.
4152 * java/security/KeyPairGenerator.java: New file.
4153 * java/security/KeyPairGeneratorSpi.java: New file.
4154 * java/security/NoSuchProviderException.java: New file.
4155 * java/security/PrivateKey.java: New file.
4156 * java/security/Provider.java: New file.
4157 * java/security/PublicKey.java: New file.
4158 * java/security/SecureRandom.java: New file.
4159 * java/security/Security.java: New file.
4160 * java/security/Signature.java: New file.
4161 * java/security/SignatureException.java: New file.
4162 * java/security/interfaces/DSAKey.java: New file.
4163 * java/security/interfaces/DSAParams.java: New file.
4164 * java/security/interfaces/DSAPrivateKey.java: New file.
4165 * java/security/interfaces/DSAPublicKey.java: New file.
4166 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4167 * java/security/interfaces/RSAPrivateKey.java: New file.
4168 * java/security/interfaces/RSAPublicKey.java: New file.
4169 * java/security/spec/AlgorithmParameterSpec.java: New file.
4170 * java/security/spec/InvalidKeySpecException.java: New file.
4171 * java/security/spec/InvalidParameterSpecException.java: New file.
4172 * java/security/spec/KeySpec.java: New file.
4173 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4174 * java/security/spec/RSAPrivateKeySpec.java: New file.
4175 * java/security/spec/RSAPublicKeySpec.java: New file.
4176 * Makefile.am: Added above java.security files.
4177 * Makefile.in: Rebuilt.
4179 * java/security/MessageDigest.java: Rewritten.
4180 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4182 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4186 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4188 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4189 _Jv_PrepareConstantTimeTables.
4190 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4191 classes should have an IDT, so don't return if klass is an array
4194 2000-03-08 Tom Tromey <tromey@cygnus.com>
4196 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4197 of `void' to be created.
4199 2000-03-08 Warren Levy <warrenl@cygnus.com>
4201 * java/math/BigInteger.java(signum): Handle zero properly.
4203 2000-03-07 Tom Tromey <tromey@cygnus.com>
4205 * All files: Updated copyright information.
4206 * COPYING: New file.
4207 * COPYING.LIB: Removed.
4208 * LIBGCJ_LICENSE: We now use GPL + special exception.
4210 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4212 * resolve.cc (_Jv_SearchMethodInClass): New function.
4213 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4214 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4216 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4218 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4219 (struct _Jv_ifaces): New declaration.
4220 JV_CLASS: New macro definition.
4221 (getComponentType): Relocate below isArray() for inlining.
4222 (getModifiers): Declare `inline'.
4223 (getSuperclass): Ditto.
4225 (isPrimitive): Ditto.
4226 (_Jv_IsAssignableFrom): New prototype.
4227 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4229 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4230 Check for JV_STATE_DONE before invoking initializeClass().
4231 (_Jv_PrepareConstantTimeTables): New prototype.
4232 (_Jv_GetInterfaces): Ditto.
4233 (_Jv_GenerateITable): Ditto.
4234 (_Jv_GetMethodString): Ditto.
4235 (_Jv_AppendPartialITable): Ditto.
4236 (_Jv_FindIIndex): Ditto.
4237 depth, ancestors, idt: New class fields.
4239 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4240 inline function `_Jv_IsAssignableFrom'. Use that function.
4241 (isInstance): Declare `inline'.
4242 (initializeClass): Get lock on class before checking `state'. Unlock
4243 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4245 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4246 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4247 class->depth and ancestor table.
4248 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4249 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4250 _Jv_IsAssignableFrom.
4251 (_Jv_CheckArrayStore): Ditto.
4252 (_Jv_LookupInterfaceMethodIdx): New function.
4253 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4254 (_Jv_PrepareConstantTimeTables): New function.
4255 (_Jv_IndexOf): Ditto.
4256 (_Jv_GetInterfaces): Ditto.
4257 (_Jv_GenerateITable): Ditto.
4258 (_Jv_GetMethodString): Ditto.
4259 (_Jv_AppendPartialITable): Ditto.
4260 iindex_mutex, iindex_mutex_initialized: New static fields.
4261 (_Jv_FindIIndex): New function.
4263 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4265 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4266 (_Jv_CheckArrayStore): Ditto.
4267 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4268 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4269 Moved to gcj/array.h.
4270 (_Jv_Realloc): New function.
4272 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4274 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4275 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4276 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4277 JvNewDoubleArray): Implementations moved from prims.cc and
4280 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4282 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4284 2000-03-06 Tom Tromey <tromey@cygnus.com>
4286 * jni.cc (MARK_NONE): New define.
4287 (MARK_USER): Likewise.
4288 (MARK_SYSTEM): Likewise.
4289 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4291 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4292 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4293 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4294 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4296 (call): Use MARK_SYSTEM.
4297 (_Jv_GetJNIEnvNewFrame): New function.
4298 (_Jv_LookupJNIMethod): New function.
4299 (_Jv_JNI_PopSystemFrame): New function.
4300 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4302 2000-03-05 Tom Tromey <tromey@cygnus.com>
4304 Fix for PR libgcj/43:
4305 * include/Makefile.in: Rebuilt.
4306 * include/Makefile.am (include_HEADERS): New define.
4308 2000-03-05 Anthony Green <green@redhat.com>
4310 * gcj/javaprims.h ("Java"): Remove FirstThread.
4312 * configure.host: Fix __NO_MATH_INLNES botch.
4314 * Makefile.in: Rebuilt.
4315 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4316 (gnu/gcj/runtime/FirstThread.h): Moved.
4317 (ordinary_java_source_files): Move FirstThread.java.
4318 * prims.cc: Deal with FirstThread movement.
4320 (_Jv_RunMain): Ditto.
4322 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4323 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4325 2000-03-05 Warren Levy <warrenl@cygnus.com>
4327 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4328 Handle null addresses.
4330 2000-03-04 Anthony Green <green@redhat.com>
4332 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4335 2000-03-04 Anthony Green <green@redhat.com>
4337 * configure: Rebuilt.
4338 * configure.in (ZLIBTESTSPEC): New macro.
4339 (GCTESTSPEC): New macro.
4340 (LIBGCJTESTSPEC): New macro.
4341 * libgcj-test.spec.in: New file.
4343 2000-03-02 Tom Tromey <tromey@cygnus.com>
4345 * include/java-interp.h: Don't include MethodInvocation.h.
4346 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4347 * Makefile.in: Rebuilt.
4348 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4349 (ordinary_java_source_files): Don't mention
4350 MethodInvocation.java.
4351 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4352 * interpret.cc (MethodInvocation::continue1): Removed.
4353 (run): Handle exceptions here.
4354 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4356 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4358 (defineClass2): Removed.
4360 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4362 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4364 (hack_call): Removed.
4366 * java/lang/Class.h (Class): Removed hackRunInitializers,
4368 * java/lang/natClass.cc (hackRunInitializers): Removed.
4369 (initializeClass): Catch exceptions here.
4370 Include ExceptionInInitializerError.h.
4371 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4374 * java/lang/Object.h (Object): Don't mention hack12_6.
4375 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4377 * java/lang/Object.java (hack12_6): Removed.
4379 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4380 (start): Use run_, not run__.
4381 * java/lang/Thread.java (run_): Renamed from run__; old run_
4384 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4385 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4386 (_Jv_JNI_DefineClass): Likewise.
4387 (_Jv_JNI_ThrowNew): Likewise.
4388 (_Jv_JNI_AllocObject): Likewise.
4389 (_Jv_JNI_GetAnyMethodID): Likewise.
4390 (_Jv_JNI_CallAnyMethodV): Likewise.
4391 (_Jv_JNI_CallAnyMethodA): Likewise.
4392 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4393 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4394 (_Jv_JNI_GetAnyFieldID): Likewise.
4395 (_Jv_JNI_NewString): Likewise.
4396 (_Jv_JNI_NewStringUTF): Likewise.
4397 (_Jv_JNI_GetStringUTFChars): Likewise.
4398 (_Jv_JNI_NewObjectArray): Likewise.
4399 (_Jv_JNI_NewPrimitiveArray): Likewise.
4400 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4401 (_Jv_JNI_GetStringRegion): Likewise.
4402 (_Jv_JNI_GetStringUTFRegion): Likewise.
4403 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4404 (_Jv_JNI_MonitorEnter): Likewise.
4405 (_Jv_JNI_MonitorExit): Likewise.
4406 (_Jv_JNI_ToReflectedField): Likewise.
4407 (_Jv_JNI_ToReflectedMethod): Likewise.
4408 (_Jv_JNI_RegisterNatives): Likewise.
4409 (_Jv_JNI_AttachCurrentThread): Likewise.
4410 (_Jv_JNI_DestroyJavaVM): Likewise.
4412 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4414 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4415 error caused by the incorrect casting of a long to an int.
4417 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4419 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4420 SIGSEV caused by use of the wrong instance variable.
4422 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4424 * java/io/File.java (File(String, String)): For dirPath, treat an
4425 empty String the same as `null'.
4427 2000-02-26 Anthony Green <green@cygnus.com>
4429 * gnu/gcj/io/MimeTypes.java: Test for null.
4431 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4432 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4434 * java/net/URLConnection.java: Update copyright notice.
4436 2000-02-25 Tom Tromey <tromey@cygnus.com>
4438 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4441 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4443 * java/net/URLConnection.java (initializeDateFormats): New
4445 (getHeaderFieldDate): Call initializeDateFormats if required.
4446 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4448 Fix for PR libgcj/38.
4450 2000-02-24 Warren Levy <warrenl@cygnus.com>
4452 * java/math/BigInteger.java(ival): Made private.
4456 2000-02-20 Anthony Green <green@cygnus.com>
4458 * Makefile.in: Rebuilt.
4459 * Makefile.am (ordinary_java_source_files): Add
4460 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4462 * scripts/MakeDefaultMimeTypes.java: New file.
4463 * scripts/mime.types: New file.
4464 * scripts/classes.pl: Moved from top level.
4465 * classes.pl: Moved to scripts directory.
4467 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4469 * gnu/gcj/io/MimeTypes.java: New file.
4470 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4472 2000-02-20 Tom Tromey <tromey@cygnus.com>
4474 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4476 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4478 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4481 2000-02-18 Tom Tromey <tromey@cygnus.com>
4483 * include/jvm.h (_Jv_GetJavaVM): Declare.
4484 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4485 (_Jv_MethodBase::get_method): New method.
4486 (_Jv_JNIMethod::set_function): New method.
4487 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4488 (_Jv_JNI_RegisterNatives): New function.
4489 (_Jv_JNIFunctions): Updated for new functions.
4490 (_Jv_GetJavaVM): New function.
4491 (_Jv_JNI_GetJavaVM): Use it. Now static.
4492 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4493 is already a Java thread but does not have a JNIEnv yet.
4495 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4498 2000-02-17 Tom Tromey <tromey@cygnus.com>
4500 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4503 2000-02-16 Tom Tromey <tromey@cygnus.com>
4505 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4507 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4508 (_Jv_JNI_NewObject): Likewise.
4509 (_Jv_JNI_NewObjectA): Likewise.
4510 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4511 as "return" type to _Jv_CallAnyMethodA.
4512 (_Jv_JNI_CallAnyMethodA): Likewise.
4513 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4515 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4518 2000-02-15 Tom Tromey <tromey@cygnus.com>
4520 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4522 (init_cif): Added `rtype_p' argument.
4523 * include/java-interp.h (class _Jv_MethodBase): Added
4525 (class _Jv_InterpMethod): Removed args_raw_size.
4526 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4527 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4528 class pointer as well as the ordinary arguments.
4530 * jni.cc (mangled_name): Skip leading `(' in signature.
4532 * jni.cc (add_char): Added missing `else'.
4534 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4537 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4541 * java/lang/natRuntime.cc (_load): Include library path with
4544 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4547 * java/lang/natThread.cc (dumpStack): Removed.
4548 * java/lang/Thread.java (dumpStack): Implemented.
4550 2000-02-15 Tom Tromey <tromey@cygnus.com>
4552 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4553 with `lib' for loadLibrary. Fixes PR gcj/150.
4555 2000-02-14 Warren Levy <warrenl@cygnus.com>
4557 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4559 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4563 (modPow): Rewritten to not use the naive, slow, brute force approach.
4564 (isProbablePrime): Implemented.
4565 (testBit): Implemented.
4566 (flipBit): Implemented.
4567 (getLowestSetBit): Implemented.
4569 2000-02-16 Anthony Green <green@redhat.com>
4571 * configure.host: Use the same options for i386 and i486 as we do
4574 2000-02-12 Tom Tromey <tromey@cygnus.com>
4576 * java/io/File.java (createTempFile): Use low bits from counter,
4579 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4581 * THANKS: More thanks.
4583 2000-02-11 Tom Tromey <tromey@cygnus.com>
4585 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4586 astore instruction. From Hans Boehm.
4588 2000-02-11 Warren Levy <warrenl@cygnus.com>
4590 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4591 (BigInteger(String)): New constructor.
4592 (not): Rewritten using version from Kawa's BitOps class.
4593 (valueOf): New private methods from Kawa's BitOps class.
4600 (andNot): Implemented.
4601 (clearBit): Implemented.
4602 (setBit): Implemented.
4603 (bitCount): Implemented.
4604 (toByteArray): Implemented.
4606 2000-02-11 Tom Tromey <tromey@cygnus.com>
4608 * java/io/File.java (nextValue): Now synchronized.
4610 2000-02-10 Tom Tromey <tromey@cygnus.com>
4612 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4613 * java/io/FileDescriptor.java (EXCL): New static field.
4614 * java/io/File.java (tmpdir): New static field.
4615 (createTempFile): New method.
4616 (nextValue): New method.
4617 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4620 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4621 (jboolean): Declare as an attributed int, not a bool.
4622 (_Jv_func): Declare differently for C.
4624 * gnu/gcj/jni/natNativeThread.cc: New file.
4625 * gnu/gcj/jni/NativeThread.java: New file.
4626 * java/lang/Thread.java (data): Now a RawData.
4627 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4629 * Makefile.in: Rebuilt.
4630 * Makefile.am (java/lang/Thread.h): New target.
4631 (ordinary_java_source_files): Added NativeThread.java.
4632 (nat_source_files): Added natNativeThread.cc.
4633 * java/lang/natThread.cc: Include <jni.h>
4634 (struct natThread): Added `jni_env' field.
4635 (_Jv_GetCurrentJNIEnv): New function.
4636 (_Jv_SetCurrentJNIEnv): Likewise.
4637 (initialize_native): Initialize jni_env.
4639 * jni.cc (ThreadGroupClass): New define.
4640 (_Jv_JNI_InvokeFunctions): New structure.
4641 (JNI_GetCreatedJavaVMs): New function.
4642 (the_vm): New global.
4643 (JNI_GetDefaultJavaVMInitArgs): New function.
4644 Include NativeThread.h.
4645 (NativeThreadClass): New define.
4646 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4647 (_Jv_JNI_DestroyJavaVM): New function.
4648 (_Jv_JNI_AttachCurrentThread): New function.
4649 (_Jv_JNI_DetachCurrentThread): New function.
4650 (_Jv_JNI_GetEnv): New function.
4651 (JNI_CreateJavaVM): New function.
4652 (_Jv_JNI_GetJavaVM): New function.
4653 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4654 * include/jni.h (JavaVMAttachArgs): New structure.
4655 (JNI_EDETACHED): New define.
4656 (JNI_EVERSION): Likewise.
4657 (JavaVM): Define properly.
4658 (struct JNIInvokeInterface): New structure.
4659 (class _Jv_JavaVM): New class.
4660 (JNI_OnLoad, JNI_OnUnload): Declare.
4661 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4662 JNI_GetCreatedJavaVMs): Declare.
4663 (JavaVMInitArgs): New typedef.
4664 (JavaVMOption): Likewise.
4665 (JNI_ERR): New define.
4668 2000-02-10 Andrew Haley <aph@cygnus.com>
4670 * interpret.cc: Don't include fdlibm.h.
4671 Replace #if with #ifdef throughout.
4672 Declare extern __ieee754_fmod.
4673 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4675 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4676 Search class hierarchy for superclass vtable.
4678 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4679 off the end of a pointer list.
4681 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4685 2000-02-09 Tom Tromey <tromey@cygnus.com>
4687 * java/lang/natRuntime.cc (_load): Call add_library.
4688 (loadLibraryInternal): Likewise.
4690 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4691 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4692 (Output_iconv::finalize): Likewise.
4694 2000-02-08 Tom Tromey <tromey@cygnus.com>
4696 * java/util/Properties.java (setProperty): New method.
4697 (store): New method.
4699 2000-02-07 Tom Tromey <tromey@cygnus.com>
4701 * java/lang/Runtime.java (_load): Declare.
4702 (load, loadLibrary): Wrote in terms of _load.
4703 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4705 (loadLibrary): Likewise.
4707 (_load): New method.
4708 (loadLibrary, load): Removed.
4710 * jni.cc (ThrowableClass): New define.
4711 (_Jv_JNI_Throw): Check argument.
4712 (_Jv_JNI_ThrowNew): Likewise.
4713 (wrap_value): Don't wrap object if it is NULL.
4714 (_Jv_JNI_DefineClass): Use wrap_value.
4715 (_Jv_JNI_FindClass): Likewise.
4716 (_Jv_JNI_GetSuperclass): Likewise.
4717 (_Jv_JNI_ExceptionOccurred): Likewise.
4718 (_Jv_JNI_AllocObject): Likewise.
4719 (_Jv_JNI_GetObjectClass): Likewise.
4720 (_Jv_JNI_NewString): Likewise.
4721 (_Jv_JNI_NewStringUTF): Likewise.
4722 (_Jv_JNI_NewObjectArray): Likewise.
4723 (_Jv_JNI_GetObjectArrayElement): Likewise.
4724 (_Jv_JNI_NewPrimitiveArray): Likewise.
4725 (_Jv_JNI_ToReflectedField): Likewise.
4726 (_Jv_JNI_ToReflectedMethod): Likewise.
4727 (_Jv_JNI_AllocObject): Check argument.
4728 (_Jv_JNI_NewObjectV): Likewise.
4729 (_Jv_JNI_NewObject): Likewise.
4730 (_Jv_JNI_NewObjectA): Likewise.
4731 (_Jv_JNI_GetObjectClass): Likewise.
4732 (_Jv_JNI_GetField): Likewise.
4733 (_Jv_JNI_SetField): Likewise.
4735 * interpret.cc (PUSHL): Don't use expression statement.
4740 * jni.cc (add_char): Conditional on INTERPRETER.
4741 (mangled_name): Likewise.
4743 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4745 (class _Jv_JNIMethod): Likewise.
4747 2000-02-04 Warren Levy <warrenl@cygnus.com>
4749 * Makefile.am: Added MPN.java and BigInteger.java.
4750 * Makefile.in: Rebuilt.
4751 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4753 * java/math/BigInteger.java: New file. Based primarily on
4754 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4756 2000-02-04 Tom Tromey <tromey@cygnus.com>
4758 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4760 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4761 if the method is native.
4762 * resolve.cc (ncode): Don't handle native methods.
4763 (_Jv_JNIMethod::ncode): New method.
4764 (_Jv_PrepareClass): Handle native methods.
4765 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4766 Include AbstractMethodError.h.
4767 (add_char): New function.
4768 (mangled_name): Likewise.
4769 * include/java-interp.h (class _Jv_JNIMethod): New class.
4770 (class _Jv_MethodBase): New class.
4771 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4772 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4775 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4776 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4777 libraries): New globals.
4778 (add_library): New function.
4779 (_Jv_FindSymbolInExecutable): New function.
4781 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4784 2000-02-04 Andrew Haley <aph@cygnus.com>
4786 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4787 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4788 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4789 printStackTrace to printRawStackTrace.
4791 2000-02-03 Tom Tromey <tromey@cygnus.com>
4793 * java/util/Calendar.java (toString): New method.
4794 * java/util/SimpleTimeZone.java (clone): New method.
4795 (toString): New method.
4796 * java/util/TimeZone.java (clone): New method.
4797 * java/text/SimpleDateFormat.java (clone): New method.
4798 * java/text/NumberFormat.java (clone): New method.
4799 (equals): New method.
4800 * java/text/Format.java (clone): New method.
4801 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4803 (clone): New method.
4804 * java/text/DateFormat.java (clone): New method.
4805 * java/text/Collator.java (clone): New method.
4807 2000-02-03 Tom Tromey <tromey@cygnus.com>
4809 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4812 2000-02-01 Tom Tromey <tromey@cygnus.com>
4814 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4815 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4816 constructing the closure if the function is native.
4817 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4818 a template function, #if'd out, or static.
4819 Include <java-interp.h>.
4821 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4823 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4825 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4826 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4828 (wrap_value): New function.
4829 (_Jv_JNI_CallAnyMethodV): Use it.
4830 (_Jv_JNI_CallAnyMethodA): Likewise.
4831 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4832 (_Jv_JNI_GetStaticField): Likewise.
4834 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4835 (_Jv_JNI_GetStaticField): Likewise.
4837 2000-01-31 Tom Tromey <tromey@cygnus.com>
4839 * prims.cc (_Jv_MallocUnchecked): New function.
4840 (main_init): Call _Jv_JNI_Init.
4841 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4842 (_Jv_JNI_Init): Declare.
4843 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4845 (_Jv_JNI_NewGlobalRef): New function.
4846 (_Jv_JNI_DeleteGlobalRef): New function.
4847 (_Jv_JNI_DeleteLocalRef): New function.
4848 (_Jv_JNI_conversion_call): Initialize and clear local reference
4850 (_Jv_JNI_NewLocalRef): New function.
4851 (struct _Jv_JNI_LocalFrame): New structure.
4852 (_Jv_JNI_PushLocalFrame): New function.
4853 (_Jv_JNI_EnsureLocalCapacity): New function.
4854 (FRAME_SIZE): New define.
4855 (_Jv_JNI_GetStringChars): Mark string, not characters.
4856 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4857 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4858 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4860 (_Jv_JNI_DefineClass): Make return value a local ref.
4861 (_Jv_JNI_FindClass): Likewise.
4862 (_Jv_JNI_GetSuperclass): Likewise.
4863 (_Jv_JNI_ExceptionOccurred): Likewise.
4864 (_Jv_JNI_AllocObject): Likewise.
4865 (_Jv_JNI_GetObjectClass): Likewise.
4866 (_Jv_JNI_CallAnyMethodV): Likewise.
4867 (_Jv_JNI_NewString): Likewise.
4868 (_Jv_JNI_NewStringUTF): Likewise.
4869 (_Jv_JNI_NewObjectArray): Likewise.
4870 (_Jv_JNI_GetObjectArrayElement): Likewise.
4871 (_Jv_JNI_ToReflectedField): Likewise.
4872 (_Jv_JNI_ToReflectedMethod): Likewise.
4873 (_Jv_JNIFunctions): Updated table for new functions.
4874 (_Jv_JNI_Init): New function.
4875 (mark_for_gc): Wrote.
4876 (unmark_for_gc): Wrote.
4877 * include/jni.h (struct JNINativeInterface): Removed name from
4878 PopLocalFrame parameter.
4879 (class _Jv_JNIEnv): Added `locals' field.
4881 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
4883 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4886 2000-01-30 Tom Tromey <tromey@cygnus.com>
4888 * include/config.h.in: Rebuilt.
4889 * acconfig.h (HAVE_ICONV): Define.
4890 * configure: Rebuilt.
4891 * configure.in: Check for `iconv' function.
4892 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4893 no specific encoder exists.
4894 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4895 no specific encoder exists.
4896 * Makefile.in: Rebuilt.
4897 * Makefile.am (convert_source_files): Mention Input_iconv.java and
4899 (nat_source_files): Added natIconv.cc.
4900 * gnu/gcj/convert/natIconv.cc: New file.
4901 * gnu/gcj/convert/Input_iconv.java: New file.
4902 * gnu/gcj/convert/Output_iconv.java: New file.
4904 2000-01-28 Tom Tromey <tromey@cygnus.com>
4906 * Makefile.in: Rebuilt.
4907 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4909 2000-01-26 Tom Tromey <tromey@cygnus.com>
4911 * gcj/method.h (JvNumMethods): Moved from Class.h.
4912 (JvGetFirstMethod): Likewise.
4913 * java/lang/Class.h (Object): Updated decl of
4914 _Jv_JNI_ToReflectedField.
4915 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4916 * Makefile.in: Rebuilt.
4917 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4918 argument of _Jv_JNI_ToReflectedField.
4919 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4921 (java/lang/reflect/Method.h): Likewise.
4922 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
4924 (jweak): New typedef.
4925 (struct JNINativeInterface): Correctly declare remaining entries.
4926 * jni.cc: Include Class.h, ClassLoader.h.
4927 (_Jv_JNI_FindClass): New function.
4928 (_Jv_JNI_DefineClass): New function.
4929 (_Jv_JNI_conversion_call): New function.
4930 (_Jv_JNI_FindClass): Use current class loader to find class.
4931 (_Jv_JNI_ExceptionCheck): New function.
4932 (_Jv_JNI_FromReflectedField): Now static.
4933 (MethodClass): New define.
4934 (_Jv_JNI_FromReflectedMethod): New function.
4935 (_Jv_JNI_ToReflectedMethod): Likewise.
4937 (_Jv_JNI_IsAssignableFrom): Renamed.
4938 (_Jv_JNI_GetStringRegion): New function.
4939 Include StringIndexOutOfBoundsException.h.
4940 (_Jv_JNI_GetStringUTFRegion): New function.
4941 (_Jv_JNIFunctions): Updated for new functions.
4942 (_Jv_JNI_GetPrimitiveArrayCritical): New function
4943 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4944 (_Jv_JNI_GetStringCritical): New function.
4945 (_Jv_JNI_ReleaseStringCritical): Likewise.
4946 (get_throwable): Removed.
4947 (GCJ_JV_JNIENV_FRIEND): Removed.
4948 (__GCJ_JNI_IMPL__): Define.
4951 * resolve.cc (get_ffi_type_from_signature): Handle case where
4954 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
4956 * interpret.cc (run): Don't call println.
4957 Don't include PrintStream.h.
4959 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4960 nameIndex. Use "jint" as type for boffset.
4961 * java/lang/Class.h (struct _Jv_Method): Made accflags a
4963 (Class): Likewise. Also changed type of method_count,
4964 vtable_method_count, size_in_bytes, field_count,
4965 static_field_count, interface_count.
4966 * gcj/array.h (__JArray): Made `length' a const jsize, not an
4969 2000-01-21 Tom Tromey <tromey@cygnus.com>
4971 * java/lang/reflect/natConstructor.cc (newInstance): Use
4973 * include/jvm.h: Declare _Jv_CallAnyMethodA.
4974 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
4975 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
4978 (invoke): Use _Jv_CallAnyMethodA.
4980 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
4981 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
4983 (struct _Jv_Method): Added getNextMethod method.
4984 (JvNumMethods): New function.
4985 (JvGetFirstMethod): Likewise.
4986 * gcj/field.h (JvGetFirstStaticField): New function.
4987 (JvNumStaticFields): Likewise.
4988 (getNextField): Renamed from getNextInstanceField.
4989 (struct _Jv_Field): New method getClass.
4990 * jni.cc: Wrote many new functions.
4991 * include/jni.h (JNI_TRUE): Define.
4992 (JNI_FALSE): Likewise.
4993 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
4994 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
4995 jcharArray, jfloatArray, jdoubleArray): New typedefs.
4996 (jfieldID, jmethodID): Likewise.
4997 (JNI_COMMIT, JNI_ABORT): New defines.
4998 (JNINativeMethod): New struct.
4999 (struct JNINativeInterface): Correctly declared more entries.
5000 (class _Jv_JNIEnv): Added `ex' member.
5001 (JNI_VERSION_1_1): New define.
5002 (JNI_VERSION_1_2): Likewise.
5004 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5005 getNextInstanceField.
5007 2000-01-20 Tom Tromey <tromey@cygnus.com>
5009 * resolve.cc (StringClass): Removed.
5010 * defineclass.cc (StringClass): Removed.
5012 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5016 2000-01-19 Tom Tromey <tromey@cygnus.com>
5018 * interpret.cc (PC_REGISTER_ASM): Removed.
5020 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5021 From Bryce McKinlay.
5023 * All files: Updated copyright to reflect Cygnus purchase.
5025 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5027 * configure: Rebuilt.
5028 * configure.in: Recognize --disable-interpreter.
5030 2000-01-18 Andrew Haley <aph@cygnus.com>
5032 * name-finder.cc (lookup): Check for dladdr function.
5033 acconfig.h (HAVE_DLADDR): Add.
5034 configure.in: Check for HAVE_DLADDR
5036 include/config.h.in: Rebuilt.
5038 2000-01-17 Andrew Haley <aph@cygnus.com>
5040 * prims.cc (_Jv_RunMain): Set the name of this executable.
5042 2000-01-17 Tom Tromey <tromey@cygnus.com>
5044 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5045 when backtrace can't be computed.
5047 * configure: Rebuilt.
5048 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5050 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5051 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5052 (_Jv_FindClassInCache): Likewise.
5053 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5054 (findSystemClass): Try to load class from compiled module.
5056 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5057 (loadLibrary): Likewise.
5058 (lt_preloaded_symbols): Define.
5059 (loadLibraryInternal): New method.
5060 * include/config.h.in: Rebuilt.
5061 * acconfig.h (USE_LTDL): Added.
5062 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5063 (INCLUDES): Added $(INCLTDL).
5064 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5065 (libgcj_la_LIBADD): Likewise.
5066 * aclocal.m4, configure: Rebuilt.
5067 * configure.in: Added libltdl support.
5069 2000-01-15 Tom Tromey <tromey@cygnus.com>
5071 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5073 2000-01-14 Andrew Haley <aph@cygnus.com>
5075 * java/lang/natThrowable.cc: New file.
5077 * java/lang/Throwable.java (fillInStackTrace): Make native.
5078 (printStackTrace): Call native method to do this.
5079 (Throwable): Call fillInStackTrace.
5080 (stackTrace): New variable.
5082 * include/jvm.h: Add _Jv_ThisExecutable functions.
5084 * prims.cc: (_Jv_execName): New variable.
5085 (catch_segv): Call fillInStackTrace.
5087 (_Jv_ThisExecutable): New functions.
5088 (JvRunMain): Set the name of this executable.
5090 * Makefile.am: Add java/lang/natThrowable.cc.
5092 * Makefile.in: Rebuilt.
5094 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5096 * configure.in: Force link with __frame_state_for in
5097 FORCELIBGCCSPEC. Add new checks for backtrace.
5098 * include/config.h.in: Rebuilt.
5100 * name-finder.cc: New file.
5101 * include/name-finder.h: New file.
5103 2000-01-16 Anthony Green <green@cygnus.com>
5105 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5108 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5110 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5112 2000-01-13 Tom Tromey <tromey@cygnus.com>
5114 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5115 not system loader, as initiating loader.
5117 2000-01-11 Tom Tromey <tromey@cygnus.com>
5119 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5120 HP/UX. From David Scott Urban.
5122 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5124 * java/lang/natMath.cc (pow): Cast args to `double', not
5127 (IEEEremainder): Likewise.
5128 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5129 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5131 2000-01-09 Anthony Green <green@cygnus.com>
5133 * java/lang/natString.cc (init): Test for overflow condition
5134 during out of bounds check.
5135 (getChars): Throw StringIndexOutOfBoundsException, not
5136 ArrayIndexOutOfBoundsException.
5138 (regionMatches): Obey case option during string comparison.
5140 * configure.host (ligcj_interpreter): New variable. Enable
5141 interpreter by default on IA-32.
5142 * configure.in: Examine libgcj_interpreter.
5143 * configure: Rebuilt.
5145 2000-01-07 Tom Tromey <tromey@cygnus.com>
5147 * mauve-libgcj: Don't disable ClassTest.
5149 * java/lang/natClass.cc (getClasses): Wrote.
5151 2000-01-06 Tom Tromey <tromey@cygnus.com>
5153 * java/lang/natClass.cc (_getConstructors): Correctly check
5154 whether method name is the init name.
5155 (getMethod): Look at accflags on method in `klass', not `this'.
5157 2000-01-05 Tom Tromey <tromey@cygnus.com>
5159 * java/lang/natClass.cc (getMethod): Compute offset relative to
5160 `klass's methods table, not `this's table.
5162 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5163 In unwrapping/widening case, check whether `k' is null, not
5164 whether it is primitive. Initialize `num' from `argelts', not
5165 `paramelts'. Correct create and pass arguments to ffi_call.
5166 Don't let presence of `this' argument affect index used to look in
5168 (COPY): Set appropriate element in `values' vector.
5170 * java/lang/natClass.cc: Include <gcj/method.h>.
5172 * java/lang/Class.h (_getMethods): Correctly declare as private,
5175 * java/lang/Class.h (_getMethods): Declare.
5176 * java/lang/Class.java (_getMethods): Declare.
5177 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5178 (getDeclaredClasses): Always return empty array.
5179 (_getMethods): New method.
5180 (getMethods): Wrote.
5181 (getDeclaredMethod): Return `rmethod'.
5182 (finit_name): New global.
5183 (getDeclaredMethods): Check for finit_name.
5184 (_getMethods): Likewise.
5185 (getMethod): Only return public methods.
5187 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5188 jboolean and select correct ffi type on that basis.
5189 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5190 Constructor call always has `void' return type.
5192 2000-01-04 Tom Tromey <tromey@cygnus.com>
5194 * java/lang/Class.h (getSignature): Updated.
5195 * java/lang/Class.java (getSignature): Updated.
5196 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5198 (getConstructor): Ensure constructor is public.
5199 (_getConstructors): Check for public-ness of constructor when
5200 `declared' is false, not when it is true.
5202 2000-01-04 Warren Levy <warrenl@cygnus.com>
5204 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5206 (receive): Set the sender's address in the DatagramPacket.
5208 2000-01-04 Tom Tromey <tromey@cygnus.com>
5210 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5211 declaring class as return_type argument to
5212 _Jv_CallNonvirtualMethodA.
5213 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5214 constructor case, create object and use it as `this' argument.
5215 * java/lang/Class.h (_getConstructors): Declare.
5216 (_getFields): Declare.
5217 * java/lang/Class.java (getConstructors): Wrote.
5218 (_getConstructors): New native method.
5219 (getDeclaredConstructors): Wrote.
5220 (_getFields): Declare new native method.
5221 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5223 (getMethod): Work correctly when class is primitive.
5224 (getDeclaredMethods): Likewise. Compute offset using `method',
5226 (getDeclaredMethod): Likewise.
5227 (getConstructor): Wrote.
5228 (ConstructorClass): New define.
5229 (getDeclaredConstructor): Wrote.
5230 (_getConstructors): New method.
5231 (_getFields): New method.
5234 * Makefile.in: Rebuilt.
5235 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5237 * prims.cc: Remove `#pragma implementation'.
5238 * gcj/array.h: Remove `#pragma interface'.
5240 * prims.cc (_Jv_equaln): New function.
5241 * java/lang/Class.java (getSignature): Declare.
5242 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5243 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5245 (getSignature): New method.
5246 (getDeclaredMethod): Wrote.
5248 Include StringBuffer.h.
5249 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5250 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5252 (getSignature): Declare.
5253 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5254 (_Jv_equaln): Declare.
5255 (_Jv_CallNonvirtualMethodA): Declare.
5256 * Makefile.in: Rebuilt.
5257 * Makefile.am (nat_source_files): Added natConstructor.cc.
5258 (java/lang/reflect/Constructor.h): New target.
5259 * java/lang/reflect/natConstructor.cc: New file.
5260 * java/lang/reflect/Constructor.java (newInstance): Now native.
5261 (declaringClass): Renamed from decl_class.
5262 (offset): Renamed from index.
5263 (getType): New native method.
5264 (getModifiers): Now native.
5265 (getParameterTypes): Call getType if required.
5266 (hashCode): Include hash code from declaring class.
5267 (modifiers): Removed.
5268 (toString): Call getType if required.
5269 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5270 * java/lang/reflect/natMethod.cc (hack_call): New method.
5271 Removed `#if 0' around FFI code.
5272 Include <gnu/gcj/RawData.h>.
5273 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5274 IllegalArgumentException when argument object and class disagree.
5275 (_Jv_GetTypesFromSignature): New function.
5277 (ObjectClass): New define.
5278 (_Jv_CallNonvirtualMethodA): New function.
5279 * java/lang/reflect/Method.java (hack_trampoline): New method.
5280 (hack_call): New native method.