1 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/util/TreeSet.java (clone): Made subclass safe, use
4 super.clone(), not new.
5 * java/util/TreeMap.java (clone): Likewise.
7 * java/util/TreeMap.java (nil): Made non-final.
8 (clone): Create new nil node for copy.
10 2001-02-14 Andrew Haley <aph@redhat.com>
12 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
15 2001-02-15 Anthony Green <green@redhat.com>
17 * defineclass.cc: Don't include alloca.h.
18 (prepare_pool_entry): Convert alloca to __builtin_alloca.
19 * interpret.cc (run_normal): Ditto.
21 * java/lang/natDouble.cc (parseDouble): Ditto.
23 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
25 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
27 * java/util/Collections.java (ReverseComparator): New static class.
28 (reverseOrder): Return static instance of ReverseComparator.
30 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
31 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
32 Rectangle.clone(), not Object.clone().
34 * java/util/HashSet.java (clone): Remove try/catch.
36 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
37 * java/util/Collection.java: Likewise.
38 * java/util/Comparator.java: Likewise.
39 * java/util/Dictionary.java: Likewise.
40 * java/util/Iterator.java: Likewise.
41 * java/util/ListIterator.java: Likewise.
42 * java/util/Map.java: Likewise.
43 * java/util/Set.java: Likewise.
45 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
47 * java/util/TreeMap.java: New file.
48 * java/util/TreeSet.java: New file.
49 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
50 * Makefile.in: Rebuilt.
51 * java/util/HashSet.java (clone): Use constructor instead of calling
53 * java/util/SortedSet.java: Sync with classpath.
54 * java/util/HashMap.java (hash): Use if statement instead of ternary,
57 * java/lang/natClass.cc (getSignature): Don't try to dereference
58 param_types if it is null. Instead, take this to mean "no parameters".
59 * java/lang/TreeMap.java (TreeIterator.next): Throw
60 NoSuchElementException in preference to ConcurrentModificationException.
61 (TreeIterator.remove): Throw IllegalStateException in preference to
62 ConcurrentModificationException.
63 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
64 throw a NoSuchElementException.
65 (SubMap.lastKey): Likewise.
67 2001-02-13 Tom Tromey <tromey@redhat.com>
69 * java/io/PipedReader.java (ready): Throw IOException if pipe
71 * java/io/FilterReader.java (close): Don't clear `in'.
72 * java/io/CharArrayReader.java (mark): Throw IOException if stream
74 (read, ready, reset, skip): Added exception message.
75 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
76 Perform checkStatus check inside synchronized block.
78 2001-02-13 Tom Tromey <tromey@redhat.com>
80 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
82 2001-02-13 Tom Tromey <tromey@redhat.com>
84 Fix for PR libgcj/1351:
85 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
87 Include Thread.h and InterruptedIOException.h.
89 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
91 * java/io/BlockDataException.java: Removed.
92 * java/io/ObjectInputStream.java (readObject): Throw
93 StreamCorruptedException, not BlockDataException.
94 * Makefile.am: Remove BlockDataException.
95 * Makefile.in: Rebuild.
97 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
98 Tom Tromey <tromey@redhat.com>
100 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
103 2001-02-09 Tom Tromey <tromey@redhat.com>
105 * java/util/Timer.java: New version from Classpath.
107 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
109 * java/lang/Double.java (doubleToRawLongBits): Now native.
110 * java/lang/Float.java (floatToRawIntBits): Likewise.
111 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
112 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
114 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
116 * java/io/File.java (java.net): Imported.
117 (getAbsoluteFile): Added.
118 (getCanonicalPath): Likewise.
121 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
123 * java/lang/Byte.java: Remove redundant instanceof and null checks.
124 * java/lang/Integer.java: Likewise.
125 * java/lang/Long.java: Likewise.
126 * java/lang/Short.java: Likewise.
127 * java/lang/Double.java: Likewise.
128 (doubleToRawLongBits): New method.
129 * java/lang/Float.java: As above.
130 (floatToRawIntBits): New method.
132 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
133 IOException if stream closed.
135 2001-02-08 Tom Tromey <tromey@redhat.com>
137 * java/lang/Float.java (parseFloat): New method.
139 2001-02-08 Tom Tromey <tromey@redhat.com>
141 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
142 * java/io/InputStreamReader.java (ready, read): Throw IOException
143 if stream has been closed.
145 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
147 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
148 Change sources.redhat.com and sourceware.cygnus.com references to
151 2001-02-07 Tom Tromey <tromey@redhat.com>
153 Fix for PR libgcj/1906:
154 * java/text/MessageFormat.java (setLocale): Use named class
157 (format(Object,StringBuffer,FieldPosition)): Special case if
158 argument is an Object[].
160 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
162 * java/util/Arrays.java: Removed "cmp" methods.
163 (qsort): Don't use "cmp".
166 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
168 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
169 sort. Fix for PR java/1895.
171 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
173 * configure.host: Use sjlj-exceptions for Alpha.
175 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
177 * libgcj.spec.in: Don't force static libgcc into the executable.
178 * configure.in (FORCELIBGCCSPEC): Removed.
179 * configure: Rebuilt.
181 2001-01-31 Tom Tromey <tromey@redhat.com>
183 * Makefile.in: Rebuilt.
184 * Makefile.am (LTCXXCOMPILE): New macro.
186 2001-01-26 Andrew Haley <aph@redhat.com>
188 (INIT_FPE): Use a direct system call to set the handler.
190 2001-01-27 Richard Henderson <rth@redhat.com>
192 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
194 2001-01-27 Tom Tromey <tromey@redhat.com>
196 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
197 native interface structure.
199 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
201 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
203 (read (byte[], int, int)): Only call readNextBlock() if the block
204 buffer would actually be overrun. Increment blockDataPosition.
205 (callReadMethod): Propagate exceptions from invocation target.
206 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
207 exceptions from invocation target.
209 2001-01-26 Tom Tromey <tromey@redhat.com>
211 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
212 to internal representation.
213 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
214 _Jv_FindClassFromSignature.
216 2001-01-26 Warren Levy <warrenl@redhat.com>
218 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
219 and timezone if they are available on the system.
221 2001-01-24 Tom Tromey <tromey@redhat.com>
223 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
225 2001-01-24 Tom Tromey <tromey@redhat.com>
227 * Makefile.in: Rebuilt.
228 * Makefile.am (c_source_files): Added sf_fabs.c.
229 * java/lang/sf_fabs.c: New file.
231 2001-01-19 Warren Levy <warrenl@redhat.com>
233 * java/text/SimpleDateFormat.java (format): Compute hour for cases
234 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
235 correctly. Adjust properly from 0-23 clock hour.
237 2001-01-17 Mark Wielaard <mark@klomp.org>
239 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
241 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
243 * java/lang/Class.h (isInterface): Move implementation from
244 natClass.cc. Declare inline.
245 (Class): Add default constructor.
246 * java/lang/Object.h: Update comments.
247 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
248 initialize superclass, saving a call if super is already initialized.
250 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
252 * prims.cc (init_prim_class): Deleted.
253 (DECLARE_PRIM_TYPE): Rewritten.
254 * java/lang/Class.h (stdio.h): Include removed.
255 (stddef.h): Included.
256 (java/lang/reflect/Modifier.h): Likewise.
257 (Class): Contructor now takes arguments, initializes fields.
258 (initializePrim): Prototype deleted.
259 * java/lang/natClass.cc (initializePrim): Deleted.
261 2001-01-16 Warren Levy <warrenl@redhat.com>
263 * java/math/BigInteger.java: Update Copyright year.
265 2001-01-16 Hans Boehm <hans_boehm@hp.com>
267 * java/math/BigInteger.java (setShiftRight): Only do negative shift
270 2001-01-14 Mark Wielaard <mark@klomp.org>
271 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
272 (decode): Merge comments with Classpath, don't throw Exception
274 2001-01-12 Tom Tromey <tromey@redhat.com>
276 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
280 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
281 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
282 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
283 * gnu/awt/gtk/GtkLabelPeer.java: New file.
284 * gnu/awt/gtk/GtkButtonPeer.java: New file.
286 * java/lang/natSystem.cc: Include locale.h if it exists.
287 * configure: Rebuilt.
288 * configure.in: Check for locale.h.
290 2001-01-11 Tom Tromey <tromey@redhat.com>
292 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
293 (Cursor(int), getPredefinedCursor): Throw exception if argument
296 2001-01-03 Tom Tromey <tromey@redhat.com>
298 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
299 (getLocationOnScreen): Wrote.
301 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
303 * Makefile.am: Re-enable dependencies.
304 * Makefile.in: Rebuilt.
306 2001-01-10 Warren Levy <warrenl@redhat.com>
308 * java/math/BigDecimal.java (divide): Fixed comment.
310 2001-01-10 Warren Levy <warrenl@redhat.com>
312 Fix for PR libgcj/1596:
313 * java/math/BigDecimal.java (divide): Check newScale for validity.
314 Ensure that BigInteger.pow() is called with a non-negative value.
315 (setScale (int)): New public method.
316 (setScale (int,int)): New public method.
318 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
320 Fix for PR libgcj/1338:
321 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
322 commentChar. Fixed typos in comments.
324 2001-01-08 Warren Levy <warrenl@redhat.com>
326 Fix for PR libgcj/1411:
327 * Makefile.am: Removed java/util/natTimeZone.cc.
328 * Makefile.in: Rebuilt.
329 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
330 missing localized timezone names.
331 * java/lang/System.java (getDefaultTimeZoneId): New private method.
332 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
333 (init_properties): Set user.timezone property.
334 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
335 default timezone names; removed non-standard ones. Use standard
337 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
339 * java/util/TimeZone.java: Add standard ID names per JCL; removed
341 (getDefaultTimeZoneId): Removed.
343 * java/util/natTimeZone.cc: Removed.
345 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
347 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
348 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
349 (_Jv_GetArrayClass): New inline function.
350 (arrayclass): New field.
351 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
352 _Jv_GetArrayElementFromElementType.
353 (_Jv_NewPrimArray): Ditto.
354 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
355 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
356 Set Modifier::ABSTRACT.
357 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
358 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
359 Now synchronized. Array classes are now referenced from
360 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
361 Set array classes' accessibility flags correctly. Optimize so that
362 all array classes share the same IDT.
363 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
364 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
365 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
366 in superclasses from overwriting classes own fields.
367 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
368 Modifier::isAbstract().
369 (null_idt): New static field.
370 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
372 (_Jv_IndexOf): Made inline.
373 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
375 2001-01-08 Tom Tromey <tromey@redhat.com>
377 Fix for PR java/1586:
378 * Makefile.in: Rebuilt.
379 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
381 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
383 * Makefile.am: Use the new "-M -MF" option for generating dependencies
384 from the c++ compiler.
385 * Makefile.in: Rebuilt.
387 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
389 All files with updated copyright.
390 * prims.cc (class _Jv_PrimClass): Removed.
391 (init_prim_class): New function.
392 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
393 `_Jv_PrimClass' in primitive type declarations. Assign to the
394 value returned by `init_prim_class.'
395 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
396 primitive type declarations.
397 (JvPrimClass): Cast to `jclass' removed.
398 * java/lang/Class.h (Class): New constructor.
399 (Class): New copy constructor.
400 (initializePrim): New prototype.
401 (_Jv_PrimClass): Field removed.
402 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
403 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
404 (class java::lang::Object): `finalize' moved up front.
405 * java/lang/natClass.cc
406 (isAssignableFrom): Turned outline.
407 (isInstance): Likewise.
408 (isInterface): Likewise, fixed indentation.
409 (initializePrim): New function.
411 2001-01-07 Anthony Green <green@redhat.com>
413 * Makefile.am (texinfo): Add texinfo target for generating texinfo
415 * Makefile.in: Rebuilt.
417 * scripts/TexinfoDoclet.java: New file.
419 * doc/java-applet.texi, doc/java-lang-reflect.texi,
420 doc/java-awt-color.texi, doc/java-lang.texi,
421 doc/java-awt-datatransfer.texi, doc/java-math.texi,
422 doc/java-awt-event.texi, doc/java-net.texi,
423 doc/java-awt-geom.texi, doc/java-security-spec.texi,
424 doc/java-awt-image.texi, doc/java-security.texi,
425 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
426 doc/java-text.texi, doc/java-beans-beancontext.texi,
427 doc/java-util-jar.texi, doc/java-beans.texi,
428 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
429 doc/java-lang-ref.texi: New files.
431 2001-01-07 Anthony Green <green@redhat.com>
433 * java/net/URLConnection.java (setDoOutput): URLConnection's may
434 be used for both input and output, so don't clear doInput.
436 * java/lang/StringBuffer.java: Fix comments.
438 2001-01-06 Anthony Green <green@redhat.com>
440 * java/beans/PropertyDescriptor.java: Fix comment.
441 * java/io/PushbackReader.java: Fix comment.
442 * java/io/ObjectStreamClass.java: Fix comment.
443 * java/io/DataInputStream.java: Fix comment.
444 * java/io/PipedInputStream.java: Fix comments.
445 * java/io/PipedReader.java: Fix comments.
446 * java/sql/DatabaseMetaData.java: Fix comments.
448 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
450 * java/io/PipedReader: Synchronize on "lock" instead of this.
452 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
454 * java/lang/Thread.java: Update comment.
456 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
457 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
458 * java/io/PipedReader: New implementation based on new
460 * java/io/PipedWriter: Updated to match new PipedReader.
462 2001-01-03 Tom Tromey <tromey@redhat.com>
464 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
465 (getViewportSize): Insets include scrollbar size.
466 (doLayout): Finished.
467 (getScrollPosition): Wrote.
468 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
470 2001-01-02 Tom Tromey <tromey@redhat.com>
472 * java/awt/ScrollPane.java: Wrote.
473 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
476 * java/awt/Panel.java (Panel()): Fixed.
478 * java/awt/Component.java (isShowing): Return false if no peer
479 exists, and true if component is visible and no parent exists.
480 (getLocationOnScreen): Wrote.
481 (getPreferredSize): Removed FIXME comment.
482 (getMinimumSize): Likewise.
483 (getAlignmentX, getAlignmentY): Wrote.
485 (requestFocus): Wrote.
486 (transferFocus): Wrote.
487 (findNextFocusComponent): New method.
490 (enableEvents): Call setEventMask on the peer.
492 * java/awt/Container.java (list): Use super.list() to print self.
493 (findNextFocusComponent): New method.
494 (setLayout): Call invalidate.
495 (findComponentAt): Wrote.
497 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
499 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
500 the correct versions of various linuxthreads functions get linked.
501 * Makefile.in: Rebuilt.
502 * java/lang/natThread.cc (finalize_native): New static function. Call
503 _Jv_ThreadDestroyData.
504 (initialize_native): Register finalizer for "data".
505 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
506 (_Jv_ThreadDestroyData): New prototype.
507 * include/win32-threads.h: Ditto.
508 * include/no-threads.h: Ditto.
509 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
510 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
511 move mutex and condition variable destroy code from:
512 (really_start): ...here.
513 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
514 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
515 (_Jv_ThreadDestroyData): Implemented.
516 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
517 (_Jv_AllocArray): Ditto.
519 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
521 * java/sql/DriverManager.java (getConnection): Don't set user/password
524 2000-12-27 Warren Levy <warrenl@redhat.com>
526 Fix for PR libgcj/1358:
527 * java/lang/System.java: Update Copyright date properly.
528 * java/util/Calendar.java: Fix typo in comment.
529 (set): Set 24-hour clock hour instead of 12-hour clock hour.
530 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
531 initialize times. Spec says to set H:M:S values to zero only if
533 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
534 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
535 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
536 timezones and GMT offsets, being careful to account for units of
537 milliseconds vs. seconds.
539 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
541 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
542 not be assigned to Object.
544 Fix for PR libgcj/1516:
545 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
547 (can_widen): Declared inline. Remove redundant checks for void
548 arguments and char->short conversion. Add special case for boolean
550 (ffi_type): Declared inline.
551 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
553 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
555 * java/sql/SQLWarning.java: Fixed typo in comment.
557 2000-12-26 Tom Tromey <tromey@redhat.com>
559 * java/awt/MenuItem.java (paramString): Now protected.
561 * java/awt/MenuShortcut.java: Implements Serializable.
563 * java/awt/MenuBar.java: Rewrote from scratch.
565 * java/awt/MenuComponent.java (removeNotify): Wrote.
566 Implements Serializable.
568 * java/awt/GridBagConstraints.java (GridBagConstraints): New
571 * java/awt/CheckboxMenuItem.java: Wrote.
573 2000-12-25 Tom Tromey <tromey@redhat.com>
575 * java/awt/MenuContainer.java: Fixed typo.
577 * Makefile.in: Rebuilt.
578 * Makefile.am (awt_java_source_files): Added SystemColor.java.
579 * java/awt/SystemColor.java: New file.
581 * java/awt/Color.java (rgba): Now package-private.
583 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
585 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
588 * java/awt/MenuItem.java (addNotify): New method.
589 (MenuItem(String,MenuShortcut)): New constructor.
590 (setLabel): Notify peer of change.
591 (setEnabled): Likewise.
593 * java/awt/GridLayout.java (toString): New method.
595 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
596 (FlowLayout): Check for LEADING and TRAILING.
597 (setAlignment): Likewise.
598 (layoutContainer): Handle component orientation.
600 * java/awt/Component.java (orientatin): New field.
601 (setComponentOrientation): Wrote.
602 (getComponentOrientation): Wrote.
604 * java/awt/Event.java (Event): Implements Serializable.
605 (consumed): New field for serialization.
606 * java/awt/Dimension.java (Dimension): Implements Serializable.
607 * java/awt/Cursor.java (Cursor): Implements Serializable.
608 * java/awt/Container.java (Container): No longer abstract.
610 * java/awt/Choice.java: Wrote.
611 * java/awt/Checkbox.java: Wrote.
612 * java/awt/ItemSelectable.java: Documented.
613 * java/awt/CheckboxGroup.java: Wrote.
615 * java/awt/CardLayout.java (layoutContainer): Directly use fields
619 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
621 * java/io/FileDescriptor.java: Initialize fd to -1.
622 Remove default constructor.
624 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
626 * java/lang/mprec.h: Change C9X reference to refer to C99.
628 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
630 * java/lang/Throwable.java (trace_enabled): New static field.
631 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
632 trace_enabled not set.
633 * prims.cc (main_init): Turn off trace_enabled while creating
634 default exception objects.
636 2000-12-21 Tom Tromey <tromey@redhat.com>
638 * java/beans/PropertyChangeListener.java: Extends EventListener.
639 * java/beans/VetoableChangeListener.java: Extends EventListener.
641 * java/util/zip/Deflater.java (update, init): Now private.
643 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
645 * java/util/BasicMapEntry.java: Re-added.
646 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
647 (putAll): Test for BasicMapEntry.
648 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
649 (putAll): Test for BasicMapEntry.
650 Change references from `HashMap.Entry' to `Entry' in various places.
651 * Makefile.am: Add BasicMapEntry.java.
652 * Makefile.in: Rebuilt.
654 2000-12-18 Warren Levy <warrenl@redhat.com>
656 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
657 need to set timezone to a valid non-null value. Partial fix for
660 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
662 * java/awt/Window.java (addNotify): Remove peer casting hack now that
664 * java/awt/Button.java (addNotify): Likewise.
665 * java/awt/Label.java (addNotify): Likewise.
666 * java/awt/Panel.java (addNotify): Likewise.
667 * java/awt/Scrollbar.java (addNotify): Likewise.
668 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
669 Remove redundant null checks.
671 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
673 * COPYING: Update to current
674 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
675 to 19yy as example year in copyright notice).
677 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
679 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
680 end-of-stream if avail_in is 0.
682 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
684 * java/util/ArrayList.java (data): Declare transient.
685 (serialPersistantFields): Removed.
686 (readObject): Use defaultReadObject(), not readFields().
687 (writeObject): Use defaultWriteObject(), not writeFields().
689 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
691 * java/util/Hashtable.java (put): Remove `last' variable.
692 Link new entry to head of list.
693 * java/util/HashMap.java (put): Ditto.
695 2000-12-15 Tom Tromey <tromey@redhat.com>
697 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
698 loader to Class.forName.
700 2000-12-14 Tom Tromey <tromey@redhat.com>
702 * java/util/ResourceBundle.java
703 (getBundle(String,Locale,ClassLoader)): New method.
704 (trySomeGetBundle): Added `loader' argument.
705 (partialGetBundle): Likewise.
707 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
708 maximumFractionDigits, maximumIntegerDigits,
709 minimumFractionDigits, minimumIntegerDigits): Now
712 * java/lang/Thread.java (checkAccess): Now final.
714 * java/lang/RuntimePermission.java: Class now final.
716 * java/io/StringWriter.java (StringWriter(int)): Now public.
718 * java/io/SerializablePermission.java (legal_names): Now private.
720 * java/lang/Character.java: Updated UnicodeBlock constants.
721 * scripts/blocks.pl: Special case private use and surrogate
724 2000-12-12 Tom Tromey <tromey@redhat.com>
726 * Makefile.in: Rebuilt.
727 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
729 (GCJCOMPILE): Use it.
732 2000-12-11 Tom Tromey <tromey@redhat.com>
734 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
735 New static final fields.
737 * scripts/classes.pl (scan): Skip lines with leading `*'.
738 Fix for PR libgcj/378.
740 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
742 * configure.in: Remove check for -fuse-divide-subroutine.
743 * configure: Rebuilt.
745 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
747 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
749 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
751 * Makefile.am: Add HashSet.java and java/lang/ref classes.
752 Remove BasicMapEntry.java and Bucket.java.
753 * Makefile.in: Rebuilt.
754 * java/util/HashMap.java: Rewritten.
755 * java/util/HashSet.java: Imported from classpath.
756 * java/util/WeakHashMap.java: Imported from classpath.
757 * java/util/Hashtable.java: Rewritten based on new HashMap code.
758 * java/util/Bucket.java: Deleted.
759 * java/util/BasicMapEntry.java: Deleted.
760 * java/util/Collections.java (search): Use a for-loop, not iterator
762 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
763 of elements in source.
764 (max): Use a for-loop.
766 (reverse): Keep track of positions instead of using Iterator's
767 nextIndex() and previousIndex().
768 (shuffle(List)): Initialize defaultRandom if required using
769 double-check thread safety idiom. Call two-argument shuffle method
771 (defaultRandom): New field.
772 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
773 using previousIndex() and nextIndex().
774 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
775 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
776 * java/util/AbstractMap.java (toString): Use StringBuffer.
777 * java/lang/ref/PhantomReference.java: Imported from classpath.
778 * java/lang/ref/SoftReference.java: Ditto.
779 * java/lang/ref/Reference.java: Ditto.
780 * java/lang/ref/WeakReference.java: Ditto.
781 * java/lang/ref/ReferenceQueue.java: Ditto.
783 2000-12-10 Richard Henderson <rth@redhat.com>
785 * configure.host: Recognize alpha*-*, not alphaev6-*.
787 2000-12-09 Anthony Green <green@redhat.com>
789 * configure.host: Enable interpreter for Alpha.
791 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
793 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
794 (ZIP): Points at fastjar instead of zip.
795 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
796 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
797 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
798 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
799 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
800 ($(x_java_source_files:.java=.class):): Likewise.
801 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
803 (CLEANFILES): libgcj.jar replaces libgcj.zip.
804 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
805 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
806 java/lang/String.h:, java/lang/reflect/Constructor.h:,
807 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
808 gnu/gcj/runtime/VMClassLoader.h:,
809 java/io/ObjectInputStream$$GetField.h:,
810 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
811 (Makefile.in): Rebuilt.
813 2000-12-08 Tom Tromey <tromey@redhat.com>
816 * configure: Rebuilt.
817 * configure.in: Use echo, not `:', to create .d files.
819 2000-12-08 Warren Levy <warrenl@redhat.com>
821 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
822 NullPointerException so proper check of offset can be done.
824 2000-12-08 Warren Levy <warrenl@redhat.com>
826 * java/io/FileInputStream.java (close): Check if the fd is valid.
827 * java/io/RandomAccessFile.java (close): Ditto.
828 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
829 * java/net/PlainSocketImpl.java (close): Ditto.
831 2000-12-06 Tom Tromey <tromey@redhat.com>
833 * java/awt/GridBagConstraints.java: Filled in values for static
836 * java/util/BitSet.java: Updated copyright notice.
838 * Makefile.in: Rebuilt.
839 * Makefile.am (awt_java_source_files): Added new file.
840 * java/awt/GridBagConstraints.java: New file.
842 2000-12-05 Tom Tromey <tromey@redhat.com>
844 * java/text/Collator.java (decomposeCharacter, decmp, strength):
845 Now package-private, not protected.
846 * java/text/DateFormatSymbols.java (equals): Now private.
847 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
848 * java/util/BitSet.java: Class no longer final.
850 2000-12-04 Warren Levy <warrenl@redhat.com>
852 * java/util/TimeZone.java (getAvailableIDs): Activated commented
853 out code dependent on compiler and library changes.
855 2000-12-04 Warren Levy <warrenl@redhat.com>
857 * java/io/FilePermission.java: Made class final per spec.
858 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
859 method name to match spec (fixed typo).
860 * java/util/LinkedList.java: Implements List.
862 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
864 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
865 Edgar Villanueva <edgarvil@home.com>.
867 2000-12-03 Tom Tromey <tromey@redhat.com>
869 * java/awt/geom/Point2D.java: Added protected constructor.
870 (equals): New method.
871 (Float.setLocation(float,float)): New method.
872 * java/awt/geom/Dimension2D.java: Added protected constructor.
873 * java/awt/geom/AffineTransform.java: Made all constants public.
874 (concatenate): Fixed typo in name.
875 * java/awt/event/WindowAdapter.java: Class now abstract.
876 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
877 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
880 * java/awt/AWTError.java: Extend Error, not
881 IllegalStateException.
883 * Makefile.in: Rebuilt.
884 * Makefile.am (awt_java_source_files): Added new file.
885 * java/awt/geom/RoundRectangle2D.java: New file.
887 * Makefile.in: Rebuilt.
888 * Makefile.am (awt_java_source_files): Added new file.
889 * java/awt/FlowLayout.java: New file.
891 * Makefile.in: Rebuilt.
892 * Makefile.am (awt_java_source_files): Added new file.
893 * java/awt/GridLayout.java: New file.
895 2000-12-02 Tom Tromey <tromey@redhat.com>
897 * Makefile.in: Rebuilt.
898 * Makefile.am (awt_java_source_files): Added new files.
899 * java/awt/CardLayout.java: New file.
900 * java/awt/AWTPermission.java: New file.
902 2000-12-01 Tom Tromey <tromey@redhat.com>
904 * java/util/Vector.java (insertElementAt): Unconditionally
905 increment elementCount.
906 (removeRange): Clear unused slots in vector.
908 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
910 * java/lang/natMath.cc: Declare fabsf() function.
911 * java/lang/mprec.h: Don't include math.h.
912 * java/lang/dtoa.c: Include string.h.
913 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
916 From Adam Welc <welc@cs.purdue.edu>:
917 * java/util/LinkedList.java (removeFirst): Update `first' field.
918 Handle the last == first case.
919 (removeLast): Update `last' field. Handle the last == first case.
921 2000-12-01 Warren Levy <warrenl@cygnus.com>
923 * Makefile.am: Added entries for new java.sql modules.
924 * Makefile.in: Rebuilt.
926 2000-12-01 Warren Levy <warrenl@cygnus.com>
928 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
929 that aren't quite 1.2 compatible yet.
931 2000-11-30 Warren Levy <warrenl@cygnus.com>
933 * java/sql/Array.java: New file from classpath.
934 * java/sql/BatchUpdateException.java: Ditto.
935 * java/sql/Blob.java: Ditto.
936 * java/sql/Clob.java: Ditto.
937 * java/sql/Ref.java: Ditto.
938 * java/sql/SQLData.java: Ditto.
939 * java/sql/SQLInput.java: Ditto.
940 * java/sql/SQLOutput.java: Ditto.
941 * java/sql/Struct.java: Ditto.
942 * java/sql/CallableStatement.java: Merged file from claspath.
943 * java/sql/Connection.java: Ditto.
944 * java/sql/DataTruncation.java: Ditto.
945 * java/sql/DatabaseMetaData.java: Ditto.
946 * java/sql/DriverManager.java: Ditto.
947 * java/sql/PreparedStatement.java: Ditto.
948 * java/sql/ResultSet.java: Ditto.
949 * java/sql/ResultSetMetaData.java: Ditto.
950 * java/sql/SQLException.java: Ditto.
951 * java/sql/SQLWarning.java: Ditto.
952 * java/sql/Statement.java: Ditto.
953 * java/sql/Types.java: Ditto.
955 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
957 * java/lang/natSystem.cc (init_properties): Set user.language and
959 * configure.in: Check for setlocale.
960 * configure: Rebuilt.
961 * include/config.h.in: Rebuilt.
963 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
964 the infate() call didn't deliver any output. Throw a ZipException if
965 the needsDictionary() call returns true.
966 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
967 * java/io/InputStreamReader: Use the default buffer size for the
968 contained BufferedInputStream.
970 2000-11-28 Warren Levy <warrenl@cygnus.com>
972 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
973 more time zone entries.
974 * java/text/SimpleDateFormat.java (format): Added case for
977 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
979 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
980 directly rather than read() in all cases. Make primitive read
981 implementations more efficient, as defined in JDK online docs.
982 (skipBytes): Behave like the JDK's implementation.
983 * java/io/BufferedReader.java: Merge classpath docs. Check for a
984 closed stream with checkStatus() whenever an IOException can be
986 (checkStatus): New private method.
988 2000-11-27 Warren Levy <warrenl@cygnus.com>
990 * Makefile.am: Added natTimeZone.cc.
991 * Makefile.in: Rebuilt.
992 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
993 * java/text/DateFormatSymbols.java (ampms): Made package private.
994 (eras): Made package private.
995 (months): Made package private.
996 (shortMonths): Made package private.
997 (shortWeekdays): Made package private.
998 (weekdays): Made package private.
999 (formatPrefixes): New private field.
1000 (localPatternCharsDefault): Made private.
1001 (dateFormats): New package private field.
1002 (timeFormats): New package private field.
1003 (formatsForKey): New private method.
1004 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1005 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1006 * java/text/SimpleDateFormat.java: Merged with Classpath.
1007 * java/util/TimeZone.java: Merged with Classpath.
1008 * java/util/natTimeZone.cc: New file.
1010 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1012 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1013 (addElement): Don't increment elementCount twice. Doh.
1014 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1015 array needs to be expanded.
1017 * java/util/Collections.java (UnmodifiableCollection): Implement
1019 (UnmodifiableList): Throw UnsupportedOperationException from
1020 modification methods. Set `l' from the one-parameter constructor.
1021 (UnmodifiableMap): Implement toString().
1022 (SynchronizedCollection): Ditto.
1023 (SynchronizedList): Set `l' from the one-parameter constructor.
1024 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1025 (SynchronizedMap): Implement toString().
1027 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1029 * javax/naming/NameParser.java,
1030 javax/naming/directory/AttributeInUseException.java,
1031 javax/naming/directory/AttributeModificationException.java,
1032 javax/naming/directory/InvalidAttributeIdentifierException.java,
1033 javax/naming/directory/InvalidAttributesException.java,
1034 javax/naming/directory/InvalidAttributeValueException.java,
1035 javax/naming/directory/InvalidSearchControlsException.java,
1036 javax/naming/directory/InvalidSearchFilterException.java,
1037 javax/naming/directory/NoSuchAttributeException.java,
1038 javax/naming/directory/SchemaViolationException.java: New files.
1040 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1042 * javax/naming/InitialContext.java (rebind): Implement.
1043 (unbind): Implement.
1044 (rename): Implement.
1046 (listBindings): Implement.
1047 (destroySubcontext): Implement.
1048 (createSubcontext): Implement.
1049 (lookupLink): Implement.
1050 (getNameParser): Implement.
1051 (composeName): Implement.
1052 (addToEnvironment): Implement.
1054 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1056 * javax/naming/AuthenticationException.java,
1057 javax/naming/AuthenticationNotSupportedException.java,
1058 javax/naming/CannotProceedException.java,
1059 javax/naming/CommunicationException.java,
1060 javax/naming/ConfigurationException.java,
1061 javax/naming/ContextNotEmptyException.java,
1062 javax/naming/InsufficientResourcesException.java,
1063 javax/naming/InterruptedNamingException.java,
1064 javax/naming/InvalidNameException.java,
1065 javax/naming/LimitExceededException.java,
1066 javax/naming/LinkException.java,
1067 javax/naming/LinkLoopException.java,
1068 javax/naming/MalformedLinkException.java,
1069 javax/naming/NameAlreadyBoundException.java,
1070 javax/naming/NameNotFoundException.java,
1071 javax/naming/NamingSecurityException.java,
1072 javax/naming/NoPermissionException.java,
1073 javax/naming/NotContextException.java,
1074 javax/naming/PartialResultException.java,
1075 javax/naming/ReferralException.java,
1076 javax/naming/ServiceUnavailableException.java,
1077 javax/naming/SizeLimitExceededException.java,
1078 javax/naming/TimeLimitExceededException.java: New files.
1080 * javax/naming/Name.java (clone): New method.
1081 (compareTo): New method.
1082 (isEmpty): New method.
1083 (getAll): New method.
1084 (getPrefix): New method.
1085 (getSuffix): New method.
1086 (startsWith): New method.
1087 (endsWith): New method.
1088 (addAll): New method.
1089 (addAll): New method.
1092 (remove): New method.
1094 * javax/naming/Context.java (lookup): New method.
1095 (rebind): New method.
1096 (unbind): New method.
1097 (rename): New method.
1099 (listBindings): New method.
1100 (destroySubcontext): New method.
1101 (createSubcontext): New method.
1102 (lookupLink): New method.
1103 (getNameParser): New method.
1104 (composeName): New method.
1105 (addToEnvironment): New method.
1106 (removeFromEnvironment): New method.
1107 (getEnvironment): New method.
1108 (close): New method.
1109 (getNameInNamespace): New method.
1111 * javax/naming/InitialContext.java (lookup): New method.
1112 (rebind): New method.
1113 (unbind): New method.
1114 (rename): New method.
1116 (listBindings): New method.
1117 (destroySubcontext): New method.
1118 (createSubcontext): New method.
1119 (lookupLink): New method.
1120 (getNameParser): New method.
1121 (composeName): New method.
1122 (addToEnvironment): New method.
1123 (removeFromEnvironment): New method.
1124 (getEnvironment): New method.
1125 (close): New method.
1126 (getNameInNamespace): New method.
1128 2000-11-26 Tom Tromey <tromey@cygnus.com>
1130 * Makefile.in: Rebuilt.
1131 * Makefile.am (core_java_source_files): Added
1132 RuntimePermission.java.
1133 * java/lang/RuntimePermission.java: Imported from Classpath.
1134 * java/lang/Thread.java (getContextClassLoader): Now
1135 synchronized. Added security code.
1136 (setContextClassLoader): Likewise.
1138 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1139 length field of array.
1140 (_Jv_NewPrimArray): Likewise.
1141 * gcj/array.h (__JArray): `length' field now const. Added
1144 2000-11-26 Anthony Green <green@redhat.com>
1146 * javax/naming/spi/NamingManager.java,
1147 javax/naming/spi/ObjectFactory.java,
1148 javax/naming/spi/InitialContextFactory.java,
1149 javax/naming/spi/InitialContextFactoryBuilder.java,
1150 javax/naming/RefAddr.java, javax/naming/Reference.java,
1151 javax/naming/NamingException.java, javax/naming/Context.java,
1152 javax/naming/Referenceable.java,
1153 javax/naming/directory/InitialDirContext.java,
1154 javax/naming/directory/DirContext.java,
1155 javax/naming/directory/Attributes.java,
1156 javax/naming/directory/Attribute.java,
1157 javax/naming/StringRefAddr.java,
1158 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1159 javax/naming/InitialContext.java,
1160 javax/naming/NoInitialContextException.java: New files.
1162 2000-11-25 Anthony Green <green@redhat.com>
1164 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1165 (_Jv_NewPrimArray): Likewise.
1166 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1167 (class JArray): Removed constructor.
1169 * java/lang/Thread.java (context_class_loader): New private data.
1170 (getContextClassLoader): New method.
1171 (setContextClassLoader): New method.
1172 (Thread): Initialize context_class_loader.
1174 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1175 (getResource): Rename to findResource.
1176 (findResource): New method. Used to be getResource.
1177 (getResourceAsStream): Deleted.
1178 (jarFileize): Extracted logic from URLClassLoader constructor into
1179 this new private method.
1180 (addURL): New protected method.
1181 (URLClassLoader): Call jarFileize. Use addElement instead of
1183 (findResources): New method.
1185 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1186 (getResource): Implement correct logic.
1187 (findResource): New method.
1188 (getResources): New method.
1189 (findClass): Create a ClassNotFoundException with the name of the
1190 class rather than nothing at all.
1191 (defineClass) Only throw ClassFormatError.
1193 * java/lang/Class.java (forName): New method.
1194 * java/lang/Class.h (forName): New method.
1195 * java/lang/natClass.cc (forName): New method.
1197 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1199 * java/lang/System.java (setProperties): Only call init_properties()
1200 if properties is null.
1201 (getProperties): Ditto.
1202 (getProperty): Ditto.
1203 (setProperty): Call init_properties if properties are null.
1204 (prop_init): Remove field.
1205 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1206 method. Check for null properties after synchronizing instead of
1207 prop_init flag. Set the properties field last for thread safety.
1209 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1210 test for gcj.dumpobjects property and enable object stream dumping
1212 (dumpElement): No longer native.
1213 (dumpElementln): Ditto.
1214 (setDump): Do not define.
1215 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1216 (dumpElementln): Removed.
1219 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1221 * configure: Rebuilt.
1222 * Makefile.in: Rebuilt.
1223 * Makefile.am (built_java_source_files): Add Configuration.java.
1224 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1225 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1226 Create `gnu' directory in the build tree.
1227 * gnu/classpath/Configuration.java.in: New file.
1229 2000-11-24 Tom Tromey <tromey@cygnus.com>
1231 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1233 (_Jv_NewPrimArray): Likewise.
1235 * gcj/array.h (__JArray): `length' field now const. Added
1237 (class JArray): Added constructor.
1239 2000-11-23 Mark Wielaard <mark@klomp.org>
1241 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1244 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1246 * java/util/Vector.java: Improve exception messages.
1247 (Vector): Check initialCapacity for IllegalArgumentException.
1248 (tromToSize): Don't check for elementCount == elementData.length
1250 (toArray): Don't try to set null marker if target array is the same
1251 length as the vector.
1253 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1255 * Makefile.in: Rebuilt.
1256 * Makefile.am (core_java_source_files): Added Collections.java.
1257 * java/util/List.java: Merged from classpath.
1258 * java/util/Vector.java: Ditto.
1259 * java/util/Collections.java: From classpath.
1260 * java/util/ArrayList.java (addAll(Collection)): Call
1261 addAll(int,Collection) instead of duplicating code.
1262 (indexOf): Clean up int initialization.
1263 (clear): Set cleared array entries to null, to allow garbage
1265 * java/util/List.java: Minor formatting fixes.
1266 * java/util/SimpleTimeZone.java: ditto.
1268 2000-11-18 Tom Tromey <tromey@cygnus.com>
1270 * Makefile.in: Rebuilt.
1271 * Makefile.am (core_java_source_files): Added new files.
1272 * java/lang/reflect/ReflectPermission.java: New class.
1273 * java/io/FileFilter.java: From Classpath
1274 * java/io/FilePermission.java: From Classpath.
1276 2000-11-17 Tom Tromey <tromey@cygnus.com>
1278 * java/lang/reflect/AccessibleObject.java (isAccessible,
1279 setAccessible): Now public.
1281 * java/lang/natString.cc: Include Locale.h.
1282 (toUpperCase): Added `locale' argument. Handle locale
1284 (toLowerCase): Added `locale' argument. Handle locale
1286 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1287 CAPITAL_I): New defines.
1288 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1291 (toUpperCase, toLowerCase): New methods. Variants which accept
1294 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1297 * java/util/PropertyPermission.java: Re-merged from Classpath.
1299 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1301 * java/text/StringCharacterIterator.java: Reindented.
1302 (setText): New method.
1304 2000-11-17 Mark Wielaard <mark@klomp.org>
1306 Merge with Classpath (changes by Bryce McKinlay)
1307 * java/util/jar/*.java: Reformat all to unofficial standard coding
1308 style. No changes of substance.
1310 2000-11-17 Mark Wielaard <mark@klomp.org>
1312 * java/util/zip/*.java: Javadoc updates.
1314 2000-11-17 Tom Tromey <tromey@cygnus.com>
1316 * java/text/CollationKey.java: Implement Comparable.
1317 (compareTo(Object)): New method.
1318 * java/text/Collator.java (compare(Object,Object)): New method.
1319 Implement Comparator.
1321 * java/util/zip/InflaterInputStream.java (available): New method.
1322 (close): New method.
1323 (read, available, skip, fill): Throw exception if stream closed.
1324 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1325 getNextEntry): Throw exception if closed.
1327 2000-11-16 Tom Tromey <tromey@cygnus.com>
1329 * java/io/PushbackReader.java: Merged with Classpath.
1330 * java/util/Arrays.java: Updated from Classpath.
1332 * scripts/blocks.pl: New file.
1333 * java/lang/Character.java (Subset): New class.
1334 (UnicodeBlock): New class.
1336 * java/lang/Math.java (toDegrees, toRadians): New methods.
1338 * java/lang/Float.java: Implement Comparable.
1339 (compareTo): New methods.
1340 * java/lang/Double.java: Implement Comparable.
1341 (compareTo): New methods.
1343 2000-11-16 Warren Levy <warrenl@cygnus.com>
1345 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1347 (listeners): Made transient.
1348 (source): Renamed from 'bean'.
1349 (children): New field for serialization.
1350 (propertyChangeSupportSerializedDataVersion): Ditto.
1351 (serialVersionUID): Ditto.
1352 (writeObject): New serialization method.
1353 (readObject): New serialization method.
1354 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1356 (listeners): Made transient.
1357 (source): Renamed from 'bean'.
1358 (children): New field for serialization.
1359 (vetoableChangeSupportSerializedDataVersion): Ditto.
1360 (serialVersionUID): Ditto.
1361 (writeObject): New serialization method.
1362 (readObject): New serialization method.
1363 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1364 to allow constructor to have a return type (i.e. the class that the
1365 constructor constructs).
1367 2000-11-14 Tom Tromey <tromey@cygnus.com>
1369 * Makefile.in: Rebuilt.
1370 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1373 2000-11-02 Warren Levy <warrenl@cygnus.com>
1375 * java/io/ObjectInputStream.java (readObject): Added code to
1376 conditionally dump out the serialized data.
1377 Handle ENDBLOCKDATA case a bit more gracefully since the current
1378 behavior doesn't seem to work as expected.
1379 (readStreamHeader): Added code for serialized data dumper.
1380 (readNextBlock): Ditto.
1381 (readFields): Ditto.
1382 (dump): New private static field for turning on/off dumper.
1383 (setDump): New native method.
1384 (dumpElement): New native method.
1385 (dumpElementln): New native method.
1386 * java/io/natObjectInputStream.cc (setDump): New method.
1387 (dumpElement): New method.
1388 (dumpElementln): New method.
1390 2000-11-02 Warren Levy <warrenl@cygnus.com>
1392 * java/net/InetAddress.java (addr): Renamed from 'address'.
1393 (address): New field to match Serialized Form doc.
1394 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1395 (family): New serialization field.
1396 (serialVersionUID): New field.
1397 (readObject): New method.
1398 (writeObject): New method.
1399 (getFamily): New native method.
1400 (InetAddress): Set family.
1401 * java/net/natInetAddress.cc (getFamily): New method.
1402 (addr): Renamed from 'address'.
1403 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1404 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1405 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1407 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1409 * java/util/AbstractList.java (SubList): Make it a top-level private
1411 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1413 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1414 * Makefile.in: Rebuilt.
1416 2000-11-02 Tom Tromey <tromey@cygnus.com>
1418 * Makefile.in: Rebuilt.
1419 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1422 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1424 * java/util/AbstractList.java (remove): Comment out modCount increment
1425 to work around compiler bug.
1428 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1430 * java/util/AbstractList.java: Throw messages with
1431 IndexOutOfBoundsExceptions.
1432 (listIterator()): Call listIterator(0).
1433 (size): New field. Initialize to size().
1434 (hasNext): Test position against size, not size().
1435 (remove): Increment knownMod by one instead of resetting it from
1438 (SubList.upMod): Removed.
1439 (SubList.set): Don't call upMod() or update knownMod.
1440 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1441 (SubList.remove): Ditto.
1442 (SubList.addAll): Don't call backingList.size(). Increment size from
1444 (SubList.iterator): New method. Call listIterator(0).
1445 (SubList.listIterator): New method. Restore code to return an anonymous
1446 listIterator implementation (with some changes).
1447 * java/util/AbstractSequentialList.java: Throw messages with
1448 IndexOutOfBoundsExceptions.
1449 (addAll): Add a specnote.
1450 * java/util/ArrayList.java (removeRange): Get the math right.
1451 (addAll): Increment modCount _before_ creating iterator.
1452 * java/util/LinkedList.java: Rewritten, mostly.
1454 2000-11-01 Tom Tromey <tromey@cygnus.com>
1456 * scripts/encodings.pl: Added `ASCII' alias.
1457 * Makefile.in: Rebuilt.
1458 * Makefile.am (convert_source_files): Added new files.
1459 * gnu/gcj/convert/Input_ASCII.java: New file.
1460 * gnu/gcj/convert/Output_ASCII.java: New file.
1461 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1462 out-of-range characters.
1463 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1464 (read): Swap bytes if required. Treat `count' as character count,
1466 (write): Likewise. Also, handle case where iconv fails on a given
1468 (init): Put encoding into exception.
1469 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1470 (static): Call iconv_init. Rebuilt alias list.
1471 (iconv_init): New private method.
1473 2000-11-01 Tom Tromey <tromey@cygnus.com>
1475 * Makefile.in: Rebuilt.
1476 * Makefile.am (install-exec-hook): Only make a single symlink, and
1477 remove the destination before making the link.
1478 * configure: Rebuilt.
1479 * configure.in: Call AC_PROG_LN_S.
1481 2000-10-31 Warren Levy <warrenl@cygnus.com>
1483 * jni.cc: Added include of java/lang/ThreadGroup.h.
1484 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1485 per change of 2000-10-05.
1487 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1489 * java/util/BitSet.java: Updated @specnote.
1491 * java/io/Reader.java: Merge docs from classpath.
1492 (skip): Synchronize on `lock'.
1493 * java/io/FileReader.java: Import correct implementation from
1495 * java/io/StringReader.java: Merge docs from classpath.
1496 (ready): Throw IOException if stream is closed.
1498 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1500 * java/util/AbstractCollection.java (addAll): Use size() instead of
1501 hasNext() in iterator loop.
1503 (contains): Ditto. Simplify loop.
1504 (containsAll): Ditto.
1509 (toString): Ditto. Use string concatenation operators, not
1511 * java/util/AbstractList.java (addAll): Use size() instead of
1512 hasNext() in iterator loop.
1515 (indexOf): Ditto. Don't take null check outside of the loop.
1516 (iterator): Return an AbstractListItr instead of anonymous class.
1517 (lastIndexOf): Use a for loop bounded by size() instead of
1518 hasPrevious() in iterator loop.
1519 (listIterator): Return an AbstractListItr.
1520 (removeRange): Remove bounds checking code and docs.
1521 (AbstractListItr): New inner class. Code moved here from
1523 (SubList.iterator): Removed. Use default implementation from
1524 AbstractList instead.
1525 (SubList.listIterator): As above.
1526 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1527 instead of hasNext() in iterator loop.
1528 (containsValue): Ditto.
1534 (toString): Ditto. Use string concatenation operators, not
1536 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1537 bounded by size() instead of hasNext() in iterator loop.
1538 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1539 part of normal execution flow. Do an explicit null check instead.
1540 * java/util/ArrayList.java (_iSize): Rename to `size'.
1541 (_arData): Rename to `data'.
1542 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1545 (removeRange): Make protected. Don't check bounds.
1546 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1548 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1550 (addAll (int, Collection)): Check lower bounds. Simplify exception
1552 (clone): Clone the data array too.
1553 (indexOf): Inline doesEqual().
1554 (lastIndexOf): Ditto.
1555 (clear): Don't set array data to null.
1556 (set): Check lower bounds. Simplify exception string.
1557 (toArray): Correct comment.
1558 (trimToSize): Don't update modCount, this is not a structural change.
1561 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1563 (toString): Declare `bit' as long, not int.
1564 (data): Made package-private, not private.
1566 2000-10-27 Warren Levy <warrenl@cygnus.com>
1568 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1569 array elements to true.
1571 2000-10-27 Warren Levy <warrenl@cygnus.com>
1573 * Makefile.am: Added locale files from Classpath.
1574 * Makefile.in: Rebuilt.
1575 * gnu/java/locale/Calendar.java: New file.
1576 * gnu/java/locale/Calendar_de.java: New file.
1577 * gnu/java/locale/Calendar_en.java: New file.
1578 * gnu/java/locale/Calendar_nl.java: New file.
1579 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1580 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1581 serialization compatibility.
1582 (scale): Made private.
1583 (serialVersionUID): New field.
1584 * java/math/BigInteger.java (ival): Made transient.
1585 (words): Made transient.
1586 (bitCount): New serialization field.
1588 (firstNonzeroByteNum): Ditto.
1589 (lowestSetBit): Ditto.
1592 (serialVersionUID): New field.
1593 (readObject): New method.
1594 (writeObject): New method.
1595 * java/util/BitSet.java (serialVersionUID): New field.
1596 * java/util/Calendar.java: Replaced with Classpath file.
1597 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1598 of getDefault() for TimeZone or Locale instead of passing nulls.
1599 * java/util/Locale.java (serialVersionUID): New field.
1600 (writeObject): New method.
1601 (readObject): New method.
1602 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1604 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1606 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1607 (core_java_source_files): Put java.lang, java.io, and java.util here.
1608 (ordinary_java_source_files): Order so that core_java_source_files are
1610 (java_source_files): Reorder so that special_java_source_files are
1612 * configure.in: Don't pass -I flag to gcj.
1613 * Makefile.in: Rebuilt.
1614 * configure: Rebuilt.
1616 2000-10-25 Tom Tromey <tromey@cygnus.com>
1618 * Makefile.in: Rebuilt.
1619 * Makefile.am (install-exec-hook): New target.
1621 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1623 * java/util/EventObject.java: Merged from classpath.
1625 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1628 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1630 * java/util/AbstractSet.java (equals): Re-installed original code.
1632 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1634 * Makefile.am: Added rules for libgcjx library.
1635 * Makefile.in: Rebuilt.
1636 * configure.in: Added check for X.
1637 * configure: Rebuilt.
1638 * gnu/awt/LightweightRedirector.java: New file.
1639 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1640 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1641 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1642 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1643 * gnu/awt/j2d/MappedRaster.java: New file.
1644 * gnu/awt/xlib/XCanvasPeer.java: New file.
1645 * gnu/awt/xlib/XEventLoop.java: New file.
1646 * gnu/awt/xlib/XEventQueue.java: New file.
1647 * gnu/awt/xlib/XFontMetrics.java: New file.
1648 * gnu/awt/xlib/XFramePeer.java: New file.
1649 * gnu/awt/xlib/XGraphics.java: New file.
1650 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1651 * gnu/awt/xlib/XPanelPeer.java: New file.
1652 * gnu/awt/xlib/XToolkit.java: New file.
1653 * gnu/gcj/xlib/Clip.java: New file.
1654 * gnu/gcj/xlib/Colormap.java: New file.
1655 * gnu/gcj/xlib/Display.java: New file.
1656 * gnu/gcj/xlib/Drawable.java: New file.
1657 * gnu/gcj/xlib/Font.java: New file.
1658 * gnu/gcj/xlib/GC.java: New file.
1659 * gnu/gcj/xlib/Pixmap.java: New file.
1660 * gnu/gcj/xlib/Screen.java: New file.
1661 * gnu/gcj/xlib/Visual.java: New file.
1662 * gnu/gcj/xlib/WMSizeHints.java: New file.
1663 * gnu/gcj/xlib/Window.java: New file.
1664 * gnu/gcj/xlib/WindowAttributes.java: New file.
1665 * gnu/gcj/xlib/XAnyEvent.java: New file.
1666 * gnu/gcj/xlib/XButtonEvent.java: New file.
1667 * gnu/gcj/xlib/XColor.java: New file.
1668 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1669 * gnu/gcj/xlib/XConnectException.java: New file.
1670 * gnu/gcj/xlib/XEvent.java: New file.
1671 * gnu/gcj/xlib/XException.java: New file.
1672 * gnu/gcj/xlib/XExposeEvent.java: New file.
1673 * gnu/gcj/xlib/XID.java: New file.
1674 * gnu/gcj/xlib/XImage.java: New file.
1675 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1676 * gnu/gcj/xlib/natClip.cc: New file.
1677 * gnu/gcj/xlib/natColormap.cc: New file.
1678 * gnu/gcj/xlib/natDisplay.cc: New file.
1679 * gnu/gcj/xlib/natDrawable.cc: New file.
1680 * gnu/gcj/xlib/natFont.cc: New file.
1681 * gnu/gcj/xlib/natGC.cc: New file.
1682 * gnu/gcj/xlib/natPixmap.cc: New file.
1683 * gnu/gcj/xlib/natScreen.cc: New file.
1684 * gnu/gcj/xlib/natVisual.cc: New file.
1685 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1686 * gnu/gcj/xlib/natWindow.cc: New file.
1687 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1688 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1689 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1690 * gnu/gcj/xlib/natXColor.cc: New file.
1691 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1692 * gnu/gcj/xlib/natXException.cc: New file.
1693 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1694 * gnu/gcj/xlib/natXImage.cc: New file.
1695 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1696 * java/awt/EventDispatchThread.java: Start thead on creation.
1698 2000-10-20 Tom Tromey <tromey@cygnus.com>
1700 From Arno J. Klaassen:
1701 * interpret.cc: Include <stdlib.h> for alloca.
1702 * defineclass.cc: Include <stdlib.h> for alloca.
1704 * Makefile.in: Rebuilt.
1705 * Makefile.am: Include deps.mk.
1706 (GCJCOMPILE): Added -MD, -MT, and -MF.
1707 ($(javao_files)): Don't depend on libgcj.zip.
1708 (all-recursive): New target.
1709 (%.lo:%.cc): Do dependency tracking.
1710 ($(nat_headers)): Don't depend on libgcj.zip.
1711 * configure: Rebuilt.
1712 * configure.in: Make .d files and deps.mk.
1714 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1716 * exception.cc: Don't #include "exception".
1717 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1719 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1720 * Makefile.in: Updated.
1722 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1724 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1725 * java/awt/peer/ComponentPeer.java (disable): Removed.
1728 (minimumSize): Removed.
1729 (preferredSize): Removed.
1732 * java/awt/peer/ListPeer.java (addItem): Removed.
1734 (minimumSize): Removed.
1735 (preferredSize): Removed.
1736 (setMultipleSelections): Removed.
1737 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1738 (remove): Renamed from removeMenu.
1739 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1741 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1742 (remove): Renamed from removeItem.
1743 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1744 (getMinimumSize): Removed.
1745 (getPreferredSize): Removed.
1746 (minimumSize): Removed.
1747 (preferredSize): Removed.
1748 (replaceText): Removed.
1749 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1750 (preferredSize): Removed.
1751 (getMinimumSize): Removed.
1752 (getPreferredSize): Removed.
1753 (setEchoCharacter): Removed.
1755 2000-10-10 Warren Levy <warrenl@cygnus.com>
1757 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1758 * java/sql/Date.java (serialVersionUID): New field.
1759 * java/sql/Time.java (serialVersionUID): New field.
1760 * java/sql/Timestamp.java (serialVersionUID): New field.
1761 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1762 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1763 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1764 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1765 (readObject): New serialization method.
1766 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1767 (serialVersionOnStream): New field.
1768 (readObject): New serialization method.
1769 (getMonetaryDecimalSeparator): New method.
1770 (setMonetaryDecimalSeparator): New method.
1771 * java/text/NumberFormat.java (maxFractionDigits): New field.
1772 (maxIntegerDigits): New field.
1773 (minFractionDigits): New field.
1774 (minIntegerDigits): New field.
1775 (serialVersionOnStream): New field.
1776 (serialVersionUID): New field.
1777 (readObject): New serialization method.
1778 (writeObject): New serialization method.
1779 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1780 (serialVersionOnStream): New field.
1781 (serialVersionUID): New field.
1782 (readObject): New serialization method.
1784 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1786 * configure.in (GCJ): Avoid bogus error message when looking for
1787 (and not finding) gcj in the build tree.
1788 * configure: Rebuilt.
1790 2000-10-09 Tom Tromey <tromey@cygnus.com>
1792 * configure: Rebuilt.
1793 * configure.in: Include sys/types.h when checking for socklen_t.
1794 From Arno J. Klaassen.
1796 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1798 * include/jvm.h: Enable __builtin_expect().
1800 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1801 the main program. Fix for PR libgcj/341.
1803 2000-10-07 Tom Tromey <tromey@cygnus.com>
1805 * java/util/Properties.java: Merged with Classpath version.
1807 2000-10-05 Tom Tromey <tromey@cygnus.com>
1809 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1810 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1811 * java/lang/Class.h (Object): Added `class$' field.
1812 * java/lang/Object.h (Object): Added `class$' field.
1813 * defineclass.cc (ClassClass): Use `class$' form.
1814 (ClassObject): Likewise.
1815 * resolve.cc (ClassObject): Use `class$' form.
1816 (ObjectClass): Likewise.
1817 * interpret.cc (ClassError): Removed.
1818 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1820 (IntegerClass): Likewise.
1821 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1823 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1824 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1825 SerializableClass): Likewise.
1826 Include Serializable.h, Cloneable.h.
1827 * java/lang/natSystem.cc (SystemClass): Removed.
1828 (init_properties): Use `class$' form.
1829 * java/lang/natObject.cc (CloneableClass): Removed.
1830 (clone): Use `class$' form.
1831 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1832 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1833 ConstructorClass): Likewise.
1834 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1835 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1836 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1837 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1839 (ClassClass): Likewise.
1840 * include/jvm.h (StringClass): Use `class$' form.
1841 * prims.cc (ObjectClass): Removed.
1842 (_Jv_RunMain): Use `class$' form.
1843 (_Jv_AllocObject): Likewise.
1844 * jni.cc (ClassClass): Use `class$' form.
1845 (ThrowableClass): Likewise.
1846 (ObjectClass): Likewise.
1847 (MethodClass): Likewise.
1848 (ThreadGroupClass): Likewise.
1849 (NativeThreadClass): Likewise.
1850 * boehm.cc (ObjectClass): Removed.
1851 (ClassClass): Removed.
1852 (_Jv_MarkObj): Use `class$' form.
1853 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1856 2000-10-05 Warren Levy <warrenl@cygnus.com>
1858 * Makefile.am: Removed java/io/Replaceable.java and
1859 java/io/Resolvable.java.
1860 * Makefile.in: Rebuilt.
1861 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1863 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1865 (processResolution): Handle readResolve method via reflection with
1866 removal of Resolvable interface.
1867 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1868 method via reflection with removal of Replaceable interface.
1869 * java/io/Replaceable.java: Removed.
1870 * java/io/Resolvable.java: Removed.
1871 * java/security/Key.java (serialVersionUID): New field.
1872 * java/security/Provider.java (serialVersionUID): New field.
1873 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1875 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1877 * java/sql/DataTruncation.java (serialVersionUID): New field.
1878 * java/sql/SQLException.java (serialVersionUID): New field.
1879 * java/sql/SQLWarning.java (serialVersionUID): New field.
1880 * java/util/Date.java (serialVersionUID): New field.
1881 (millis): Made transient.
1882 (readObject): New method.
1883 (writeObject): New method.
1885 2000-10-05 Tom Tromey <tromey@cygnus.com>
1887 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1889 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1891 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1892 (JvRunMain): Set _Jv_argv and _Jv_argc.
1893 * java/awt/Component.java: Minor fixes.
1894 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1895 * java/awt/Toolkit.java (systemEventQueue): Removed.
1896 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1897 * java/awt/Window.java (getToolkit): Don't call super.
1898 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1899 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1900 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1901 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1902 * gnu/awt/gtk/GtkFramePeer.java: New file.
1903 * gnu/awt/gtk/GtkMainThread.java: New file.
1904 * gnu/awt/gtk/GtkToolkit.java: New file.
1905 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1906 * gnu/awt/gtk/gtkcommon.cc: New file.
1907 * gnu/awt/gtk/gtkcommon.h: New file.
1908 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1909 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1910 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1911 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1912 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1913 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1915 2000-09-30 Tom Tromey <tromey@cygnus.com>
1917 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1918 interrupted before modifying the cv's wait set.
1921 2000-09-30 Hans Boehm <boehm@acm.org>
1922 Bryce McKinlay <bryce@albatross.co.nz>
1924 Implement bitmap descriptor based marking for Boehm GC.
1926 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1927 * configure: Rebuilt.
1928 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1929 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1930 method get_finalizer().
1931 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1932 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1933 (_Jv_AllocObj): Add new jclass parameter.
1934 (_Jv_AllocArray): Ditto.
1935 (_Jv_BuildGCDescr): New prototype.
1936 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1937 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1938 get_finalizer() instead of direct finalizer vtable offset.
1939 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1940 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1941 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1942 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1943 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1944 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1945 (_Jv_DetermineVTableIndex): Ditto.
1946 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1947 calculations to account for new gc_descr field.
1948 * boehm.cc: #include gc_gcj.h.
1949 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1950 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1951 New commentary from HB. Mark the classes vtable.
1952 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1953 (GC_DEFAULT_DESCR): New #define.
1954 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1955 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1956 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1957 scan conservativly if size is less than min_heap_addr. Set vtable
1958 pointer of new object before returning.
1959 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1960 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1961 allocation for obj_kind_x.
1962 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1963 (_Jv_AllocObj): Set vtable on returned object.
1964 (_Jv_AllocArray): Ditto.
1965 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1966 (_Jv_NewPrimArray): Ditto.
1967 (_Jv_AllocObj): Declare as a friend.
1968 (_Jv_AllocArray): Ditto.
1969 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1970 from &ObjectClass into new array class. Remove offset-by-one
1971 adjustments from `method' size calculations to account for gc_descr
1974 2000-09-26 Tom Tromey <tromey@cygnus.com>
1976 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1977 `remove', not `add'.
1979 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1981 * java/lang/natSystem.cc (file_encoding): Added return statement.
1983 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1985 * Makefile.am: Re-work shell commands that exceeded command-line
1987 * Makefile.in: Rebuilt.
1989 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1991 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1992 * java/lang/natDouble.cc: Likewise.
1993 * java/lang/reflect/natMethod.cc: Likewise.
1994 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1996 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1998 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2000 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2001 * acinclude.m4: Arrange for automake to not bring in a new
2002 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2003 * Makefile.am: Leave it up to automake to subst GCJ.
2004 * aclocal.m4, configure, Makefile.in: Rebuilt.
2006 2000-09-13 Tom Tromey <tromey@cygnus.com>
2008 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2009 (get): Ensure Boolean class is initialized.
2010 * java/lang/reflect/natField.cc (BooleanClass): New define.
2011 (get): Ensure Boolean class is initialized.
2013 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2015 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2016 Initialize with anonymous class.
2017 (compareToIgnoreCase): New method.
2019 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2020 (uncaughtException): Set had_uncaught_exception.
2021 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2022 exit with error status if set.
2023 (_Jv_RunMain): Ditto.
2025 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2027 * configure: Rebuilt with new ../libtool.m4.
2029 2000-09-11 Tom Tromey <tromey@cygnus.com>
2031 * java/lang/reflect/Field.java (toString): Don't rely on
2034 2000-09-08 Tom Tromey <tromey@cygnus.com>
2036 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2037 default decoder use iconv.
2038 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2039 Let default encoder use iconv.
2040 * configure: Rebuilt.
2041 * configure.in: Check for nl_langinfo and <langinfo.h>.
2042 * java/lang/natSystem.cc (file_encoding): New function.
2043 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2045 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2047 * acinclude.m4: Simplify the tests for CC and CXX.
2048 * aclocal.m4, configure: Rebuilt.
2050 * acinclude.m4: Include libtool macros from the source tree.
2051 * aclocal.m4, configure: Rebuilt.
2053 2000-09-08 Warren Levy <warrenl@cygnus.com>
2055 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2056 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2057 * java/io/File.java (writeObject): Added.
2058 (readObject): Added.
2059 (serialVersionUID): Added.
2060 * java/io/ObjectOutputStream.java (writeObject): Initialized
2061 fieldsAlreadyWritten before recursion rather than after.
2062 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2063 * java/io/OptionalDataException.java (serialVersionUID): Added.
2064 (OptionalDataException): Made package private.
2065 * java/io/SyncFailedException.java (SyncFailedException): Removed
2066 default constructor to match spec.
2067 * java/lang/Boolean.java (serialVersionUID): Added.
2068 * java/lang/Byte.java (serialVersionUID): Added.
2069 * java/lang/Character.java (serialVersionUID): Added.
2070 * java/lang/Double.java (serialVersionUID): Added.
2071 * java/lang/Float.java (serialVersionUID): Added.
2072 * java/lang/Integer.java (serialVersionUID): Added.
2073 * java/lang/Long.java (serialVersionUID): Added.
2074 * java/lang/Number.java (serialVersionUID): Added.
2075 * java/lang/Short.java (serialVersionUID): Added.
2076 * java/lang/String.java (serialVersionUID): Added.
2077 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2079 * java/lang/reflect/InvocationTargetException.java
2080 (serialVersionUID): Added.
2081 * java/net/URL.java (handler): Made transient.
2082 (hashCode): Added field for serialization, per spec. and use
2083 cached value if available.
2084 (serialVersionUID): Added.
2085 (URL): Initialize hashCode.
2086 (set): Adjust hashCode.
2087 (readObject): New Method to initialize the protocol handler when
2089 (writeObject): New method.
2090 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2091 * java/text/Collator.java: Removed 'implements Serializable'.
2092 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2093 * java/util/Properties.java (serialVersionUID): Added.
2094 * java/util/Random.java (serialVersionUID): Added.
2095 (seed): Made private.
2096 (nextNextGaussian): Made private.
2097 (haveNextNextGaussian): Made private.
2098 * java/util/Stack.java (serialVersionUID): Added.
2099 * java/util/TimeZone.java (serialVersionUID): Added.
2100 * java/util/Vector.java (serialVersionUID): Added.
2102 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2104 * Makefile.am (Thread.h): Don't be friends with native threads
2106 * Makefile.in: Rebuilt.
2107 * java/lang/Thread.java (interrupt_flag): Make package-private.
2109 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2111 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2112 to avoid long long division.
2114 2000-09-06 Tom Tromey <tromey@cygnus.com>
2116 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2118 * java/lang/reflect/Method.java (toString): Use `getName' for
2121 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2122 `args' if method takes no parameters.
2124 Fix for PR java.lang/339:
2125 * java/lang/natPosixProcess.cc (fail): New function.
2126 (cleanup): New function.
2127 (startProcess): Use them. Create pipe so child can communicate
2128 exec failure back to parent.
2130 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2132 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2134 (send): Undo last patch. Remove the label only.
2136 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2138 * java/net/natInetAdress.cc: Ditto.
2140 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2142 2000-09-05 Tom Tromey <tromey@cygnus.com>
2144 * doc/cni.sgml: Updated from master copy.
2146 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2148 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2150 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2152 * java/lang/fdlibm.h: #undef __P if previously defined.
2153 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2154 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2158 2000-09-04 Tom Tromey <tromey@cygnus.com>
2160 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2163 2000-09-04 Anthony Green <green@redhat.com>
2165 Fix for PR java.io/203:
2166 * java/io/File.java (createTempFile): Obey directory argument.
2167 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2168 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2169 variable to set java.io.tmpdir on non-WIN32 systems.
2171 2000-09-04 Anthony Green <green@redhat.com>
2173 * java/io/File.java (deleteOnExit): New method.
2174 * gnu/gcj/runtime/FileDeleter.java: New class.
2175 * java/lang/natRuntime.cc (exit): Call
2176 FileDeleter.deleteOnExitNow()
2177 * Makefile.am: Add FileDeleter.java.
2178 * Makefile.in: Rebuilt.
2180 2000-09-02 Tom Tromey <tromey@cygnus.com>
2182 * Makefile.in: Rebuilt.
2183 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2184 environment variable.
2186 2000-09-01 Andrew Haley <aph@redhat.com>
2188 * java/io/StreamTokenizer.java: Don't throw a
2189 NumberFormatException if a field is numeric as far as the
2190 StreamTokenizer is concerned but not as far as Double.valueOf() is
2191 concerned: return a zero instead.
2193 2000-08-30 Tom Tromey <tromey@cygnus.com>
2195 * Makefile.in: Rebuilt.
2196 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2198 2000-08-28 Tom Tromey <tromey@cygnus.com>
2200 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2201 gnu/gcj/awt/ComponentDataBlitOp.java,
2202 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2203 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2204 java/awt/color/ICC_ColorSpace.java,
2205 java/awt/color/ICC_Profile.java,
2206 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2207 java/awt/image/ComponentColorModel.java,
2208 java/awt/image/ComponentSampleModel.java,
2209 java/awt/image/DataBuffer.java,
2210 java/awt/image/DataBufferByte.java,
2211 java/awt/image/DataBufferInt.java,
2212 java/awt/image/DataBufferUShort.java,
2213 java/awt/image/DirectColorModel.java,
2214 java/awt/image/IndexColorModel.java,
2215 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2216 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2217 java/awt/image/SinglePixelPackedSampleModel.java,
2218 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2219 Removed Latin-1 copyright symbols.
2220 * java/util/zip/ZipFile.java: Indentation fixes.
2222 2000-08-27 Mark Wielaard <mark@klomp.org>
2224 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2225 constructor, close can delete the file, finalize calls close.
2226 * java/util/jar/JarFile.java: Constructor that takes mode now
2229 2000-08-27 Anthony Green <green@redhat.com>
2231 * java/util/ArrayList.java, java/util/Timer.java,
2232 java/util/LinkedList.java, java/util/TimerTask.java,
2233 java/util/HashMap.java, java/util/AbstractMap.java,
2234 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2235 java/util/SortedSet.java: Imported from GNU Classpath.
2236 * Makefile.in: Rebuilt.
2237 * Makefile.am: Added new files.
2239 2000-08-26 Anthony Green <green@redhat.com>
2241 * Makefile.in: Rebuilt.
2242 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2245 * prims.cc: Include ClassLoader.h.
2246 (_Jv_RunMain): When executing jar files, classpath must be the jar
2247 file only. Lose our reference to the system ClassLoader in order
2248 to get a new one with the correct classpath.
2249 * java/lang/natSystem.cc (init_properties): When executing a jar
2250 file, only use the jar file for java.class.path.
2252 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2253 for bytecode archives.
2255 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2256 exists, but not Main-Class.
2258 2000-08-23 Mark Wielaard <mark@klomp.org>
2260 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2261 return -1 when fill() has no more data for the Inflater.
2263 2000-08-23 Mark Wielaard <mark@klomp.org>
2265 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2266 write(String) already does.
2268 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2270 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2271 to `alive_flag', call `init'.
2272 (init): New native method.
2273 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2276 2000-08-21 Mark Wielaard <mark@klomp.org>
2278 * Makefile.in: Rebuilt.
2279 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2281 (java/lang/reflect/Field.h): Likewise.
2282 (java/lang/reflect/Method.h): Likewise.
2283 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2286 2000-08-21 Tom Tromey <tromey@cygnus.com>
2288 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2291 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2293 * java/lang/natSystem.cc (init_properties): Change sourceware
2294 reference to sources.redhat.com.
2296 * include/java-props.h: Add _Jv_Jar_Class_Path.
2297 * prims.cc: Ditto. Set it from `gij -jar file' option.
2299 * java/lang/natSystem.cc (init_properties): Set java.class.path
2301 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2303 * java/util/PropertyPermission.java: Import from GNU Classpath.
2304 * Makefile.in: Rebuilt.
2305 * Makefile.am: Add java/util/PropertyPermission.java.
2306 * java/lang/System.java: Add setProperty method.
2308 * gij.cc (main): Add -jar option to execute jar files.
2309 (help): Describe -jar option.
2310 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2311 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2312 * gnu/gcj/runtime/FirstThread.java (main): New method.
2314 * java/util/jar/Attributes.java: Correct comment spelling.
2316 2000-08-20 Mark Wielaard <mark@klomp.org>
2318 * java/util/zip/Adler32.java: Make private variables really private
2319 * java/util/zip/CRC32.java: Make private variables really private
2320 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2322 * java/util/zip/InflaterInputStream.java: skip() could skip to
2324 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2325 * java/util/zip/ZipFile.java: size() new 1.2 method
2326 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2327 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2330 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2332 * java/util/jar/JarFile.java: Don't call
2333 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2336 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2338 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2339 Read the entire contents of the class file, not just what is
2342 * java/net/JarURLConnection.java: getEntry doesn't take any
2343 arguments. Return null if element is null.
2345 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2346 size from the archive, not the inflated size.
2348 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2349 java.util.zip.ZipFile.getEntry.
2351 * gij.cc (help): Change sourceware reference to
2354 2000-08-19 Tom Tromey <tromey@cygnus.com>
2356 * java/util/zip/ZipInputStream.java (createZipEntry):
2359 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2361 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2362 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2363 java/util/jar/JarInputStream.java,
2364 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2365 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2366 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2367 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2368 java/security/cert/Certificate.java,
2369 java/security/cert/CertificateEncodingException.java,
2370 java/security/cert/CertificateException.java,
2371 java/security/cert/CertificateExpiredException.java,
2372 java/security/cert/CertificateFactory.java,
2373 java/security/cert/CertificateFactorySpi.java,
2374 java/security/cert/CertificateNotYetValidException.java,
2375 java/security/cert/CertificateParsingException.java,
2376 java/security/cert/X509CRL.java,
2377 java/security/cert/X509CRLEntry.java,
2378 java/security/cert/X509Certificate.java,
2379 java/security/cert/X509Extension.java: Imported from Classpath.
2380 * java/util/Hashtable.java: Imported from Classpath.
2382 * java/util/zip/ZipInputStream.java: Create stub for
2385 * gcj/javaprims.h: Updated class list.
2387 * Makefile.in, gcj/Makefile.in: Rebuilt.
2388 * Makefile.am (ordinary_java_source_files): Add these new classes.
2390 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2392 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2393 * gnu/gcj/awt/GLightweightPeer.java: New file.
2394 * java/awt/BorderLayout.java: Implemented all methods.
2395 * java/awt/Button.java (actionListener, actionCommand): Renamed
2396 and modifier change.
2397 (addNotify): Call super.
2398 (dispatchEventImpl): New method.
2399 (getListeners): New method.
2400 (label): Made package-private, not private.
2401 * java/awt/Canvas.java: Implemented class body.
2402 * java/awt/Color.java (brighter): New method.
2403 (darker): New method.
2404 (hashCode): New method.
2405 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2406 (getGraphicsConfiguration): Delegate to
2407 getGraphicsConfigurationImpl().
2408 (getGraphicsConfigurationImpl): New method.
2409 (getToolkit): Only return value from peer if not null.
2410 (isDisplayable): Check with parent.
2411 (isShowing): No parent implies not showing.
2412 (getForeground): Check parent property if local is null.
2413 (getBackground): Likewise.
2414 (getFont): Likewise.
2415 (setForeground): Inform peer.
2416 (setBackground): Likewise
2417 (setLocale): Invalidate component.
2418 (getColorModel): Implemented.
2419 (setLocation): Invalidate, or ignore if no change.
2420 (setSize): Invalidate, or ignore if no change.
2421 (setBounds): Invalidate, or ignore if no change.
2422 (isOpaque): By default, heavyweight implies opaque.
2423 (isLightweight): Implemented.
2424 (getMaximumSize): Implemented.
2425 (doLayout): Implemented, NOP.
2426 (validate): Implemented, NOP.
2427 (invalidate): Only propagate to parent if parent was valid.
2428 (getGraphics): Implemented.
2429 (getFontMetrics): Implemented.
2430 (update): Implemented.
2431 (paintAll): Implemented.
2432 (repaint): Implemented all repaint methods.
2433 (print): Implemented.
2434 (printAll): Implemented.
2435 (createImage): Implemented.
2436 (dispatchEvent): Give the peer a chance to handle the event.
2437 (dispatchEventImpl): Dispatch paint events.
2438 (enableEvents): Lightweights enable events on parent component.
2439 (coalesceEvents): Coalesce paint events, and select event type
2441 (coalescePaintEvents): New method.
2442 (processEvent): Fix unfortunate ordering of statements, and call
2443 correct method for MOUSE_CLICKED.
2444 (processPaintEvent): New method.
2445 (addNotify): Allow container to notify children before event
2446 mask is set in peer.
2447 (addNotifyContainerChildren): New method.
2448 (removeNotify): Visibility should not change on removeNotify.
2449 (paramString): Implemented.
2450 (list): Implemented two of the list methods.
2451 * Container (myInsets): Removed, insets are managed by peer.
2452 (getInsets): Query peer.
2453 (addImpl): Fix reparenting, enable events for lightweights,
2454 initialize component array.
2455 (validate): Call doLayout in validateTree() instead.
2456 (validateTree): Do nothing if already valid. Call beginValidate(),
2457 endValidate() on peer. Call validateTree() instead of validate()
2458 for children that are containers. Mark valid after validation of
2460 (setFont): Partial implementation.
2461 (paint): Implemented.
2462 (visitChildren): New method.
2463 (visitChild): New method.
2464 (update): Implemented.
2465 (print): Implemented.
2466 (paintComponents): Implemented.
2467 (printComponents): Consider translation and clipping.
2468 (getComponentAt): Ignore invisible children. Return this if no
2470 (addNotify): Call super.
2471 (addNotifyContainerChildren): New method.
2472 (paramString): Implemented.
2473 (list): Implemented.
2474 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2476 (invokeLater): Likewise.
2477 (isDispatchThread): Likewise.
2478 * java/awt/FontMetrics (getLeading): Formula change.
2479 (getDescent): Consider leading also.
2480 (getMaxAscent): Default to getAscent().
2481 (getMaxDescent): Default to getDescent.
2482 (getMaxAdvance): Return value signifying unknown.
2483 (charWidth): Both methods implemented.
2484 (charsWidth): Implemented.
2485 (bytesWidth): Implemented.
2486 (getWidths): Implemented.
2487 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2489 (Frame): Rearragend constuctor chaining to disallow null being
2490 passed as a graphics configuration.
2491 (getTitle): Return empty string if null.
2493 (getIconImage): New method.
2494 (setIconImage): New method.
2495 (finalize): New method.
2496 (setMenuBar): Notify peer.
2497 (isResizable): New method.
2498 (setResizable): New method.
2499 (getState): New method.
2501 (remove): Implemented.
2502 (removeNotify): New method.
2503 (getFrames): New method.
2504 * java/awt/Graphics.java: Implemented body of class.
2505 * java/awt/Graphics2D.java: New file.
2506 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2507 * java/awt/Image.java: Implemented body of class.
2508 * java/awt/Panel.java (Panel): Call correct super constructor.
2509 (addNotify): Implemented.
2510 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2511 * java/awt/RenderingHints.java: New file.
2512 * java/awt/Toolkit.java (createComponent): Implemented.
2513 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2514 * java/awt/Window.java (Window): Two new constructors. Reordered
2515 constructor chaining.
2516 (getGraphicsConfigurationImpl): New method.
2517 (finalize): Call super.
2518 (addNotify): Call super.
2519 (pack): Do layout stuff.
2520 (show): Ensure that peer exists and that component is valid.
2521 (dispose): Dispose owned children.
2522 (getOwner): Simplify code, casting null pointers is valid.
2523 (getGraphicsConfiguration): Ask peer if local value is null.
2524 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2526 * java/awt/image/BufferedImage.java: New file.
2527 * java/awt/image/RasterOp.java: New file.
2528 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2529 More powerfull replacement for getColorModel().
2530 (getColorModel) Removed.
2531 (setEventMask) New method.
2532 * Makefile.am: Added new files.
2533 * Makefile.in: Rebuilt.
2535 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2537 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2538 (finit_leg_name): New global.
2539 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2540 `$finit$'. This is a backward compatibility hack.
2541 (java::lang::Class::_getMethods): Likewise.
2543 2000-08-15 Andrew Haley <aph@cygnus.com>
2545 * include/jvm.h (_Jv_HashCode): New hash code.
2547 2000-08-15 Tom Tromey <tromey@cygnus.com>
2549 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2551 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2553 * THANKS: More thanks.
2555 2000-08-10 Tom Tromey <tromey@cygnus.com>
2557 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2559 (connect): Likewise.
2561 (getOption): Likewise.
2562 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2563 case when errno not set.
2566 (receive): Likewise.
2567 (mcastGrp): Likewise.
2568 (setOption): Likewise.
2569 (getOption): Likewise.
2571 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2572 John Stracke <francis@ecal.com>
2574 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2575 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2577 (disconnect): Don't unset connected flag.
2578 (getHeaderField (String)): Call connect() if not connected.
2579 (getHeaderField (int)): Ditto.
2580 (getHeaderFieldKey): Ditto.
2581 (getHttpHeaders): Don't call connect().
2582 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2583 gotResponseVals): New fields.
2584 (getResponseCode): Call getResponseVals() conditionally.
2585 (getResponseMessage): Ditto.
2586 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2588 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2590 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2591 * Makefile.in: Rebuilt.
2592 * java/awt/Color.java (getTransparency): New method.
2593 * java/awt/Component.java: Various updates.
2594 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2595 after dealing with children.
2596 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2597 * java/awt/Window.java: Various new methods and updates.
2598 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2600 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2601 * java/awt/event/WindowEvent.java (paramString): Ditto.
2602 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2604 * java/awt/geom/Point2D.java (clone): Ditto.
2605 * java/awt/geom/RectangularShape.java (clone): Ditto.
2606 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2607 isAlphaPremultiplied): Make package-private, not private.
2609 2000-08-08 Tom Tromey <tromey@cygnus.com>
2611 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2612 surrogate characters.
2613 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2615 (write): Correct handling of surrogate characters.
2617 2000-08-07 Tom Tromey <tromey@cygnus.com>
2619 * java/lang/reflect/Method.java (hashCode): Use getName().
2620 (toString): Likewise.
2621 * java/lang/reflect/natMethod.cc (getType): Initialize
2624 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2626 * java/lang/reflect/Field.java (toString): Correct formatting.
2629 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2631 (receive): Streamlined.
2633 2000-08-05 Tom Tromey <tromey@cygnus.com>
2635 * java/io/PrintWriter.java: Merged comments from Classpath.
2636 (printlnUnsynchronized): Removed.
2637 (println()): Print the separator.
2638 (println): Call println(), not printlnUnsynchronized.
2639 (out): Now protected, to match spec.
2641 2000-08-04 Tom Tromey <tromey@cygnus.com>
2643 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2644 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2647 2000-08-03 Warren Levy <warrenl@cygnus.com>
2649 * java/io/ObjectInputStream.java (readFields): Turn off
2650 readDataFromBlock while reading via GetField.
2651 (GetField$1.get(String, Object)): Pass Class of default value to
2653 (getField): Allow for null default values.
2655 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2656 (PutField$1.put): Fixed calls of checkType in most of the put
2657 methods to pass the correct parameter.
2658 (PutField$1.put(String, Object)): Allow for null value arg.
2659 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2662 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2663 typo in spec'ed field name.
2664 (getSerialPersistentFields): Changed spelling of method to match
2665 the correct spelling of the spec'ed field name.
2667 2000-08-03 Tom Tromey <tromey@cygnus.com>
2669 * Makefile.in: Rebuilt.
2670 * Makefile.am (awt_java_source_files): Added new files.
2672 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2674 * Makefile.am: Add new AWT stubs.
2675 * java/awt/Canvas.java: New placeholder class.
2676 * java/awt/Checkbox.java: Ditto.
2677 * java/awt/CheckboxMenuItem.java: Ditto.
2678 * java/awt/Choice.java: Ditto.
2679 * java/awt/Dialog.java: Ditto.
2680 * java/awt/FileDialog.java: Ditto.
2681 * java/awt/List.java: Ditto.
2682 * java/awt/ScrollPane.java: Ditto.
2683 * java/awt/TextField.java: Ditto.
2684 * java/awt/datatransfer/Clipboard.java: Ditto.
2685 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2686 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2687 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2688 Some commented out. Partially implemented.
2689 * java/awt/natToolkit.cc: Removed file.
2691 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2693 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2694 Fixes "make -j" builds.
2695 * Makefile.in: Rebuild.
2697 2000-08-02 Tom Tromey <tromey@cygnus.com>
2699 * Makefile.in: Rebuilt.
2700 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2701 * java/net/natPlainSocketImpl.cc: Include posix.h.
2702 (accept): Use _Jv_select.
2703 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2704 (receive): Use _Jv_select.
2705 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2706 (available): Use _Jv_select.
2707 * java/lang/natSystem.cc: Include posix.h.
2708 (currentTimeMillis): Use _Jv_gettimeofday.
2709 * include/posix.h: New file.
2710 * posix.cc: New file.
2712 * scripts/encodings.pl: New file.
2713 * Makefile.in: Rebuilt.
2714 * Makefile.am (convert_source_files): Added IOConverter.java.
2715 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2717 (getDefaultDecodingClass): Canonicalize default encoding name.
2718 (getEncoder): Likewise.
2719 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2721 (getDefaultDecodingClass): Canonicalize default encoding name.
2722 (getDecoder): Likewise.
2723 * gnu/gcj/convert/IOConverter.java: New file.
2725 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2727 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2728 to match C declaration in ffi.h.
2729 * Makefile.am: Add java/awt/Button.java.
2730 * Makefile.in: Rebuilt.
2732 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2734 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2735 cast of the second argument to `ffi_raw_call' changed to match
2738 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2740 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2741 argument to `ffi_raw_call' changed to match prototype.
2743 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2745 * java/awt/Component.java (toString): Implemented.
2746 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2747 dispatchEvent() to dispatch the event.
2748 (removeImpl): Ditto.
2750 2000-07-30 Anthony Green <green@redhat.com>
2752 * java/awt/Component.java: Add treeLock object.
2753 (getTreeLock): Implement.
2754 (isShowing): Implement.
2756 2000-07-30 Tom Tromey <tromey@cygnus.com>
2758 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2760 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2762 * java/awt/Window.java (addNotify): Wrote.
2763 (addWindowListener): Wrote.
2765 (getWarningString): Wrote.
2766 (processEvent): Wrote.
2767 (processWindowEvent): Wrote.
2768 (removeWindowListener): Wrote.
2769 (show): Call validate(), setVisible().
2773 * java/awt/Toolkit.java (createWindow): Declare.
2775 * java/awt/Frame.java (addNotify): Use getToolkit to find
2778 * java/awt/Component.java (invalidate): Wrote.
2780 (getToolkit): Wrote.
2782 * java/awt/Container.java (addContainerListener): Removed
2784 (removeContainerListener): Likewise.
2786 (add(Component)): Use it.
2787 (add(String,Component)): Likewise.
2788 (add(Component,int)): Likewise.
2789 (add(Component,Object)): Likewise.
2790 (add(Component,Object,int)): Likewise.
2792 (getAlignmentX): Wrote.
2793 (getAlignmentY): Wrote.
2794 (getComponentAt): Wrote.
2795 (getMaximumSize): Wrote.
2796 (invalidate): Wrote.
2797 (list(PrintStream,int)): Wrote.
2798 (list(PrintWriter,int)): Wrote.
2799 (getMinimumSize): Wrote.
2800 (getPreferredSize): Wrote.
2801 (printComponents): Wrote.
2802 (processContainerEvent): Look at containerListener, not
2804 (remove): Added event processing and peer destruction.
2805 (removeAll): Use remove.
2806 (removeNotify): Wrote.
2808 (validateTree): Wrote.
2810 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2811 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2812 * java/awt/Container.java (addNotify): Don't create Container
2814 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2816 2000-07-30 Tom Tromey <tromey@cygnus.com>
2818 * java/awt/Container.java (remove(int)): Wrote.
2819 (remove(Component)): Wrote.
2820 (add(Component)): Wrote.
2821 (add(Component,int)): Wrote.
2823 (addNotify): Set our own peer.
2824 * java/awt/Scrollbar.java (listeners): Changed type.
2825 (Scrollbar): Don't initialize listeners.
2827 (setValue): Call setValues.
2828 (setMinimum): Likewise.
2829 (setMaxPriority): Likewise.
2830 (setVisibleAmount): Likewise.
2832 (setUnitIncrement): Forward to peer.
2833 (setLineIncrement): Call setUnitIncrement.
2834 (setPageIncrement): Call setBlockIncrement.
2835 (setBlockIncrement): Forward to peer.
2836 (addAdjustmentListener): Rewrote.
2837 (removeAdjustmentListener): Rewrote.
2838 (processAdjustmentEvent): Rewrote.
2839 (paramString): Wrote.
2840 * Makefile.in: Rebuilt.
2841 * Makefile.am (awt_java_source_files): Added Button.java.
2842 * java/awt/Button.java: New file.
2843 * java/awt/Toolkit.java (createLabel): Declare.
2844 (createButton): Likewise.
2845 (createScrollbar): Likewise.
2846 (createContainer): Likewise.
2847 * java/awt/Label.java (addNotify): Wrote.
2848 (setAlignment): Call setAlignment in the peer.
2849 (setText): Call setText in the peer.
2851 2000-07-28 Warren Levy <warrenl@cygnus.com>
2853 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2854 NotSerializableException with just the class name.
2856 2000-07-26 Andrew Haley <aph@cygnus.com>
2858 * interpret.cc (continue1): Insert missing break into switch.
2860 2000-07-28 Warren Levy <warrenl@cygnus.com>
2862 * java/io/ObjectStreamException.java: Made constructors protected.
2864 2000-07-27 Tom Tromey <tromey@cygnus.com>
2866 * java/io/OutputStreamWriter.java (close): Only flush if not
2869 2000-07-27 Warren Levy <warrenl@cygnus.com>
2871 * mauve-libgcj: Activated serialization tests.
2872 * gcj/field.h (getModifiers): Mask off unknown flags.
2873 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2874 spurious bits don't cause discrepancies.
2875 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2876 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2877 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2878 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2879 * java/lang/Throwable.java (serialVersionUID): New field.
2880 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2881 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2883 * java/lang/reflect/natMethod.cc: Ditto.
2884 * java/security/Key.java (serialVersionUID): Removed field for now.
2885 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2886 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2888 2000-07-22 Tom Tromey <tromey@cygnus.com>
2890 * java/awt/geom/RectangularShape.java (getPathIterator):
2893 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2895 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2896 stub libjava/java/awt/ColorModel.java which was located in the
2898 * libjava/java/awt/image/ComponentColorModel.java: New file.
2899 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2900 * libjava/java/awt/image/DataBuffer.java: New file.
2901 * libjava/java/awt/image/DataBufferByte.java: New file.
2902 * libjava/java/awt/image/DataBufferInt.java: New file.
2903 * libjava/java/awt/image/DataBufferUShort.java: New file.
2904 * libjava/java/awt/image/DirectColorModel.java: New file.
2905 * libjava/java/awt/image/PackedColorModel.java: New file.
2906 * libjava/java/awt/image/Raster.java: New file.
2907 * libjava/java/awt/image/SampleModel.java: New file.
2908 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2910 * libjava/java/awt/image/IndexColorModel.java: New file.
2911 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2912 java.awt.ColorModel stub.
2914 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2915 * gnu/gcj/util/Buffers.java: New file, utility class.
2917 * libjava/Makefile.am: Updated to include new files.
2918 * libjava/Makefile.in: Rebuilt.
2920 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2922 * java/io/StreamTokenizer.java: Merged with classpath.
2924 2000-07-20 Tom Tromey <tromey@cygnus.com>
2926 * Makefile.in: Rebuilt.
2927 * Makefile.am (awt_java_source_files): Updated for new files.
2928 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2929 * java/awt/Label.java: New file.
2930 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2931 (createIntersection, createUnion, getBounds2D): New methods.
2932 * java/awt/Scrollbar.java: New file.
2933 * java/awt/Shape.java: Updated to 1.2.
2934 * java/awt/geom/AffineTransform.java: New file.
2935 * java/awt/geom/Ellipse2D.java: New file.
2936 * java/awt/geom/NoninvertibleTransformException.java: New file.
2937 * java/awt/geom/PathIterator.java: New file.
2938 * java/awt/geom/Rectangle2D.java: New file.
2939 * java/awt/geom/RectangularShape.java: New file.
2940 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2941 * java/awt/geom/IllegalPathStateException.java: New file.
2943 * scripts/showval.java: New file.
2945 * scripts/classes.pl (scan): Print inner classes properly.
2946 * gcj/javaprims.h: Updated class list.
2948 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2949 initialize String fields for interpreted classes. Fixes bug
2950 reported by Hans Boehm.
2952 * java/io/File.java (getParentFile): New method, from Classpath
2953 via Oskar Liljeblad.
2955 * java/util/Vector.java (remove(Object)): Implemented.
2957 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2959 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2960 zero return from backtrace().
2962 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2964 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2966 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2967 before calling notifyAll().
2969 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2971 Add missing files from last check-in:
2972 * java/awt/image/ImageConsumer.java: New file.
2973 * java/awt/image/ImageProducer.java: New file.
2974 * java/awt/image/ImageObserver.java: New file.
2976 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2978 Merged implementation of java.applet from classpath:
2979 * java/applet/Applet.java: New file.
2980 * java/applet/AppletContext.java: New file.
2981 * java/applet/AppletStub.java: New file.
2982 * java/applet/AudioClip.java: New file.
2984 * Makefile.am: Added new java.applet classes.
2985 * Makefile.in: Rebuilt.
2987 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2990 * java/util/ResourceBundle.java (getLocale): stub.
2991 * Makefile.am: Added new AWT classes.
2992 * Makefile.in: Rebuilt.
2993 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2994 constructors. Fix toString() and paramString().
2995 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2996 * java/awt/CheckboxGroup.java: New class.
2997 * java/awt/ColorModel.java: New class.
2998 * java/awt/Component.java: Added stubs for most methods. Implemented
3000 * java/awt/Container.java: ditto.
3001 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3002 * java/awt/Cursor.java: ditto.
3003 * java/awt/Event.java: Fix paramString().
3004 * java/awt/EventQueue.java: New class. Implemented.
3005 * java/awt/Font.java: Added additional stub methods. Implemented
3007 * java/awt/FontMetrics.java: New class. Stubbed.
3008 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3010 * java/awt/Insets.java: New class. Implemented.
3011 * java/awt/Menu.java: Add new methods. Partially implemented.
3012 * java/awt/MenuItem.java: Add new methods and fields. Partially
3014 * java/awt/MenuShortcut.java: New class. Implemented.
3015 * java/awt/Panel.java: New class. Placeholder.
3016 * java/awt/PopupMenu.java: New class. Stubbed.
3017 * java/awt/Rectangle.java: New class. Implemented.
3018 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3019 * java/awt/event/ActionEvent.java: Implement paramString().
3020 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3021 * java/awt/event/ComponentEvent.java: Implement paramString().
3022 * java/awt/event/ContainerEvent.java: Implement paramString().
3023 * java/awt/event/FocusEvent.java: Implement paramString().
3024 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3025 * java/awt/event/HierarchyBoundsListener.java: New class.
3026 * java/awt/event/HierarchyEvent.java: New class.
3027 * java/awt/event/HierarchyListener.java: New class.
3028 * java/awt/event/InputMethodEvent.java: Implement paramString().
3029 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3030 exception if !catchExceptions.
3031 * java/awt/event/ItemEvent.java: Implement paramString().
3032 * java/awt/event/KeyEvent.java: Implement paramString().
3033 * java/awt/event/MouseEvent.java: Implement paramString().
3034 * java/awt/event/PaintEvent.java: Implement paramString().
3035 * java/awt/event/TextEvent.java: Implement paramString().
3036 * java/awt/event/WindowEvent.java: Implement paramString().
3038 AWT Peer interfaces:
3039 * java/awt/peer/ButtonPeer.java: New file.
3040 * java/awt/peer/ListPeer.java: New file.
3041 * java/awt/peer/CanvasPeer.java: New file.
3042 * java/awt/peer/MenuBarPeer.java: New file.
3043 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3044 * java/awt/peer/MenuComponentPeer.java: New file.
3045 * java/awt/peer/CheckboxPeer.java: New file.
3046 * java/awt/peer/MenuItemPeer.java: New file.
3047 * java/awt/peer/ChoicePeer.java: New file.
3048 * java/awt/peer/MenuPeer.java: New file.
3049 * java/awt/peer/ComponentPeer.java: Implemented.
3050 * java/awt/peer/PanelPeer.java: New file.
3051 * java/awt/peer/ContainerPeer.java: Implemented.
3052 * java/awt/peer/PopupMenuPeer.java: New file.
3053 * java/awt/peer/DialogPeer.java: New file.
3054 * java/awt/peer/ScrollPanePeer.java: New file.
3055 * java/awt/peer/FileDialogPeer.java: New file.
3056 * java/awt/peer/ScrollbarPeer.java: New file.
3057 * java/awt/peer/FontPeer.java: New file.
3058 * java/awt/peer/TextAreaPeer.java: New file.
3059 * java/awt/peer/FramePeer.java: Implemented.
3060 * java/awt/peer/TextComponentPeer.java: New file.
3061 * java/awt/peer/LabelPeer.java: New file.
3062 * java/awt/peer/TextFieldPeer.java: New file.
3063 * java/awt/peer/LightweightPeer.java: New file.
3064 * java/awt/peer/WindowPeer.java: Implemented.
3066 2000-07-06 Tom Tromey <tromey@cygnus.com>
3068 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3069 Initialize static final String fields.
3071 2000-07-03 Tom Tromey <tromey@cygnus.com>
3073 * java/io/PrintWriter.java (print): Call write(String), not
3074 print(String). See PR libgcj/277.
3075 (print(String)): Use write, not out.write.
3077 2000-06-30 Tom Tromey <tromey@cygnus.com>
3079 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3081 2000-06-27 Andrew Haley <aph@cygnus.com>
3083 * java/io/File.java (createTempFile): Close the FileDescriptor
3084 used to create a temp file. Fixes some of PR 203.
3085 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3086 collection if we run out of file handles.
3088 2000-06-28 Warren Levy <warrenl@cygnus.com>
3090 * gnu/java/security/provider/Gnu.java: New file.
3091 * gnu/java/security/provider/SHA.java: New file.
3092 * gnu/java/security/provider/SHA1PRNG.java: New file.
3093 * Makefile.am: Added the above files.
3094 * Makefile.in: Rebuilt.
3096 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3098 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3100 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3101 (destroyed_flag): Removed.
3102 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3103 (activeCount): Added spec note.
3105 2000-06-27 Warren Levy <warrenl@cygnus.com>
3107 * java/security/Principal.java: New file.
3108 * Makefile.am: Added Principal.java.
3109 * Makefile.in: Rebuilt.
3111 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3113 * java/awt/event/MouseEvent.java: Fixed coordinate space
3116 2000-06-27 Tom Tromey <tromey@cygnus.com>
3118 * java/io/PushbackInputStream.java (read): If there are characters
3119 in the buffer, don't also call super.read().
3120 * java/io/PushbackReader.java (read): If there are characters in
3121 the buffer, don't also call super.read().
3123 * java/lang/Double.java (valueOf): Call parseDouble().
3125 2000-06-26 Warren Levy <warrenl@cygnus.com>
3127 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3128 (newVal): Renamed to newValue.
3129 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3130 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3131 (revokeNow): Renamed to invalidateRefs.
3132 * java/io/OptionalDataException.java: Updated FIXME.
3133 (eof): New placeholder field.
3135 * java/io/WriteAbortedException.java (message): Made transient.
3136 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3137 * java/lang/Throwable.java (stackTrace): Made transient.
3138 * java/net/InetAddress.java: Made Serializable.
3139 * java/security/KeyPair.java: Made Serializable.
3140 * java/security/Provider.java: Replaced with Classpath version that
3141 implements serialization and proper methods.
3142 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3143 (limits): Renamed to choiceLimits.
3145 2000-06-24 Tom Tromey <tromey@cygnus.com>
3147 * java/lang/natDouble.cc (parseDouble): Renamed from
3149 * java/lang/Double.java (parseDouble): Renamed from
3150 doubleValueOf. Now public.
3152 2000-06-23 Andrew Haley <aph@cygnus.com>
3154 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3155 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3157 2000-06-23 Tom Tromey <tromey@cygnus.com>
3159 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3160 * java/lang/natDouble.cc: Always include <alloca.h>.
3161 Fix for PR libgcj/267.
3163 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3165 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3166 comply with classpath VM spec.
3167 (add(Group)): Rename to addGroup().
3168 * java/lang/Thread.java (Thread): Use addThread().
3169 * java/lang/natThread.cc (finish_): Use removeThread().
3171 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3173 * java/lang/ThreadGroup.java: Merged with classpath.
3174 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3175 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3177 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3178 ThreadGroup.root if Thread.currentThread is null. Honour the
3179 ThreadGroup's max priority setting.
3181 2000-06-18 Tom Tromey <tromey@cygnus.com>
3183 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3184 returned class. For PR gcj/260.
3186 2000-06-16 Tom Tromey <tromey@cygnus.com>
3188 Fix for PR libgcj/261:
3189 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3191 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3192 argument. (This is a patch from long ago that somehow went
3195 2000-06-15 Tom Tromey <tromey@cygnus.com>
3197 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3201 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3203 Fix for PR java.lang/258:
3204 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3205 JV_STATE_DONE, to prevent accidental initialization.
3206 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3207 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3208 interface or an abstract class. Remove redundant initializeClass calls.
3209 Remove duplicate if_idt test.
3210 (_Jv_InterfaceAssignableFrom): New function.
3211 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3213 2000-05-31 Tom Tromey <tromey@cygnus.com>
3215 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3216 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3217 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3218 (NUM_OBJECT_METHODS): New define.
3219 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3220 `array_vtable' parameter. Added assertion.
3221 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3224 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3226 * gcj/cni.h: Include <string.h>.
3227 * defineclass.cc: Include <alloca.h>.
3228 * interpret.cc: Ditto.
3229 * gij.cc: Include <stdlib.h>.
3231 2000-05-30 Tom Tromey <tromey@cygnus.com>
3233 * include/name-finder.h: Include <sys/wait.h>.
3234 (_Jv_name_finder::pid): Now of type `pid_t'.
3235 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3236 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3239 2000-05-24 Warren Levy <warrenl@cygnus.com>
3241 * java/io/ObjectOutputStream.java (writeObject): Use component type
3242 when writing arrays.
3245 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3247 Fix for PR libgcj/226:
3248 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3249 since this is an installed header.
3251 Fix for PR libgcj/228:
3252 * java/util/zip/ZipFile (getInputStream): Create inflater with
3255 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3256 with DataFormatException.
3258 2000-05-20 Tom Tromey <tromey@cygnus.com>
3260 * Makefile.in: Rebuilt.
3261 * Makefile.am (hack1): Removed.
3262 (awto_files): Likewise.
3263 (libgcjawt_la_SOURCES): Likewise.
3264 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3265 (libgcjawt_la_DEPENDENCIES): Likewise.
3266 (libgcjawt_la_LIBADD): Likewise.
3267 (libgcjawt_la_LDFLAGS): Likewise.
3268 (libgcjawt_la_LINK): Likewise.
3269 ($(awt_java_source_files:.java=.class)): Likewise.
3270 (libgcj.zip): Don't depend on AWT files.
3271 (MOSTLYCLEANFILES): Don't include AWT files.
3272 ($(awto_files)): Removed.
3273 (nat_headers): Removed AWT files.
3274 (cond_awt_java_source_files): Removed.
3275 (ordinary_java_source_files): Added awt_java_source_files.
3276 * libgcj.spec.in (*lib): Removed -lgcjawt.
3277 * configure: Rebuilt.
3278 * configure.in: Removed --enable-java-awt option.
3280 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3282 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3283 (ZipEntry): Copy the `name' field.
3284 (clone): Implement JDK1.2 method.
3285 (setCompressedSize): ditto.
3288 2000-05-19 Tom Tromey <tromey@cygnus.com>
3290 * java/io/BufferedWriter.java: Merged with Classpath.
3291 * java/io/BufferedOutputStream.java: Merged with Classpath.
3293 2000-05-16 Andrew Haley <aph@cygnus.com>
3295 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3296 build_ia64_frame_state.
3297 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3300 2000-05-15 Warren Levy <warrenl@cygnus.com>
3302 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3303 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3304 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3305 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3306 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3307 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3308 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3309 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3310 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3311 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3312 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3313 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3314 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3315 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3316 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3317 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3318 * gnu/gcj/io/NullOutputStream.java: Removed.
3319 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3320 * gnu/gcj/lang/ArrayHelper.java: Removed.
3321 * gnu/gcj/lang/ClassHelper.java: Removed.
3322 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3324 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3325 * gnu/java/beans/EmptyBeanInfo.java: New file.
3326 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3327 * gnu/java/beans/IntrospectionIncubator.java: New file.
3328 * gnu/java/beans/editors/ColorEditor.java: New file.
3329 * gnu/java/beans/editors/FontEditor.java: New file.
3330 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3331 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3332 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3333 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3334 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3335 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3336 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3337 * gnu/java/beans/editors/StringEditor.java: New file.
3338 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3339 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3340 * gnu/java/io/NullOutputStream.java: New file.
3341 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3342 * gnu/java/lang/ArrayHelper.java: New file.
3343 * gnu/java/lang/ClassHelper.java: New file.
3344 * gnu/java/lang/reflect/TypeSignature.java: New file.
3346 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3347 namespace back to the original Classpath gnu/java namespace.
3348 * Makefile.in: Rebuilt.
3350 * java/beans/Beans.java: Namespace change.
3351 * java/beans/EventSetDescriptor.java: Namespace change.
3352 * java/beans/Introspector.java: Namespace change.
3353 * java/beans/PropertyEditorManager.java: Namespace change.
3354 * java/io/ObjectInputStream.java: Namespace change.
3355 * java/io/ObjectOutputStream.java: Namespace change.
3356 * java/io/ObjectStreamClass.java: Namespace change.
3357 * java/io/ObjectStreamField.java: Namespace change.
3359 2000-04-21 Warren Levy <warrenl@cygnus.com>
3361 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3362 now that compiler patch is available.
3363 Removed unneeded System.loadLibrary.
3364 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3365 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3367 2000-04-19 Andrew Haley <aph@cygnus.com>
3369 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3370 and target classes have been initialized.
3372 2000-04-19 Andrew Haley <aph@cygnus.com>
3374 * java/lang/String.java: implement Serializable, Comparable.
3375 (compareTo (Object)): New method.
3377 2000-04-19 Warren Levy <warrenl@cygnus.com>
3379 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3380 instead of getField to retrieve non-public field.
3381 (getSerialPersistantFields): Ditto.
3383 2000-04-18 Warren Levy <warrenl@cygnus.com>
3385 * mauve-libgcj: Turned off object serialization tests temporarily
3386 due to compiler error.
3388 2000-04-17 Warren Levy <warrenl@cygnus.com>
3390 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3391 to avoid build problem.
3393 * mauve-libgcj: Turned on object serialization tests.
3395 2000-04-17 Tom Tromey <tromey@cygnus.com>
3397 * libgcj.spec.in (*lib): Added -lgcjawt.
3399 2000-04-17 Andrew Haley <aph@cygnus.com>
3401 * Makefile.am: Add new files:
3402 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3404 * Makefile.in: Rebuilt.
3406 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3407 interface that has no implementations.
3408 Check for an attempt to assign an abstract class to an interface.
3410 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3411 if we fail to find MessageDigest.getInstance ("SHA").
3413 * gnu/gcj/io/SimpleSHSStream.java: New file.
3414 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3415 * gnu/gcj/io/shs.cc: New file.
3416 * gnu/gcj/io/shs.h: new file.
3418 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3421 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3422 punctuation from the classname of an array element.
3424 * gcj/javaprims.h: Add SimpleDigestStream.
3426 2000-04-17 Andrew Haley <aph@cygnus.com>
3428 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3429 to getPrivateField for superclasses.
3431 2000-04-14 Andrew Haley <aph@cygnus.com>
3433 * Makefile.am: Add new files:
3434 java/io/ObjectOutputStream$PutField.h,
3435 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3436 java/io/natObjectOutputStream.cc
3437 * Makefile.in: Rebuilt.
3438 * gcj/Makefile.in: Rebuilt.
3439 * include/Makefile.in: Rebuilt.
3440 * java/lang/Class.h (getPrivateField): New method.
3441 (getPrivateMethod): Ditto.
3442 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3443 and java::io::ObjectStreamClass our friends.
3444 * java/lang/natClass.cc (getPrivateField): New method.
3445 (getPrivateMethod): Ditto.
3446 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3447 * gcj/javaprims.h: Add serialization classes.
3448 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3449 (setByteField): Ditto.
3450 (setCharField): Ditto.
3451 (setDoubleField): Ditto.
3452 (setFloatField): Ditto.
3453 (setIntField): Ditto.
3454 (setLongField): Ditto.
3455 (setShortField): Ditto.
3456 (setObjectField): Ditto.
3457 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3459 (getByteField): Ditto.
3460 (getCharField): Ditto.
3461 (getDoubleField): Ditto.
3462 (getFloatField): Ditto.
3463 (getIntField): Ditto.
3464 (getLongField): Ditto.
3465 (getShortField): Ditto.
3466 (getObjectField): Ditto.
3467 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3469 (getSerialPersistantFields): Ditto.
3470 (getDefinedSUID): Ditto.
3471 * java/io/natObjectOutputStream.cc: New file.
3472 * java/io/natObjectInputStream.cc: New file.
3474 2000-04-13 Warren Levy <warrenl@cygnus.com>
3476 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3477 problems. Revert to previous version to reproduce and when fixed.
3479 2000-04-13 Warren Levy <warrenl@cygnus.com>
3481 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3482 * gnu/gcj/io/NullOutputStream.java: New file.
3483 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3484 * java/io/BlockDataException.java: New file.
3485 * java/io/Externalizable.java: New file.
3486 * java/io/InvalidClassException.java: New file.
3487 * java/io/InvalidObjectException.java: New file.
3488 * java/io/NotActiveException.java: New file.
3489 * java/io/NotSerializableException.java: New file.
3490 * java/io/ObjectInput.java: New file.
3491 * java/io/ObjectInputStream.java: New file.
3492 * java/io/ObjectInputValidation.java: New file.
3493 * java/io/ObjectOutput.java: New file.
3494 * java/io/ObjectOutputStream.java: New file.
3495 * java/io/ObjectStreamClass.java: New file.
3496 * java/io/ObjectStreamConstants.java: New file.
3497 * java/io/ObjectStreamField.java: New file.
3498 * java/io/Replaceable.java: New file.
3499 * java/io/Resolvable.java: New file.
3500 * java/io/SerializablePermission.java: New file.
3501 * java/io/WriteAbortedException.java: New file.
3502 * java/security/BasicPermission.java: New file.
3503 * java/security/DigestOutputStream.java: New file.
3504 * java/security/Guard.java: New file.
3505 * java/security/Permission.java: New file.
3506 * java/security/PermissionCollection.java: New file.
3507 * Makefile.am: Added above files.
3508 * Makefile.in: Rebuilt.
3510 * java/beans/Beans.java (instantiate): Activated serialization code.
3511 * java/lang/SecurityManager.java (checkPermission): New method.
3513 2000-04-12 Warren Levy <warrenl@cygnus.com>
3515 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3516 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3517 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3518 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3519 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3520 * gnu/gcj/beans/editors/FontEditor.java: New file.
3521 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3522 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3523 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3524 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3525 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3526 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3527 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3528 * gnu/gcj/beans/editors/StringEditor.java: New file.
3529 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3530 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3531 * gnu/gcj/lang/ArrayHelper.java: New file.
3532 * gnu/gcj/lang/ClassHelper.java: New file.
3533 * java/beans/BeanDescriptor.java: New file.
3534 * java/beans/BeanInfo.java: New file.
3535 * java/beans/Beans.java: New file.
3536 * java/beans/Customizer.java: New file.
3537 * java/beans/DesignMode.java: New file.
3538 * java/beans/EventSetDescriptor.java: New file.
3539 * java/beans/FeatureDescriptor.java: New file.
3540 * java/beans/IndexedPropertyDescriptor.java: New file.
3541 * java/beans/IntrospectionException.java: New file.
3542 * java/beans/Introspector.java: New file.
3543 * java/beans/MethodDescriptor.java: New file.
3544 * java/beans/ParameterDescriptor.java: New file.
3545 * java/beans/PropertyChangeEvent.java: New file.
3546 * java/beans/PropertyChangeListener.java: New file.
3547 * java/beans/PropertyChangeSupport.java: New file.
3548 * java/beans/PropertyDescriptor.java: New file.
3549 * java/beans/PropertyEditor.java: New file.
3550 * java/beans/PropertyEditorManager.java: New file.
3551 * java/beans/PropertyEditorSupport.java: New file.
3552 * java/beans/PropertyVetoException.java: New file.
3553 * java/beans/SimpleBeanInfo.java: New file.
3554 * java/beans/VetoableChangeListener.java: New file.
3555 * java/beans/VetoableChangeSupport.java: New file.
3556 * java/beans/Visibility.java: New file.
3557 * java/beans/beancontext/BeanContext.java: New file.
3558 * java/beans/beancontext/BeanContextChild.java: New file.
3559 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3560 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3561 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3562 * java/beans/beancontext/BeanContextEvent.java: New file.
3563 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3564 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3565 * java/beans/beancontext/BeanContextProxy.java: New file.
3566 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3568 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3569 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3571 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3572 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3574 * java/beans/beancontext/BeanContextServices.java: New file.
3575 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3576 * java/util/AbstractCollection.java: New file.
3577 * java/util/AbstractList.java: New file.
3578 * java/util/Arrays.java: New file.
3579 * Makefile.am: Added above files.
3580 * Makefile.in: Rebuilt.
3582 2000-04-11 Warren Levy <warrenl@cygnus.com>
3584 * java/awt/AWTError.java: New file.
3585 * java/awt/AWTEvent.java: New file.
3586 * java/awt/AWTException.java: New file.
3587 * java/awt/ActiveEvent.java: New file.
3588 * java/awt/Adjustable.java: New file.
3589 * java/awt/BorderLayout.java: New file.
3590 * java/awt/Color.java: New file.
3591 * java/awt/Component.java: New file.
3592 * java/awt/Container.java: New file.
3593 * java/awt/Dimension.java: New file.
3594 * java/awt/Event.java: New file.
3595 * java/awt/Font.java: New file.
3596 * java/awt/Frame.java: New file.
3597 * java/awt/Graphics.java: New file.
3598 * java/awt/IllegalComponentStateException.java: New file.
3599 * java/awt/Image.java: New file.
3600 * java/awt/ItemSelectable.java: New file.
3601 * java/awt/LayoutManager.java: New file.
3602 * java/awt/LayoutManager2.java: New file.
3603 * java/awt/Menu.java: New file.
3604 * java/awt/MenuBar.java: New file.
3605 * java/awt/MenuComponent.java: New file.
3606 * java/awt/MenuContainer.java: New file.
3607 * java/awt/MenuItem.java: New file.
3608 * java/awt/Paint.java: New file.
3609 * java/awt/PaintContext.java: New file.
3610 * java/awt/Point.java: New file.
3611 * java/awt/Rectangle.java: New file.
3612 * java/awt/Shape.java: New file.
3613 * java/awt/TextArea.java: New file.
3614 * java/awt/TextComponent.java: New file.
3615 * java/awt/Toolkit.java: New file.
3616 * java/awt/Transparency.java: New file.
3617 * java/awt/Window.java: New file.
3618 * java/awt/natToolkit.cc: New file.
3619 * java/awt/event/AWTEventListener.java: New file.
3620 * java/awt/event/ActionEvent.java: New file.
3621 * java/awt/event/ActionListener.java: New file.
3622 * java/awt/event/AdjustmentEvent.java: New file.
3623 * java/awt/event/AdjustmentListener.java: New file.
3624 * java/awt/event/ComponentAdapter.java: New file.
3625 * java/awt/event/ComponentEvent.java: New file.
3626 * java/awt/event/ComponentListener.java: New file.
3627 * java/awt/event/ContainerAdapter.java: New file.
3628 * java/awt/event/ContainerEvent.java: New file.
3629 * java/awt/event/ContainerListener.java: New file.
3630 * java/awt/event/FocusAdapter.java: New file.
3631 * java/awt/event/FocusEvent.java: New file.
3632 * java/awt/event/FocusListener.java: New file.
3633 * java/awt/event/InputEvent.java: New file.
3634 * java/awt/event/InputMethodEvent.java: New file.
3635 * java/awt/event/InputMethodListener.java: New file.
3636 * java/awt/event/InvocationEvent.java: New file.
3637 * java/awt/event/ItemEvent.java: New file.
3638 * java/awt/event/ItemListener.java: New file.
3639 * java/awt/event/KeyAdapter.java: New file.
3640 * java/awt/event/KeyEvent.java: New file.
3641 * java/awt/event/KeyListener.java: New file.
3642 * java/awt/event/MouseAdapter.java: New file.
3643 * java/awt/event/MouseEvent.java: New file.
3644 * java/awt/event/MouseListener.java: New file.
3645 * java/awt/event/MouseMotionAdapter.java: New file.
3646 * java/awt/event/MouseMotionListener.java: New file.
3647 * java/awt/event/PaintEvent.java: New file.
3648 * java/awt/event/TextEvent.java: New file.
3649 * java/awt/event/TextListener.java: New file.
3650 * java/awt/event/WindowAdapter.java: New file.
3651 * java/awt/event/WindowEvent.java: New file.
3652 * java/awt/event/WindowListener.java: New file.
3653 * java/awt/geom/Dimension2D.java: New file.
3654 * java/awt/geom/Point2D.java: New file.
3655 * java/awt/peer/ComponentPeer.java: New file.
3656 * java/awt/peer/ContainerPeer.java: New file.
3657 * java/awt/peer/FramePeer.java: New file.
3658 * java/awt/peer/WindowPeer.java: New file.
3659 * java/util/Collection.java: New file.
3660 * java/util/Comparator.java: New file.
3661 * java/util/Iterator.java: New file.
3662 * java/util/List.java: New file.
3663 * java/util/ListIterator.java: New file.
3664 * Makefile.am: Added above files.
3665 * Makefile.in: Rebuilt.
3667 2000-04-10 Warren Levy <warrenl@cygnus.com>
3669 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3670 * java/lang/FirstThread.java: Ditto.
3671 * java/lang/StringBuffer.java: Ditto.
3672 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3674 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3675 Special case handled in java.math.BigInteger.
3676 * java/math/BigInteger.java (divide): Handle the special case when
3677 dividing by 1 and the high bit of the dividend is set.
3678 (setShiftRight): Handle case when count == 0.
3680 2000-04-05 Andrew Haley <aph@cygnus.com>
3682 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3685 2000-04-05 Andrew Haley <aph@cygnus.com>
3687 * sysdep/ia64.c (rse_address_add): Delete.
3688 (IS_NaT_COLLECTION_ADDR): Delete.
3689 (ia64_backtrace_helper): check for null unwind_info.
3691 * sysdep/ia64-frame.h: add calc_caller_bsp.
3693 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3696 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3697 (_Jv_remI): Likewise.
3698 (_Jv_divJ): Likewise.
3699 (_Jv_remJ): Likewise.
3701 * interpret.cc (continue1): Use divide subroutines to guarantee
3702 correct Java standard behaviour.
3703 Floating-point division should not abort; make it so.
3705 2000-03-29 Tom Tromey <tromey@cygnus.com>
3707 * configure: Rebuilt.
3708 * configure.in: Test against `libgcj_sjlj', not
3709 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3710 to be set even when using sjlj.
3712 2000-03-24 Andrew Haley <aph@cygnus.com>
3714 * Makefile.am: Add file addr2name.awk.
3715 * Makefile.in: Rebuilt.
3716 * addr2name.awk: New file.
3717 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3719 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3722 2000-03-22 Andrew Haley <aph@cygnus.com>
3724 * configure.host: Add -funwind-tables for IA64.
3725 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3726 * Makefile.in: Rebuilt.
3727 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3728 * sysdep/ia64.c: New file.
3729 * sysdep/ia64-frame.h: New file.
3730 * configure.in: Add sysdep/ia64.c for ia64.
3731 * configure: Rebuilt.
3733 2000-03-17 Andrew Haley <aph@cygnus.com>
3735 * java/lang/natString.cc: Remove `register' keyword.
3736 interpret.cc: ditto.
3738 2000-03-16 Andrew Haley <aph@cygnus.com>
3740 * configure.host (ia64): Enable interpreter.
3742 2000-03-14 Hans Boehm <boehm@acm.org>
3744 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3746 2000-03-14 Andrew Haley <aph@cygnus.com>
3748 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3751 2000-03-10 Andrew Haley <aph@cygnus.com>
3753 * java/lang/ieeefp.h: Import latest version from fdlibm.
3755 2000-03-14 Andrew Haley <aph@cygnus.com>
3757 * prims.cc (_Jv_ThrowSignal): New function.
3758 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3760 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3761 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3762 * include/ppc-signal.h: New file.
3764 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3766 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3767 * java/lang/natThread.java (initialize_native): Cast `data' to
3769 * gnu/gcj/RawData.java: Clarify documentation.
3771 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3772 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3773 `jarFile', not `jarFileURL'.
3775 2000-05-15 Andrew Haley <aph@cygnus.com>
3777 * include/ppc-signal.h: New file.
3779 2000-05-11 Tom Tromey <tromey@cygnus.com>
3781 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3782 file headers, don't include `size' in the skip call.
3784 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3786 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3787 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3789 (replace): Reimplemented. Fix javadoc.
3790 (reverse): Call ensureCapacity_unsynchronized().
3791 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3793 (replace): Calculate length for arraycopy() correctly.
3795 2000-05-09 Tom Tromey <tromey@cygnus.com>
3797 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3799 (insert(int,char[],int,int): New method.
3800 (delete): New method from Classpath.
3801 (deleteCharAt): Likewise.
3802 (substring): Likewise.
3803 (shared): No longer private.
3804 Added JavaDoc comments from Classpath.
3805 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3808 2000-05-07 Tom Tromey <tromey@cygnus.com>
3810 * Makefile.in: Rebuilt.
3811 * Makefile.am (LIBLINK): New macro.
3812 (libgcj_la_LINK): Use it.
3813 (libgcjawt_la_LINK): Likewise.
3815 2000-05-06 Tom Tromey <tromey@cygnus.com>
3817 * Makefile.in: Rebuilt.
3818 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3820 2000-05-05 Tom Tromey <tromey@cygnus.com>
3822 Fix for PR libgcj/220:
3823 * Makefile.in: Rebuilt.
3824 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3825 (jv_convert_LDFLAGS): Likewise.
3826 (libgcj_la_LDFLAGS): Likewise.
3827 (GCJLINK): New macro.
3828 (jv_convert_LINK): Use it.
3829 (gij_LINK): Likewise.
3830 (libgcj_la_LINK): New macro.
3831 (libgcjawt_la_LINK): Likewise.
3833 2000-05-04 Tom Tromey <tromey@cygnus.com>
3835 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3837 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3841 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3843 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3844 (_Jv_IsAssignableFrom): Ditto.
3845 (_Jv_IsInstanceOf): Ditto.
3846 (_Jv_CheckCast): Ditto.
3847 (_Jv_CheckArrayStore): Ditto.
3848 * java/lang/Class.h (_Jv_InitClass): Ditto.
3849 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3854 (_Jv_MonitorExit): Ditto.
3855 * boehm.cc (_Jv_MarkObj): Ditto.
3856 (_Jv_MarkObj): Ditto.
3857 (_Jv_MarkArray): Ditto.
3858 * prims.cc (_Jv_AllocObject): Ditto.
3859 (_Jv_NewObjectArray): Ditto.
3860 (_Jv_NewPrimArray): Ditto.
3861 (_Jv_Malloc): Ditto.
3862 (_Jv_Realloc): Ditto.
3863 (_Jv_MallocUnchecked): Ditto.
3869 2000-05-04 Tom Tromey <tromey@cygnus.com>
3871 * java/util/Locale.java (Locale): Don't explicitly check for
3873 * java/util/Hashtable.java (containsKey): Don't explicitly check
3876 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3878 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3880 * java/text/StringCharacterIterator.java
3881 (StringCharacterIterator): Don't check for null.
3882 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3884 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3885 check for null pointer.
3886 (leaveGroup): Likewise.
3887 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3889 (setData): Likewise.
3890 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3893 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3895 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3896 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3897 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3898 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3899 -rpath for in-gcc builds.
3900 * Makefile.in: Rebuilt.
3902 2000-04-28 Tom Tromey <tromey@cygnus.com>
3904 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3907 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3909 * libjava/java/lang/String.java (toString): Remove `final' hack.
3911 2000-04-05 Tom Tromey <tromey@cygnus.com>
3913 Runtime support for PR gcj/2:
3914 * prims.cc (_Jv_ThrowNullPointerException): New function.
3915 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3917 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3919 * prims.cc (_Jv_NewObjectArray): Fix typo.
3921 2000-04-26 Tom Tromey <tromey@cygnus.com>
3923 * Makefile.in: Rebuilt.
3924 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3926 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3928 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3931 2000-04-22 Anthony Green <green@cygnus.com>
3933 * include/jvm.h (__builtin_expect): Define as unused for now.
3934 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3938 (_Jv_MonitorExit): Ditto.
3939 * boehm.cc (_Jv_MarkObj): Ditto.
3940 (_Jv_MarkObj): Ditto.
3941 (_Jv_MarkArray): Ditto.
3942 (_Jv_AllocBytes): Ditto.
3943 * prims.cc (_Jv_AllocObject): Ditto.
3944 (_Jv_NewObjectArray): Ditto.
3945 (_Jv_NewPrimArray): Ditto.
3946 (_Jv_Malloc): Ditto.
3947 (_Jv_Realloc): Ditto.
3948 (_Jv_MallocUnchecked): Ditto.
3954 * include/Makefile.in: Rebuilt.
3955 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3957 2000-04-21 Tom Tromey <tromey@cygnus.com>
3959 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3960 Yet another new version from Classpath.
3962 Fix for PR libgcj/15:
3963 * java/util/natGregorianCalendar.cc (_REENTRANT,
3964 _POSIX_PTHREAD_SEMANTICS): Don't define.
3965 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3966 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3968 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3970 * configure: Rebuilt.
3971 * configure.in: If using POSIX threads, define _REENTRANT if
3972 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3973 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3975 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3976 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3977 version from Classpath.
3979 Fix for PR libgcj/213:
3980 * Makefile.in: Rebuilt.
3981 * Makefile.am (gij_SOURCES): Added gij.cc.
3982 (EXTRA_gij_SOURCES): Removed.
3983 (gij_LDADD): Removed gij.lo.
3984 (gij_DEPENDENCIES): Likewise.
3985 ($(gij_OBJECTS)): Depend on nat_headers.
3987 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3988 `setURL', not `url.set'.
3990 2000-04-20 Tom Tromey <tromey@cygnus.com>
3992 Fix for PR java.io/204:
3993 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3994 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3997 Fix for PR libgcj/212:
3998 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3999 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4000 * java/lang/Class.h (_Jv_word): Declare.
4002 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4004 2000-04-19 Tom Tromey <tromey@cygnus.com>
4006 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4007 doesn't have a loader.
4009 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4011 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4012 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4014 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4016 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4018 (available): Initialize `where' to prevent bogus compiler warning.
4020 2000-04-12 Tom Tromey <tromey@cygnus.com>
4022 * java/lang/natString.cc (intern): Temporarily disable finalizer
4025 * java/lang/natString.cc (unintern): Added `obj' argument.
4026 (intern): Register finalizer for string.
4027 * java/lang/String.java (unintern): Now static; added obj
4030 2000-04-11 Tom Tromey <tromey@cygnus.com>
4032 * java/util/Vector.java (VectorEnumeration): Now `final'.
4033 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4034 (HashtableEnumeration): Likewise.
4035 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4036 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4038 2000-04-10 Warren Levy <warrenl@cygnus.com>
4040 * java/io/ObjectStreamException.java: New file.
4041 * java/io/OptionalDataException.java: New file.
4042 * java/io/StreamCorruptedException.java: New file.
4043 * java/math/BigDecimal.java: New file.
4044 * java/sql/CallableStatement.java: New file.
4045 * java/sql/Connection.java: New file.
4046 * java/sql/DataTruncation.java: New file.
4047 * java/sql/DatabaseMetaData.java: New file.
4048 * java/sql/Date.java: New file.
4049 * java/sql/Driver.java: New file.
4050 * java/sql/DriverManager.java: New file.
4051 * java/sql/DriverPropertyInfo.java: New file.
4052 * java/sql/PreparedStatement.java: New file.
4053 * java/sql/ResultSet.java: New file.
4054 * java/sql/ResultSetMetaData.java: New file.
4055 * java/sql/SQLException.java: New file.
4056 * java/sql/SQLWarning.java: New file.
4057 * java/sql/Statement.java: New file.
4058 * java/sql/Time.java: New file.
4059 * java/sql/Timestamp.java: New file.
4060 * java/sql/Types.java: New file.
4061 * Makefile.am: Added above new files.
4062 * Makefile.in: Rebuilt.
4064 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4065 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4066 DatagramSocket constructor instead of null.
4068 2000-04-08 Anthony Green <green@cygnus.com>
4070 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4073 2000-04-08 Anthony Green <green@cygnus.com>
4075 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4076 (_Jv_MutexUnlock): Ditto.
4077 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4078 (_Jv_MutexUnlock): Ditto.
4080 2000-04-08 Anthony Green <green@cygnus.com>
4082 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4083 (ensureCapacity_unsynchronized): New private method.
4084 (append): Use ensureCapacity_unsynchronized.
4086 2000-04-08 Tom Tromey <tromey@cygnus.com>
4088 * Makefile.in: Rebuilt.
4089 * Makefile.am (awt_java_source_files): Added new files.
4090 * java/awt/IllegalComponentStateException.java: New file.
4091 * java/awt/ItemSelectable.java: New file.
4092 * java/awt/event/WindowEvent.java: Finished.
4093 * java/awt/event/TextEvent.java: Finished.
4094 * java/awt/event/ContainerEvent.java: New file.
4095 * java/awt/Component.java (getX, getY): New methods.
4096 * java/awt/event/PaintEvent.java: New file.
4097 * java/awt/event/MouseEvent.java: New file.
4098 * java/awt/ActiveEvent.java: New file.
4099 * java/awt/event/KeyEvent.java: Finished.
4100 * java/awt/event/ItemEvent.java: New file.
4101 * java/awt/Adjustable.java: New file.
4102 * java/awt/event/InputMethodEvent.java: New file.
4103 * java/awt/event/InputEvent.java: Finished.
4104 * java/awt/event/FocusEvent.java: New file.
4105 * java/awt/event/MouseMotionAdapter.java: New file.
4106 * java/awt/event/MouseAdapter.java: New file.
4107 * java/awt/event/KeyAdapter.java: New file.
4108 * java/awt/event/FocusAdapter.java: New file.
4109 * java/awt/event/ContainerAdapter.java: New file.
4110 * java/awt/event/ComponentEvent.java: Finished.
4111 * java/awt/event/AdjustmentEvent.java: New file.
4112 * java/awt/event/ComponentAdapter.java: New file.
4113 * java/awt/event/ActionEvent.java: Finished.
4114 * java/awt/event/MouseMotionListener.java: New file.
4115 * java/awt/event/MouseListener.java: New file.
4116 * java/awt/event/ItemListener.java: New file.
4117 * java/awt/event/InputMethodListener.java: New file.
4118 * java/awt/event/ContainerListener.java: New file.
4119 * java/awt/event/FocusListener.java: New file.
4120 * java/awt/event/ComponentListener.java: New file.
4121 * java/awt/event/AWTEventListener.java: New file.
4122 * java/awt/event/AdjustmentListener.java: New file.
4124 2000-04-08 Anthony Green <green@cygnus.com>
4126 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4127 check when we have to.
4129 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4132 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4135 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4136 inline hasMoreElements.
4138 2000-04-05 Tom Tromey <tromey@cygnus.com>
4140 * configure: Rebuilt.
4141 * configure.in: Recognize --enable-java-awt.
4142 (AWT): New conditional.
4143 * Makefile.in: Rebuilt.
4144 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4146 (libgcjawt_la_SOURCES): New macro.
4147 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4148 (libgcjawt_la_DEPENDENCIES): Likewise.
4149 (libgcjawt_la_LIBADD): Likewise.
4150 (libgcjawt_la_LDFLAGS): Likewise.
4151 (libgcj.zip): Depend on cond_java_awt_source_files
4152 (cond_awt_java_source_files): New macro.
4153 (MOSTLYCLEANFILES): Added awto_files.
4154 (awto_files): New macro. Use where javao_files used.
4155 (nat_headers): Use cond_awt_java_source_files.
4157 2000-04-04 Tom Tromey <tromey@cygnus.com>
4159 * Makefile.in: Rebuilt.
4160 * Makefile.am (awt_java_source_files): Added AWTException.java.
4161 * java/awt/AWTException.java: New file.
4163 2000-04-03 Tom Tromey <tromey@cygnus.com>
4165 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4166 commentary from Alex.
4168 * Makefile.in: Rebuilt.
4169 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4172 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4174 * configure: Rebuilt.
4175 * configure.in: Add --disable-jvmpi.
4176 * include/config.h.in: Rebuilt.
4177 * acconfig.h: Add ENABLE_JVMPI.
4179 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4180 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4181 (_Jv_JVMPI_Notify_THREAD_END): New define.
4182 (_Jv_JVMPI_Notify_THREAD_END): New define.
4183 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4184 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4185 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4187 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4190 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4191 (finish_): Generate JVMPI thread end events.
4192 (run_): Generate JVMPI thread start events.
4193 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4194 preloaded JNI library.
4195 Include JVMPI headers if necessary.
4196 (run): Generate JVMPI thread start events.
4198 * boehm.cc: Define GC_disable and GC_enable.
4199 (_Jv_DisableGC): New function.
4200 (_Jv_EnableGC): New function.
4201 (disable_gc_mutex): Declare.
4202 * nogc.cc (_Jv_DisableGC): New function.
4203 (_Jv_EnableGC): New function.
4205 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4206 (_Jv_JVMPI_Interface): Define.
4207 (jvmpiEnableEvent): New function.
4208 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4210 * include/jvmpi.h: New file.
4212 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4214 * Makefile.in: New #defines and friends for Thread.h.
4215 * Makefile.am: Ditto.
4216 * posix-threads.cc: (struct starter): Remove `object'.
4217 (_Jv_CondWait): Use interruptable condition variables and new
4218 recursive mutexes. New return codes on interrupt or non-ownership
4220 (_Jv_CondNotify): Ditto.
4221 (_Jv_CondNotifyAll): Ditto.
4222 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4223 the target thread by signaling its wait condition.
4224 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4225 not the starter struct. Initialize wait_mutex and wait_cond.
4226 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4228 (_Jv_MutexUnlock): Ditto.
4229 (really_start): Set info->data->thread from pthread_self() to work
4230 around a race condition. Destroy wait_mutex and wait_cond when run()
4232 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4233 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4235 startable_flag: New private field.
4236 (Thread): Initialize `startable_flag'.
4237 (toString): Check for null thread group.
4238 * java/lang/natThread.cc: (struct natThread): New fields
4239 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4240 (class locker): Removed.
4241 (initialize_native): Initialize `join_cond' and `join_mutex'.
4242 (interrupt): Now just calls _Jv_ThreadInterrupt().
4243 (join): Simplified. Just wait on the target thread's join condition.
4244 (finish_): Remove join list code. Unset thread group. Signal
4245 potential joiners by notifying the dying threads join_cond.
4246 (start): Check for illegal restarts.
4247 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4249 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4250 #defines and #ifdefs.
4251 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4252 `wait_mutex', `next'.
4253 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4254 directly mapping to pthread_cond_t.
4255 (struct _Jv_Mutex_t): New recursive implementation.
4256 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4257 _Jv_HaveCondDestroy: Never define this for posix-threads.
4258 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4259 (_Jv_CondNotifyAll): Ditto.
4260 (_Jv_MutexLock): Ditto.
4261 (_Jv_MutexUnlock): Ditto.
4262 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4263 (_Jv_MutexDestroy): Ditto.
4264 (_Jv_CondDestroy): Removed.
4265 (_Jv_PthreadGetMutex): Removed.
4266 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4267 error. Add a FIXME about this.
4268 (_Jv_CondNotifyAll): Ditto.
4269 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4270 _JV_NOT_OWNER on other errors. Add FIXME.
4272 2000-03-26 Tom Tromey <tromey@cygnus.com>
4274 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4276 (call): Don't throw exception here.
4278 2000-03-26 Tom Tromey <tromey@cygnus.com>
4280 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4281 * interpret.cc: Use SIZEOF_VOID_P.
4282 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4283 (_Jv_loadLong): Likewise.
4284 (_Jv_storeDouble): Likewise.
4285 * configure: Rebuilt.
4286 * configure.in: Check size of void*.
4288 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4290 2000-03-26 Hans Boehm <boehm@acm.org>
4292 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4293 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4295 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4296 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4297 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4298 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4300 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4301 (FFI_RAW_SIZE): Likewise.
4302 (_Jv_InterpMethod::ncode): Use them.
4303 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4304 STORED): Define differently on a 64 bit machine.
4305 (continue1): Use ffi_java_raw_call when appropriate.
4307 2000-03-24 Warren Levy <warrenl@cygnus.com>
4309 * java/math/BigInteger.java(divide): Handle the special case when
4310 dividing by 1 and the high bit of the dividend is set.
4311 (setShiftRight): Handle case when count == 0.
4313 2000-03-24 Warren Levy <warrenl@cygnus.com>
4315 * java/awt/Font.java(isBold): Fix syntax error.
4317 * java/awt/Frame.java(postEvent): ditto.
4318 * java/awt/Menu.java(postEvent): ditto.
4319 * java/awt/MenuBar.java(postEvent): ditto.
4320 * java/awt/Toolkit.java(init): Included a stub.
4322 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4324 * java/awt/Event.java: Add all the event type constants.
4325 (Event): Implemented constructors.
4326 (controlDown): Implemented.
4327 (metaDown): Implemented.
4328 (paramString): Stubbed.
4329 (shiftDown): Implemented.
4330 (toString): Implemented.
4331 (translate): Implemented.
4333 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4335 * java/lang/natClass.cc (isInstance): Initialize `this'.
4336 (isAssignableFrom): Initialize `this' and `klass'.
4337 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4338 implemented by any loaded class, so return false.
4339 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4340 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4342 2000-03-19 Warren Levy <warrenl@cygnus.com>
4344 * java/awt/Color.java: Specified java.io for Serializable.
4345 * java/awt/Toolkit.java: Imported java.net.URL.
4347 2000-03-19 Warren Levy <warrenl@cygnus.com>
4349 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4351 2000-03-16 Warren Levy <warrenl@cygnus.com>
4353 * java/awt/Color.java: New file.
4354 * java/awt/Graphics.java: New file.
4355 * java/awt/Image.java: New file.
4356 * java/awt/Paint.java: New file.
4357 * java/awt/PaintContext.java: New file.
4358 * java/awt/Transparency.java: New file.
4359 * java/util/Collection.java: New file.
4360 * java/util/Comparator.java: New file.
4361 * java/util/Iterator.java: New file.
4362 * java/util/List.java: New file.
4363 * java/util/ListIterator.java: New file.
4364 * Makefile.am: Added above new files.
4365 * Makefile.in: Rebuilt.
4367 * java/awt/Font.java (PLAIN): New field.
4369 (ITALIC): New field.
4370 (ROMAN_BASELINE): New field.
4371 (CENTER_BASELINE): New field.
4372 (HANGING_BASELINE): New field.
4376 (pointSize): New field.
4377 (Font): Implemented constructor.
4378 (isPlain): Implemented method.
4379 (isBold): Implemented method.
4380 (isItalic): Implemented method.
4381 (getName): Implemented method.
4382 (getStyle): Implemented method.
4383 (getSize): Implemented method.
4384 (getSize2D): Implemented method.
4386 * java/awt/Frame.java (getFont): Stubbed.
4387 (postEvent): Stubbed.
4389 * java/awt/Menu.java (postEvent): Stubbed.
4390 * java/awt/MenuBar.java (getFont): Stubbed.
4391 (postEvent): Stubbed.
4392 * java/awt/Toolkit.java (getImage): Added abstract method.
4394 2000-03-15 Tom Tromey <tromey@cygnus.com>
4396 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4398 * prims.cc (win32_exception_handler): Reformatted.
4400 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4401 (_Jv_HaveMutexDestroy): Likewise.
4403 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4405 * java/io/natFileDescriptorWin32.cc: New file.
4406 * java/io/natFileWin32.cc: New file.
4407 * java/net/natInetAddress.cc: Added conditional inclusion of
4408 Windows / Winsock headers.
4409 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4410 inclusion of Windows / Winsock headers.
4411 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4412 Windows / Winsock headers.
4413 * include/win32-signal.h: New file.
4414 * include/win32-threads.h: New file.
4415 * win32-threads.cc: New file.
4416 * exception.cc (win32_get_restart_frame): New function.
4417 * prims.cc (win32_exception_handler): New function.
4418 (main_init) Performs Winsock initialisation.
4419 (main_init) Installs exeception handler.
4421 2000-03-14 Tom Tromey <tromey@cygnus.com>
4423 * jni.cc (mangled_name): Fixed assertion.
4424 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4425 turned assert into actual failure.
4427 2000-03-09 Warren Levy <warrenl@cygnus.com>
4429 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4430 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4431 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4433 2000-03-09 Warren Levy <warrenl@cygnus.com>
4435 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4436 * java/security/DigestException.java: New file.
4437 * java/security/GeneralSecurityException.java: New file.
4438 * java/security/InvalidAlgorithmParameterException.java: New file.
4439 * java/security/InvalidKeyException.java: New file.
4440 * java/security/InvalidParameterException.java: New file.
4441 * java/security/Key.java: New file.
4442 * java/security/KeyException.java: New file.
4443 * java/security/KeyPair.java: New file.
4444 * java/security/KeyPairGenerator.java: New file.
4445 * java/security/KeyPairGeneratorSpi.java: New file.
4446 * java/security/NoSuchProviderException.java: New file.
4447 * java/security/PrivateKey.java: New file.
4448 * java/security/Provider.java: New file.
4449 * java/security/PublicKey.java: New file.
4450 * java/security/SecureRandom.java: New file.
4451 * java/security/Security.java: New file.
4452 * java/security/Signature.java: New file.
4453 * java/security/SignatureException.java: New file.
4454 * java/security/interfaces/DSAKey.java: New file.
4455 * java/security/interfaces/DSAParams.java: New file.
4456 * java/security/interfaces/DSAPrivateKey.java: New file.
4457 * java/security/interfaces/DSAPublicKey.java: New file.
4458 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4459 * java/security/interfaces/RSAPrivateKey.java: New file.
4460 * java/security/interfaces/RSAPublicKey.java: New file.
4461 * java/security/spec/AlgorithmParameterSpec.java: New file.
4462 * java/security/spec/InvalidKeySpecException.java: New file.
4463 * java/security/spec/InvalidParameterSpecException.java: New file.
4464 * java/security/spec/KeySpec.java: New file.
4465 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4466 * java/security/spec/RSAPrivateKeySpec.java: New file.
4467 * java/security/spec/RSAPublicKeySpec.java: New file.
4468 * Makefile.am: Added above java.security files.
4469 * Makefile.in: Rebuilt.
4471 * java/security/MessageDigest.java: Rewritten.
4472 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4474 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4478 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4480 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4481 _Jv_PrepareConstantTimeTables.
4482 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4483 classes should have an IDT, so don't return if klass is an array
4486 2000-03-08 Tom Tromey <tromey@cygnus.com>
4488 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4489 of `void' to be created.
4491 2000-03-08 Warren Levy <warrenl@cygnus.com>
4493 * java/math/BigInteger.java(signum): Handle zero properly.
4495 2000-03-07 Tom Tromey <tromey@cygnus.com>
4497 * All files: Updated copyright information.
4498 * COPYING: New file.
4499 * COPYING.LIB: Removed.
4500 * LIBGCJ_LICENSE: We now use GPL + special exception.
4502 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4504 * resolve.cc (_Jv_SearchMethodInClass): New function.
4505 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4506 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4508 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4510 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4511 (struct _Jv_ifaces): New declaration.
4512 JV_CLASS: New macro definition.
4513 (getComponentType): Relocate below isArray() for inlining.
4514 (getModifiers): Declare `inline'.
4515 (getSuperclass): Ditto.
4517 (isPrimitive): Ditto.
4518 (_Jv_IsAssignableFrom): New prototype.
4519 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4521 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4522 Check for JV_STATE_DONE before invoking initializeClass().
4523 (_Jv_PrepareConstantTimeTables): New prototype.
4524 (_Jv_GetInterfaces): Ditto.
4525 (_Jv_GenerateITable): Ditto.
4526 (_Jv_GetMethodString): Ditto.
4527 (_Jv_AppendPartialITable): Ditto.
4528 (_Jv_FindIIndex): Ditto.
4529 depth, ancestors, idt: New class fields.
4531 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4532 inline function `_Jv_IsAssignableFrom'. Use that function.
4533 (isInstance): Declare `inline'.
4534 (initializeClass): Get lock on class before checking `state'. Unlock
4535 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4537 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4538 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4539 class->depth and ancestor table.
4540 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4541 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4542 _Jv_IsAssignableFrom.
4543 (_Jv_CheckArrayStore): Ditto.
4544 (_Jv_LookupInterfaceMethodIdx): New function.
4545 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4546 (_Jv_PrepareConstantTimeTables): New function.
4547 (_Jv_IndexOf): Ditto.
4548 (_Jv_GetInterfaces): Ditto.
4549 (_Jv_GenerateITable): Ditto.
4550 (_Jv_GetMethodString): Ditto.
4551 (_Jv_AppendPartialITable): Ditto.
4552 iindex_mutex, iindex_mutex_initialized: New static fields.
4553 (_Jv_FindIIndex): New function.
4555 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4557 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4558 (_Jv_CheckArrayStore): Ditto.
4559 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4560 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4561 Moved to gcj/array.h.
4562 (_Jv_Realloc): New function.
4564 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4566 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4567 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4568 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4569 JvNewDoubleArray): Implementations moved from prims.cc and
4572 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4574 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4576 2000-03-06 Tom Tromey <tromey@cygnus.com>
4578 * jni.cc (MARK_NONE): New define.
4579 (MARK_USER): Likewise.
4580 (MARK_SYSTEM): Likewise.
4581 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4583 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4584 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4585 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4586 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4588 (call): Use MARK_SYSTEM.
4589 (_Jv_GetJNIEnvNewFrame): New function.
4590 (_Jv_LookupJNIMethod): New function.
4591 (_Jv_JNI_PopSystemFrame): New function.
4592 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4594 2000-03-05 Tom Tromey <tromey@cygnus.com>
4596 Fix for PR libgcj/43:
4597 * include/Makefile.in: Rebuilt.
4598 * include/Makefile.am (include_HEADERS): New define.
4600 2000-03-05 Anthony Green <green@redhat.com>
4602 * gcj/javaprims.h ("Java"): Remove FirstThread.
4604 * configure.host: Fix __NO_MATH_INLNES botch.
4606 * Makefile.in: Rebuilt.
4607 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4608 (gnu/gcj/runtime/FirstThread.h): Moved.
4609 (ordinary_java_source_files): Move FirstThread.java.
4610 * prims.cc: Deal with FirstThread movement.
4612 (_Jv_RunMain): Ditto.
4614 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4615 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4617 2000-03-05 Warren Levy <warrenl@cygnus.com>
4619 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4620 Handle null addresses.
4622 2000-03-04 Anthony Green <green@redhat.com>
4624 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4627 2000-03-04 Anthony Green <green@redhat.com>
4629 * configure: Rebuilt.
4630 * configure.in (ZLIBTESTSPEC): New macro.
4631 (GCTESTSPEC): New macro.
4632 (LIBGCJTESTSPEC): New macro.
4633 * libgcj-test.spec.in: New file.
4635 2000-03-02 Tom Tromey <tromey@cygnus.com>
4637 * include/java-interp.h: Don't include MethodInvocation.h.
4638 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4639 * Makefile.in: Rebuilt.
4640 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4641 (ordinary_java_source_files): Don't mention
4642 MethodInvocation.java.
4643 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4644 * interpret.cc (MethodInvocation::continue1): Removed.
4645 (run): Handle exceptions here.
4646 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4648 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4650 (defineClass2): Removed.
4652 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4654 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4656 (hack_call): Removed.
4658 * java/lang/Class.h (Class): Removed hackRunInitializers,
4660 * java/lang/natClass.cc (hackRunInitializers): Removed.
4661 (initializeClass): Catch exceptions here.
4662 Include ExceptionInInitializerError.h.
4663 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4666 * java/lang/Object.h (Object): Don't mention hack12_6.
4667 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4669 * java/lang/Object.java (hack12_6): Removed.
4671 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4672 (start): Use run_, not run__.
4673 * java/lang/Thread.java (run_): Renamed from run__; old run_
4676 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4677 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4678 (_Jv_JNI_DefineClass): Likewise.
4679 (_Jv_JNI_ThrowNew): Likewise.
4680 (_Jv_JNI_AllocObject): Likewise.
4681 (_Jv_JNI_GetAnyMethodID): Likewise.
4682 (_Jv_JNI_CallAnyMethodV): Likewise.
4683 (_Jv_JNI_CallAnyMethodA): Likewise.
4684 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4685 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4686 (_Jv_JNI_GetAnyFieldID): Likewise.
4687 (_Jv_JNI_NewString): Likewise.
4688 (_Jv_JNI_NewStringUTF): Likewise.
4689 (_Jv_JNI_GetStringUTFChars): Likewise.
4690 (_Jv_JNI_NewObjectArray): Likewise.
4691 (_Jv_JNI_NewPrimitiveArray): Likewise.
4692 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4693 (_Jv_JNI_GetStringRegion): Likewise.
4694 (_Jv_JNI_GetStringUTFRegion): Likewise.
4695 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4696 (_Jv_JNI_MonitorEnter): Likewise.
4697 (_Jv_JNI_MonitorExit): Likewise.
4698 (_Jv_JNI_ToReflectedField): Likewise.
4699 (_Jv_JNI_ToReflectedMethod): Likewise.
4700 (_Jv_JNI_RegisterNatives): Likewise.
4701 (_Jv_JNI_AttachCurrentThread): Likewise.
4702 (_Jv_JNI_DestroyJavaVM): Likewise.
4704 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4706 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4707 error caused by the incorrect casting of a long to an int.
4709 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4711 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4712 SIGSEV caused by use of the wrong instance variable.
4714 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4716 * java/io/File.java (File(String, String)): For dirPath, treat an
4717 empty String the same as `null'.
4719 2000-02-26 Anthony Green <green@cygnus.com>
4721 * gnu/gcj/io/MimeTypes.java: Test for null.
4723 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4724 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4726 * java/net/URLConnection.java: Update copyright notice.
4728 2000-02-25 Tom Tromey <tromey@cygnus.com>
4730 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4733 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4735 * java/net/URLConnection.java (initializeDateFormats): New
4737 (getHeaderFieldDate): Call initializeDateFormats if required.
4738 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4740 Fix for PR libgcj/38.
4742 2000-02-24 Warren Levy <warrenl@cygnus.com>
4744 * java/math/BigInteger.java(ival): Made private.
4748 2000-02-20 Anthony Green <green@cygnus.com>
4750 * Makefile.in: Rebuilt.
4751 * Makefile.am (ordinary_java_source_files): Add
4752 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4754 * scripts/MakeDefaultMimeTypes.java: New file.
4755 * scripts/mime.types: New file.
4756 * scripts/classes.pl: Moved from top level.
4757 * classes.pl: Moved to scripts directory.
4759 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4761 * gnu/gcj/io/MimeTypes.java: New file.
4762 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4764 2000-02-20 Tom Tromey <tromey@cygnus.com>
4766 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4768 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4770 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4773 2000-02-18 Tom Tromey <tromey@cygnus.com>
4775 * include/jvm.h (_Jv_GetJavaVM): Declare.
4776 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4777 (_Jv_MethodBase::get_method): New method.
4778 (_Jv_JNIMethod::set_function): New method.
4779 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4780 (_Jv_JNI_RegisterNatives): New function.
4781 (_Jv_JNIFunctions): Updated for new functions.
4782 (_Jv_GetJavaVM): New function.
4783 (_Jv_JNI_GetJavaVM): Use it. Now static.
4784 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4785 is already a Java thread but does not have a JNIEnv yet.
4787 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4790 2000-02-17 Tom Tromey <tromey@cygnus.com>
4792 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4795 2000-02-16 Tom Tromey <tromey@cygnus.com>
4797 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4799 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4800 (_Jv_JNI_NewObject): Likewise.
4801 (_Jv_JNI_NewObjectA): Likewise.
4802 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4803 as "return" type to _Jv_CallAnyMethodA.
4804 (_Jv_JNI_CallAnyMethodA): Likewise.
4805 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4807 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4810 2000-02-15 Tom Tromey <tromey@cygnus.com>
4812 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4814 (init_cif): Added `rtype_p' argument.
4815 * include/java-interp.h (class _Jv_MethodBase): Added
4817 (class _Jv_InterpMethod): Removed args_raw_size.
4818 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4819 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4820 class pointer as well as the ordinary arguments.
4822 * jni.cc (mangled_name): Skip leading `(' in signature.
4824 * jni.cc (add_char): Added missing `else'.
4826 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4829 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4833 * java/lang/natRuntime.cc (_load): Include library path with
4836 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4839 * java/lang/natThread.cc (dumpStack): Removed.
4840 * java/lang/Thread.java (dumpStack): Implemented.
4842 2000-02-15 Tom Tromey <tromey@cygnus.com>
4844 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4845 with `lib' for loadLibrary. Fixes PR gcj/150.
4847 2000-02-14 Warren Levy <warrenl@cygnus.com>
4849 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4851 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4855 (modPow): Rewritten to not use the naive, slow, brute force approach.
4856 (isProbablePrime): Implemented.
4857 (testBit): Implemented.
4858 (flipBit): Implemented.
4859 (getLowestSetBit): Implemented.
4861 2000-02-16 Anthony Green <green@redhat.com>
4863 * configure.host: Use the same options for i386 and i486 as we do
4866 2000-02-12 Tom Tromey <tromey@cygnus.com>
4868 * java/io/File.java (createTempFile): Use low bits from counter,
4871 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4873 * THANKS: More thanks.
4875 2000-02-11 Tom Tromey <tromey@cygnus.com>
4877 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4878 astore instruction. From Hans Boehm.
4880 2000-02-11 Warren Levy <warrenl@cygnus.com>
4882 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4883 (BigInteger(String)): New constructor.
4884 (not): Rewritten using version from Kawa's BitOps class.
4885 (valueOf): New private methods from Kawa's BitOps class.
4892 (andNot): Implemented.
4893 (clearBit): Implemented.
4894 (setBit): Implemented.
4895 (bitCount): Implemented.
4896 (toByteArray): Implemented.
4898 2000-02-11 Tom Tromey <tromey@cygnus.com>
4900 * java/io/File.java (nextValue): Now synchronized.
4902 2000-02-10 Tom Tromey <tromey@cygnus.com>
4904 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4905 * java/io/FileDescriptor.java (EXCL): New static field.
4906 * java/io/File.java (tmpdir): New static field.
4907 (createTempFile): New method.
4908 (nextValue): New method.
4909 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4912 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4913 (jboolean): Declare as an attributed int, not a bool.
4914 (_Jv_func): Declare differently for C.
4916 * gnu/gcj/jni/natNativeThread.cc: New file.
4917 * gnu/gcj/jni/NativeThread.java: New file.
4918 * java/lang/Thread.java (data): Now a RawData.
4919 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4921 * Makefile.in: Rebuilt.
4922 * Makefile.am (java/lang/Thread.h): New target.
4923 (ordinary_java_source_files): Added NativeThread.java.
4924 (nat_source_files): Added natNativeThread.cc.
4925 * java/lang/natThread.cc: Include <jni.h>
4926 (struct natThread): Added `jni_env' field.
4927 (_Jv_GetCurrentJNIEnv): New function.
4928 (_Jv_SetCurrentJNIEnv): Likewise.
4929 (initialize_native): Initialize jni_env.
4931 * jni.cc (ThreadGroupClass): New define.
4932 (_Jv_JNI_InvokeFunctions): New structure.
4933 (JNI_GetCreatedJavaVMs): New function.
4934 (the_vm): New global.
4935 (JNI_GetDefaultJavaVMInitArgs): New function.
4936 Include NativeThread.h.
4937 (NativeThreadClass): New define.
4938 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4939 (_Jv_JNI_DestroyJavaVM): New function.
4940 (_Jv_JNI_AttachCurrentThread): New function.
4941 (_Jv_JNI_DetachCurrentThread): New function.
4942 (_Jv_JNI_GetEnv): New function.
4943 (JNI_CreateJavaVM): New function.
4944 (_Jv_JNI_GetJavaVM): New function.
4945 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4946 * include/jni.h (JavaVMAttachArgs): New structure.
4947 (JNI_EDETACHED): New define.
4948 (JNI_EVERSION): Likewise.
4949 (JavaVM): Define properly.
4950 (struct JNIInvokeInterface): New structure.
4951 (class _Jv_JavaVM): New class.
4952 (JNI_OnLoad, JNI_OnUnload): Declare.
4953 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4954 JNI_GetCreatedJavaVMs): Declare.
4955 (JavaVMInitArgs): New typedef.
4956 (JavaVMOption): Likewise.
4957 (JNI_ERR): New define.
4960 2000-02-10 Andrew Haley <aph@cygnus.com>
4962 * interpret.cc: Don't include fdlibm.h.
4963 Replace #if with #ifdef throughout.
4964 Declare extern __ieee754_fmod.
4965 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4967 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4968 Search class hierarchy for superclass vtable.
4970 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4971 off the end of a pointer list.
4973 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4977 2000-02-09 Tom Tromey <tromey@cygnus.com>
4979 * java/lang/natRuntime.cc (_load): Call add_library.
4980 (loadLibraryInternal): Likewise.
4982 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4983 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4984 (Output_iconv::finalize): Likewise.
4986 2000-02-08 Tom Tromey <tromey@cygnus.com>
4988 * java/util/Properties.java (setProperty): New method.
4989 (store): New method.
4991 2000-02-07 Tom Tromey <tromey@cygnus.com>
4993 * java/lang/Runtime.java (_load): Declare.
4994 (load, loadLibrary): Wrote in terms of _load.
4995 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4997 (loadLibrary): Likewise.
4999 (_load): New method.
5000 (loadLibrary, load): Removed.
5002 * jni.cc (ThrowableClass): New define.
5003 (_Jv_JNI_Throw): Check argument.
5004 (_Jv_JNI_ThrowNew): Likewise.
5005 (wrap_value): Don't wrap object if it is NULL.
5006 (_Jv_JNI_DefineClass): Use wrap_value.
5007 (_Jv_JNI_FindClass): Likewise.
5008 (_Jv_JNI_GetSuperclass): Likewise.
5009 (_Jv_JNI_ExceptionOccurred): Likewise.
5010 (_Jv_JNI_AllocObject): Likewise.
5011 (_Jv_JNI_GetObjectClass): Likewise.
5012 (_Jv_JNI_NewString): Likewise.
5013 (_Jv_JNI_NewStringUTF): Likewise.
5014 (_Jv_JNI_NewObjectArray): Likewise.
5015 (_Jv_JNI_GetObjectArrayElement): Likewise.
5016 (_Jv_JNI_NewPrimitiveArray): Likewise.
5017 (_Jv_JNI_ToReflectedField): Likewise.
5018 (_Jv_JNI_ToReflectedMethod): Likewise.
5019 (_Jv_JNI_AllocObject): Check argument.
5020 (_Jv_JNI_NewObjectV): Likewise.
5021 (_Jv_JNI_NewObject): Likewise.
5022 (_Jv_JNI_NewObjectA): Likewise.
5023 (_Jv_JNI_GetObjectClass): Likewise.
5024 (_Jv_JNI_GetField): Likewise.
5025 (_Jv_JNI_SetField): Likewise.
5027 * interpret.cc (PUSHL): Don't use expression statement.
5032 * jni.cc (add_char): Conditional on INTERPRETER.
5033 (mangled_name): Likewise.
5035 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5037 (class _Jv_JNIMethod): Likewise.
5039 2000-02-04 Warren Levy <warrenl@cygnus.com>
5041 * Makefile.am: Added MPN.java and BigInteger.java.
5042 * Makefile.in: Rebuilt.
5043 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5045 * java/math/BigInteger.java: New file. Based primarily on
5046 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5048 2000-02-04 Tom Tromey <tromey@cygnus.com>
5050 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5052 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5053 if the method is native.
5054 * resolve.cc (ncode): Don't handle native methods.
5055 (_Jv_JNIMethod::ncode): New method.
5056 (_Jv_PrepareClass): Handle native methods.
5057 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5058 Include AbstractMethodError.h.
5059 (add_char): New function.
5060 (mangled_name): Likewise.
5061 * include/java-interp.h (class _Jv_JNIMethod): New class.
5062 (class _Jv_MethodBase): New class.
5063 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5064 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5067 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5068 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5069 libraries): New globals.
5070 (add_library): New function.
5071 (_Jv_FindSymbolInExecutable): New function.
5073 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5076 2000-02-04 Andrew Haley <aph@cygnus.com>
5078 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5079 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5080 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5081 printStackTrace to printRawStackTrace.
5083 2000-02-03 Tom Tromey <tromey@cygnus.com>
5085 * java/util/Calendar.java (toString): New method.
5086 * java/util/SimpleTimeZone.java (clone): New method.
5087 (toString): New method.
5088 * java/util/TimeZone.java (clone): New method.
5089 * java/text/SimpleDateFormat.java (clone): New method.
5090 * java/text/NumberFormat.java (clone): New method.
5091 (equals): New method.
5092 * java/text/Format.java (clone): New method.
5093 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5095 (clone): New method.
5096 * java/text/DateFormat.java (clone): New method.
5097 * java/text/Collator.java (clone): New method.
5099 2000-02-03 Tom Tromey <tromey@cygnus.com>
5101 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5104 2000-02-01 Tom Tromey <tromey@cygnus.com>
5106 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5107 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5108 constructing the closure if the function is native.
5109 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5110 a template function, #if'd out, or static.
5111 Include <java-interp.h>.
5113 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5115 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5117 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5118 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5120 (wrap_value): New function.
5121 (_Jv_JNI_CallAnyMethodV): Use it.
5122 (_Jv_JNI_CallAnyMethodA): Likewise.
5123 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5124 (_Jv_JNI_GetStaticField): Likewise.
5126 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5127 (_Jv_JNI_GetStaticField): Likewise.
5129 2000-01-31 Tom Tromey <tromey@cygnus.com>
5131 * prims.cc (_Jv_MallocUnchecked): New function.
5132 (main_init): Call _Jv_JNI_Init.
5133 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5134 (_Jv_JNI_Init): Declare.
5135 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5137 (_Jv_JNI_NewGlobalRef): New function.
5138 (_Jv_JNI_DeleteGlobalRef): New function.
5139 (_Jv_JNI_DeleteLocalRef): New function.
5140 (_Jv_JNI_conversion_call): Initialize and clear local reference
5142 (_Jv_JNI_NewLocalRef): New function.
5143 (struct _Jv_JNI_LocalFrame): New structure.
5144 (_Jv_JNI_PushLocalFrame): New function.
5145 (_Jv_JNI_EnsureLocalCapacity): New function.
5146 (FRAME_SIZE): New define.
5147 (_Jv_JNI_GetStringChars): Mark string, not characters.
5148 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5149 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5150 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5152 (_Jv_JNI_DefineClass): Make return value a local ref.
5153 (_Jv_JNI_FindClass): Likewise.
5154 (_Jv_JNI_GetSuperclass): Likewise.
5155 (_Jv_JNI_ExceptionOccurred): Likewise.
5156 (_Jv_JNI_AllocObject): Likewise.
5157 (_Jv_JNI_GetObjectClass): Likewise.
5158 (_Jv_JNI_CallAnyMethodV): Likewise.
5159 (_Jv_JNI_NewString): Likewise.
5160 (_Jv_JNI_NewStringUTF): Likewise.
5161 (_Jv_JNI_NewObjectArray): Likewise.
5162 (_Jv_JNI_GetObjectArrayElement): Likewise.
5163 (_Jv_JNI_ToReflectedField): Likewise.
5164 (_Jv_JNI_ToReflectedMethod): Likewise.
5165 (_Jv_JNIFunctions): Updated table for new functions.
5166 (_Jv_JNI_Init): New function.
5167 (mark_for_gc): Wrote.
5168 (unmark_for_gc): Wrote.
5169 * include/jni.h (struct JNINativeInterface): Removed name from
5170 PopLocalFrame parameter.
5171 (class _Jv_JNIEnv): Added `locals' field.
5173 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5175 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5178 2000-01-30 Tom Tromey <tromey@cygnus.com>
5180 * include/config.h.in: Rebuilt.
5181 * acconfig.h (HAVE_ICONV): Define.
5182 * configure: Rebuilt.
5183 * configure.in: Check for `iconv' function.
5184 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5185 no specific encoder exists.
5186 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5187 no specific encoder exists.
5188 * Makefile.in: Rebuilt.
5189 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5191 (nat_source_files): Added natIconv.cc.
5192 * gnu/gcj/convert/natIconv.cc: New file.
5193 * gnu/gcj/convert/Input_iconv.java: New file.
5194 * gnu/gcj/convert/Output_iconv.java: New file.
5196 2000-01-28 Tom Tromey <tromey@cygnus.com>
5198 * Makefile.in: Rebuilt.
5199 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5201 2000-01-26 Tom Tromey <tromey@cygnus.com>
5203 * gcj/method.h (JvNumMethods): Moved from Class.h.
5204 (JvGetFirstMethod): Likewise.
5205 * java/lang/Class.h (Object): Updated decl of
5206 _Jv_JNI_ToReflectedField.
5207 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5208 * Makefile.in: Rebuilt.
5209 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5210 argument of _Jv_JNI_ToReflectedField.
5211 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5213 (java/lang/reflect/Method.h): Likewise.
5214 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5216 (jweak): New typedef.
5217 (struct JNINativeInterface): Correctly declare remaining entries.
5218 * jni.cc: Include Class.h, ClassLoader.h.
5219 (_Jv_JNI_FindClass): New function.
5220 (_Jv_JNI_DefineClass): New function.
5221 (_Jv_JNI_conversion_call): New function.
5222 (_Jv_JNI_FindClass): Use current class loader to find class.
5223 (_Jv_JNI_ExceptionCheck): New function.
5224 (_Jv_JNI_FromReflectedField): Now static.
5225 (MethodClass): New define.
5226 (_Jv_JNI_FromReflectedMethod): New function.
5227 (_Jv_JNI_ToReflectedMethod): Likewise.
5229 (_Jv_JNI_IsAssignableFrom): Renamed.
5230 (_Jv_JNI_GetStringRegion): New function.
5231 Include StringIndexOutOfBoundsException.h.
5232 (_Jv_JNI_GetStringUTFRegion): New function.
5233 (_Jv_JNIFunctions): Updated for new functions.
5234 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5235 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5236 (_Jv_JNI_GetStringCritical): New function.
5237 (_Jv_JNI_ReleaseStringCritical): Likewise.
5238 (get_throwable): Removed.
5239 (GCJ_JV_JNIENV_FRIEND): Removed.
5240 (__GCJ_JNI_IMPL__): Define.
5243 * resolve.cc (get_ffi_type_from_signature): Handle case where
5246 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5248 * interpret.cc (run): Don't call println.
5249 Don't include PrintStream.h.
5251 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5252 nameIndex. Use "jint" as type for boffset.
5253 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5255 (Class): Likewise. Also changed type of method_count,
5256 vtable_method_count, size_in_bytes, field_count,
5257 static_field_count, interface_count.
5258 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5261 2000-01-21 Tom Tromey <tromey@cygnus.com>
5263 * java/lang/reflect/natConstructor.cc (newInstance): Use
5265 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5266 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5267 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5270 (invoke): Use _Jv_CallAnyMethodA.
5272 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5273 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5275 (struct _Jv_Method): Added getNextMethod method.
5276 (JvNumMethods): New function.
5277 (JvGetFirstMethod): Likewise.
5278 * gcj/field.h (JvGetFirstStaticField): New function.
5279 (JvNumStaticFields): Likewise.
5280 (getNextField): Renamed from getNextInstanceField.
5281 (struct _Jv_Field): New method getClass.
5282 * jni.cc: Wrote many new functions.
5283 * include/jni.h (JNI_TRUE): Define.
5284 (JNI_FALSE): Likewise.
5285 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5286 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5287 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5288 (jfieldID, jmethodID): Likewise.
5289 (JNI_COMMIT, JNI_ABORT): New defines.
5290 (JNINativeMethod): New struct.
5291 (struct JNINativeInterface): Correctly declared more entries.
5292 (class _Jv_JNIEnv): Added `ex' member.
5293 (JNI_VERSION_1_1): New define.
5294 (JNI_VERSION_1_2): Likewise.
5296 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5297 getNextInstanceField.
5299 2000-01-20 Tom Tromey <tromey@cygnus.com>
5301 * resolve.cc (StringClass): Removed.
5302 * defineclass.cc (StringClass): Removed.
5304 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5308 2000-01-19 Tom Tromey <tromey@cygnus.com>
5310 * interpret.cc (PC_REGISTER_ASM): Removed.
5312 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5313 From Bryce McKinlay.
5315 * All files: Updated copyright to reflect Cygnus purchase.
5317 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5319 * configure: Rebuilt.
5320 * configure.in: Recognize --disable-interpreter.
5322 2000-01-18 Andrew Haley <aph@cygnus.com>
5324 * name-finder.cc (lookup): Check for dladdr function.
5325 acconfig.h (HAVE_DLADDR): Add.
5326 configure.in: Check for HAVE_DLADDR
5328 include/config.h.in: Rebuilt.
5330 2000-01-17 Andrew Haley <aph@cygnus.com>
5332 * prims.cc (_Jv_RunMain): Set the name of this executable.
5334 2000-01-17 Tom Tromey <tromey@cygnus.com>
5336 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5337 when backtrace can't be computed.
5339 * configure: Rebuilt.
5340 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5342 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5343 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5344 (_Jv_FindClassInCache): Likewise.
5345 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5346 (findSystemClass): Try to load class from compiled module.
5348 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5349 (loadLibrary): Likewise.
5350 (lt_preloaded_symbols): Define.
5351 (loadLibraryInternal): New method.
5352 * include/config.h.in: Rebuilt.
5353 * acconfig.h (USE_LTDL): Added.
5354 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5355 (INCLUDES): Added $(INCLTDL).
5356 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5357 (libgcj_la_LIBADD): Likewise.
5358 * aclocal.m4, configure: Rebuilt.
5359 * configure.in: Added libltdl support.
5361 2000-01-15 Tom Tromey <tromey@cygnus.com>
5363 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5365 2000-01-14 Andrew Haley <aph@cygnus.com>
5367 * java/lang/natThrowable.cc: New file.
5369 * java/lang/Throwable.java (fillInStackTrace): Make native.
5370 (printStackTrace): Call native method to do this.
5371 (Throwable): Call fillInStackTrace.
5372 (stackTrace): New variable.
5374 * include/jvm.h: Add _Jv_ThisExecutable functions.
5376 * prims.cc: (_Jv_execName): New variable.
5377 (catch_segv): Call fillInStackTrace.
5379 (_Jv_ThisExecutable): New functions.
5380 (JvRunMain): Set the name of this executable.
5382 * Makefile.am: Add java/lang/natThrowable.cc.
5384 * Makefile.in: Rebuilt.
5386 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5388 * configure.in: Force link with __frame_state_for in
5389 FORCELIBGCCSPEC. Add new checks for backtrace.
5390 * include/config.h.in: Rebuilt.
5392 * name-finder.cc: New file.
5393 * include/name-finder.h: New file.
5395 2000-01-16 Anthony Green <green@cygnus.com>
5397 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5400 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5402 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5404 2000-01-13 Tom Tromey <tromey@cygnus.com>
5406 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5407 not system loader, as initiating loader.
5409 2000-01-11 Tom Tromey <tromey@cygnus.com>
5411 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5412 HP/UX. From David Scott Urban.
5414 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5416 * java/lang/natMath.cc (pow): Cast args to `double', not
5419 (IEEEremainder): Likewise.
5420 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5421 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5423 2000-01-09 Anthony Green <green@cygnus.com>
5425 * java/lang/natString.cc (init): Test for overflow condition
5426 during out of bounds check.
5427 (getChars): Throw StringIndexOutOfBoundsException, not
5428 ArrayIndexOutOfBoundsException.
5430 (regionMatches): Obey case option during string comparison.
5432 * configure.host (ligcj_interpreter): New variable. Enable
5433 interpreter by default on IA-32.
5434 * configure.in: Examine libgcj_interpreter.
5435 * configure: Rebuilt.
5437 2000-01-07 Tom Tromey <tromey@cygnus.com>
5439 * mauve-libgcj: Don't disable ClassTest.
5441 * java/lang/natClass.cc (getClasses): Wrote.
5443 2000-01-06 Tom Tromey <tromey@cygnus.com>
5445 * java/lang/natClass.cc (_getConstructors): Correctly check
5446 whether method name is the init name.
5447 (getMethod): Look at accflags on method in `klass', not `this'.
5449 2000-01-05 Tom Tromey <tromey@cygnus.com>
5451 * java/lang/natClass.cc (getMethod): Compute offset relative to
5452 `klass's methods table, not `this's table.
5454 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5455 In unwrapping/widening case, check whether `k' is null, not
5456 whether it is primitive. Initialize `num' from `argelts', not
5457 `paramelts'. Correct create and pass arguments to ffi_call.
5458 Don't let presence of `this' argument affect index used to look in
5460 (COPY): Set appropriate element in `values' vector.
5462 * java/lang/natClass.cc: Include <gcj/method.h>.
5464 * java/lang/Class.h (_getMethods): Correctly declare as private,
5467 * java/lang/Class.h (_getMethods): Declare.
5468 * java/lang/Class.java (_getMethods): Declare.
5469 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5470 (getDeclaredClasses): Always return empty array.
5471 (_getMethods): New method.
5472 (getMethods): Wrote.
5473 (getDeclaredMethod): Return `rmethod'.
5474 (finit_name): New global.
5475 (getDeclaredMethods): Check for finit_name.
5476 (_getMethods): Likewise.
5477 (getMethod): Only return public methods.
5479 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5480 jboolean and select correct ffi type on that basis.
5481 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5482 Constructor call always has `void' return type.
5484 2000-01-04 Tom Tromey <tromey@cygnus.com>
5486 * java/lang/Class.h (getSignature): Updated.
5487 * java/lang/Class.java (getSignature): Updated.
5488 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5490 (getConstructor): Ensure constructor is public.
5491 (_getConstructors): Check for public-ness of constructor when
5492 `declared' is false, not when it is true.
5494 2000-01-04 Warren Levy <warrenl@cygnus.com>
5496 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5498 (receive): Set the sender's address in the DatagramPacket.
5500 2000-01-04 Tom Tromey <tromey@cygnus.com>
5502 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5503 declaring class as return_type argument to
5504 _Jv_CallNonvirtualMethodA.
5505 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5506 constructor case, create object and use it as `this' argument.
5507 * java/lang/Class.h (_getConstructors): Declare.
5508 (_getFields): Declare.
5509 * java/lang/Class.java (getConstructors): Wrote.
5510 (_getConstructors): New native method.
5511 (getDeclaredConstructors): Wrote.
5512 (_getFields): Declare new native method.
5513 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5515 (getMethod): Work correctly when class is primitive.
5516 (getDeclaredMethods): Likewise. Compute offset using `method',
5518 (getDeclaredMethod): Likewise.
5519 (getConstructor): Wrote.
5520 (ConstructorClass): New define.
5521 (getDeclaredConstructor): Wrote.
5522 (_getConstructors): New method.
5523 (_getFields): New method.
5526 * Makefile.in: Rebuilt.
5527 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5529 * prims.cc: Remove `#pragma implementation'.
5530 * gcj/array.h: Remove `#pragma interface'.
5532 * prims.cc (_Jv_equaln): New function.
5533 * java/lang/Class.java (getSignature): Declare.
5534 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5535 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5537 (getSignature): New method.
5538 (getDeclaredMethod): Wrote.
5540 Include StringBuffer.h.
5541 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5542 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5544 (getSignature): Declare.
5545 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5546 (_Jv_equaln): Declare.
5547 (_Jv_CallNonvirtualMethodA): Declare.
5548 * Makefile.in: Rebuilt.
5549 * Makefile.am (nat_source_files): Added natConstructor.cc.
5550 (java/lang/reflect/Constructor.h): New target.
5551 * java/lang/reflect/natConstructor.cc: New file.
5552 * java/lang/reflect/Constructor.java (newInstance): Now native.
5553 (declaringClass): Renamed from decl_class.
5554 (offset): Renamed from index.
5555 (getType): New native method.
5556 (getModifiers): Now native.
5557 (getParameterTypes): Call getType if required.
5558 (hashCode): Include hash code from declaring class.
5559 (modifiers): Removed.
5560 (toString): Call getType if required.
5561 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5562 * java/lang/reflect/natMethod.cc (hack_call): New method.
5563 Removed `#if 0' around FFI code.
5564 Include <gnu/gcj/RawData.h>.
5565 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5566 IllegalArgumentException when argument object and class disagree.
5567 (_Jv_GetTypesFromSignature): New function.
5569 (ObjectClass): New define.
5570 (_Jv_CallNonvirtualMethodA): New function.
5571 * java/lang/reflect/Method.java (hack_trampoline): New method.
5572 (hack_call): New native method.