1 2001-01-10 Warren Levy <warrenl@redhat.com>
3 * java/math/BigDecimal.java (divide): Fixed comment.
5 2001-01-10 Warren Levy <warrenl@redhat.com>
7 Fix for PR libgcj/1596:
8 * java/math/BigDecimal.java (divide): Check newScale for validity.
9 Ensure that BigInteger.pow() is called with a non-negative value.
10 (setScale (int)): New public method.
11 (setScale (int,int)): New public method.
13 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
15 Fix for PR libgcj/1338:
16 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
17 commentChar. Fixed typos in comments.
19 2001-01-08 Warren Levy <warrenl@redhat.com>
21 Fix for PR libgcj/1411:
22 * Makefile.am: Removed java/util/natTimeZone.cc.
23 * Makefile.in: Rebuilt.
24 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
25 missing localized timezone names.
26 * java/lang/System.java (getDefaultTimeZoneId): New private method.
27 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
28 (init_properties): Set user.timezone property.
29 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
30 default timezone names; removed non-standard ones. Use standard
32 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
34 * java/util/TimeZone.java: Add standard ID names per JCL; removed
36 (getDefaultTimeZoneId): Removed.
38 (getDefaultTimeZoneId): Removed.
39 * java/util/natTimeZone.cc: Removed.
41 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
43 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
44 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
45 (_Jv_GetArrayClass): New inline function.
46 (arrayclass): New field.
47 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
48 _Jv_GetArrayElementFromElementType.
49 (_Jv_NewPrimArray): Ditto.
50 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
51 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
52 Set Modifier::ABSTRACT.
53 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
54 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
55 Now synchronized. Array classes are now referenced from
56 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
57 Set array classes' accessibility flags correctly. Optimize so that
58 all array classes share the same IDT.
59 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
60 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
61 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
62 in superclasses from overwriting classes own fields.
63 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
64 Modifier::isAbstract().
65 (null_idt): New static field.
66 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
68 (_Jv_IndexOf): Made inline.
69 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
71 2001-01-08 Tom Tromey <tromey@redhat.com>
74 * Makefile.in: Rebuilt.
75 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
77 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
79 * Makefile.am: Use the new "-M -MF" option for generating dependencies
80 from the c++ compiler.
81 * Makefile.in: Rebuilt.
83 2001-01-07 Anthony Green <green@redhat.com>
85 * Makefile.am (texinfo): Add texinfo target for generating texinfo
87 * Makefile.in: Rebuilt.
89 * scripts/TexinfoDoclet.java: New file.
91 * doc/java-applet.texi, doc/java-lang-reflect.texi,
92 doc/java-awt-color.texi, doc/java-lang.texi,
93 doc/java-awt-datatransfer.texi, doc/java-math.texi,
94 doc/java-awt-event.texi, doc/java-net.texi,
95 doc/java-awt-geom.texi, doc/java-security-spec.texi,
96 doc/java-awt-image.texi, doc/java-security.texi,
97 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
98 doc/java-text.texi, doc/java-beans-beancontext.texi,
99 doc/java-util-jar.texi, doc/java-beans.texi,
100 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
101 doc/java-lang-ref.texi: New files.
103 2001-01-07 Anthony Green <green@redhat.com>
105 * java/net/URLConnection.java (setDoOutput): URLConnection's may
106 be used for both input and output, so don't clear doInput.
108 * java/lang/StringBuffer.java: Fix comments.
110 2001-01-06 Anthony Green <green@redhat.com>
112 * java/beans/PropertyDescriptor.java: Fix comment.
113 * java/io/PushbackReader.java: Fix comment.
114 * java/io/ObjectStreamClass.java: Fix comment.
115 * java/io/DataInputStream.java: Fix comment.
116 * java/io/PipedInputStream.java: Fix comments.
117 * java/io/PipedReader.java: Fix comments.
118 * java/sql/DatabaseMetaData.java: Fix comments.
120 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
122 * java/io/PipedReader: Synchronize on "lock" instead of this.
124 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
126 * java/lang/Thread.java: Update comment.
128 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
129 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
130 * java/io/PipedReader: New implementation based on new
132 * java/io/PipedWriter: Updated to match new PipedReader.
134 2001-01-03 Tom Tromey <tromey@redhat.com>
136 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
137 (getViewportSize): Insets include scrollbar size.
138 (doLayout): Finished.
139 (getScrollPosition): Wrote.
140 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
142 2001-01-02 Tom Tromey <tromey@redhat.com>
144 * java/awt/ScrollPane.java: Wrote.
145 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
148 * java/awt/Panel.java (Panel()): Fixed.
150 * java/awt/Component.java (isShowing): Return false if no peer
151 exists, and true if component is visible and no parent exists.
152 (getLocationOnScreen): Wrote.
153 (getPreferredSize): Removed FIXME comment.
154 (getMinimumSize): Likewise.
155 (getAlignmentX, getAlignmentY): Wrote.
157 (requestFocus): Wrote.
158 (transferFocus): Wrote.
159 (findNextFocusComponent): New method.
162 (enableEvents): Call setEventMask on the peer.
164 * java/awt/Container.java (list): Use super.list() to print self.
165 (findNextFocusComponent): New method.
166 (setLayout): Call invalidate.
167 (findComponentAt): Wrote.
169 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
171 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
172 the correct versions of various linuxthreads functions get linked.
173 * Makefile.in: Rebuilt.
174 * java/lang/natThread.cc (finalize_native): New static function. Call
175 _Jv_ThreadDestroyData.
176 (initialize_native): Register finalizer for "data".
177 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
178 (_Jv_ThreadDestroyData): New prototype.
179 * include/win32-threads.h: Ditto.
180 * include/no-threads.h: Ditto.
181 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
182 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
183 move mutex and condition variable destroy code from:
184 (really_start): ...here.
185 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
186 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
187 (_Jv_ThreadDestroyData): Implemented.
188 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
189 (_Jv_AllocArray): Ditto.
191 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
193 * java/sql/DriverManager.java (getConnection): Don't set user/password
196 2000-12-27 Warren Levy <warrenl@redhat.com>
198 Fix for PR libgcj/1358:
199 * java/lang/System.java: Update Copyright date properly.
200 * java/util/Calendar.java: Fix typo in comment.
201 (set): Set 24-hour clock hour instead of 12-hour clock hour.
202 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
203 initialize times. Spec says to set H:M:S values to zero only if
205 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
206 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
207 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
208 timezones and GMT offsets, being careful to account for units of
209 milliseconds vs. seconds.
211 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
213 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
214 not be assigned to Object.
216 Fix for PR libgcj/1516:
217 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
219 (can_widen): Declared inline. Remove redundant checks for void
220 arguments and char->short conversion. Add special case for boolean
222 (ffi_type): Declared inline.
223 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
225 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
227 * java/sql/SQLWarning.java: Fixed typo in comment.
229 2000-12-26 Tom Tromey <tromey@redhat.com>
231 * java/awt/MenuItem.java (paramString): Now protected.
233 * java/awt/MenuShortcut.java: Implements Serializable.
235 * java/awt/MenuBar.java: Rewrote from scratch.
237 * java/awt/MenuComponent.java (removeNotify): Wrote.
238 Implements Serializable.
240 * java/awt/GridBagConstraints.java (GridBagConstraints): New
243 * java/awt/CheckboxMenuItem.java: Wrote.
245 2000-12-25 Tom Tromey <tromey@redhat.com>
247 * java/awt/MenuContainer.java: Fixed typo.
249 * Makefile.in: Rebuilt.
250 * Makefile.am (awt_java_source_files): Added SystemColor.java.
251 * java/awt/SystemColor.java: New file.
253 * java/awt/Color.java (rgba): Now package-private.
255 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
257 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
260 * java/awt/MenuItem.java (addNotify): New method.
261 (MenuItem(String,MenuShortcut)): New constructor.
262 (setLabel): Notify peer of change.
263 (setEnabled): Likewise.
265 * java/awt/GridLayout.java (toString): New method.
267 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
268 (FlowLayout): Check for LEADING and TRAILING.
269 (setAlignment): Likewise.
270 (layoutContainer): Handle component orientation.
272 * java/awt/Component.java (orientatin): New field.
273 (setComponentOrientation): Wrote.
274 (getComponentOrientation): Wrote.
276 * java/awt/Event.java (Event): Implements Serializable.
277 (consumed): New field for serialization.
278 * java/awt/Dimension.java (Dimension): Implements Serializable.
279 * java/awt/Cursor.java (Cursor): Implements Serializable.
280 * java/awt/Container.java (Container): No longer abstract.
282 * java/awt/Choice.java: Wrote.
283 * java/awt/Checkbox.java: Wrote.
284 * java/awt/ItemSelectable.java: Documented.
285 * java/awt/CheckboxGroup.java: Wrote.
287 * java/awt/CardLayout.java (layoutContainer): Directly use fields
291 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
293 * java/io/FileDescriptor.java: Initialize fd to -1.
294 Remove default constructor.
296 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
298 * java/lang/mprec.h: Change C9X reference to refer to C99.
300 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
302 * java/lang/Throwable.java (trace_enabled): New static field.
303 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
304 trace_enabled not set.
305 * prims.cc (main_init): Turn off trace_enabled while creating
306 default exception objects.
308 2000-12-21 Tom Tromey <tromey@redhat.com>
310 * java/beans/PropertyChangeListener.java: Extends EventListener.
311 * java/beans/VetoableChangeListener.java: Extends EventListener.
313 * java/util/zip/Deflater.java (update, init): Now private.
315 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
317 * java/util/BasicMapEntry.java: Re-added.
318 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
319 (putAll): Test for BasicMapEntry.
320 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
321 (putAll): Test for BasicMapEntry.
322 Change references from `HashMap.Entry' to `Entry' in various places.
323 * Makefile.am: Add BasicMapEntry.java.
324 * Makefile.in: Rebuilt.
326 2000-12-18 Warren Levy <warrenl@redhat.com>
328 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
329 need to set timezone to a valid non-null value. Partial fix for
332 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
334 * java/awt/Window.java (addNotify): Remove peer casting hack now that
336 * java/awt/Button.java (addNotify): Likewise.
337 * java/awt/Label.java (addNotify): Likewise.
338 * java/awt/Panel.java (addNotify): Likewise.
339 * java/awt/Scrollbar.java (addNotify): Likewise.
340 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
341 Remove redundant null checks.
343 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
345 * COPYING: Update to current
346 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
347 to 19yy as example year in copyright notice).
349 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
351 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
352 end-of-stream if avail_in is 0.
354 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
356 * java/util/ArrayList.java (data): Declare transient.
357 (serialPersistantFields): Removed.
358 (readObject): Use defaultReadObject(), not readFields().
359 (writeObject): Use defaultWriteObject(), not writeFields().
361 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
363 * java/util/Hashtable.java (put): Remove `last' variable.
364 Link new entry to head of list.
365 * java/util/HashMap.java (put): Ditto.
367 2000-12-15 Tom Tromey <tromey@redhat.com>
369 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
370 loader to Class.forName.
372 2000-12-14 Tom Tromey <tromey@redhat.com>
374 * java/util/ResourceBundle.java
375 (getBundle(String,Locale,ClassLoader)): New method.
376 (trySomeGetBundle): Added `loader' argument.
377 (partialGetBundle): Likewise.
379 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
380 maximumFractionDigits, maximumIntegerDigits,
381 minimumFractionDigits, minimumIntegerDigits): Now
384 * java/lang/Thread.java (checkAccess): Now final.
386 * java/lang/RuntimePermission.java: Class now final.
388 * java/io/StringWriter.java (StringWriter(int)): Now public.
390 * java/io/SerializablePermission.java (legal_names): Now private.
392 * java/lang/Character.java: Updated UnicodeBlock constants.
393 * scripts/blocks.pl: Special case private use and surrogate
396 2000-12-12 Tom Tromey <tromey@redhat.com>
398 * Makefile.in: Rebuilt.
399 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
401 (GCJCOMPILE): Use it.
404 2000-12-11 Tom Tromey <tromey@redhat.com>
406 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
407 New static final fields.
409 * scripts/classes.pl (scan): Skip lines with leading `*'.
410 Fix for PR libgcj/378.
412 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
414 * configure.in: Remove check for -fuse-divide-subroutine.
415 * configure: Rebuilt.
417 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
419 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
421 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
423 * Makefile.am: Add HashSet.java and java/lang/ref classes.
424 Remove BasicMapEntry.java and Bucket.java.
425 * Makefile.in: Rebuilt.
426 * java/util/HashMap.java: Rewritten.
427 * java/util/HashSet.java: Imported from classpath.
428 * java/util/WeakHashMap.java: Imported from classpath.
429 * java/util/Hashtable.java: Rewritten based on new HashMap code.
430 * java/util/Bucket.java: Deleted.
431 * java/util/BasicMapEntry.java: Deleted.
432 * java/util/Collections.java (search): Use a for-loop, not iterator
434 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
435 of elements in source.
436 (max): Use a for-loop.
438 (reverse): Keep track of positions instead of using Iterator's
439 nextIndex() and previousIndex().
440 (shuffle(List)): Initialize defaultRandom if required using
441 double-check thread safety idiom. Call two-argument shuffle method
443 (defaultRandom): New field.
444 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
445 using previousIndex() and nextIndex().
446 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
447 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
448 * java/util/AbstractMap.java (toString): Use StringBuffer.
449 * java/lang/ref/PhantomReference.java: Imported from classpath.
450 * java/lang/ref/SoftReference.java: Ditto.
451 * java/lang/ref/Reference.java: Ditto.
452 * java/lang/ref/WeakReference.java: Ditto.
453 * java/lang/ref/ReferenceQueue.java: Ditto.
455 2000-12-10 Richard Henderson <rth@redhat.com>
457 * configure.host: Recognize alpha*-*, not alphaev6-*.
459 2000-12-09 Anthony Green <green@redhat.com>
461 * configure.host: Enable interpreter for Alpha.
463 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
465 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
466 (ZIP): Points at fastjar instead of zip.
467 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
468 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
469 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
470 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
471 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
472 ($(x_java_source_files:.java=.class):): Likewise.
473 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
475 (CLEANFILES): libgcj.jar replaces libgcj.zip.
476 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
477 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
478 java/lang/String.h:, java/lang/reflect/Constructor.h:,
479 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
480 gnu/gcj/runtime/VMClassLoader.h:,
481 java/io/ObjectInputStream$$GetField.h:,
482 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
483 (Makefile.in): Rebuilt.
485 2000-12-08 Tom Tromey <tromey@redhat.com>
488 * configure: Rebuilt.
489 * configure.in: Use echo, not `:', to create .d files.
491 2000-12-08 Warren Levy <warrenl@redhat.com>
493 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
494 NullPointerException so proper check of offset can be done.
496 2000-12-08 Warren Levy <warrenl@redhat.com>
498 * java/io/FileInputStream.java (close): Check if the fd is valid.
499 * java/io/RandomAccessFile.java (close): Ditto.
500 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
501 * java/net/PlainSocketImpl.java (close): Ditto.
503 2000-12-06 Tom Tromey <tromey@redhat.com>
505 * java/awt/GridBagConstraints.java: Filled in values for static
508 * java/util/BitSet.java: Updated copyright notice.
510 * Makefile.in: Rebuilt.
511 * Makefile.am (awt_java_source_files): Added new file.
512 * java/awt/GridBagConstraints.java: New file.
514 2000-12-05 Tom Tromey <tromey@redhat.com>
516 * java/text/Collator.java (decomposeCharacter, decmp, strength):
517 Now package-private, not protected.
518 * java/text/DateFormatSymbols.java (equals): Now private.
519 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
520 * java/util/BitSet.java: Class no longer final.
522 2000-12-04 Warren Levy <warrenl@redhat.com>
524 * java/util/TimeZone.java (getAvailableIDs): Activated commented
525 out code dependent on compiler and library changes.
527 2000-12-04 Warren Levy <warrenl@redhat.com>
529 * java/io/FilePermission.java: Made class final per spec.
530 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
531 method name to match spec (fixed typo).
532 * java/util/LinkedList.java: Implements List.
534 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
536 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
537 Edgar Villanueva <edgarvil@home.com>.
539 2000-12-03 Tom Tromey <tromey@redhat.com>
541 * java/awt/geom/Point2D.java: Added protected constructor.
542 (equals): New method.
543 (Float.setLocation(float,float)): New method.
544 * java/awt/geom/Dimension2D.java: Added protected constructor.
545 * java/awt/geom/AffineTransform.java: Made all constants public.
546 (concatenate): Fixed typo in name.
547 * java/awt/event/WindowAdapter.java: Class now abstract.
548 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
549 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
552 * java/awt/AWTError.java: Extend Error, not
553 IllegalStateException.
555 * Makefile.in: Rebuilt.
556 * Makefile.am (awt_java_source_files): Added new file.
557 * java/awt/geom/RoundRectangle2D.java: New file.
559 * Makefile.in: Rebuilt.
560 * Makefile.am (awt_java_source_files): Added new file.
561 * java/awt/FlowLayout.java: New file.
563 * Makefile.in: Rebuilt.
564 * Makefile.am (awt_java_source_files): Added new file.
565 * java/awt/GridLayout.java: New file.
567 2000-12-02 Tom Tromey <tromey@redhat.com>
569 * Makefile.in: Rebuilt.
570 * Makefile.am (awt_java_source_files): Added new files.
571 * java/awt/CardLayout.java: New file.
572 * java/awt/AWTPermission.java: New file.
574 2000-12-01 Tom Tromey <tromey@redhat.com>
576 * java/util/Vector.java (insertElementAt): Unconditionally
577 increment elementCount.
578 (removeRange): Clear unused slots in vector.
580 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
582 * java/lang/natMath.cc: Declare fabsf() function.
583 * java/lang/mprec.h: Don't include math.h.
584 * java/lang/dtoa.c: Include string.h.
585 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
588 From Adam Welc <welc@cs.purdue.edu>:
589 * java/util/LinkedList.java (removeFirst): Update `first' field.
590 Handle the last == first case.
591 (removeLast): Update `last' field. Handle the last == first case.
593 2000-12-01 Warren Levy <warrenl@cygnus.com>
595 * Makefile.am: Added entries for new java.sql modules.
596 * Makefile.in: Rebuilt.
598 2000-12-01 Warren Levy <warrenl@cygnus.com>
600 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
601 that aren't quite 1.2 compatible yet.
603 2000-11-30 Warren Levy <warrenl@cygnus.com>
605 * java/sql/Array.java: New file from classpath.
606 * java/sql/BatchUpdateException.java: Ditto.
607 * java/sql/Blob.java: Ditto.
608 * java/sql/Clob.java: Ditto.
609 * java/sql/Ref.java: Ditto.
610 * java/sql/SQLData.java: Ditto.
611 * java/sql/SQLInput.java: Ditto.
612 * java/sql/SQLOutput.java: Ditto.
613 * java/sql/Struct.java: Ditto.
614 * java/sql/CallableStatement.java: Merged file from claspath.
615 * java/sql/Connection.java: Ditto.
616 * java/sql/DataTruncation.java: Ditto.
617 * java/sql/DatabaseMetaData.java: Ditto.
618 * java/sql/DriverManager.java: Ditto.
619 * java/sql/PreparedStatement.java: Ditto.
620 * java/sql/ResultSet.java: Ditto.
621 * java/sql/ResultSetMetaData.java: Ditto.
622 * java/sql/SQLException.java: Ditto.
623 * java/sql/SQLWarning.java: Ditto.
624 * java/sql/Statement.java: Ditto.
625 * java/sql/Types.java: Ditto.
627 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
629 * java/lang/natSystem.cc (init_properties): Set user.language and
631 * configure.in: Check for setlocale.
632 * configure: Rebuilt.
633 * include/config.h.in: Rebuilt.
635 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
636 the infate() call didn't deliver any output. Throw a ZipException if
637 the needsDictionary() call returns true.
638 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
639 * java/io/InputStreamReader: Use the default buffer size for the
640 contained BufferedInputStream.
642 2000-11-28 Warren Levy <warrenl@cygnus.com>
644 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
645 more time zone entries.
646 * java/text/SimpleDateFormat.java (format): Added case for
649 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
651 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
652 directly rather than read() in all cases. Make primitive read
653 implementations more efficient, as defined in JDK online docs.
654 (skipBytes): Behave like the JDK's implementation.
655 * java/io/BufferedReader.java: Merge classpath docs. Check for a
656 closed stream with checkStatus() whenever an IOException can be
658 (checkStatus): New private method.
660 2000-11-27 Warren Levy <warrenl@cygnus.com>
662 * Makefile.am: Added natTimeZone.cc.
663 * Makefile.in: Rebuilt.
664 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
665 * java/text/DateFormatSymbols.java (ampms): Made package private.
666 (eras): Made package private.
667 (months): Made package private.
668 (shortMonths): Made package private.
669 (shortWeekdays): Made package private.
670 (weekdays): Made package private.
671 (formatPrefixes): New private field.
672 (localPatternCharsDefault): Made private.
673 (dateFormats): New package private field.
674 (timeFormats): New package private field.
675 (formatsForKey): New private method.
676 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
677 (DateFormatSymbols(DateFormatSymbols)): Ditto.
678 * java/text/SimpleDateFormat.java: Merged with Classpath.
679 * java/util/TimeZone.java: Merged with Classpath.
680 * java/util/natTimeZone.cc: New file.
682 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
684 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
685 (addElement): Don't increment elementCount twice. Doh.
686 * java/util/ArrayList.java (add): Only call ensureCapacity if the
687 array needs to be expanded.
689 * java/util/Collections.java (UnmodifiableCollection): Implement
691 (UnmodifiableList): Throw UnsupportedOperationException from
692 modification methods. Set `l' from the one-parameter constructor.
693 (UnmodifiableMap): Implement toString().
694 (SynchronizedCollection): Ditto.
695 (SynchronizedList): Set `l' from the one-parameter constructor.
696 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
697 (SynchronizedMap): Implement toString().
699 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
701 * javax/naming/NameParser.java,
702 javax/naming/directory/AttributeInUseException.java,
703 javax/naming/directory/AttributeModificationException.java,
704 javax/naming/directory/InvalidAttributeIdentifierException.java,
705 javax/naming/directory/InvalidAttributesException.java,
706 javax/naming/directory/InvalidAttributeValueException.java,
707 javax/naming/directory/InvalidSearchControlsException.java,
708 javax/naming/directory/InvalidSearchFilterException.java,
709 javax/naming/directory/NoSuchAttributeException.java,
710 javax/naming/directory/SchemaViolationException.java: New files.
712 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
714 * javax/naming/InitialContext.java (rebind): Implement.
718 (listBindings): Implement.
719 (destroySubcontext): Implement.
720 (createSubcontext): Implement.
721 (lookupLink): Implement.
722 (getNameParser): Implement.
723 (composeName): Implement.
724 (addToEnvironment): Implement.
726 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
728 * javax/naming/AuthenticationException.java,
729 javax/naming/AuthenticationNotSupportedException.java,
730 javax/naming/CannotProceedException.java,
731 javax/naming/CommunicationException.java,
732 javax/naming/ConfigurationException.java,
733 javax/naming/ContextNotEmptyException.java,
734 javax/naming/InsufficientResourcesException.java,
735 javax/naming/InterruptedNamingException.java,
736 javax/naming/InvalidNameException.java,
737 javax/naming/LimitExceededException.java,
738 javax/naming/LinkException.java,
739 javax/naming/LinkLoopException.java,
740 javax/naming/MalformedLinkException.java,
741 javax/naming/NameAlreadyBoundException.java,
742 javax/naming/NameNotFoundException.java,
743 javax/naming/NamingSecurityException.java,
744 javax/naming/NoPermissionException.java,
745 javax/naming/NotContextException.java,
746 javax/naming/PartialResultException.java,
747 javax/naming/ReferralException.java,
748 javax/naming/ServiceUnavailableException.java,
749 javax/naming/SizeLimitExceededException.java,
750 javax/naming/TimeLimitExceededException.java: New files.
752 * javax/naming/Name.java (clone): New method.
753 (compareTo): New method.
754 (isEmpty): New method.
755 (getAll): New method.
756 (getPrefix): New method.
757 (getSuffix): New method.
758 (startsWith): New method.
759 (endsWith): New method.
760 (addAll): New method.
761 (addAll): New method.
764 (remove): New method.
766 * javax/naming/Context.java (lookup): New method.
767 (rebind): New method.
768 (unbind): New method.
769 (rename): New method.
771 (listBindings): New method.
772 (destroySubcontext): New method.
773 (createSubcontext): New method.
774 (lookupLink): New method.
775 (getNameParser): New method.
776 (composeName): New method.
777 (addToEnvironment): New method.
778 (removeFromEnvironment): New method.
779 (getEnvironment): New method.
781 (getNameInNamespace): New method.
783 * javax/naming/InitialContext.java (lookup): New method.
784 (rebind): New method.
785 (unbind): New method.
786 (rename): New method.
788 (listBindings): New method.
789 (destroySubcontext): New method.
790 (createSubcontext): New method.
791 (lookupLink): New method.
792 (getNameParser): New method.
793 (composeName): New method.
794 (addToEnvironment): New method.
795 (removeFromEnvironment): New method.
796 (getEnvironment): New method.
798 (getNameInNamespace): New method.
800 2000-11-26 Tom Tromey <tromey@cygnus.com>
802 * Makefile.in: Rebuilt.
803 * Makefile.am (core_java_source_files): Added
804 RuntimePermission.java.
805 * java/lang/RuntimePermission.java: Imported from Classpath.
806 * java/lang/Thread.java (getContextClassLoader): Now
807 synchronized. Added security code.
808 (setContextClassLoader): Likewise.
810 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
811 length field of array.
812 (_Jv_NewPrimArray): Likewise.
813 * gcj/array.h (__JArray): `length' field now const. Added
816 2000-11-26 Anthony Green <green@redhat.com>
818 * javax/naming/spi/NamingManager.java,
819 javax/naming/spi/ObjectFactory.java,
820 javax/naming/spi/InitialContextFactory.java,
821 javax/naming/spi/InitialContextFactoryBuilder.java,
822 javax/naming/RefAddr.java, javax/naming/Reference.java,
823 javax/naming/NamingException.java, javax/naming/Context.java,
824 javax/naming/Referenceable.java,
825 javax/naming/directory/InitialDirContext.java,
826 javax/naming/directory/DirContext.java,
827 javax/naming/directory/Attributes.java,
828 javax/naming/directory/Attribute.java,
829 javax/naming/StringRefAddr.java,
830 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
831 javax/naming/InitialContext.java,
832 javax/naming/NoInitialContextException.java: New files.
834 2000-11-25 Anthony Green <green@redhat.com>
836 * prims.cc (_Jv_NewObjectArray): Undo placement change.
837 (_Jv_NewPrimArray): Likewise.
838 * gcj/array.h (__JArray): Undo const change. Removed constructor.
839 (class JArray): Removed constructor.
841 * java/lang/Thread.java (context_class_loader): New private data.
842 (getContextClassLoader): New method.
843 (setContextClassLoader): New method.
844 (Thread): Initialize context_class_loader.
846 * java/net/URLClassLoader.java: Import java.util.Enumeration.
847 (getResource): Rename to findResource.
848 (findResource): New method. Used to be getResource.
849 (getResourceAsStream): Deleted.
850 (jarFileize): Extracted logic from URLClassLoader constructor into
851 this new private method.
852 (addURL): New protected method.
853 (URLClassLoader): Call jarFileize. Use addElement instead of
855 (findResources): New method.
857 * java/lang/ClassLoader.java: Import java.util.Enumeration.
858 (getResource): Implement correct logic.
859 (findResource): New method.
860 (getResources): New method.
861 (findClass): Create a ClassNotFoundException with the name of the
862 class rather than nothing at all.
863 (defineClass) Only throw ClassFormatError.
865 * java/lang/Class.java (forName): New method.
866 * java/lang/Class.h (forName): New method.
867 * java/lang/natClass.cc (forName): New method.
869 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
871 * java/lang/System.java (setProperties): Only call init_properties()
872 if properties is null.
873 (getProperties): Ditto.
874 (getProperty): Ditto.
875 (setProperty): Call init_properties if properties are null.
876 (prop_init): Remove field.
877 * java/lang/natSystem.cc (init_properties): Synchronize the entire
878 method. Check for null properties after synchronizing instead of
879 prop_init flag. Set the properties field last for thread safety.
881 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
882 test for gcj.dumpobjects property and enable object stream dumping
884 (dumpElement): No longer native.
885 (dumpElementln): Ditto.
886 (setDump): Do not define.
887 * java/io/natObjectInputStream.cc (dumpElement): Removed.
888 (dumpElementln): Removed.
891 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
893 * configure: Rebuilt.
894 * Makefile.in: Rebuilt.
895 * Makefile.am (built_java_source_files): Add Configuration.java.
896 * configure.in: Add Configuration.java to CONFIG_FILES. Set
897 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
898 Create `gnu' directory in the build tree.
899 * gnu/classpath/Configuration.java.in: New file.
901 2000-11-24 Tom Tromey <tromey@cygnus.com>
903 * prims.cc (_Jv_NewObjectArray): Use placement new to create
905 (_Jv_NewPrimArray): Likewise.
907 * gcj/array.h (__JArray): `length' field now const. Added
909 (class JArray): Added constructor.
911 2000-11-23 Mark Wielaard <mark@klomp.org>
913 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
916 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
918 * java/util/Vector.java: Improve exception messages.
919 (Vector): Check initialCapacity for IllegalArgumentException.
920 (tromToSize): Don't check for elementCount == elementData.length
922 (toArray): Don't try to set null marker if target array is the same
923 length as the vector.
925 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
927 * Makefile.in: Rebuilt.
928 * Makefile.am (core_java_source_files): Added Collections.java.
929 * java/util/List.java: Merged from classpath.
930 * java/util/Vector.java: Ditto.
931 * java/util/Collections.java: From classpath.
932 * java/util/ArrayList.java (addAll(Collection)): Call
933 addAll(int,Collection) instead of duplicating code.
934 (indexOf): Clean up int initialization.
935 (clear): Set cleared array entries to null, to allow garbage
937 * java/util/List.java: Minor formatting fixes.
938 * java/util/SimpleTimeZone.java: ditto.
940 2000-11-18 Tom Tromey <tromey@cygnus.com>
942 * Makefile.in: Rebuilt.
943 * Makefile.am (core_java_source_files): Added new files.
944 * java/lang/reflect/ReflectPermission.java: New class.
945 * java/io/FileFilter.java: From Classpath
946 * java/io/FilePermission.java: From Classpath.
948 2000-11-17 Tom Tromey <tromey@cygnus.com>
950 * java/lang/reflect/AccessibleObject.java (isAccessible,
951 setAccessible): Now public.
953 * java/lang/natString.cc: Include Locale.h.
954 (toUpperCase): Added `locale' argument. Handle locale
956 (toLowerCase): Added `locale' argument. Handle locale
958 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
959 CAPITAL_I): New defines.
960 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
963 (toUpperCase, toLowerCase): New methods. Variants which accept
966 * java/lang/ExceptionInInitializerError.java (printStackTrace):
969 * java/util/PropertyPermission.java: Re-merged from Classpath.
971 * java/text/RuleBasedCollator.java (getCollationElementIterator):
973 * java/text/StringCharacterIterator.java: Reindented.
974 (setText): New method.
976 2000-11-17 Mark Wielaard <mark@klomp.org>
978 Merge with Classpath (changes by Bryce McKinlay)
979 * java/util/jar/*.java: Reformat all to unofficial standard coding
980 style. No changes of substance.
982 2000-11-17 Mark Wielaard <mark@klomp.org>
984 * java/util/zip/*.java: Javadoc updates.
986 2000-11-17 Tom Tromey <tromey@cygnus.com>
988 * java/text/CollationKey.java: Implement Comparable.
989 (compareTo(Object)): New method.
990 * java/text/Collator.java (compare(Object,Object)): New method.
991 Implement Comparator.
993 * java/util/zip/InflaterInputStream.java (available): New method.
995 (read, available, skip, fill): Throw exception if stream closed.
996 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
997 getNextEntry): Throw exception if closed.
999 2000-11-16 Tom Tromey <tromey@cygnus.com>
1001 * java/io/PushbackReader.java: Merged with Classpath.
1002 * java/util/Arrays.java: Updated from Classpath.
1004 * scripts/blocks.pl: New file.
1005 * java/lang/Character.java (Subset): New class.
1006 (UnicodeBlock): New class.
1008 * java/lang/Math.java (toDegrees, toRadians): New methods.
1010 * java/lang/Float.java: Implement Comparable.
1011 (compareTo): New methods.
1012 * java/lang/Double.java: Implement Comparable.
1013 (compareTo): New methods.
1015 2000-11-16 Warren Levy <warrenl@cygnus.com>
1017 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1019 (listeners): Made transient.
1020 (source): Renamed from 'bean'.
1021 (children): New field for serialization.
1022 (propertyChangeSupportSerializedDataVersion): Ditto.
1023 (serialVersionUID): Ditto.
1024 (writeObject): New serialization method.
1025 (readObject): New serialization method.
1026 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1028 (listeners): Made transient.
1029 (source): Renamed from 'bean'.
1030 (children): New field for serialization.
1031 (vetoableChangeSupportSerializedDataVersion): Ditto.
1032 (serialVersionUID): Ditto.
1033 (writeObject): New serialization method.
1034 (readObject): New serialization method.
1035 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1036 to allow constructor to have a return type (i.e. the class that the
1037 constructor constructs).
1039 2000-11-14 Tom Tromey <tromey@cygnus.com>
1041 * Makefile.in: Rebuilt.
1042 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1045 2000-11-02 Warren Levy <warrenl@cygnus.com>
1047 * java/io/ObjectInputStream.java (readObject): Added code to
1048 conditionally dump out the serialized data.
1049 Handle ENDBLOCKDATA case a bit more gracefully since the current
1050 behavior doesn't seem to work as expected.
1051 (readStreamHeader): Added code for serialized data dumper.
1052 (readNextBlock): Ditto.
1053 (readFields): Ditto.
1054 (dump): New private static field for turning on/off dumper.
1055 (setDump): New native method.
1056 (dumpElement): New native method.
1057 (dumpElementln): New native method.
1058 * java/io/natObjectInputStream.cc (setDump): New method.
1059 (dumpElement): New method.
1060 (dumpElementln): New method.
1062 2000-11-02 Warren Levy <warrenl@cygnus.com>
1064 * java/net/InetAddress.java (addr): Renamed from 'address'.
1065 (address): New field to match Serialized Form doc.
1066 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1067 (family): New serialization field.
1068 (serialVersionUID): New field.
1069 (readObject): New method.
1070 (writeObject): New method.
1071 (getFamily): New native method.
1072 (InetAddress): Set family.
1073 * java/net/natInetAddress.cc (getFamily): New method.
1074 (addr): Renamed from 'address'.
1075 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1076 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1077 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1079 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1081 * java/util/AbstractList.java (SubList): Make it a top-level private
1083 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1085 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1086 * Makefile.in: Rebuilt.
1088 2000-11-02 Tom Tromey <tromey@cygnus.com>
1090 * Makefile.in: Rebuilt.
1091 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1094 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1096 * java/util/AbstractList.java (remove): Comment out modCount increment
1097 to work around compiler bug.
1100 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1102 * java/util/AbstractList.java: Throw messages with
1103 IndexOutOfBoundsExceptions.
1104 (listIterator()): Call listIterator(0).
1105 (size): New field. Initialize to size().
1106 (hasNext): Test position against size, not size().
1107 (remove): Increment knownMod by one instead of resetting it from
1110 (SubList.upMod): Removed.
1111 (SubList.set): Don't call upMod() or update knownMod.
1112 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1113 (SubList.remove): Ditto.
1114 (SubList.addAll): Don't call backingList.size(). Increment size from
1116 (SubList.iterator): New method. Call listIterator(0).
1117 (SubList.listIterator): New method. Restore code to return an anonymous
1118 listIterator implementation (with some changes).
1119 * java/util/AbstractSequentialList.java: Throw messages with
1120 IndexOutOfBoundsExceptions.
1121 (addAll): Add a specnote.
1122 * java/util/ArrayList.java (removeRange): Get the math right.
1123 (addAll): Increment modCount _before_ creating iterator.
1124 * java/util/LinkedList.java: Rewritten, mostly.
1126 2000-11-01 Tom Tromey <tromey@cygnus.com>
1128 * scripts/encodings.pl: Added `ASCII' alias.
1129 * Makefile.in: Rebuilt.
1130 * Makefile.am (convert_source_files): Added new files.
1131 * gnu/gcj/convert/Input_ASCII.java: New file.
1132 * gnu/gcj/convert/Output_ASCII.java: New file.
1133 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1134 out-of-range characters.
1135 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1136 (read): Swap bytes if required. Treat `count' as character count,
1138 (write): Likewise. Also, handle case where iconv fails on a given
1140 (init): Put encoding into exception.
1141 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1142 (static): Call iconv_init. Rebuilt alias list.
1143 (iconv_init): New private method.
1145 2000-11-01 Tom Tromey <tromey@cygnus.com>
1147 * Makefile.in: Rebuilt.
1148 * Makefile.am (install-exec-hook): Only make a single symlink, and
1149 remove the destination before making the link.
1150 * configure: Rebuilt.
1151 * configure.in: Call AC_PROG_LN_S.
1153 2000-10-31 Warren Levy <warrenl@cygnus.com>
1155 * jni.cc: Added include of java/lang/ThreadGroup.h.
1156 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1157 per change of 2000-10-05.
1159 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1161 * java/util/BitSet.java: Updated @specnote.
1163 * java/io/Reader.java: Merge docs from classpath.
1164 (skip): Synchronize on `lock'.
1165 * java/io/FileReader.java: Import correct implementation from
1167 * java/io/StringReader.java: Merge docs from classpath.
1168 (ready): Throw IOException if stream is closed.
1170 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1172 * java/util/AbstractCollection.java (addAll): Use size() instead of
1173 hasNext() in iterator loop.
1175 (contains): Ditto. Simplify loop.
1176 (containsAll): Ditto.
1181 (toString): Ditto. Use string concatenation operators, not
1183 * java/util/AbstractList.java (addAll): Use size() instead of
1184 hasNext() in iterator loop.
1187 (indexOf): Ditto. Don't take null check outside of the loop.
1188 (iterator): Return an AbstractListItr instead of anonymous class.
1189 (lastIndexOf): Use a for loop bounded by size() instead of
1190 hasPrevious() in iterator loop.
1191 (listIterator): Return an AbstractListItr.
1192 (removeRange): Remove bounds checking code and docs.
1193 (AbstractListItr): New inner class. Code moved here from
1195 (SubList.iterator): Removed. Use default implementation from
1196 AbstractList instead.
1197 (SubList.listIterator): As above.
1198 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1199 instead of hasNext() in iterator loop.
1200 (containsValue): Ditto.
1206 (toString): Ditto. Use string concatenation operators, not
1208 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1209 bounded by size() instead of hasNext() in iterator loop.
1210 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1211 part of normal execution flow. Do an explicit null check instead.
1212 * java/util/ArrayList.java (_iSize): Rename to `size'.
1213 (_arData): Rename to `data'.
1214 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1217 (removeRange): Make protected. Don't check bounds.
1218 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1220 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1222 (addAll (int, Collection)): Check lower bounds. Simplify exception
1224 (clone): Clone the data array too.
1225 (indexOf): Inline doesEqual().
1226 (lastIndexOf): Ditto.
1227 (clear): Don't set array data to null.
1228 (set): Check lower bounds. Simplify exception string.
1229 (toArray): Correct comment.
1230 (trimToSize): Don't update modCount, this is not a structural change.
1233 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1235 (toString): Declare `bit' as long, not int.
1236 (data): Made package-private, not private.
1238 2000-10-27 Warren Levy <warrenl@cygnus.com>
1240 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1241 array elements to true.
1243 2000-10-27 Warren Levy <warrenl@cygnus.com>
1245 * Makefile.am: Added locale files from Classpath.
1246 * Makefile.in: Rebuilt.
1247 * gnu/java/locale/Calendar.java: New file.
1248 * gnu/java/locale/Calendar_de.java: New file.
1249 * gnu/java/locale/Calendar_en.java: New file.
1250 * gnu/java/locale/Calendar_nl.java: New file.
1251 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1252 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1253 serialization compatibility.
1254 (scale): Made private.
1255 (serialVersionUID): New field.
1256 * java/math/BigInteger.java (ival): Made transient.
1257 (words): Made transient.
1258 (bitCount): New serialization field.
1260 (firstNonzeroByteNum): Ditto.
1261 (lowestSetBit): Ditto.
1264 (serialVersionUID): New field.
1265 (readObject): New method.
1266 (writeObject): New method.
1267 * java/util/BitSet.java (serialVersionUID): New field.
1268 * java/util/Calendar.java: Replaced with Classpath file.
1269 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1270 of getDefault() for TimeZone or Locale instead of passing nulls.
1271 * java/util/Locale.java (serialVersionUID): New field.
1272 (writeObject): New method.
1273 (readObject): New method.
1274 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1276 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1278 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1279 (core_java_source_files): Put java.lang, java.io, and java.util here.
1280 (ordinary_java_source_files): Order so that core_java_source_files are
1282 (java_source_files): Reorder so that special_java_source_files are
1284 * configure.in: Don't pass -I flag to gcj.
1285 * Makefile.in: Rebuilt.
1286 * configure: Rebuilt.
1288 2000-10-25 Tom Tromey <tromey@cygnus.com>
1290 * Makefile.in: Rebuilt.
1291 * Makefile.am (install-exec-hook): New target.
1293 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1295 * java/util/EventObject.java: Merged from classpath.
1297 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1300 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1302 * java/util/AbstractSet.java (equals): Re-installed original code.
1304 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1306 * Makefile.am: Added rules for libgcjx library.
1307 * Makefile.in: Rebuilt.
1308 * configure.in: Added check for X.
1309 * configure: Rebuilt.
1310 * gnu/awt/LightweightRedirector.java: New file.
1311 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1312 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1313 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1314 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1315 * gnu/awt/j2d/MappedRaster.java: New file.
1316 * gnu/awt/xlib/XCanvasPeer.java: New file.
1317 * gnu/awt/xlib/XEventLoop.java: New file.
1318 * gnu/awt/xlib/XEventQueue.java: New file.
1319 * gnu/awt/xlib/XFontMetrics.java: New file.
1320 * gnu/awt/xlib/XFramePeer.java: New file.
1321 * gnu/awt/xlib/XGraphics.java: New file.
1322 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1323 * gnu/awt/xlib/XPanelPeer.java: New file.
1324 * gnu/awt/xlib/XToolkit.java: New file.
1325 * gnu/gcj/xlib/Clip.java: New file.
1326 * gnu/gcj/xlib/Colormap.java: New file.
1327 * gnu/gcj/xlib/Display.java: New file.
1328 * gnu/gcj/xlib/Drawable.java: New file.
1329 * gnu/gcj/xlib/Font.java: New file.
1330 * gnu/gcj/xlib/GC.java: New file.
1331 * gnu/gcj/xlib/Pixmap.java: New file.
1332 * gnu/gcj/xlib/Screen.java: New file.
1333 * gnu/gcj/xlib/Visual.java: New file.
1334 * gnu/gcj/xlib/WMSizeHints.java: New file.
1335 * gnu/gcj/xlib/Window.java: New file.
1336 * gnu/gcj/xlib/WindowAttributes.java: New file.
1337 * gnu/gcj/xlib/XAnyEvent.java: New file.
1338 * gnu/gcj/xlib/XButtonEvent.java: New file.
1339 * gnu/gcj/xlib/XColor.java: New file.
1340 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1341 * gnu/gcj/xlib/XConnectException.java: New file.
1342 * gnu/gcj/xlib/XEvent.java: New file.
1343 * gnu/gcj/xlib/XException.java: New file.
1344 * gnu/gcj/xlib/XExposeEvent.java: New file.
1345 * gnu/gcj/xlib/XID.java: New file.
1346 * gnu/gcj/xlib/XImage.java: New file.
1347 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1348 * gnu/gcj/xlib/natClip.cc: New file.
1349 * gnu/gcj/xlib/natColormap.cc: New file.
1350 * gnu/gcj/xlib/natDisplay.cc: New file.
1351 * gnu/gcj/xlib/natDrawable.cc: New file.
1352 * gnu/gcj/xlib/natFont.cc: New file.
1353 * gnu/gcj/xlib/natGC.cc: New file.
1354 * gnu/gcj/xlib/natPixmap.cc: New file.
1355 * gnu/gcj/xlib/natScreen.cc: New file.
1356 * gnu/gcj/xlib/natVisual.cc: New file.
1357 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1358 * gnu/gcj/xlib/natWindow.cc: New file.
1359 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1360 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1361 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1362 * gnu/gcj/xlib/natXColor.cc: New file.
1363 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1364 * gnu/gcj/xlib/natXException.cc: New file.
1365 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1366 * gnu/gcj/xlib/natXImage.cc: New file.
1367 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1368 * java/awt/EventDispatchThread.java: Start thead on creation.
1370 2000-10-20 Tom Tromey <tromey@cygnus.com>
1372 From Arno J. Klaassen:
1373 * interpret.cc: Include <stdlib.h> for alloca.
1374 * defineclass.cc: Include <stdlib.h> for alloca.
1376 * Makefile.in: Rebuilt.
1377 * Makefile.am: Include deps.mk.
1378 (GCJCOMPILE): Added -MD, -MT, and -MF.
1379 ($(javao_files)): Don't depend on libgcj.zip.
1380 (all-recursive): New target.
1381 (%.lo:%.cc): Do dependency tracking.
1382 ($(nat_headers)): Don't depend on libgcj.zip.
1383 * configure: Rebuilt.
1384 * configure.in: Make .d files and deps.mk.
1386 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1388 * exception.cc: Don't #include "exception".
1389 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1391 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1392 * Makefile.in: Updated.
1394 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1396 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1397 * java/awt/peer/ComponentPeer.java (disable): Removed.
1400 (minimumSize): Removed.
1401 (preferredSize): Removed.
1404 * java/awt/peer/ListPeer.java (addItem): Removed.
1406 (minimumSize): Removed.
1407 (preferredSize): Removed.
1408 (setMultipleSelections): Removed.
1409 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1410 (remove): Renamed from removeMenu.
1411 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1413 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1414 (remove): Renamed from removeItem.
1415 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1416 (getMinimumSize): Removed.
1417 (getPreferredSize): Removed.
1418 (minimumSize): Removed.
1419 (preferredSize): Removed.
1420 (replaceText): Removed.
1421 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1422 (preferredSize): Removed.
1423 (getMinimumSize): Removed.
1424 (getPreferredSize): Removed.
1425 (setEchoCharacter): Removed.
1427 2000-10-10 Warren Levy <warrenl@cygnus.com>
1429 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1430 * java/sql/Date.java (serialVersionUID): New field.
1431 * java/sql/Time.java (serialVersionUID): New field.
1432 * java/sql/Timestamp.java (serialVersionUID): New field.
1433 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1434 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1435 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1436 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1437 (readObject): New serialization method.
1438 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1439 (serialVersionOnStream): New field.
1440 (readObject): New serialization method.
1441 (getMonetaryDecimalSeparator): New method.
1442 (setMonetaryDecimalSeparator): New method.
1443 * java/text/NumberFormat.java (maxFractionDigits): New field.
1444 (maxIntegerDigits): New field.
1445 (minFractionDigits): New field.
1446 (minIntegerDigits): New field.
1447 (serialVersionOnStream): New field.
1448 (serialVersionUID): New field.
1449 (readObject): New serialization method.
1450 (writeObject): New serialization method.
1451 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1452 (serialVersionOnStream): New field.
1453 (serialVersionUID): New field.
1454 (readObject): New serialization method.
1456 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1458 * configure.in (GCJ): Avoid bogus error message when looking for
1459 (and not finding) gcj in the build tree.
1460 * configure: Rebuilt.
1462 2000-10-09 Tom Tromey <tromey@cygnus.com>
1464 * configure: Rebuilt.
1465 * configure.in: Include sys/types.h when checking for socklen_t.
1466 From Arno J. Klaassen.
1468 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1470 * include/jvm.h: Enable __builtin_expect().
1472 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1473 the main program. Fix for PR libgcj/341.
1475 2000-10-07 Tom Tromey <tromey@cygnus.com>
1477 * java/util/Properties.java: Merged with Classpath version.
1479 2000-10-05 Tom Tromey <tromey@cygnus.com>
1481 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1482 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1483 * java/lang/Class.h (Object): Added `class$' field.
1484 * java/lang/Object.h (Object): Added `class$' field.
1485 * defineclass.cc (ClassClass): Use `class$' form.
1486 (ClassObject): Likewise.
1487 * resolve.cc (ClassObject): Use `class$' form.
1488 (ObjectClass): Likewise.
1489 * interpret.cc (ClassError): Removed.
1490 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1492 (IntegerClass): Likewise.
1493 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1495 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1496 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1497 SerializableClass): Likewise.
1498 Include Serializable.h, Cloneable.h.
1499 * java/lang/natSystem.cc (SystemClass): Removed.
1500 (init_properties): Use `class$' form.
1501 * java/lang/natObject.cc (CloneableClass): Removed.
1502 (clone): Use `class$' form.
1503 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1504 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1505 ConstructorClass): Likewise.
1506 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1507 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1508 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1509 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1511 (ClassClass): Likewise.
1512 * include/jvm.h (StringClass): Use `class$' form.
1513 * prims.cc (ObjectClass): Removed.
1514 (_Jv_RunMain): Use `class$' form.
1515 (_Jv_AllocObject): Likewise.
1516 * jni.cc (ClassClass): Use `class$' form.
1517 (ThrowableClass): Likewise.
1518 (ObjectClass): Likewise.
1519 (MethodClass): Likewise.
1520 (ThreadGroupClass): Likewise.
1521 (NativeThreadClass): Likewise.
1522 * boehm.cc (ObjectClass): Removed.
1523 (ClassClass): Removed.
1524 (_Jv_MarkObj): Use `class$' form.
1525 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1528 2000-10-05 Warren Levy <warrenl@cygnus.com>
1530 * Makefile.am: Removed java/io/Replaceable.java and
1531 java/io/Resolvable.java.
1532 * Makefile.in: Rebuilt.
1533 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1535 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1537 (processResolution): Handle readResolve method via reflection with
1538 removal of Resolvable interface.
1539 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1540 method via reflection with removal of Replaceable interface.
1541 * java/io/Replaceable.java: Removed.
1542 * java/io/Resolvable.java: Removed.
1543 * java/security/Key.java (serialVersionUID): New field.
1544 * java/security/Provider.java (serialVersionUID): New field.
1545 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1547 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1549 * java/sql/DataTruncation.java (serialVersionUID): New field.
1550 * java/sql/SQLException.java (serialVersionUID): New field.
1551 * java/sql/SQLWarning.java (serialVersionUID): New field.
1552 * java/util/Date.java (serialVersionUID): New field.
1553 (millis): Made transient.
1554 (readObject): New method.
1555 (writeObject): New method.
1557 2000-10-05 Tom Tromey <tromey@cygnus.com>
1559 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1561 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1563 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1564 (JvRunMain): Set _Jv_argv and _Jv_argc.
1565 * java/awt/Component.java: Minor fixes.
1566 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1567 * java/awt/Toolkit.java (systemEventQueue): Removed.
1568 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1569 * java/awt/Window.java (getToolkit): Don't call super.
1570 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1571 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1572 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1573 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1574 * gnu/awt/gtk/GtkFramePeer.java: New file.
1575 * gnu/awt/gtk/GtkMainThread.java: New file.
1576 * gnu/awt/gtk/GtkToolkit.java: New file.
1577 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1578 * gnu/awt/gtk/gtkcommon.cc: New file.
1579 * gnu/awt/gtk/gtkcommon.h: New file.
1580 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1581 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1582 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1583 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1584 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1585 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1587 2000-09-30 Tom Tromey <tromey@cygnus.com>
1589 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1590 interrupted before modifying the cv's wait set.
1593 2000-09-30 Hans Boehm <boehm@acm.org>
1594 Bryce McKinlay <bryce@albatross.co.nz>
1596 Implement bitmap descriptor based marking for Boehm GC.
1598 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1599 * configure: Rebuilt.
1600 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1601 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1602 method get_finalizer().
1603 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1604 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1605 (_Jv_AllocObj): Add new jclass parameter.
1606 (_Jv_AllocArray): Ditto.
1607 (_Jv_BuildGCDescr): New prototype.
1608 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1609 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1610 get_finalizer() instead of direct finalizer vtable offset.
1611 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1612 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1613 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1614 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1615 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1616 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1617 (_Jv_DetermineVTableIndex): Ditto.
1618 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1619 calculations to account for new gc_descr field.
1620 * boehm.cc: #include gc_gcj.h.
1621 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1622 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1623 New commentary from HB. Mark the classes vtable.
1624 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1625 (GC_DEFAULT_DESCR): New #define.
1626 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1627 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1628 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1629 scan conservativly if size is less than min_heap_addr. Set vtable
1630 pointer of new object before returning.
1631 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1632 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1633 allocation for obj_kind_x.
1634 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1635 (_Jv_AllocObj): Set vtable on returned object.
1636 (_Jv_AllocArray): Ditto.
1637 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1638 (_Jv_NewPrimArray): Ditto.
1639 (_Jv_AllocObj): Declare as a friend.
1640 (_Jv_AllocArray): Ditto.
1641 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1642 from &ObjectClass into new array class. Remove offset-by-one
1643 adjustments from `method' size calculations to account for gc_descr
1646 2000-09-26 Tom Tromey <tromey@cygnus.com>
1648 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1649 `remove', not `add'.
1651 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1653 * java/lang/natSystem.cc (file_encoding): Added return statement.
1655 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1657 * Makefile.am: Re-work shell commands that exceeded command-line
1659 * Makefile.in: Rebuilt.
1661 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1663 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1664 * java/lang/natDouble.cc: Likewise.
1665 * java/lang/reflect/natMethod.cc: Likewise.
1666 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1668 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1670 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1672 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1673 * acinclude.m4: Arrange for automake to not bring in a new
1674 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1675 * Makefile.am: Leave it up to automake to subst GCJ.
1676 * aclocal.m4, configure, Makefile.in: Rebuilt.
1678 2000-09-13 Tom Tromey <tromey@cygnus.com>
1680 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1681 (get): Ensure Boolean class is initialized.
1682 * java/lang/reflect/natField.cc (BooleanClass): New define.
1683 (get): Ensure Boolean class is initialized.
1685 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1687 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1688 Initialize with anonymous class.
1689 (compareToIgnoreCase): New method.
1691 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1692 (uncaughtException): Set had_uncaught_exception.
1693 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1694 exit with error status if set.
1695 (_Jv_RunMain): Ditto.
1697 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1699 * configure: Rebuilt with new ../libtool.m4.
1701 2000-09-11 Tom Tromey <tromey@cygnus.com>
1703 * java/lang/reflect/Field.java (toString): Don't rely on
1706 2000-09-08 Tom Tromey <tromey@cygnus.com>
1708 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1709 default decoder use iconv.
1710 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1711 Let default encoder use iconv.
1712 * configure: Rebuilt.
1713 * configure.in: Check for nl_langinfo and <langinfo.h>.
1714 * java/lang/natSystem.cc (file_encoding): New function.
1715 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1717 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1719 * acinclude.m4: Simplify the tests for CC and CXX.
1720 * aclocal.m4, configure: Rebuilt.
1722 * acinclude.m4: Include libtool macros from the source tree.
1723 * aclocal.m4, configure: Rebuilt.
1725 2000-09-08 Warren Levy <warrenl@cygnus.com>
1727 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1728 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1729 * java/io/File.java (writeObject): Added.
1730 (readObject): Added.
1731 (serialVersionUID): Added.
1732 * java/io/ObjectOutputStream.java (writeObject): Initialized
1733 fieldsAlreadyWritten before recursion rather than after.
1734 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1735 * java/io/OptionalDataException.java (serialVersionUID): Added.
1736 (OptionalDataException): Made package private.
1737 * java/io/SyncFailedException.java (SyncFailedException): Removed
1738 default constructor to match spec.
1739 * java/lang/Boolean.java (serialVersionUID): Added.
1740 * java/lang/Byte.java (serialVersionUID): Added.
1741 * java/lang/Character.java (serialVersionUID): Added.
1742 * java/lang/Double.java (serialVersionUID): Added.
1743 * java/lang/Float.java (serialVersionUID): Added.
1744 * java/lang/Integer.java (serialVersionUID): Added.
1745 * java/lang/Long.java (serialVersionUID): Added.
1746 * java/lang/Number.java (serialVersionUID): Added.
1747 * java/lang/Short.java (serialVersionUID): Added.
1748 * java/lang/String.java (serialVersionUID): Added.
1749 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1751 * java/lang/reflect/InvocationTargetException.java
1752 (serialVersionUID): Added.
1753 * java/net/URL.java (handler): Made transient.
1754 (hashCode): Added field for serialization, per spec. and use
1755 cached value if available.
1756 (serialVersionUID): Added.
1757 (URL): Initialize hashCode.
1758 (set): Adjust hashCode.
1759 (readObject): New Method to initialize the protocol handler when
1761 (writeObject): New method.
1762 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1763 * java/text/Collator.java: Removed 'implements Serializable'.
1764 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1765 * java/util/Properties.java (serialVersionUID): Added.
1766 * java/util/Random.java (serialVersionUID): Added.
1767 (seed): Made private.
1768 (nextNextGaussian): Made private.
1769 (haveNextNextGaussian): Made private.
1770 * java/util/Stack.java (serialVersionUID): Added.
1771 * java/util/TimeZone.java (serialVersionUID): Added.
1772 * java/util/Vector.java (serialVersionUID): Added.
1774 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1776 * Makefile.am (Thread.h): Don't be friends with native threads
1778 * Makefile.in: Rebuilt.
1779 * java/lang/Thread.java (interrupt_flag): Make package-private.
1781 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1783 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1784 to avoid long long division.
1786 2000-09-06 Tom Tromey <tromey@cygnus.com>
1788 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1790 * java/lang/reflect/Method.java (toString): Use `getName' for
1793 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1794 `args' if method takes no parameters.
1796 Fix for PR java.lang/339:
1797 * java/lang/natPosixProcess.cc (fail): New function.
1798 (cleanup): New function.
1799 (startProcess): Use them. Create pipe so child can communicate
1800 exec failure back to parent.
1802 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1804 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1806 (send): Undo last patch. Remove the label only.
1808 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1810 * java/net/natInetAdress.cc: Ditto.
1812 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1814 2000-09-05 Tom Tromey <tromey@cygnus.com>
1816 * doc/cni.sgml: Updated from master copy.
1818 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1820 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1822 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1824 * java/lang/fdlibm.h: #undef __P if previously defined.
1825 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1826 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1830 2000-09-04 Tom Tromey <tromey@cygnus.com>
1832 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1835 2000-09-04 Anthony Green <green@redhat.com>
1837 Fix for PR java.io/203:
1838 * java/io/File.java (createTempFile): Obey directory argument.
1839 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1840 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1841 variable to set java.io.tmpdir on non-WIN32 systems.
1843 2000-09-04 Anthony Green <green@redhat.com>
1845 * java/io/File.java (deleteOnExit): New method.
1846 * gnu/gcj/runtime/FileDeleter.java: New class.
1847 * java/lang/natRuntime.cc (exit): Call
1848 FileDeleter.deleteOnExitNow()
1849 * Makefile.am: Add FileDeleter.java.
1850 * Makefile.in: Rebuilt.
1852 2000-09-02 Tom Tromey <tromey@cygnus.com>
1854 * Makefile.in: Rebuilt.
1855 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1856 environment variable.
1858 2000-09-01 Andrew Haley <aph@redhat.com>
1860 * java/io/StreamTokenizer.java: Don't throw a
1861 NumberFormatException if a field is numeric as far as the
1862 StreamTokenizer is concerned but not as far as Double.valueOf() is
1863 concerned: return a zero instead.
1865 2000-08-30 Tom Tromey <tromey@cygnus.com>
1867 * Makefile.in: Rebuilt.
1868 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1870 2000-08-28 Tom Tromey <tromey@cygnus.com>
1872 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1873 gnu/gcj/awt/ComponentDataBlitOp.java,
1874 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1875 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1876 java/awt/color/ICC_ColorSpace.java,
1877 java/awt/color/ICC_Profile.java,
1878 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1879 java/awt/image/ComponentColorModel.java,
1880 java/awt/image/ComponentSampleModel.java,
1881 java/awt/image/DataBuffer.java,
1882 java/awt/image/DataBufferByte.java,
1883 java/awt/image/DataBufferInt.java,
1884 java/awt/image/DataBufferUShort.java,
1885 java/awt/image/DirectColorModel.java,
1886 java/awt/image/IndexColorModel.java,
1887 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1888 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1889 java/awt/image/SinglePixelPackedSampleModel.java,
1890 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1891 Removed Latin-1 copyright symbols.
1892 * java/util/zip/ZipFile.java: Indentation fixes.
1894 2000-08-27 Mark Wielaard <mark@klomp.org>
1896 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1897 constructor, close can delete the file, finalize calls close.
1898 * java/util/jar/JarFile.java: Constructor that takes mode now
1901 2000-08-27 Anthony Green <green@redhat.com>
1903 * java/util/ArrayList.java, java/util/Timer.java,
1904 java/util/LinkedList.java, java/util/TimerTask.java,
1905 java/util/HashMap.java, java/util/AbstractMap.java,
1906 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1907 java/util/SortedSet.java: Imported from GNU Classpath.
1908 * Makefile.in: Rebuilt.
1909 * Makefile.am: Added new files.
1911 2000-08-26 Anthony Green <green@redhat.com>
1913 * Makefile.in: Rebuilt.
1914 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1917 * prims.cc: Include ClassLoader.h.
1918 (_Jv_RunMain): When executing jar files, classpath must be the jar
1919 file only. Lose our reference to the system ClassLoader in order
1920 to get a new one with the correct classpath.
1921 * java/lang/natSystem.cc (init_properties): When executing a jar
1922 file, only use the jar file for java.class.path.
1924 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1925 for bytecode archives.
1927 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1928 exists, but not Main-Class.
1930 2000-08-23 Mark Wielaard <mark@klomp.org>
1932 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1933 return -1 when fill() has no more data for the Inflater.
1935 2000-08-23 Mark Wielaard <mark@klomp.org>
1937 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
1938 write(String) already does.
1940 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1942 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
1943 to `alive_flag', call `init'.
1944 (init): New native method.
1945 * gnu/gcj/jni/natNativeThread.cc (init): New native method
1948 2000-08-21 Mark Wielaard <mark@klomp.org>
1950 * Makefile.in: Rebuilt.
1951 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
1953 (java/lang/reflect/Field.h): Likewise.
1954 (java/lang/reflect/Method.h): Likewise.
1955 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
1958 2000-08-21 Tom Tromey <tromey@cygnus.com>
1960 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
1963 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
1965 * java/lang/natSystem.cc (init_properties): Change sourceware
1966 reference to sources.redhat.com.
1968 * include/java-props.h: Add _Jv_Jar_Class_Path.
1969 * prims.cc: Ditto. Set it from `gij -jar file' option.
1971 * java/lang/natSystem.cc (init_properties): Set java.class.path
1973 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
1975 * java/util/PropertyPermission.java: Import from GNU Classpath.
1976 * Makefile.in: Rebuilt.
1977 * Makefile.am: Add java/util/PropertyPermission.java.
1978 * java/lang/System.java: Add setProperty method.
1980 * gij.cc (main): Add -jar option to execute jar files.
1981 (help): Describe -jar option.
1982 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
1983 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
1984 * gnu/gcj/runtime/FirstThread.java (main): New method.
1986 * java/util/jar/Attributes.java: Correct comment spelling.
1988 2000-08-20 Mark Wielaard <mark@klomp.org>
1990 * java/util/zip/Adler32.java: Make private variables really private
1991 * java/util/zip/CRC32.java: Make private variables really private
1992 * java/util/zip/CheckedInputStream.java: skip() could skip to much
1994 * java/util/zip/InflaterInputStream.java: skip() could skip to
1996 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
1997 * java/util/zip/ZipFile.java: size() new 1.2 method
1998 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
1999 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2002 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2004 * java/util/jar/JarFile.java: Don't call
2005 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2008 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2010 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2011 Read the entire contents of the class file, not just what is
2014 * java/net/JarURLConnection.java: getEntry doesn't take any
2015 arguments. Return null if element is null.
2017 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2018 size from the archive, not the inflated size.
2020 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2021 java.util.zip.ZipFile.getEntry.
2023 * gij.cc (help): Change sourceware reference to
2026 2000-08-19 Tom Tromey <tromey@cygnus.com>
2028 * java/util/zip/ZipInputStream.java (createZipEntry):
2031 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2033 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2034 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2035 java/util/jar/JarInputStream.java,
2036 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2037 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2038 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2039 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2040 java/security/cert/Certificate.java,
2041 java/security/cert/CertificateEncodingException.java,
2042 java/security/cert/CertificateException.java,
2043 java/security/cert/CertificateExpiredException.java,
2044 java/security/cert/CertificateFactory.java,
2045 java/security/cert/CertificateFactorySpi.java,
2046 java/security/cert/CertificateNotYetValidException.java,
2047 java/security/cert/CertificateParsingException.java,
2048 java/security/cert/X509CRL.java,
2049 java/security/cert/X509CRLEntry.java,
2050 java/security/cert/X509Certificate.java,
2051 java/security/cert/X509Extension.java: Imported from Classpath.
2052 * java/util/Hashtable.java: Imported from Classpath.
2054 * java/util/zip/ZipInputStream.java: Create stub for
2057 * gcj/javaprims.h: Updated class list.
2059 * Makefile.in, gcj/Makefile.in: Rebuilt.
2060 * Makefile.am (ordinary_java_source_files): Add these new classes.
2062 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2064 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2065 * gnu/gcj/awt/GLightweightPeer.java: New file.
2066 * java/awt/BorderLayout.java: Implemented all methods.
2067 * java/awt/Button.java (actionListener, actionCommand): Renamed
2068 and modifier change.
2069 (addNotify): Call super.
2070 (dispatchEventImpl): New method.
2071 (getListeners): New method.
2072 (label): Made package-private, not private.
2073 * java/awt/Canvas.java: Implemented class body.
2074 * java/awt/Color.java (brighter): New method.
2075 (darker): New method.
2076 (hashCode): New method.
2077 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2078 (getGraphicsConfiguration): Delegate to
2079 getGraphicsConfigurationImpl().
2080 (getGraphicsConfigurationImpl): New method.
2081 (getToolkit): Only return value from peer if not null.
2082 (isDisplayable): Check with parent.
2083 (isShowing): No parent implies not showing.
2084 (getForeground): Check parent property if local is null.
2085 (getBackground): Likewise.
2086 (getFont): Likewise.
2087 (setForeground): Inform peer.
2088 (setBackground): Likewise
2089 (setLocale): Invalidate component.
2090 (getColorModel): Implemented.
2091 (setLocation): Invalidate, or ignore if no change.
2092 (setSize): Invalidate, or ignore if no change.
2093 (setBounds): Invalidate, or ignore if no change.
2094 (isOpaque): By default, heavyweight implies opaque.
2095 (isLightweight): Implemented.
2096 (getMaximumSize): Implemented.
2097 (doLayout): Implemented, NOP.
2098 (validate): Implemented, NOP.
2099 (invalidate): Only propagate to parent if parent was valid.
2100 (getGraphics): Implemented.
2101 (getFontMetrics): Implemented.
2102 (update): Implemented.
2103 (paintAll): Implemented.
2104 (repaint): Implemented all repaint methods.
2105 (print): Implemented.
2106 (printAll): Implemented.
2107 (createImage): Implemented.
2108 (dispatchEvent): Give the peer a chance to handle the event.
2109 (dispatchEventImpl): Dispatch paint events.
2110 (enableEvents): Lightweights enable events on parent component.
2111 (coalesceEvents): Coalesce paint events, and select event type
2113 (coalescePaintEvents): New method.
2114 (processEvent): Fix unfortunate ordering of statements, and call
2115 correct method for MOUSE_CLICKED.
2116 (processPaintEvent): New method.
2117 (addNotify): Allow container to notify children before event
2118 mask is set in peer.
2119 (addNotifyContainerChildren): New method.
2120 (removeNotify): Visibility should not change on removeNotify.
2121 (paramString): Implemented.
2122 (list): Implemented two of the list methods.
2123 * Container (myInsets): Removed, insets are managed by peer.
2124 (getInsets): Query peer.
2125 (addImpl): Fix reparenting, enable events for lightweights,
2126 initialize component array.
2127 (validate): Call doLayout in validateTree() instead.
2128 (validateTree): Do nothing if already valid. Call beginValidate(),
2129 endValidate() on peer. Call validateTree() instead of validate()
2130 for children that are containers. Mark valid after validation of
2132 (setFont): Partial implementation.
2133 (paint): Implemented.
2134 (visitChildren): New method.
2135 (visitChild): New method.
2136 (update): Implemented.
2137 (print): Implemented.
2138 (paintComponents): Implemented.
2139 (printComponents): Consider translation and clipping.
2140 (getComponentAt): Ignore invisible children. Return this if no
2142 (addNotify): Call super.
2143 (addNotifyContainerChildren): New method.
2144 (paramString): Implemented.
2145 (list): Implemented.
2146 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2148 (invokeLater): Likewise.
2149 (isDispatchThread): Likewise.
2150 * java/awt/FontMetrics (getLeading): Formula change.
2151 (getDescent): Consider leading also.
2152 (getMaxAscent): Default to getAscent().
2153 (getMaxDescent): Default to getDescent.
2154 (getMaxAdvance): Return value signifying unknown.
2155 (charWidth): Both methods implemented.
2156 (charsWidth): Implemented.
2157 (bytesWidth): Implemented.
2158 (getWidths): Implemented.
2159 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2161 (Frame): Rearragend constuctor chaining to disallow null being
2162 passed as a graphics configuration.
2163 (getTitle): Return empty string if null.
2165 (getIconImage): New method.
2166 (setIconImage): New method.
2167 (finalize): New method.
2168 (setMenuBar): Notify peer.
2169 (isResizable): New method.
2170 (setResizable): New method.
2171 (getState): New method.
2173 (remove): Implemented.
2174 (removeNotify): New method.
2175 (getFrames): New method.
2176 * java/awt/Graphics.java: Implemented body of class.
2177 * java/awt/Graphics2D.java: New file.
2178 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2179 * java/awt/Image.java: Implemented body of class.
2180 * java/awt/Panel.java (Panel): Call correct super constructor.
2181 (addNotify): Implemented.
2182 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2183 * java/awt/RenderingHints.java: New file.
2184 * java/awt/Toolkit.java (createComponent): Implemented.
2185 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2186 * java/awt/Window.java (Window): Two new constructors. Reordered
2187 constructor chaining.
2188 (getGraphicsConfigurationImpl): New method.
2189 (finalize): Call super.
2190 (addNotify): Call super.
2191 (pack): Do layout stuff.
2192 (show): Ensure that peer exists and that component is valid.
2193 (dispose): Dispose owned children.
2194 (getOwner): Simplify code, casting null pointers is valid.
2195 (getGraphicsConfiguration): Ask peer if local value is null.
2196 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2198 * java/awt/image/BufferedImage.java: New file.
2199 * java/awt/image/RasterOp.java: New file.
2200 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2201 More powerfull replacement for getColorModel().
2202 (getColorModel) Removed.
2203 (setEventMask) New method.
2204 * Makefile.am: Added new files.
2205 * Makefile.in: Rebuilt.
2207 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2209 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2210 (finit_leg_name): New global.
2211 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2212 `$finit$'. This is a backward compatibility hack.
2213 (java::lang::Class::_getMethods): Likewise.
2215 2000-08-15 Andrew Haley <aph@cygnus.com>
2217 * include/jvm.h (_Jv_HashCode): New hash code.
2219 2000-08-15 Tom Tromey <tromey@cygnus.com>
2221 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2223 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2225 * THANKS: More thanks.
2227 2000-08-10 Tom Tromey <tromey@cygnus.com>
2229 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2231 (connect): Likewise.
2233 (getOption): Likewise.
2234 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2235 case when errno not set.
2238 (receive): Likewise.
2239 (mcastGrp): Likewise.
2240 (setOption): Likewise.
2241 (getOption): Likewise.
2243 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2244 John Stracke <francis@ecal.com>
2246 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2247 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2249 (disconnect): Don't unset connected flag.
2250 (getHeaderField (String)): Call connect() if not connected.
2251 (getHeaderField (int)): Ditto.
2252 (getHeaderFieldKey): Ditto.
2253 (getHttpHeaders): Don't call connect().
2254 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2255 gotResponseVals): New fields.
2256 (getResponseCode): Call getResponseVals() conditionally.
2257 (getResponseMessage): Ditto.
2258 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2260 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2262 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2263 * Makefile.in: Rebuilt.
2264 * java/awt/Color.java (getTransparency): New method.
2265 * java/awt/Component.java: Various updates.
2266 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2267 after dealing with children.
2268 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2269 * java/awt/Window.java: Various new methods and updates.
2270 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2272 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2273 * java/awt/event/WindowEvent.java (paramString): Ditto.
2274 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2276 * java/awt/geom/Point2D.java (clone): Ditto.
2277 * java/awt/geom/RectangularShape.java (clone): Ditto.
2278 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2279 isAlphaPremultiplied): Make package-private, not private.
2281 2000-08-08 Tom Tromey <tromey@cygnus.com>
2283 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2284 surrogate characters.
2285 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2287 (write): Correct handling of surrogate characters.
2289 2000-08-07 Tom Tromey <tromey@cygnus.com>
2291 * java/lang/reflect/Method.java (hashCode): Use getName().
2292 (toString): Likewise.
2293 * java/lang/reflect/natMethod.cc (getType): Initialize
2296 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2298 * java/lang/reflect/Field.java (toString): Correct formatting.
2301 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2303 (receive): Streamlined.
2305 2000-08-05 Tom Tromey <tromey@cygnus.com>
2307 * java/io/PrintWriter.java: Merged comments from Classpath.
2308 (printlnUnsynchronized): Removed.
2309 (println()): Print the separator.
2310 (println): Call println(), not printlnUnsynchronized.
2311 (out): Now protected, to match spec.
2313 2000-08-04 Tom Tromey <tromey@cygnus.com>
2315 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2316 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2319 2000-08-03 Warren Levy <warrenl@cygnus.com>
2321 * java/io/ObjectInputStream.java (readFields): Turn off
2322 readDataFromBlock while reading via GetField.
2323 (GetField$1.get(String, Object)): Pass Class of default value to
2325 (getField): Allow for null default values.
2327 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2328 (PutField$1.put): Fixed calls of checkType in most of the put
2329 methods to pass the correct parameter.
2330 (PutField$1.put(String, Object)): Allow for null value arg.
2331 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2334 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2335 typo in spec'ed field name.
2336 (getSerialPersistentFields): Changed spelling of method to match
2337 the correct spelling of the spec'ed field name.
2339 2000-08-03 Tom Tromey <tromey@cygnus.com>
2341 * Makefile.in: Rebuilt.
2342 * Makefile.am (awt_java_source_files): Added new files.
2344 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2346 * Makefile.am: Add new AWT stubs.
2347 * java/awt/Canvas.java: New placeholder class.
2348 * java/awt/Checkbox.java: Ditto.
2349 * java/awt/CheckboxMenuItem.java: Ditto.
2350 * java/awt/Choice.java: Ditto.
2351 * java/awt/Dialog.java: Ditto.
2352 * java/awt/FileDialog.java: Ditto.
2353 * java/awt/List.java: Ditto.
2354 * java/awt/ScrollPane.java: Ditto.
2355 * java/awt/TextField.java: Ditto.
2356 * java/awt/datatransfer/Clipboard.java: Ditto.
2357 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2358 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2359 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2360 Some commented out. Partially implemented.
2361 * java/awt/natToolkit.cc: Removed file.
2363 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2365 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2366 Fixes "make -j" builds.
2367 * Makefile.in: Rebuild.
2369 2000-08-02 Tom Tromey <tromey@cygnus.com>
2371 * Makefile.in: Rebuilt.
2372 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2373 * java/net/natPlainSocketImpl.cc: Include posix.h.
2374 (accept): Use _Jv_select.
2375 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2376 (receive): Use _Jv_select.
2377 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2378 (available): Use _Jv_select.
2379 * java/lang/natSystem.cc: Include posix.h.
2380 (currentTimeMillis): Use _Jv_gettimeofday.
2381 * include/posix.h: New file.
2382 * posix.cc: New file.
2384 * scripts/encodings.pl: New file.
2385 * Makefile.in: Rebuilt.
2386 * Makefile.am (convert_source_files): Added IOConverter.java.
2387 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2389 (getDefaultDecodingClass): Canonicalize default encoding name.
2390 (getEncoder): Likewise.
2391 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2393 (getDefaultDecodingClass): Canonicalize default encoding name.
2394 (getDecoder): Likewise.
2395 * gnu/gcj/convert/IOConverter.java: New file.
2397 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2399 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2400 to match C declaration in ffi.h.
2401 * Makefile.am: Add java/awt/Button.java.
2402 * Makefile.in: Rebuilt.
2404 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2406 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2407 cast of the second argument to `ffi_raw_call' changed to match
2410 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2412 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2413 argument to `ffi_raw_call' changed to match prototype.
2415 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2417 * java/awt/Component.java (toString): Implemented.
2418 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2419 dispatchEvent() to dispatch the event.
2420 (removeImpl): Ditto.
2422 2000-07-30 Anthony Green <green@redhat.com>
2424 * java/awt/Component.java: Add treeLock object.
2425 (getTreeLock): Implement.
2426 (isShowing): Implement.
2428 2000-07-30 Tom Tromey <tromey@cygnus.com>
2430 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2432 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2434 * java/awt/Window.java (addNotify): Wrote.
2435 (addWindowListener): Wrote.
2437 (getWarningString): Wrote.
2438 (processEvent): Wrote.
2439 (processWindowEvent): Wrote.
2440 (removeWindowListener): Wrote.
2441 (show): Call validate(), setVisible().
2445 * java/awt/Toolkit.java (createWindow): Declare.
2447 * java/awt/Frame.java (addNotify): Use getToolkit to find
2450 * java/awt/Component.java (invalidate): Wrote.
2452 (getToolkit): Wrote.
2454 * java/awt/Container.java (addContainerListener): Removed
2456 (removeContainerListener): Likewise.
2458 (add(Component)): Use it.
2459 (add(String,Component)): Likewise.
2460 (add(Component,int)): Likewise.
2461 (add(Component,Object)): Likewise.
2462 (add(Component,Object,int)): Likewise.
2464 (getAlignmentX): Wrote.
2465 (getAlignmentY): Wrote.
2466 (getComponentAt): Wrote.
2467 (getMaximumSize): Wrote.
2468 (invalidate): Wrote.
2469 (list(PrintStream,int)): Wrote.
2470 (list(PrintWriter,int)): Wrote.
2471 (getMinimumSize): Wrote.
2472 (getPreferredSize): Wrote.
2473 (printComponents): Wrote.
2474 (processContainerEvent): Look at containerListener, not
2476 (remove): Added event processing and peer destruction.
2477 (removeAll): Use remove.
2478 (removeNotify): Wrote.
2480 (validateTree): Wrote.
2482 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2483 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2484 * java/awt/Container.java (addNotify): Don't create Container
2486 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2488 2000-07-30 Tom Tromey <tromey@cygnus.com>
2490 * java/awt/Container.java (remove(int)): Wrote.
2491 (remove(Component)): Wrote.
2492 (add(Component)): Wrote.
2493 (add(Component,int)): Wrote.
2495 (addNotify): Set our own peer.
2496 * java/awt/Scrollbar.java (listeners): Changed type.
2497 (Scrollbar): Don't initialize listeners.
2499 (setValue): Call setValues.
2500 (setMinimum): Likewise.
2501 (setMaxPriority): Likewise.
2502 (setVisibleAmount): Likewise.
2504 (setUnitIncrement): Forward to peer.
2505 (setLineIncrement): Call setUnitIncrement.
2506 (setPageIncrement): Call setBlockIncrement.
2507 (setBlockIncrement): Forward to peer.
2508 (addAdjustmentListener): Rewrote.
2509 (removeAdjustmentListener): Rewrote.
2510 (processAdjustmentEvent): Rewrote.
2511 (paramString): Wrote.
2512 * Makefile.in: Rebuilt.
2513 * Makefile.am (awt_java_source_files): Added Button.java.
2514 * java/awt/Button.java: New file.
2515 * java/awt/Toolkit.java (createLabel): Declare.
2516 (createButton): Likewise.
2517 (createScrollbar): Likewise.
2518 (createContainer): Likewise.
2519 * java/awt/Label.java (addNotify): Wrote.
2520 (setAlignment): Call setAlignment in the peer.
2521 (setText): Call setText in the peer.
2523 2000-07-28 Warren Levy <warrenl@cygnus.com>
2525 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2526 NotSerializableException with just the class name.
2528 2000-07-26 Andrew Haley <aph@cygnus.com>
2530 * interpret.cc (continue1): Insert missing break into switch.
2532 2000-07-28 Warren Levy <warrenl@cygnus.com>
2534 * java/io/ObjectStreamException.java: Made constructors protected.
2536 2000-07-27 Tom Tromey <tromey@cygnus.com>
2538 * java/io/OutputStreamWriter.java (close): Only flush if not
2541 2000-07-27 Warren Levy <warrenl@cygnus.com>
2543 * mauve-libgcj: Activated serialization tests.
2544 * gcj/field.h (getModifiers): Mask off unknown flags.
2545 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2546 spurious bits don't cause discrepancies.
2547 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2548 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2549 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2550 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2551 * java/lang/Throwable.java (serialVersionUID): New field.
2552 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2553 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2555 * java/lang/reflect/natMethod.cc: Ditto.
2556 * java/security/Key.java (serialVersionUID): Removed field for now.
2557 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2558 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2560 2000-07-22 Tom Tromey <tromey@cygnus.com>
2562 * java/awt/geom/RectangularShape.java (getPathIterator):
2565 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2567 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2568 stub libjava/java/awt/ColorModel.java which was located in the
2570 * libjava/java/awt/image/ComponentColorModel.java: New file.
2571 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2572 * libjava/java/awt/image/DataBuffer.java: New file.
2573 * libjava/java/awt/image/DataBufferByte.java: New file.
2574 * libjava/java/awt/image/DataBufferInt.java: New file.
2575 * libjava/java/awt/image/DataBufferUShort.java: New file.
2576 * libjava/java/awt/image/DirectColorModel.java: New file.
2577 * libjava/java/awt/image/PackedColorModel.java: New file.
2578 * libjava/java/awt/image/Raster.java: New file.
2579 * libjava/java/awt/image/SampleModel.java: New file.
2580 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2582 * libjava/java/awt/image/IndexColorModel.java: New file.
2583 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2584 java.awt.ColorModel stub.
2586 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2587 * gnu/gcj/util/Buffers.java: New file, utility class.
2589 * libjava/Makefile.am: Updated to include new files.
2590 * libjava/Makefile.in: Rebuilt.
2592 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2594 * java/io/StreamTokenizer.java: Merged with classpath.
2596 2000-07-20 Tom Tromey <tromey@cygnus.com>
2598 * Makefile.in: Rebuilt.
2599 * Makefile.am (awt_java_source_files): Updated for new files.
2600 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2601 * java/awt/Label.java: New file.
2602 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2603 (createIntersection, createUnion, getBounds2D): New methods.
2604 * java/awt/Scrollbar.java: New file.
2605 * java/awt/Shape.java: Updated to 1.2.
2606 * java/awt/geom/AffineTransform.java: New file.
2607 * java/awt/geom/Ellipse2D.java: New file.
2608 * java/awt/geom/NoninvertibleTransformException.java: New file.
2609 * java/awt/geom/PathIterator.java: New file.
2610 * java/awt/geom/Rectangle2D.java: New file.
2611 * java/awt/geom/RectangularShape.java: New file.
2612 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2613 * java/awt/geom/IllegalPathStateException.java: New file.
2615 * scripts/showval.java: New file.
2617 * scripts/classes.pl (scan): Print inner classes properly.
2618 * gcj/javaprims.h: Updated class list.
2620 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2621 initialize String fields for interpreted classes. Fixes bug
2622 reported by Hans Boehm.
2624 * java/io/File.java (getParentFile): New method, from Classpath
2625 via Oskar Liljeblad.
2627 * java/util/Vector.java (remove(Object)): Implemented.
2629 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2631 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2632 zero return from backtrace().
2634 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2636 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2638 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2639 before calling notifyAll().
2641 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2643 Add missing files from last check-in:
2644 * java/awt/image/ImageConsumer.java: New file.
2645 * java/awt/image/ImageProducer.java: New file.
2646 * java/awt/image/ImageObserver.java: New file.
2648 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2650 Merged implementation of java.applet from classpath:
2651 * java/applet/Applet.java: New file.
2652 * java/applet/AppletContext.java: New file.
2653 * java/applet/AppletStub.java: New file.
2654 * java/applet/AudioClip.java: New file.
2656 * Makefile.am: Added new java.applet classes.
2657 * Makefile.in: Rebuilt.
2659 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2662 * java/util/ResourceBundle.java (getLocale): stub.
2663 * Makefile.am: Added new AWT classes.
2664 * Makefile.in: Rebuilt.
2665 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2666 constructors. Fix toString() and paramString().
2667 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2668 * java/awt/CheckboxGroup.java: New class.
2669 * java/awt/ColorModel.java: New class.
2670 * java/awt/Component.java: Added stubs for most methods. Implemented
2672 * java/awt/Container.java: ditto.
2673 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2674 * java/awt/Cursor.java: ditto.
2675 * java/awt/Event.java: Fix paramString().
2676 * java/awt/EventQueue.java: New class. Implemented.
2677 * java/awt/Font.java: Added additional stub methods. Implemented
2679 * java/awt/FontMetrics.java: New class. Stubbed.
2680 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2682 * java/awt/Insets.java: New class. Implemented.
2683 * java/awt/Menu.java: Add new methods. Partially implemented.
2684 * java/awt/MenuItem.java: Add new methods and fields. Partially
2686 * java/awt/MenuShortcut.java: New class. Implemented.
2687 * java/awt/Panel.java: New class. Placeholder.
2688 * java/awt/PopupMenu.java: New class. Stubbed.
2689 * java/awt/Rectangle.java: New class. Implemented.
2690 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2691 * java/awt/event/ActionEvent.java: Implement paramString().
2692 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2693 * java/awt/event/ComponentEvent.java: Implement paramString().
2694 * java/awt/event/ContainerEvent.java: Implement paramString().
2695 * java/awt/event/FocusEvent.java: Implement paramString().
2696 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2697 * java/awt/event/HierarchyBoundsListener.java: New class.
2698 * java/awt/event/HierarchyEvent.java: New class.
2699 * java/awt/event/HierarchyListener.java: New class.
2700 * java/awt/event/InputMethodEvent.java: Implement paramString().
2701 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2702 exception if !catchExceptions.
2703 * java/awt/event/ItemEvent.java: Implement paramString().
2704 * java/awt/event/KeyEvent.java: Implement paramString().
2705 * java/awt/event/MouseEvent.java: Implement paramString().
2706 * java/awt/event/PaintEvent.java: Implement paramString().
2707 * java/awt/event/TextEvent.java: Implement paramString().
2708 * java/awt/event/WindowEvent.java: Implement paramString().
2710 AWT Peer interfaces:
2711 * java/awt/peer/ButtonPeer.java: New file.
2712 * java/awt/peer/ListPeer.java: New file.
2713 * java/awt/peer/CanvasPeer.java: New file.
2714 * java/awt/peer/MenuBarPeer.java: New file.
2715 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2716 * java/awt/peer/MenuComponentPeer.java: New file.
2717 * java/awt/peer/CheckboxPeer.java: New file.
2718 * java/awt/peer/MenuItemPeer.java: New file.
2719 * java/awt/peer/ChoicePeer.java: New file.
2720 * java/awt/peer/MenuPeer.java: New file.
2721 * java/awt/peer/ComponentPeer.java: Implemented.
2722 * java/awt/peer/PanelPeer.java: New file.
2723 * java/awt/peer/ContainerPeer.java: Implemented.
2724 * java/awt/peer/PopupMenuPeer.java: New file.
2725 * java/awt/peer/DialogPeer.java: New file.
2726 * java/awt/peer/ScrollPanePeer.java: New file.
2727 * java/awt/peer/FileDialogPeer.java: New file.
2728 * java/awt/peer/ScrollbarPeer.java: New file.
2729 * java/awt/peer/FontPeer.java: New file.
2730 * java/awt/peer/TextAreaPeer.java: New file.
2731 * java/awt/peer/FramePeer.java: Implemented.
2732 * java/awt/peer/TextComponentPeer.java: New file.
2733 * java/awt/peer/LabelPeer.java: New file.
2734 * java/awt/peer/TextFieldPeer.java: New file.
2735 * java/awt/peer/LightweightPeer.java: New file.
2736 * java/awt/peer/WindowPeer.java: Implemented.
2738 2000-07-06 Tom Tromey <tromey@cygnus.com>
2740 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2741 Initialize static final String fields.
2743 2000-07-03 Tom Tromey <tromey@cygnus.com>
2745 * java/io/PrintWriter.java (print): Call write(String), not
2746 print(String). See PR libgcj/277.
2747 (print(String)): Use write, not out.write.
2749 2000-06-30 Tom Tromey <tromey@cygnus.com>
2751 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2753 2000-06-27 Andrew Haley <aph@cygnus.com>
2755 * java/io/File.java (createTempFile): Close the FileDescriptor
2756 used to create a temp file. Fixes some of PR 203.
2757 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2758 collection if we run out of file handles.
2760 2000-06-28 Warren Levy <warrenl@cygnus.com>
2762 * gnu/java/security/provider/Gnu.java: New file.
2763 * gnu/java/security/provider/SHA.java: New file.
2764 * gnu/java/security/provider/SHA1PRNG.java: New file.
2765 * Makefile.am: Added the above files.
2766 * Makefile.in: Rebuilt.
2768 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2770 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2772 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2773 (destroyed_flag): Removed.
2774 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2775 (activeCount): Added spec note.
2777 2000-06-27 Warren Levy <warrenl@cygnus.com>
2779 * java/security/Principal.java: New file.
2780 * Makefile.am: Added Principal.java.
2781 * Makefile.in: Rebuilt.
2783 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2785 * java/awt/event/MouseEvent.java: Fixed coordinate space
2788 2000-06-27 Tom Tromey <tromey@cygnus.com>
2790 * java/io/PushbackInputStream.java (read): If there are characters
2791 in the buffer, don't also call super.read().
2792 * java/io/PushbackReader.java (read): If there are characters in
2793 the buffer, don't also call super.read().
2795 * java/lang/Double.java (valueOf): Call parseDouble().
2797 2000-06-26 Warren Levy <warrenl@cygnus.com>
2799 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2800 (newVal): Renamed to newValue.
2801 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2802 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2803 (revokeNow): Renamed to invalidateRefs.
2804 * java/io/OptionalDataException.java: Updated FIXME.
2805 (eof): New placeholder field.
2807 * java/io/WriteAbortedException.java (message): Made transient.
2808 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2809 * java/lang/Throwable.java (stackTrace): Made transient.
2810 * java/net/InetAddress.java: Made Serializable.
2811 * java/security/KeyPair.java: Made Serializable.
2812 * java/security/Provider.java: Replaced with Classpath version that
2813 implements serialization and proper methods.
2814 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2815 (limits): Renamed to choiceLimits.
2817 2000-06-24 Tom Tromey <tromey@cygnus.com>
2819 * java/lang/natDouble.cc (parseDouble): Renamed from
2821 * java/lang/Double.java (parseDouble): Renamed from
2822 doubleValueOf. Now public.
2824 2000-06-23 Andrew Haley <aph@cygnus.com>
2826 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2827 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2829 2000-06-23 Tom Tromey <tromey@cygnus.com>
2831 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2832 * java/lang/natDouble.cc: Always include <alloca.h>.
2833 Fix for PR libgcj/267.
2835 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2837 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2838 comply with classpath VM spec.
2839 (add(Group)): Rename to addGroup().
2840 * java/lang/Thread.java (Thread): Use addThread().
2841 * java/lang/natThread.cc (finish_): Use removeThread().
2843 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2845 * java/lang/ThreadGroup.java: Merged with classpath.
2846 * prims.cc (_Jv_RunMain): Don't use `main_group'.
2847 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2849 * java/lang/Thread.java (Thread): Bootstrap initial thread from
2850 ThreadGroup.root if Thread.currentThread is null. Honour the
2851 ThreadGroup's max priority setting.
2853 2000-06-18 Tom Tromey <tromey@cygnus.com>
2855 * java/lang/natClass.cc (forName): Removed dead code. Initialize
2856 returned class. For PR gcj/260.
2858 2000-06-16 Tom Tromey <tromey@cygnus.com>
2860 Fix for PR libgcj/261:
2861 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2863 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2864 argument. (This is a patch from long ago that somehow went
2867 2000-06-15 Tom Tromey <tromey@cygnus.com>
2869 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2873 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2875 Fix for PR java.lang/258:
2876 * prims.cc (_Jv_PrimClass): Set state of primitive class to
2877 JV_STATE_DONE, to prevent accidental initialization.
2878 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
2879 _Jv_InterfaceAssignableFrom if target is an interface and source is an
2880 interface or an abstract class. Remove redundant initializeClass calls.
2881 Remove duplicate if_idt test.
2882 (_Jv_InterfaceAssignableFrom): New function.
2883 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2885 2000-05-31 Tom Tromey <tromey@cygnus.com>
2887 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2888 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2889 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2890 (NUM_OBJECT_METHODS): New define.
2891 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2892 `array_vtable' parameter. Added assertion.
2893 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2896 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
2898 * gcj/cni.h: Include <string.h>.
2899 * defineclass.cc: Include <alloca.h>.
2900 * interpret.cc: Ditto.
2901 * gij.cc: Include <stdlib.h>.
2903 2000-05-30 Tom Tromey <tromey@cygnus.com>
2905 * include/name-finder.h: Include <sys/wait.h>.
2906 (_Jv_name_finder::pid): Now of type `pid_t'.
2907 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2908 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2911 2000-05-24 Warren Levy <warrenl@cygnus.com>
2913 * java/io/ObjectOutputStream.java (writeObject): Use component type
2914 when writing arrays.
2917 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2919 Fix for PR libgcj/226:
2920 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2921 since this is an installed header.
2923 Fix for PR libgcj/228:
2924 * java/util/zip/ZipFile (getInputStream): Create inflater with
2927 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2928 with DataFormatException.
2930 2000-05-20 Tom Tromey <tromey@cygnus.com>
2932 * Makefile.in: Rebuilt.
2933 * Makefile.am (hack1): Removed.
2934 (awto_files): Likewise.
2935 (libgcjawt_la_SOURCES): Likewise.
2936 (EXTRA_libgcjawt_la_SOURCES): Likewise.
2937 (libgcjawt_la_DEPENDENCIES): Likewise.
2938 (libgcjawt_la_LIBADD): Likewise.
2939 (libgcjawt_la_LDFLAGS): Likewise.
2940 (libgcjawt_la_LINK): Likewise.
2941 ($(awt_java_source_files:.java=.class)): Likewise.
2942 (libgcj.zip): Don't depend on AWT files.
2943 (MOSTLYCLEANFILES): Don't include AWT files.
2944 ($(awto_files)): Removed.
2945 (nat_headers): Removed AWT files.
2946 (cond_awt_java_source_files): Removed.
2947 (ordinary_java_source_files): Added awt_java_source_files.
2948 * libgcj.spec.in (*lib): Removed -lgcjawt.
2949 * configure: Rebuilt.
2950 * configure.in: Removed --enable-java-awt option.
2952 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2954 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
2955 (ZipEntry): Copy the `name' field.
2956 (clone): Implement JDK1.2 method.
2957 (setCompressedSize): ditto.
2960 2000-05-19 Tom Tromey <tromey@cygnus.com>
2962 * java/io/BufferedWriter.java: Merged with Classpath.
2963 * java/io/BufferedOutputStream.java: Merged with Classpath.
2965 2000-05-16 Andrew Haley <aph@cygnus.com>
2967 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
2968 build_ia64_frame_state.
2969 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
2972 2000-05-15 Warren Levy <warrenl@cygnus.com>
2974 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
2975 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
2976 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
2977 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
2978 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
2979 * gnu/gcj/beans/editors/FontEditor.java: Removed.
2980 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
2981 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
2982 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
2983 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
2984 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
2985 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
2986 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
2987 * gnu/gcj/beans/editors/StringEditor.java: Removed.
2988 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
2989 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
2990 * gnu/gcj/io/NullOutputStream.java: Removed.
2991 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
2992 * gnu/gcj/lang/ArrayHelper.java: Removed.
2993 * gnu/gcj/lang/ClassHelper.java: Removed.
2994 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
2996 * gnu/java/beans/BeanInfoEmbryo.java: New file.
2997 * gnu/java/beans/EmptyBeanInfo.java: New file.
2998 * gnu/java/beans/ExplicitBeanInfo.java: New file.
2999 * gnu/java/beans/IntrospectionIncubator.java: New file.
3000 * gnu/java/beans/editors/ColorEditor.java: New file.
3001 * gnu/java/beans/editors/FontEditor.java: New file.
3002 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3003 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3004 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3005 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3006 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3007 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3008 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3009 * gnu/java/beans/editors/StringEditor.java: New file.
3010 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3011 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3012 * gnu/java/io/NullOutputStream.java: New file.
3013 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3014 * gnu/java/lang/ArrayHelper.java: New file.
3015 * gnu/java/lang/ClassHelper.java: New file.
3016 * gnu/java/lang/reflect/TypeSignature.java: New file.
3018 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3019 namespace back to the original Classpath gnu/java namespace.
3020 * Makefile.in: Rebuilt.
3022 * java/beans/Beans.java: Namespace change.
3023 * java/beans/EventSetDescriptor.java: Namespace change.
3024 * java/beans/Introspector.java: Namespace change.
3025 * java/beans/PropertyEditorManager.java: Namespace change.
3026 * java/io/ObjectInputStream.java: Namespace change.
3027 * java/io/ObjectOutputStream.java: Namespace change.
3028 * java/io/ObjectStreamClass.java: Namespace change.
3029 * java/io/ObjectStreamField.java: Namespace change.
3031 2000-04-21 Warren Levy <warrenl@cygnus.com>
3033 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3034 now that compiler patch is available.
3035 Removed unneeded System.loadLibrary.
3036 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3037 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3039 2000-04-19 Andrew Haley <aph@cygnus.com>
3041 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3042 and target classes have been initialized.
3044 2000-04-19 Andrew Haley <aph@cygnus.com>
3046 * java/lang/String.java: implement Serializable, Comparable.
3047 (compareTo (Object)): New method.
3049 2000-04-19 Warren Levy <warrenl@cygnus.com>
3051 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3052 instead of getField to retrieve non-public field.
3053 (getSerialPersistantFields): Ditto.
3055 2000-04-18 Warren Levy <warrenl@cygnus.com>
3057 * mauve-libgcj: Turned off object serialization tests temporarily
3058 due to compiler error.
3060 2000-04-17 Warren Levy <warrenl@cygnus.com>
3062 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3063 to avoid build problem.
3065 * mauve-libgcj: Turned on object serialization tests.
3067 2000-04-17 Tom Tromey <tromey@cygnus.com>
3069 * libgcj.spec.in (*lib): Added -lgcjawt.
3071 2000-04-17 Andrew Haley <aph@cygnus.com>
3073 * Makefile.am: Add new files:
3074 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3076 * Makefile.in: Rebuilt.
3078 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3079 interface that has no implementations.
3080 Check for an attempt to assign an abstract class to an interface.
3082 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3083 if we fail to find MessageDigest.getInstance ("SHA").
3085 * gnu/gcj/io/SimpleSHSStream.java: New file.
3086 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3087 * gnu/gcj/io/shs.cc: New file.
3088 * gnu/gcj/io/shs.h: new file.
3090 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3093 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3094 punctuation from the classname of an array element.
3096 * gcj/javaprims.h: Add SimpleDigestStream.
3098 2000-04-17 Andrew Haley <aph@cygnus.com>
3100 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3101 to getPrivateField for superclasses.
3103 2000-04-14 Andrew Haley <aph@cygnus.com>
3105 * Makefile.am: Add new files:
3106 java/io/ObjectOutputStream$PutField.h,
3107 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3108 java/io/natObjectOutputStream.cc
3109 * Makefile.in: Rebuilt.
3110 * gcj/Makefile.in: Rebuilt.
3111 * include/Makefile.in: Rebuilt.
3112 * java/lang/Class.h (getPrivateField): New method.
3113 (getPrivateMethod): Ditto.
3114 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3115 and java::io::ObjectStreamClass our friends.
3116 * java/lang/natClass.cc (getPrivateField): New method.
3117 (getPrivateMethod): Ditto.
3118 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3119 * gcj/javaprims.h: Add serialization classes.
3120 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3121 (setByteField): Ditto.
3122 (setCharField): Ditto.
3123 (setDoubleField): Ditto.
3124 (setFloatField): Ditto.
3125 (setIntField): Ditto.
3126 (setLongField): Ditto.
3127 (setShortField): Ditto.
3128 (setObjectField): Ditto.
3129 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3131 (getByteField): Ditto.
3132 (getCharField): Ditto.
3133 (getDoubleField): Ditto.
3134 (getFloatField): Ditto.
3135 (getIntField): Ditto.
3136 (getLongField): Ditto.
3137 (getShortField): Ditto.
3138 (getObjectField): Ditto.
3139 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3141 (getSerialPersistantFields): Ditto.
3142 (getDefinedSUID): Ditto.
3143 * java/io/natObjectOutputStream.cc: New file.
3144 * java/io/natObjectInputStream.cc: New file.
3146 2000-04-13 Warren Levy <warrenl@cygnus.com>
3148 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3149 problems. Revert to previous version to reproduce and when fixed.
3151 2000-04-13 Warren Levy <warrenl@cygnus.com>
3153 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3154 * gnu/gcj/io/NullOutputStream.java: New file.
3155 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3156 * java/io/BlockDataException.java: New file.
3157 * java/io/Externalizable.java: New file.
3158 * java/io/InvalidClassException.java: New file.
3159 * java/io/InvalidObjectException.java: New file.
3160 * java/io/NotActiveException.java: New file.
3161 * java/io/NotSerializableException.java: New file.
3162 * java/io/ObjectInput.java: New file.
3163 * java/io/ObjectInputStream.java: New file.
3164 * java/io/ObjectInputValidation.java: New file.
3165 * java/io/ObjectOutput.java: New file.
3166 * java/io/ObjectOutputStream.java: New file.
3167 * java/io/ObjectStreamClass.java: New file.
3168 * java/io/ObjectStreamConstants.java: New file.
3169 * java/io/ObjectStreamField.java: New file.
3170 * java/io/Replaceable.java: New file.
3171 * java/io/Resolvable.java: New file.
3172 * java/io/SerializablePermission.java: New file.
3173 * java/io/WriteAbortedException.java: New file.
3174 * java/security/BasicPermission.java: New file.
3175 * java/security/DigestOutputStream.java: New file.
3176 * java/security/Guard.java: New file.
3177 * java/security/Permission.java: New file.
3178 * java/security/PermissionCollection.java: New file.
3179 * Makefile.am: Added above files.
3180 * Makefile.in: Rebuilt.
3182 * java/beans/Beans.java (instantiate): Activated serialization code.
3183 * java/lang/SecurityManager.java (checkPermission): New method.
3185 2000-04-12 Warren Levy <warrenl@cygnus.com>
3187 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3188 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3189 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3190 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3191 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3192 * gnu/gcj/beans/editors/FontEditor.java: New file.
3193 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3194 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3195 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3196 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3197 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3198 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3199 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3200 * gnu/gcj/beans/editors/StringEditor.java: New file.
3201 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3202 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3203 * gnu/gcj/lang/ArrayHelper.java: New file.
3204 * gnu/gcj/lang/ClassHelper.java: New file.
3205 * java/beans/BeanDescriptor.java: New file.
3206 * java/beans/BeanInfo.java: New file.
3207 * java/beans/Beans.java: New file.
3208 * java/beans/Customizer.java: New file.
3209 * java/beans/DesignMode.java: New file.
3210 * java/beans/EventSetDescriptor.java: New file.
3211 * java/beans/FeatureDescriptor.java: New file.
3212 * java/beans/IndexedPropertyDescriptor.java: New file.
3213 * java/beans/IntrospectionException.java: New file.
3214 * java/beans/Introspector.java: New file.
3215 * java/beans/MethodDescriptor.java: New file.
3216 * java/beans/ParameterDescriptor.java: New file.
3217 * java/beans/PropertyChangeEvent.java: New file.
3218 * java/beans/PropertyChangeListener.java: New file.
3219 * java/beans/PropertyChangeSupport.java: New file.
3220 * java/beans/PropertyDescriptor.java: New file.
3221 * java/beans/PropertyEditor.java: New file.
3222 * java/beans/PropertyEditorManager.java: New file.
3223 * java/beans/PropertyEditorSupport.java: New file.
3224 * java/beans/PropertyVetoException.java: New file.
3225 * java/beans/SimpleBeanInfo.java: New file.
3226 * java/beans/VetoableChangeListener.java: New file.
3227 * java/beans/VetoableChangeSupport.java: New file.
3228 * java/beans/Visibility.java: New file.
3229 * java/beans/beancontext/BeanContext.java: New file.
3230 * java/beans/beancontext/BeanContextChild.java: New file.
3231 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3232 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3233 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3234 * java/beans/beancontext/BeanContextEvent.java: New file.
3235 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3236 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3237 * java/beans/beancontext/BeanContextProxy.java: New file.
3238 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3240 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3241 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3243 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3244 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3246 * java/beans/beancontext/BeanContextServices.java: New file.
3247 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3248 * java/util/AbstractCollection.java: New file.
3249 * java/util/AbstractList.java: New file.
3250 * java/util/Arrays.java: New file.
3251 * Makefile.am: Added above files.
3252 * Makefile.in: Rebuilt.
3254 2000-04-11 Warren Levy <warrenl@cygnus.com>
3256 * java/awt/AWTError.java: New file.
3257 * java/awt/AWTEvent.java: New file.
3258 * java/awt/AWTException.java: New file.
3259 * java/awt/ActiveEvent.java: New file.
3260 * java/awt/Adjustable.java: New file.
3261 * java/awt/BorderLayout.java: New file.
3262 * java/awt/Color.java: New file.
3263 * java/awt/Component.java: New file.
3264 * java/awt/Container.java: New file.
3265 * java/awt/Dimension.java: New file.
3266 * java/awt/Event.java: New file.
3267 * java/awt/Font.java: New file.
3268 * java/awt/Frame.java: New file.
3269 * java/awt/Graphics.java: New file.
3270 * java/awt/IllegalComponentStateException.java: New file.
3271 * java/awt/Image.java: New file.
3272 * java/awt/ItemSelectable.java: New file.
3273 * java/awt/LayoutManager.java: New file.
3274 * java/awt/LayoutManager2.java: New file.
3275 * java/awt/Menu.java: New file.
3276 * java/awt/MenuBar.java: New file.
3277 * java/awt/MenuComponent.java: New file.
3278 * java/awt/MenuContainer.java: New file.
3279 * java/awt/MenuItem.java: New file.
3280 * java/awt/Paint.java: New file.
3281 * java/awt/PaintContext.java: New file.
3282 * java/awt/Point.java: New file.
3283 * java/awt/Rectangle.java: New file.
3284 * java/awt/Shape.java: New file.
3285 * java/awt/TextArea.java: New file.
3286 * java/awt/TextComponent.java: New file.
3287 * java/awt/Toolkit.java: New file.
3288 * java/awt/Transparency.java: New file.
3289 * java/awt/Window.java: New file.
3290 * java/awt/natToolkit.cc: New file.
3291 * java/awt/event/AWTEventListener.java: New file.
3292 * java/awt/event/ActionEvent.java: New file.
3293 * java/awt/event/ActionListener.java: New file.
3294 * java/awt/event/AdjustmentEvent.java: New file.
3295 * java/awt/event/AdjustmentListener.java: New file.
3296 * java/awt/event/ComponentAdapter.java: New file.
3297 * java/awt/event/ComponentEvent.java: New file.
3298 * java/awt/event/ComponentListener.java: New file.
3299 * java/awt/event/ContainerAdapter.java: New file.
3300 * java/awt/event/ContainerEvent.java: New file.
3301 * java/awt/event/ContainerListener.java: New file.
3302 * java/awt/event/FocusAdapter.java: New file.
3303 * java/awt/event/FocusEvent.java: New file.
3304 * java/awt/event/FocusListener.java: New file.
3305 * java/awt/event/InputEvent.java: New file.
3306 * java/awt/event/InputMethodEvent.java: New file.
3307 * java/awt/event/InputMethodListener.java: New file.
3308 * java/awt/event/InvocationEvent.java: New file.
3309 * java/awt/event/ItemEvent.java: New file.
3310 * java/awt/event/ItemListener.java: New file.
3311 * java/awt/event/KeyAdapter.java: New file.
3312 * java/awt/event/KeyEvent.java: New file.
3313 * java/awt/event/KeyListener.java: New file.
3314 * java/awt/event/MouseAdapter.java: New file.
3315 * java/awt/event/MouseEvent.java: New file.
3316 * java/awt/event/MouseListener.java: New file.
3317 * java/awt/event/MouseMotionAdapter.java: New file.
3318 * java/awt/event/MouseMotionListener.java: New file.
3319 * java/awt/event/PaintEvent.java: New file.
3320 * java/awt/event/TextEvent.java: New file.
3321 * java/awt/event/TextListener.java: New file.
3322 * java/awt/event/WindowAdapter.java: New file.
3323 * java/awt/event/WindowEvent.java: New file.
3324 * java/awt/event/WindowListener.java: New file.
3325 * java/awt/geom/Dimension2D.java: New file.
3326 * java/awt/geom/Point2D.java: New file.
3327 * java/awt/peer/ComponentPeer.java: New file.
3328 * java/awt/peer/ContainerPeer.java: New file.
3329 * java/awt/peer/FramePeer.java: New file.
3330 * java/awt/peer/WindowPeer.java: New file.
3331 * java/util/Collection.java: New file.
3332 * java/util/Comparator.java: New file.
3333 * java/util/Iterator.java: New file.
3334 * java/util/List.java: New file.
3335 * java/util/ListIterator.java: New file.
3336 * Makefile.am: Added above files.
3337 * Makefile.in: Rebuilt.
3339 2000-04-10 Warren Levy <warrenl@cygnus.com>
3341 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3342 * java/lang/FirstThread.java: Ditto.
3343 * java/lang/StringBuffer.java: Ditto.
3344 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3346 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3347 Special case handled in java.math.BigInteger.
3348 * java/math/BigInteger.java (divide): Handle the special case when
3349 dividing by 1 and the high bit of the dividend is set.
3350 (setShiftRight): Handle case when count == 0.
3352 2000-04-05 Andrew Haley <aph@cygnus.com>
3354 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3357 2000-04-05 Andrew Haley <aph@cygnus.com>
3359 * sysdep/ia64.c (rse_address_add): Delete.
3360 (IS_NaT_COLLECTION_ADDR): Delete.
3361 (ia64_backtrace_helper): check for null unwind_info.
3363 * sysdep/ia64-frame.h: add calc_caller_bsp.
3365 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3368 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3369 (_Jv_remI): Likewise.
3370 (_Jv_divJ): Likewise.
3371 (_Jv_remJ): Likewise.
3373 * interpret.cc (continue1): Use divide subroutines to guarantee
3374 correct Java standard behaviour.
3375 Floating-point division should not abort; make it so.
3377 2000-03-29 Tom Tromey <tromey@cygnus.com>
3379 * configure: Rebuilt.
3380 * configure.in: Test against `libgcj_sjlj', not
3381 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3382 to be set even when using sjlj.
3384 2000-03-24 Andrew Haley <aph@cygnus.com>
3386 * Makefile.am: Add file addr2name.awk.
3387 * Makefile.in: Rebuilt.
3388 * addr2name.awk: New file.
3389 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3391 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3394 2000-03-22 Andrew Haley <aph@cygnus.com>
3396 * configure.host: Add -funwind-tables for IA64.
3397 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3398 * Makefile.in: Rebuilt.
3399 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3400 * sysdep/ia64.c: New file.
3401 * sysdep/ia64-frame.h: New file.
3402 * configure.in: Add sysdep/ia64.c for ia64.
3403 * configure: Rebuilt.
3405 2000-03-17 Andrew Haley <aph@cygnus.com>
3407 * java/lang/natString.cc: Remove `register' keyword.
3408 interpret.cc: ditto.
3410 2000-03-16 Andrew Haley <aph@cygnus.com>
3412 * configure.host (ia64): Enable interpreter.
3414 2000-03-14 Hans Boehm <boehm@acm.org>
3416 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3418 2000-03-14 Andrew Haley <aph@cygnus.com>
3420 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3423 2000-03-10 Andrew Haley <aph@cygnus.com>
3425 * java/lang/ieeefp.h: Import latest version from fdlibm.
3427 2000-03-14 Andrew Haley <aph@cygnus.com>
3429 * prims.cc (_Jv_ThrowSignal): New function.
3430 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3432 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3433 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3434 * include/ppc-signal.h: New file.
3436 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3438 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3439 * java/lang/natThread.java (initialize_native): Cast `data' to
3441 * gnu/gcj/RawData.java: Clarify documentation.
3443 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3444 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3445 `jarFile', not `jarFileURL'.
3447 2000-05-15 Andrew Haley <aph@cygnus.com>
3449 * include/ppc-signal.h: New file.
3451 2000-05-11 Tom Tromey <tromey@cygnus.com>
3453 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3454 file headers, don't include `size' in the skip call.
3456 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3458 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3459 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3461 (replace): Reimplemented. Fix javadoc.
3462 (reverse): Call ensureCapacity_unsynchronized().
3463 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3465 (replace): Calculate length for arraycopy() correctly.
3467 2000-05-09 Tom Tromey <tromey@cygnus.com>
3469 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3471 (insert(int,char[],int,int): New method.
3472 (delete): New method from Classpath.
3473 (deleteCharAt): Likewise.
3474 (substring): Likewise.
3475 (shared): No longer private.
3476 Added JavaDoc comments from Classpath.
3477 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3480 2000-05-07 Tom Tromey <tromey@cygnus.com>
3482 * Makefile.in: Rebuilt.
3483 * Makefile.am (LIBLINK): New macro.
3484 (libgcj_la_LINK): Use it.
3485 (libgcjawt_la_LINK): Likewise.
3487 2000-05-06 Tom Tromey <tromey@cygnus.com>
3489 * Makefile.in: Rebuilt.
3490 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3492 2000-05-05 Tom Tromey <tromey@cygnus.com>
3494 Fix for PR libgcj/220:
3495 * Makefile.in: Rebuilt.
3496 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3497 (jv_convert_LDFLAGS): Likewise.
3498 (libgcj_la_LDFLAGS): Likewise.
3499 (GCJLINK): New macro.
3500 (jv_convert_LINK): Use it.
3501 (gij_LINK): Likewise.
3502 (libgcj_la_LINK): New macro.
3503 (libgcjawt_la_LINK): Likewise.
3505 2000-05-04 Tom Tromey <tromey@cygnus.com>
3507 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3509 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3513 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3515 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3516 (_Jv_IsAssignableFrom): Ditto.
3517 (_Jv_IsInstanceOf): Ditto.
3518 (_Jv_CheckCast): Ditto.
3519 (_Jv_CheckArrayStore): Ditto.
3520 * java/lang/Class.h (_Jv_InitClass): Ditto.
3521 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3526 (_Jv_MonitorExit): Ditto.
3527 * boehm.cc (_Jv_MarkObj): Ditto.
3528 (_Jv_MarkObj): Ditto.
3529 (_Jv_MarkArray): Ditto.
3530 * prims.cc (_Jv_AllocObject): Ditto.
3531 (_Jv_NewObjectArray): Ditto.
3532 (_Jv_NewPrimArray): Ditto.
3533 (_Jv_Malloc): Ditto.
3534 (_Jv_Realloc): Ditto.
3535 (_Jv_MallocUnchecked): Ditto.
3541 2000-05-04 Tom Tromey <tromey@cygnus.com>
3543 * java/util/Locale.java (Locale): Don't explicitly check for
3545 * java/util/Hashtable.java (containsKey): Don't explicitly check
3548 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3550 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3552 * java/text/StringCharacterIterator.java
3553 (StringCharacterIterator): Don't check for null.
3554 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3556 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3557 check for null pointer.
3558 (leaveGroup): Likewise.
3559 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3561 (setData): Likewise.
3562 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3565 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3567 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3568 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3569 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3570 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3571 -rpath for in-gcc builds.
3572 * Makefile.in: Rebuilt.
3574 2000-04-28 Tom Tromey <tromey@cygnus.com>
3576 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3579 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3581 * libjava/java/lang/String.java (toString): Remove `final' hack.
3583 2000-04-05 Tom Tromey <tromey@cygnus.com>
3585 Runtime support for PR gcj/2:
3586 * prims.cc (_Jv_ThrowNullPointerException): New function.
3587 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3589 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3591 * prims.cc (_Jv_NewObjectArray): Fix typo.
3593 2000-04-26 Tom Tromey <tromey@cygnus.com>
3595 * Makefile.in: Rebuilt.
3596 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3598 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3600 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3603 2000-04-22 Anthony Green <green@cygnus.com>
3605 * include/jvm.h (__builtin_expect): Define as unused for now.
3606 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3610 (_Jv_MonitorExit): Ditto.
3611 * boehm.cc (_Jv_MarkObj): Ditto.
3612 (_Jv_MarkObj): Ditto.
3613 (_Jv_MarkArray): Ditto.
3614 (_Jv_AllocBytes): Ditto.
3615 * prims.cc (_Jv_AllocObject): Ditto.
3616 (_Jv_NewObjectArray): Ditto.
3617 (_Jv_NewPrimArray): Ditto.
3618 (_Jv_Malloc): Ditto.
3619 (_Jv_Realloc): Ditto.
3620 (_Jv_MallocUnchecked): Ditto.
3626 * include/Makefile.in: Rebuilt.
3627 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3629 2000-04-21 Tom Tromey <tromey@cygnus.com>
3631 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3632 Yet another new version from Classpath.
3634 Fix for PR libgcj/15:
3635 * java/util/natGregorianCalendar.cc (_REENTRANT,
3636 _POSIX_PTHREAD_SEMANTICS): Don't define.
3637 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3638 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3640 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3642 * configure: Rebuilt.
3643 * configure.in: If using POSIX threads, define _REENTRANT if
3644 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3645 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3647 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3648 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3649 version from Classpath.
3651 Fix for PR libgcj/213:
3652 * Makefile.in: Rebuilt.
3653 * Makefile.am (gij_SOURCES): Added gij.cc.
3654 (EXTRA_gij_SOURCES): Removed.
3655 (gij_LDADD): Removed gij.lo.
3656 (gij_DEPENDENCIES): Likewise.
3657 ($(gij_OBJECTS)): Depend on nat_headers.
3659 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3660 `setURL', not `url.set'.
3662 2000-04-20 Tom Tromey <tromey@cygnus.com>
3664 Fix for PR java.io/204:
3665 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3666 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3669 Fix for PR libgcj/212:
3670 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3671 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3672 * java/lang/Class.h (_Jv_word): Declare.
3674 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3676 2000-04-19 Tom Tromey <tromey@cygnus.com>
3678 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3679 doesn't have a loader.
3681 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3683 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3684 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3686 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3688 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3690 (available): Initialize `where' to prevent bogus compiler warning.
3692 2000-04-12 Tom Tromey <tromey@cygnus.com>
3694 * java/lang/natString.cc (intern): Temporarily disable finalizer
3697 * java/lang/natString.cc (unintern): Added `obj' argument.
3698 (intern): Register finalizer for string.
3699 * java/lang/String.java (unintern): Now static; added obj
3702 2000-04-11 Tom Tromey <tromey@cygnus.com>
3704 * java/util/Vector.java (VectorEnumeration): Now `final'.
3705 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3706 (HashtableEnumeration): Likewise.
3707 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3708 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3710 2000-04-10 Warren Levy <warrenl@cygnus.com>
3712 * java/io/ObjectStreamException.java: New file.
3713 * java/io/OptionalDataException.java: New file.
3714 * java/io/StreamCorruptedException.java: New file.
3715 * java/math/BigDecimal.java: New file.
3716 * java/sql/CallableStatement.java: New file.
3717 * java/sql/Connection.java: New file.
3718 * java/sql/DataTruncation.java: New file.
3719 * java/sql/DatabaseMetaData.java: New file.
3720 * java/sql/Date.java: New file.
3721 * java/sql/Driver.java: New file.
3722 * java/sql/DriverManager.java: New file.
3723 * java/sql/DriverPropertyInfo.java: New file.
3724 * java/sql/PreparedStatement.java: New file.
3725 * java/sql/ResultSet.java: New file.
3726 * java/sql/ResultSetMetaData.java: New file.
3727 * java/sql/SQLException.java: New file.
3728 * java/sql/SQLWarning.java: New file.
3729 * java/sql/Statement.java: New file.
3730 * java/sql/Time.java: New file.
3731 * java/sql/Timestamp.java: New file.
3732 * java/sql/Types.java: New file.
3733 * Makefile.am: Added above new files.
3734 * Makefile.in: Rebuilt.
3736 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3737 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3738 DatagramSocket constructor instead of null.
3740 2000-04-08 Anthony Green <green@cygnus.com>
3742 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3745 2000-04-08 Anthony Green <green@cygnus.com>
3747 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3748 (_Jv_MutexUnlock): Ditto.
3749 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3750 (_Jv_MutexUnlock): Ditto.
3752 2000-04-08 Anthony Green <green@cygnus.com>
3754 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3755 (ensureCapacity_unsynchronized): New private method.
3756 (append): Use ensureCapacity_unsynchronized.
3758 2000-04-08 Tom Tromey <tromey@cygnus.com>
3760 * Makefile.in: Rebuilt.
3761 * Makefile.am (awt_java_source_files): Added new files.
3762 * java/awt/IllegalComponentStateException.java: New file.
3763 * java/awt/ItemSelectable.java: New file.
3764 * java/awt/event/WindowEvent.java: Finished.
3765 * java/awt/event/TextEvent.java: Finished.
3766 * java/awt/event/ContainerEvent.java: New file.
3767 * java/awt/Component.java (getX, getY): New methods.
3768 * java/awt/event/PaintEvent.java: New file.
3769 * java/awt/event/MouseEvent.java: New file.
3770 * java/awt/ActiveEvent.java: New file.
3771 * java/awt/event/KeyEvent.java: Finished.
3772 * java/awt/event/ItemEvent.java: New file.
3773 * java/awt/Adjustable.java: New file.
3774 * java/awt/event/InputMethodEvent.java: New file.
3775 * java/awt/event/InputEvent.java: Finished.
3776 * java/awt/event/FocusEvent.java: New file.
3777 * java/awt/event/MouseMotionAdapter.java: New file.
3778 * java/awt/event/MouseAdapter.java: New file.
3779 * java/awt/event/KeyAdapter.java: New file.
3780 * java/awt/event/FocusAdapter.java: New file.
3781 * java/awt/event/ContainerAdapter.java: New file.
3782 * java/awt/event/ComponentEvent.java: Finished.
3783 * java/awt/event/AdjustmentEvent.java: New file.
3784 * java/awt/event/ComponentAdapter.java: New file.
3785 * java/awt/event/ActionEvent.java: Finished.
3786 * java/awt/event/MouseMotionListener.java: New file.
3787 * java/awt/event/MouseListener.java: New file.
3788 * java/awt/event/ItemListener.java: New file.
3789 * java/awt/event/InputMethodListener.java: New file.
3790 * java/awt/event/ContainerListener.java: New file.
3791 * java/awt/event/FocusListener.java: New file.
3792 * java/awt/event/ComponentListener.java: New file.
3793 * java/awt/event/AWTEventListener.java: New file.
3794 * java/awt/event/AdjustmentListener.java: New file.
3796 2000-04-08 Anthony Green <green@cygnus.com>
3798 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3799 check when we have to.
3801 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3804 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3807 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3808 inline hasMoreElements.
3810 2000-04-05 Tom Tromey <tromey@cygnus.com>
3812 * configure: Rebuilt.
3813 * configure.in: Recognize --enable-java-awt.
3814 (AWT): New conditional.
3815 * Makefile.in: Rebuilt.
3816 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3818 (libgcjawt_la_SOURCES): New macro.
3819 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3820 (libgcjawt_la_DEPENDENCIES): Likewise.
3821 (libgcjawt_la_LIBADD): Likewise.
3822 (libgcjawt_la_LDFLAGS): Likewise.
3823 (libgcj.zip): Depend on cond_java_awt_source_files
3824 (cond_awt_java_source_files): New macro.
3825 (MOSTLYCLEANFILES): Added awto_files.
3826 (awto_files): New macro. Use where javao_files used.
3827 (nat_headers): Use cond_awt_java_source_files.
3829 2000-04-04 Tom Tromey <tromey@cygnus.com>
3831 * Makefile.in: Rebuilt.
3832 * Makefile.am (awt_java_source_files): Added AWTException.java.
3833 * java/awt/AWTException.java: New file.
3835 2000-04-03 Tom Tromey <tromey@cygnus.com>
3837 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3838 commentary from Alex.
3840 * Makefile.in: Rebuilt.
3841 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3844 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
3846 * configure: Rebuilt.
3847 * configure.in: Add --disable-jvmpi.
3848 * include/config.h.in: Rebuilt.
3849 * acconfig.h: Add ENABLE_JVMPI.
3851 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3852 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3853 (_Jv_JVMPI_Notify_THREAD_END): New define.
3854 (_Jv_JVMPI_Notify_THREAD_END): New define.
3855 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3856 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3857 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3859 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3862 * java/lang/natThread.cc: Include JVMPI headers if necessary.
3863 (finish_): Generate JVMPI thread end events.
3864 (run_): Generate JVMPI thread start events.
3865 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3866 preloaded JNI library.
3867 Include JVMPI headers if necessary.
3868 (run): Generate JVMPI thread start events.
3870 * boehm.cc: Define GC_disable and GC_enable.
3871 (_Jv_DisableGC): New function.
3872 (_Jv_EnableGC): New function.
3873 (disable_gc_mutex): Declare.
3874 * nogc.cc (_Jv_DisableGC): New function.
3875 (_Jv_EnableGC): New function.
3877 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3878 (_Jv_JVMPI_Interface): Define.
3879 (jvmpiEnableEvent): New function.
3880 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3882 * include/jvmpi.h: New file.
3884 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
3886 * Makefile.in: New #defines and friends for Thread.h.
3887 * Makefile.am: Ditto.
3888 * posix-threads.cc: (struct starter): Remove `object'.
3889 (_Jv_CondWait): Use interruptable condition variables and new
3890 recursive mutexes. New return codes on interrupt or non-ownership
3892 (_Jv_CondNotify): Ditto.
3893 (_Jv_CondNotifyAll): Ditto.
3894 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3895 the target thread by signaling its wait condition.
3896 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3897 not the starter struct. Initialize wait_mutex and wait_cond.
3898 (_Jv_MutexLock): New recursive mutex implementation. Moved from
3900 (_Jv_MutexUnlock): Ditto.
3901 (really_start): Set info->data->thread from pthread_self() to work
3902 around a race condition. Destroy wait_mutex and wait_cond when run()
3904 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3905 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3907 startable_flag: New private field.
3908 (Thread): Initialize `startable_flag'.
3909 (toString): Check for null thread group.
3910 * java/lang/natThread.cc: (struct natThread): New fields
3911 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3912 (class locker): Removed.
3913 (initialize_native): Initialize `join_cond' and `join_mutex'.
3914 (interrupt): Now just calls _Jv_ThreadInterrupt().
3915 (join): Simplified. Just wait on the target thread's join condition.
3916 (finish_): Remove join list code. Unset thread group. Signal
3917 potential joiners by notifying the dying threads join_cond.
3918 (start): Check for illegal restarts.
3919 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3921 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3922 #defines and #ifdefs.
3923 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3924 `wait_mutex', `next'.
3925 (struct _Jv_ConditionVariable_t): Define as a struct instead of
3926 directly mapping to pthread_cond_t.
3927 (struct _Jv_Mutex_t): New recursive implementation.
3928 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3929 _Jv_HaveCondDestroy: Never define this for posix-threads.
3930 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3931 (_Jv_CondNotifyAll): Ditto.
3932 (_Jv_MutexLock): Ditto.
3933 (_Jv_MutexUnlock): Ditto.
3934 (_Jv_MutexInit): Changed to reflect new mutex implementation.
3935 (_Jv_MutexDestroy): Ditto.
3936 (_Jv_CondDestroy): Removed.
3937 (_Jv_PthreadGetMutex): Removed.
3938 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
3939 error. Add a FIXME about this.
3940 (_Jv_CondNotifyAll): Ditto.
3941 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
3942 _JV_NOT_OWNER on other errors. Add FIXME.
3944 2000-03-26 Tom Tromey <tromey@cygnus.com>
3946 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
3948 (call): Don't throw exception here.
3950 2000-03-26 Tom Tromey <tromey@cygnus.com>
3952 * java/lang/mprec.h: Use SIZEOF_VOID_P.
3953 * interpret.cc: Use SIZEOF_VOID_P.
3954 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
3955 (_Jv_loadLong): Likewise.
3956 (_Jv_storeDouble): Likewise.
3957 * configure: Rebuilt.
3958 * configure.in: Check size of void*.
3960 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
3962 2000-03-26 Hans Boehm <boehm@acm.org>
3964 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
3965 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
3967 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
3968 __IEEE_LITTLE_ENDIAN appropriately on IA64.
3969 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
3970 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
3972 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
3973 (FFI_RAW_SIZE): Likewise.
3974 (_Jv_InterpMethod::ncode): Use them.
3975 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
3976 STORED): Define differently on a 64 bit machine.
3977 (continue1): Use ffi_java_raw_call when appropriate.
3979 2000-03-24 Warren Levy <warrenl@cygnus.com>
3981 * java/math/BigInteger.java(divide): Handle the special case when
3982 dividing by 1 and the high bit of the dividend is set.
3983 (setShiftRight): Handle case when count == 0.
3985 2000-03-24 Warren Levy <warrenl@cygnus.com>
3987 * java/awt/Font.java(isBold): Fix syntax error.
3989 * java/awt/Frame.java(postEvent): ditto.
3990 * java/awt/Menu.java(postEvent): ditto.
3991 * java/awt/MenuBar.java(postEvent): ditto.
3992 * java/awt/Toolkit.java(init): Included a stub.
3994 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
3996 * java/awt/Event.java: Add all the event type constants.
3997 (Event): Implemented constructors.
3998 (controlDown): Implemented.
3999 (metaDown): Implemented.
4000 (paramString): Stubbed.
4001 (shiftDown): Implemented.
4002 (toString): Implemented.
4003 (translate): Implemented.
4005 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4007 * java/lang/natClass.cc (isInstance): Initialize `this'.
4008 (isAssignableFrom): Initialize `this' and `klass'.
4009 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4010 implemented by any loaded class, so return false.
4011 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4012 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4014 2000-03-19 Warren Levy <warrenl@cygnus.com>
4016 * java/awt/Color.java: Specified java.io for Serializable.
4017 * java/awt/Toolkit.java: Imported java.net.URL.
4019 2000-03-19 Warren Levy <warrenl@cygnus.com>
4021 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4023 2000-03-16 Warren Levy <warrenl@cygnus.com>
4025 * java/awt/Color.java: New file.
4026 * java/awt/Graphics.java: New file.
4027 * java/awt/Image.java: New file.
4028 * java/awt/Paint.java: New file.
4029 * java/awt/PaintContext.java: New file.
4030 * java/awt/Transparency.java: New file.
4031 * java/util/Collection.java: New file.
4032 * java/util/Comparator.java: New file.
4033 * java/util/Iterator.java: New file.
4034 * java/util/List.java: New file.
4035 * java/util/ListIterator.java: New file.
4036 * Makefile.am: Added above new files.
4037 * Makefile.in: Rebuilt.
4039 * java/awt/Font.java (PLAIN): New field.
4041 (ITALIC): New field.
4042 (ROMAN_BASELINE): New field.
4043 (CENTER_BASELINE): New field.
4044 (HANGING_BASELINE): New field.
4048 (pointSize): New field.
4049 (Font): Implemented constructor.
4050 (isPlain): Implemented method.
4051 (isBold): Implemented method.
4052 (isItalic): Implemented method.
4053 (getName): Implemented method.
4054 (getStyle): Implemented method.
4055 (getSize): Implemented method.
4056 (getSize2D): Implemented method.
4058 * java/awt/Frame.java (getFont): Stubbed.
4059 (postEvent): Stubbed.
4061 * java/awt/Menu.java (postEvent): Stubbed.
4062 * java/awt/MenuBar.java (getFont): Stubbed.
4063 (postEvent): Stubbed.
4064 * java/awt/Toolkit.java (getImage): Added abstract method.
4066 2000-03-15 Tom Tromey <tromey@cygnus.com>
4068 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4070 * prims.cc (win32_exception_handler): Reformatted.
4072 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4073 (_Jv_HaveMutexDestroy): Likewise.
4075 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4077 * java/io/natFileDescriptorWin32.cc: New file.
4078 * java/io/natFileWin32.cc: New file.
4079 * java/net/natInetAddress.cc: Added conditional inclusion of
4080 Windows / Winsock headers.
4081 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4082 inclusion of Windows / Winsock headers.
4083 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4084 Windows / Winsock headers.
4085 * include/win32-signal.h: New file.
4086 * include/win32-threads.h: New file.
4087 * win32-threads.cc: New file.
4088 * exception.cc (win32_get_restart_frame): New function.
4089 * prims.cc (win32_exception_handler): New function.
4090 (main_init) Performs Winsock initialisation.
4091 (main_init) Installs exeception handler.
4093 2000-03-14 Tom Tromey <tromey@cygnus.com>
4095 * jni.cc (mangled_name): Fixed assertion.
4096 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4097 turned assert into actual failure.
4099 2000-03-09 Warren Levy <warrenl@cygnus.com>
4101 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4102 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4103 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4105 2000-03-09 Warren Levy <warrenl@cygnus.com>
4107 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4108 * java/security/DigestException.java: New file.
4109 * java/security/GeneralSecurityException.java: New file.
4110 * java/security/InvalidAlgorithmParameterException.java: New file.
4111 * java/security/InvalidKeyException.java: New file.
4112 * java/security/InvalidParameterException.java: New file.
4113 * java/security/Key.java: New file.
4114 * java/security/KeyException.java: New file.
4115 * java/security/KeyPair.java: New file.
4116 * java/security/KeyPairGenerator.java: New file.
4117 * java/security/KeyPairGeneratorSpi.java: New file.
4118 * java/security/NoSuchProviderException.java: New file.
4119 * java/security/PrivateKey.java: New file.
4120 * java/security/Provider.java: New file.
4121 * java/security/PublicKey.java: New file.
4122 * java/security/SecureRandom.java: New file.
4123 * java/security/Security.java: New file.
4124 * java/security/Signature.java: New file.
4125 * java/security/SignatureException.java: New file.
4126 * java/security/interfaces/DSAKey.java: New file.
4127 * java/security/interfaces/DSAParams.java: New file.
4128 * java/security/interfaces/DSAPrivateKey.java: New file.
4129 * java/security/interfaces/DSAPublicKey.java: New file.
4130 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4131 * java/security/interfaces/RSAPrivateKey.java: New file.
4132 * java/security/interfaces/RSAPublicKey.java: New file.
4133 * java/security/spec/AlgorithmParameterSpec.java: New file.
4134 * java/security/spec/InvalidKeySpecException.java: New file.
4135 * java/security/spec/InvalidParameterSpecException.java: New file.
4136 * java/security/spec/KeySpec.java: New file.
4137 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4138 * java/security/spec/RSAPrivateKeySpec.java: New file.
4139 * java/security/spec/RSAPublicKeySpec.java: New file.
4140 * Makefile.am: Added above java.security files.
4141 * Makefile.in: Rebuilt.
4143 * java/security/MessageDigest.java: Rewritten.
4144 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4146 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4150 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4152 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4153 _Jv_PrepareConstantTimeTables.
4154 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4155 classes should have an IDT, so don't return if klass is an array
4158 2000-03-08 Tom Tromey <tromey@cygnus.com>
4160 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4161 of `void' to be created.
4163 2000-03-08 Warren Levy <warrenl@cygnus.com>
4165 * java/math/BigInteger.java(signum): Handle zero properly.
4167 2000-03-07 Tom Tromey <tromey@cygnus.com>
4169 * All files: Updated copyright information.
4170 * COPYING: New file.
4171 * COPYING.LIB: Removed.
4172 * LIBGCJ_LICENSE: We now use GPL + special exception.
4174 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4176 * resolve.cc (_Jv_SearchMethodInClass): New function.
4177 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4178 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4180 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4182 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4183 (struct _Jv_ifaces): New declaration.
4184 JV_CLASS: New macro definition.
4185 (getComponentType): Relocate below isArray() for inlining.
4186 (getModifiers): Declare `inline'.
4187 (getSuperclass): Ditto.
4189 (isPrimitive): Ditto.
4190 (_Jv_IsAssignableFrom): New prototype.
4191 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4193 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4194 Check for JV_STATE_DONE before invoking initializeClass().
4195 (_Jv_PrepareConstantTimeTables): New prototype.
4196 (_Jv_GetInterfaces): Ditto.
4197 (_Jv_GenerateITable): Ditto.
4198 (_Jv_GetMethodString): Ditto.
4199 (_Jv_AppendPartialITable): Ditto.
4200 (_Jv_FindIIndex): Ditto.
4201 depth, ancestors, idt: New class fields.
4203 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4204 inline function `_Jv_IsAssignableFrom'. Use that function.
4205 (isInstance): Declare `inline'.
4206 (initializeClass): Get lock on class before checking `state'. Unlock
4207 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4209 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4210 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4211 class->depth and ancestor table.
4212 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4213 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4214 _Jv_IsAssignableFrom.
4215 (_Jv_CheckArrayStore): Ditto.
4216 (_Jv_LookupInterfaceMethodIdx): New function.
4217 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4218 (_Jv_PrepareConstantTimeTables): New function.
4219 (_Jv_IndexOf): Ditto.
4220 (_Jv_GetInterfaces): Ditto.
4221 (_Jv_GenerateITable): Ditto.
4222 (_Jv_GetMethodString): Ditto.
4223 (_Jv_AppendPartialITable): Ditto.
4224 iindex_mutex, iindex_mutex_initialized: New static fields.
4225 (_Jv_FindIIndex): New function.
4227 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4229 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4230 (_Jv_CheckArrayStore): Ditto.
4231 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4232 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4233 Moved to gcj/array.h.
4234 (_Jv_Realloc): New function.
4236 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4238 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4239 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4240 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4241 JvNewDoubleArray): Implementations moved from prims.cc and
4244 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4246 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4248 2000-03-06 Tom Tromey <tromey@cygnus.com>
4250 * jni.cc (MARK_NONE): New define.
4251 (MARK_USER): Likewise.
4252 (MARK_SYSTEM): Likewise.
4253 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4255 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4256 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4257 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4258 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4260 (call): Use MARK_SYSTEM.
4261 (_Jv_GetJNIEnvNewFrame): New function.
4262 (_Jv_LookupJNIMethod): New function.
4263 (_Jv_JNI_PopSystemFrame): New function.
4264 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4266 2000-03-05 Tom Tromey <tromey@cygnus.com>
4268 Fix for PR libgcj/43:
4269 * include/Makefile.in: Rebuilt.
4270 * include/Makefile.am (include_HEADERS): New define.
4272 2000-03-05 Anthony Green <green@redhat.com>
4274 * gcj/javaprims.h ("Java"): Remove FirstThread.
4276 * configure.host: Fix __NO_MATH_INLNES botch.
4278 * Makefile.in: Rebuilt.
4279 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4280 (gnu/gcj/runtime/FirstThread.h): Moved.
4281 (ordinary_java_source_files): Move FirstThread.java.
4282 * prims.cc: Deal with FirstThread movement.
4284 (_Jv_RunMain): Ditto.
4286 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4287 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4289 2000-03-05 Warren Levy <warrenl@cygnus.com>
4291 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4292 Handle null addresses.
4294 2000-03-04 Anthony Green <green@redhat.com>
4296 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4299 2000-03-04 Anthony Green <green@redhat.com>
4301 * configure: Rebuilt.
4302 * configure.in (ZLIBTESTSPEC): New macro.
4303 (GCTESTSPEC): New macro.
4304 (LIBGCJTESTSPEC): New macro.
4305 * libgcj-test.spec.in: New file.
4307 2000-03-02 Tom Tromey <tromey@cygnus.com>
4309 * include/java-interp.h: Don't include MethodInvocation.h.
4310 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4311 * Makefile.in: Rebuilt.
4312 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4313 (ordinary_java_source_files): Don't mention
4314 MethodInvocation.java.
4315 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4316 * interpret.cc (MethodInvocation::continue1): Removed.
4317 (run): Handle exceptions here.
4318 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4320 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4322 (defineClass2): Removed.
4324 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4326 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4328 (hack_call): Removed.
4330 * java/lang/Class.h (Class): Removed hackRunInitializers,
4332 * java/lang/natClass.cc (hackRunInitializers): Removed.
4333 (initializeClass): Catch exceptions here.
4334 Include ExceptionInInitializerError.h.
4335 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4338 * java/lang/Object.h (Object): Don't mention hack12_6.
4339 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4341 * java/lang/Object.java (hack12_6): Removed.
4343 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4344 (start): Use run_, not run__.
4345 * java/lang/Thread.java (run_): Renamed from run__; old run_
4348 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4349 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4350 (_Jv_JNI_DefineClass): Likewise.
4351 (_Jv_JNI_ThrowNew): Likewise.
4352 (_Jv_JNI_AllocObject): Likewise.
4353 (_Jv_JNI_GetAnyMethodID): Likewise.
4354 (_Jv_JNI_CallAnyMethodV): Likewise.
4355 (_Jv_JNI_CallAnyMethodA): Likewise.
4356 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4357 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4358 (_Jv_JNI_GetAnyFieldID): Likewise.
4359 (_Jv_JNI_NewString): Likewise.
4360 (_Jv_JNI_NewStringUTF): Likewise.
4361 (_Jv_JNI_GetStringUTFChars): Likewise.
4362 (_Jv_JNI_NewObjectArray): Likewise.
4363 (_Jv_JNI_NewPrimitiveArray): Likewise.
4364 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4365 (_Jv_JNI_GetStringRegion): Likewise.
4366 (_Jv_JNI_GetStringUTFRegion): Likewise.
4367 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4368 (_Jv_JNI_MonitorEnter): Likewise.
4369 (_Jv_JNI_MonitorExit): Likewise.
4370 (_Jv_JNI_ToReflectedField): Likewise.
4371 (_Jv_JNI_ToReflectedMethod): Likewise.
4372 (_Jv_JNI_RegisterNatives): Likewise.
4373 (_Jv_JNI_AttachCurrentThread): Likewise.
4374 (_Jv_JNI_DestroyJavaVM): Likewise.
4376 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4378 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4379 error caused by the incorrect casting of a long to an int.
4381 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4383 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4384 SIGSEV caused by use of the wrong instance variable.
4386 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4388 * java/io/File.java (File(String, String)): For dirPath, treat an
4389 empty String the same as `null'.
4391 2000-02-26 Anthony Green <green@cygnus.com>
4393 * gnu/gcj/io/MimeTypes.java: Test for null.
4395 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4396 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4398 * java/net/URLConnection.java: Update copyright notice.
4400 2000-02-25 Tom Tromey <tromey@cygnus.com>
4402 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4405 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4407 * java/net/URLConnection.java (initializeDateFormats): New
4409 (getHeaderFieldDate): Call initializeDateFormats if required.
4410 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4412 Fix for PR libgcj/38.
4414 2000-02-24 Warren Levy <warrenl@cygnus.com>
4416 * java/math/BigInteger.java(ival): Made private.
4420 2000-02-20 Anthony Green <green@cygnus.com>
4422 * Makefile.in: Rebuilt.
4423 * Makefile.am (ordinary_java_source_files): Add
4424 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4426 * scripts/MakeDefaultMimeTypes.java: New file.
4427 * scripts/mime.types: New file.
4428 * scripts/classes.pl: Moved from top level.
4429 * classes.pl: Moved to scripts directory.
4431 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4433 * gnu/gcj/io/MimeTypes.java: New file.
4434 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4436 2000-02-20 Tom Tromey <tromey@cygnus.com>
4438 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4440 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4442 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4445 2000-02-18 Tom Tromey <tromey@cygnus.com>
4447 * include/jvm.h (_Jv_GetJavaVM): Declare.
4448 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4449 (_Jv_MethodBase::get_method): New method.
4450 (_Jv_JNIMethod::set_function): New method.
4451 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4452 (_Jv_JNI_RegisterNatives): New function.
4453 (_Jv_JNIFunctions): Updated for new functions.
4454 (_Jv_GetJavaVM): New function.
4455 (_Jv_JNI_GetJavaVM): Use it. Now static.
4456 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4457 is already a Java thread but does not have a JNIEnv yet.
4459 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4462 2000-02-17 Tom Tromey <tromey@cygnus.com>
4464 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4467 2000-02-16 Tom Tromey <tromey@cygnus.com>
4469 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4471 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4472 (_Jv_JNI_NewObject): Likewise.
4473 (_Jv_JNI_NewObjectA): Likewise.
4474 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4475 as "return" type to _Jv_CallAnyMethodA.
4476 (_Jv_JNI_CallAnyMethodA): Likewise.
4477 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4479 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4482 2000-02-15 Tom Tromey <tromey@cygnus.com>
4484 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4486 (init_cif): Added `rtype_p' argument.
4487 * include/java-interp.h (class _Jv_MethodBase): Added
4489 (class _Jv_InterpMethod): Removed args_raw_size.
4490 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4491 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4492 class pointer as well as the ordinary arguments.
4494 * jni.cc (mangled_name): Skip leading `(' in signature.
4496 * jni.cc (add_char): Added missing `else'.
4498 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4501 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4505 * java/lang/natRuntime.cc (_load): Include library path with
4508 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4511 * java/lang/natThread.cc (dumpStack): Removed.
4512 * java/lang/Thread.java (dumpStack): Implemented.
4514 2000-02-15 Tom Tromey <tromey@cygnus.com>
4516 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4517 with `lib' for loadLibrary. Fixes PR gcj/150.
4519 2000-02-14 Warren Levy <warrenl@cygnus.com>
4521 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4523 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4527 (modPow): Rewritten to not use the naive, slow, brute force approach.
4528 (isProbablePrime): Implemented.
4529 (testBit): Implemented.
4530 (flipBit): Implemented.
4531 (getLowestSetBit): Implemented.
4533 2000-02-16 Anthony Green <green@redhat.com>
4535 * configure.host: Use the same options for i386 and i486 as we do
4538 2000-02-12 Tom Tromey <tromey@cygnus.com>
4540 * java/io/File.java (createTempFile): Use low bits from counter,
4543 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4545 * THANKS: More thanks.
4547 2000-02-11 Tom Tromey <tromey@cygnus.com>
4549 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4550 astore instruction. From Hans Boehm.
4552 2000-02-11 Warren Levy <warrenl@cygnus.com>
4554 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4555 (BigInteger(String)): New constructor.
4556 (not): Rewritten using version from Kawa's BitOps class.
4557 (valueOf): New private methods from Kawa's BitOps class.
4564 (andNot): Implemented.
4565 (clearBit): Implemented.
4566 (setBit): Implemented.
4567 (bitCount): Implemented.
4568 (toByteArray): Implemented.
4570 2000-02-11 Tom Tromey <tromey@cygnus.com>
4572 * java/io/File.java (nextValue): Now synchronized.
4574 2000-02-10 Tom Tromey <tromey@cygnus.com>
4576 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4577 * java/io/FileDescriptor.java (EXCL): New static field.
4578 * java/io/File.java (tmpdir): New static field.
4579 (createTempFile): New method.
4580 (nextValue): New method.
4581 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4584 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4585 (jboolean): Declare as an attributed int, not a bool.
4586 (_Jv_func): Declare differently for C.
4588 * gnu/gcj/jni/natNativeThread.cc: New file.
4589 * gnu/gcj/jni/NativeThread.java: New file.
4590 * java/lang/Thread.java (data): Now a RawData.
4591 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4593 * Makefile.in: Rebuilt.
4594 * Makefile.am (java/lang/Thread.h): New target.
4595 (ordinary_java_source_files): Added NativeThread.java.
4596 (nat_source_files): Added natNativeThread.cc.
4597 * java/lang/natThread.cc: Include <jni.h>
4598 (struct natThread): Added `jni_env' field.
4599 (_Jv_GetCurrentJNIEnv): New function.
4600 (_Jv_SetCurrentJNIEnv): Likewise.
4601 (initialize_native): Initialize jni_env.
4603 * jni.cc (ThreadGroupClass): New define.
4604 (_Jv_JNI_InvokeFunctions): New structure.
4605 (JNI_GetCreatedJavaVMs): New function.
4606 (the_vm): New global.
4607 (JNI_GetDefaultJavaVMInitArgs): New function.
4608 Include NativeThread.h.
4609 (NativeThreadClass): New define.
4610 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4611 (_Jv_JNI_DestroyJavaVM): New function.
4612 (_Jv_JNI_AttachCurrentThread): New function.
4613 (_Jv_JNI_DetachCurrentThread): New function.
4614 (_Jv_JNI_GetEnv): New function.
4615 (JNI_CreateJavaVM): New function.
4616 (_Jv_JNI_GetJavaVM): New function.
4617 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4618 * include/jni.h (JavaVMAttachArgs): New structure.
4619 (JNI_EDETACHED): New define.
4620 (JNI_EVERSION): Likewise.
4621 (JavaVM): Define properly.
4622 (struct JNIInvokeInterface): New structure.
4623 (class _Jv_JavaVM): New class.
4624 (JNI_OnLoad, JNI_OnUnload): Declare.
4625 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4626 JNI_GetCreatedJavaVMs): Declare.
4627 (JavaVMInitArgs): New typedef.
4628 (JavaVMOption): Likewise.
4629 (JNI_ERR): New define.
4632 2000-02-10 Andrew Haley <aph@cygnus.com>
4634 * interpret.cc: Don't include fdlibm.h.
4635 Replace #if with #ifdef throughout.
4636 Declare extern __ieee754_fmod.
4637 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4639 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4640 Search class hierarchy for superclass vtable.
4642 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4643 off the end of a pointer list.
4645 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4649 2000-02-09 Tom Tromey <tromey@cygnus.com>
4651 * java/lang/natRuntime.cc (_load): Call add_library.
4652 (loadLibraryInternal): Likewise.
4654 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4655 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4656 (Output_iconv::finalize): Likewise.
4658 2000-02-08 Tom Tromey <tromey@cygnus.com>
4660 * java/util/Properties.java (setProperty): New method.
4661 (store): New method.
4663 2000-02-07 Tom Tromey <tromey@cygnus.com>
4665 * java/lang/Runtime.java (_load): Declare.
4666 (load, loadLibrary): Wrote in terms of _load.
4667 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4669 (loadLibrary): Likewise.
4671 (_load): New method.
4672 (loadLibrary, load): Removed.
4674 * jni.cc (ThrowableClass): New define.
4675 (_Jv_JNI_Throw): Check argument.
4676 (_Jv_JNI_ThrowNew): Likewise.
4677 (wrap_value): Don't wrap object if it is NULL.
4678 (_Jv_JNI_DefineClass): Use wrap_value.
4679 (_Jv_JNI_FindClass): Likewise.
4680 (_Jv_JNI_GetSuperclass): Likewise.
4681 (_Jv_JNI_ExceptionOccurred): Likewise.
4682 (_Jv_JNI_AllocObject): Likewise.
4683 (_Jv_JNI_GetObjectClass): Likewise.
4684 (_Jv_JNI_NewString): Likewise.
4685 (_Jv_JNI_NewStringUTF): Likewise.
4686 (_Jv_JNI_NewObjectArray): Likewise.
4687 (_Jv_JNI_GetObjectArrayElement): Likewise.
4688 (_Jv_JNI_NewPrimitiveArray): Likewise.
4689 (_Jv_JNI_ToReflectedField): Likewise.
4690 (_Jv_JNI_ToReflectedMethod): Likewise.
4691 (_Jv_JNI_AllocObject): Check argument.
4692 (_Jv_JNI_NewObjectV): Likewise.
4693 (_Jv_JNI_NewObject): Likewise.
4694 (_Jv_JNI_NewObjectA): Likewise.
4695 (_Jv_JNI_GetObjectClass): Likewise.
4696 (_Jv_JNI_GetField): Likewise.
4697 (_Jv_JNI_SetField): Likewise.
4699 * interpret.cc (PUSHL): Don't use expression statement.
4704 * jni.cc (add_char): Conditional on INTERPRETER.
4705 (mangled_name): Likewise.
4707 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4709 (class _Jv_JNIMethod): Likewise.
4711 2000-02-04 Warren Levy <warrenl@cygnus.com>
4713 * Makefile.am: Added MPN.java and BigInteger.java.
4714 * Makefile.in: Rebuilt.
4715 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4717 * java/math/BigInteger.java: New file. Based primarily on
4718 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4720 2000-02-04 Tom Tromey <tromey@cygnus.com>
4722 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4724 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4725 if the method is native.
4726 * resolve.cc (ncode): Don't handle native methods.
4727 (_Jv_JNIMethod::ncode): New method.
4728 (_Jv_PrepareClass): Handle native methods.
4729 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4730 Include AbstractMethodError.h.
4731 (add_char): New function.
4732 (mangled_name): Likewise.
4733 * include/java-interp.h (class _Jv_JNIMethod): New class.
4734 (class _Jv_MethodBase): New class.
4735 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4736 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4739 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4740 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4741 libraries): New globals.
4742 (add_library): New function.
4743 (_Jv_FindSymbolInExecutable): New function.
4745 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4748 2000-02-04 Andrew Haley <aph@cygnus.com>
4750 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4751 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4752 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4753 printStackTrace to printRawStackTrace.
4755 2000-02-03 Tom Tromey <tromey@cygnus.com>
4757 * java/util/Calendar.java (toString): New method.
4758 * java/util/SimpleTimeZone.java (clone): New method.
4759 (toString): New method.
4760 * java/util/TimeZone.java (clone): New method.
4761 * java/text/SimpleDateFormat.java (clone): New method.
4762 * java/text/NumberFormat.java (clone): New method.
4763 (equals): New method.
4764 * java/text/Format.java (clone): New method.
4765 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4767 (clone): New method.
4768 * java/text/DateFormat.java (clone): New method.
4769 * java/text/Collator.java (clone): New method.
4771 2000-02-03 Tom Tromey <tromey@cygnus.com>
4773 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4776 2000-02-01 Tom Tromey <tromey@cygnus.com>
4778 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4779 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4780 constructing the closure if the function is native.
4781 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4782 a template function, #if'd out, or static.
4783 Include <java-interp.h>.
4785 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4787 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4789 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4790 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4792 (wrap_value): New function.
4793 (_Jv_JNI_CallAnyMethodV): Use it.
4794 (_Jv_JNI_CallAnyMethodA): Likewise.
4795 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4796 (_Jv_JNI_GetStaticField): Likewise.
4798 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4799 (_Jv_JNI_GetStaticField): Likewise.
4801 2000-01-31 Tom Tromey <tromey@cygnus.com>
4803 * prims.cc (_Jv_MallocUnchecked): New function.
4804 (main_init): Call _Jv_JNI_Init.
4805 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4806 (_Jv_JNI_Init): Declare.
4807 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4809 (_Jv_JNI_NewGlobalRef): New function.
4810 (_Jv_JNI_DeleteGlobalRef): New function.
4811 (_Jv_JNI_DeleteLocalRef): New function.
4812 (_Jv_JNI_conversion_call): Initialize and clear local reference
4814 (_Jv_JNI_NewLocalRef): New function.
4815 (struct _Jv_JNI_LocalFrame): New structure.
4816 (_Jv_JNI_PushLocalFrame): New function.
4817 (_Jv_JNI_EnsureLocalCapacity): New function.
4818 (FRAME_SIZE): New define.
4819 (_Jv_JNI_GetStringChars): Mark string, not characters.
4820 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4821 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4822 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4824 (_Jv_JNI_DefineClass): Make return value a local ref.
4825 (_Jv_JNI_FindClass): Likewise.
4826 (_Jv_JNI_GetSuperclass): Likewise.
4827 (_Jv_JNI_ExceptionOccurred): Likewise.
4828 (_Jv_JNI_AllocObject): Likewise.
4829 (_Jv_JNI_GetObjectClass): Likewise.
4830 (_Jv_JNI_CallAnyMethodV): Likewise.
4831 (_Jv_JNI_NewString): Likewise.
4832 (_Jv_JNI_NewStringUTF): Likewise.
4833 (_Jv_JNI_NewObjectArray): Likewise.
4834 (_Jv_JNI_GetObjectArrayElement): Likewise.
4835 (_Jv_JNI_ToReflectedField): Likewise.
4836 (_Jv_JNI_ToReflectedMethod): Likewise.
4837 (_Jv_JNIFunctions): Updated table for new functions.
4838 (_Jv_JNI_Init): New function.
4839 (mark_for_gc): Wrote.
4840 (unmark_for_gc): Wrote.
4841 * include/jni.h (struct JNINativeInterface): Removed name from
4842 PopLocalFrame parameter.
4843 (class _Jv_JNIEnv): Added `locals' field.
4845 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
4847 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4850 2000-01-30 Tom Tromey <tromey@cygnus.com>
4852 * include/config.h.in: Rebuilt.
4853 * acconfig.h (HAVE_ICONV): Define.
4854 * configure: Rebuilt.
4855 * configure.in: Check for `iconv' function.
4856 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4857 no specific encoder exists.
4858 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4859 no specific encoder exists.
4860 * Makefile.in: Rebuilt.
4861 * Makefile.am (convert_source_files): Mention Input_iconv.java and
4863 (nat_source_files): Added natIconv.cc.
4864 * gnu/gcj/convert/natIconv.cc: New file.
4865 * gnu/gcj/convert/Input_iconv.java: New file.
4866 * gnu/gcj/convert/Output_iconv.java: New file.
4868 2000-01-28 Tom Tromey <tromey@cygnus.com>
4870 * Makefile.in: Rebuilt.
4871 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4873 2000-01-26 Tom Tromey <tromey@cygnus.com>
4875 * gcj/method.h (JvNumMethods): Moved from Class.h.
4876 (JvGetFirstMethod): Likewise.
4877 * java/lang/Class.h (Object): Updated decl of
4878 _Jv_JNI_ToReflectedField.
4879 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4880 * Makefile.in: Rebuilt.
4881 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4882 argument of _Jv_JNI_ToReflectedField.
4883 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4885 (java/lang/reflect/Method.h): Likewise.
4886 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
4888 (jweak): New typedef.
4889 (struct JNINativeInterface): Correctly declare remaining entries.
4890 * jni.cc: Include Class.h, ClassLoader.h.
4891 (_Jv_JNI_FindClass): New function.
4892 (_Jv_JNI_DefineClass): New function.
4893 (_Jv_JNI_conversion_call): New function.
4894 (_Jv_JNI_FindClass): Use current class loader to find class.
4895 (_Jv_JNI_ExceptionCheck): New function.
4896 (_Jv_JNI_FromReflectedField): Now static.
4897 (MethodClass): New define.
4898 (_Jv_JNI_FromReflectedMethod): New function.
4899 (_Jv_JNI_ToReflectedMethod): Likewise.
4901 (_Jv_JNI_IsAssignableFrom): Renamed.
4902 (_Jv_JNI_GetStringRegion): New function.
4903 Include StringIndexOutOfBoundsException.h.
4904 (_Jv_JNI_GetStringUTFRegion): New function.
4905 (_Jv_JNIFunctions): Updated for new functions.
4906 (_Jv_JNI_GetPrimitiveArrayCritical): New function
4907 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4908 (_Jv_JNI_GetStringCritical): New function.
4909 (_Jv_JNI_ReleaseStringCritical): Likewise.
4910 (get_throwable): Removed.
4911 (GCJ_JV_JNIENV_FRIEND): Removed.
4912 (__GCJ_JNI_IMPL__): Define.
4915 * resolve.cc (get_ffi_type_from_signature): Handle case where
4918 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
4920 * interpret.cc (run): Don't call println.
4921 Don't include PrintStream.h.
4923 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4924 nameIndex. Use "jint" as type for boffset.
4925 * java/lang/Class.h (struct _Jv_Method): Made accflags a
4927 (Class): Likewise. Also changed type of method_count,
4928 vtable_method_count, size_in_bytes, field_count,
4929 static_field_count, interface_count.
4930 * gcj/array.h (__JArray): Made `length' a const jsize, not an
4933 2000-01-21 Tom Tromey <tromey@cygnus.com>
4935 * java/lang/reflect/natConstructor.cc (newInstance): Use
4937 * include/jvm.h: Declare _Jv_CallAnyMethodA.
4938 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
4939 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
4942 (invoke): Use _Jv_CallAnyMethodA.
4944 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
4945 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
4947 (struct _Jv_Method): Added getNextMethod method.
4948 (JvNumMethods): New function.
4949 (JvGetFirstMethod): Likewise.
4950 * gcj/field.h (JvGetFirstStaticField): New function.
4951 (JvNumStaticFields): Likewise.
4952 (getNextField): Renamed from getNextInstanceField.
4953 (struct _Jv_Field): New method getClass.
4954 * jni.cc: Wrote many new functions.
4955 * include/jni.h (JNI_TRUE): Define.
4956 (JNI_FALSE): Likewise.
4957 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
4958 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
4959 jcharArray, jfloatArray, jdoubleArray): New typedefs.
4960 (jfieldID, jmethodID): Likewise.
4961 (JNI_COMMIT, JNI_ABORT): New defines.
4962 (JNINativeMethod): New struct.
4963 (struct JNINativeInterface): Correctly declared more entries.
4964 (class _Jv_JNIEnv): Added `ex' member.
4965 (JNI_VERSION_1_1): New define.
4966 (JNI_VERSION_1_2): Likewise.
4968 * boehm.cc (_Jv_MarkObj): Use getNextField, not
4969 getNextInstanceField.
4971 2000-01-20 Tom Tromey <tromey@cygnus.com>
4973 * resolve.cc (StringClass): Removed.
4974 * defineclass.cc (StringClass): Removed.
4976 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
4980 2000-01-19 Tom Tromey <tromey@cygnus.com>
4982 * interpret.cc (PC_REGISTER_ASM): Removed.
4984 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
4985 From Bryce McKinlay.
4987 * All files: Updated copyright to reflect Cygnus purchase.
4989 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
4991 * configure: Rebuilt.
4992 * configure.in: Recognize --disable-interpreter.
4994 2000-01-18 Andrew Haley <aph@cygnus.com>
4996 * name-finder.cc (lookup): Check for dladdr function.
4997 acconfig.h (HAVE_DLADDR): Add.
4998 configure.in: Check for HAVE_DLADDR
5000 include/config.h.in: Rebuilt.
5002 2000-01-17 Andrew Haley <aph@cygnus.com>
5004 * prims.cc (_Jv_RunMain): Set the name of this executable.
5006 2000-01-17 Tom Tromey <tromey@cygnus.com>
5008 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5009 when backtrace can't be computed.
5011 * configure: Rebuilt.
5012 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5014 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5015 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5016 (_Jv_FindClassInCache): Likewise.
5017 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5018 (findSystemClass): Try to load class from compiled module.
5020 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5021 (loadLibrary): Likewise.
5022 (lt_preloaded_symbols): Define.
5023 (loadLibraryInternal): New method.
5024 * include/config.h.in: Rebuilt.
5025 * acconfig.h (USE_LTDL): Added.
5026 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5027 (INCLUDES): Added $(INCLTDL).
5028 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5029 (libgcj_la_LIBADD): Likewise.
5030 * aclocal.m4, configure: Rebuilt.
5031 * configure.in: Added libltdl support.
5033 2000-01-15 Tom Tromey <tromey@cygnus.com>
5035 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5037 2000-01-14 Andrew Haley <aph@cygnus.com>
5039 * java/lang/natThrowable.cc: New file.
5041 * java/lang/Throwable.java (fillInStackTrace): Make native.
5042 (printStackTrace): Call native method to do this.
5043 (Throwable): Call fillInStackTrace.
5044 (stackTrace): New variable.
5046 * include/jvm.h: Add _Jv_ThisExecutable functions.
5048 * prims.cc: (_Jv_execName): New variable.
5049 (catch_segv): Call fillInStackTrace.
5051 (_Jv_ThisExecutable): New functions.
5052 (JvRunMain): Set the name of this executable.
5054 * Makefile.am: Add java/lang/natThrowable.cc.
5056 * Makefile.in: Rebuilt.
5058 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5060 * configure.in: Force link with __frame_state_for in
5061 FORCELIBGCCSPEC. Add new checks for backtrace.
5062 * include/config.h.in: Rebuilt.
5064 * name-finder.cc: New file.
5065 * include/name-finder.h: New file.
5067 2000-01-16 Anthony Green <green@cygnus.com>
5069 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5072 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5074 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5076 2000-01-13 Tom Tromey <tromey@cygnus.com>
5078 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5079 not system loader, as initiating loader.
5081 2000-01-11 Tom Tromey <tromey@cygnus.com>
5083 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5084 HP/UX. From David Scott Urban.
5086 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5088 * java/lang/natMath.cc (pow): Cast args to `double', not
5091 (IEEEremainder): Likewise.
5092 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5093 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5095 2000-01-09 Anthony Green <green@cygnus.com>
5097 * java/lang/natString.cc (init): Test for overflow condition
5098 during out of bounds check.
5099 (getChars): Throw StringIndexOutOfBoundsException, not
5100 ArrayIndexOutOfBoundsException.
5102 (regionMatches): Obey case option during string comparison.
5104 * configure.host (ligcj_interpreter): New variable. Enable
5105 interpreter by default on IA-32.
5106 * configure.in: Examine libgcj_interpreter.
5107 * configure: Rebuilt.
5109 2000-01-07 Tom Tromey <tromey@cygnus.com>
5111 * mauve-libgcj: Don't disable ClassTest.
5113 * java/lang/natClass.cc (getClasses): Wrote.
5115 2000-01-06 Tom Tromey <tromey@cygnus.com>
5117 * java/lang/natClass.cc (_getConstructors): Correctly check
5118 whether method name is the init name.
5119 (getMethod): Look at accflags on method in `klass', not `this'.
5121 2000-01-05 Tom Tromey <tromey@cygnus.com>
5123 * java/lang/natClass.cc (getMethod): Compute offset relative to
5124 `klass's methods table, not `this's table.
5126 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5127 In unwrapping/widening case, check whether `k' is null, not
5128 whether it is primitive. Initialize `num' from `argelts', not
5129 `paramelts'. Correct create and pass arguments to ffi_call.
5130 Don't let presence of `this' argument affect index used to look in
5132 (COPY): Set appropriate element in `values' vector.
5134 * java/lang/natClass.cc: Include <gcj/method.h>.
5136 * java/lang/Class.h (_getMethods): Correctly declare as private,
5139 * java/lang/Class.h (_getMethods): Declare.
5140 * java/lang/Class.java (_getMethods): Declare.
5141 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5142 (getDeclaredClasses): Always return empty array.
5143 (_getMethods): New method.
5144 (getMethods): Wrote.
5145 (getDeclaredMethod): Return `rmethod'.
5146 (finit_name): New global.
5147 (getDeclaredMethods): Check for finit_name.
5148 (_getMethods): Likewise.
5149 (getMethod): Only return public methods.
5151 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5152 jboolean and select correct ffi type on that basis.
5153 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5154 Constructor call always has `void' return type.
5156 2000-01-04 Tom Tromey <tromey@cygnus.com>
5158 * java/lang/Class.h (getSignature): Updated.
5159 * java/lang/Class.java (getSignature): Updated.
5160 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5162 (getConstructor): Ensure constructor is public.
5163 (_getConstructors): Check for public-ness of constructor when
5164 `declared' is false, not when it is true.
5166 2000-01-04 Warren Levy <warrenl@cygnus.com>
5168 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5170 (receive): Set the sender's address in the DatagramPacket.
5172 2000-01-04 Tom Tromey <tromey@cygnus.com>
5174 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5175 declaring class as return_type argument to
5176 _Jv_CallNonvirtualMethodA.
5177 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5178 constructor case, create object and use it as `this' argument.
5179 * java/lang/Class.h (_getConstructors): Declare.
5180 (_getFields): Declare.
5181 * java/lang/Class.java (getConstructors): Wrote.
5182 (_getConstructors): New native method.
5183 (getDeclaredConstructors): Wrote.
5184 (_getFields): Declare new native method.
5185 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5187 (getMethod): Work correctly when class is primitive.
5188 (getDeclaredMethods): Likewise. Compute offset using `method',
5190 (getDeclaredMethod): Likewise.
5191 (getConstructor): Wrote.
5192 (ConstructorClass): New define.
5193 (getDeclaredConstructor): Wrote.
5194 (_getConstructors): New method.
5195 (_getFields): New method.
5198 * Makefile.in: Rebuilt.
5199 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5201 * prims.cc: Remove `#pragma implementation'.
5202 * gcj/array.h: Remove `#pragma interface'.
5204 * prims.cc (_Jv_equaln): New function.
5205 * java/lang/Class.java (getSignature): Declare.
5206 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5207 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5209 (getSignature): New method.
5210 (getDeclaredMethod): Wrote.
5212 Include StringBuffer.h.
5213 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5214 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5216 (getSignature): Declare.
5217 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5218 (_Jv_equaln): Declare.
5219 (_Jv_CallNonvirtualMethodA): Declare.
5220 * Makefile.in: Rebuilt.
5221 * Makefile.am (nat_source_files): Added natConstructor.cc.
5222 (java/lang/reflect/Constructor.h): New target.
5223 * java/lang/reflect/natConstructor.cc: New file.
5224 * java/lang/reflect/Constructor.java (newInstance): Now native.
5225 (declaringClass): Renamed from decl_class.
5226 (offset): Renamed from index.
5227 (getType): New native method.
5228 (getModifiers): Now native.
5229 (getParameterTypes): Call getType if required.
5230 (hashCode): Include hash code from declaring class.
5231 (modifiers): Removed.
5232 (toString): Call getType if required.
5233 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5234 * java/lang/reflect/natMethod.cc (hack_call): New method.
5235 Removed `#if 0' around FFI code.
5236 Include <gnu/gcj/RawData.h>.
5237 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5238 IllegalArgumentException when argument object and class disagree.
5239 (_Jv_GetTypesFromSignature): New function.
5241 (ObjectClass): New define.
5242 (_Jv_CallNonvirtualMethodA): New function.
5243 * java/lang/reflect/Method.java (hack_trampoline): New method.
5244 (hack_call): New native method.