1 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
5 * java/util/Collections.java (ReverseComparator): New static class.
6 (reverseOrder): Return static instance of ReverseComparator.
8 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
9 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
10 Rectangle.clone(), not Object.clone().
12 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
14 * java/util/TreeMap.java: New file.
15 * java/util/TreeSet.java: New file.
16 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
17 * Makefile.in: Rebuilt.
18 * java/util/HashSet.java (clone): Use constructor instead of calling
20 * java/util/SortedSet.java: Sync with classpath.
21 * java/util/HashMap.java (hash): Use if statement instead of ternary,
24 * java/lang/natClass.cc (getSignature): Don't try to dereference
25 param_types if it is null. Instead, take this to mean "no parameters".
26 * java/lang/TreeMap.java (TreeIterator.next): Throw
27 NoSuchElementException in preference to ConcurrentModificationException.
28 (TreeIterator.remove): Throw IllegalStateException in preference to
29 ConcurrentModificationException.
30 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
31 throw a NoSuchElementException.
32 (SubMap.lastKey): Likewise.
34 2001-02-13 Tom Tromey <tromey@redhat.com>
36 * java/io/PipedReader.java (ready): Throw IOException if pipe
38 * java/io/FilterReader.java (close): Don't clear `in'.
39 * java/io/CharArrayReader.java (mark): Throw IOException if stream
41 (read, ready, reset, skip): Added exception message.
42 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
43 Perform checkStatus check inside synchronized block.
45 2001-02-13 Tom Tromey <tromey@redhat.com>
47 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
49 2001-02-13 Tom Tromey <tromey@redhat.com>
51 Fix for PR libgcj/1351:
52 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
54 Include Thread.h and InterruptedIOException.h.
56 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
58 * java/io/BlockDataException.java: Removed.
59 * java/io/ObjectInputStream.java (readObject): Throw
60 StreamCorruptedException, not BlockDataException.
61 * Makefile.am: Remove BlockDataException.
62 * Makefile.in: Rebuild.
64 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
65 Tom Tromey <tromey@redhat.com>
67 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
70 2001-02-09 Tom Tromey <tromey@redhat.com>
72 * java/util/Timer.java: New version from Classpath.
74 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
76 * java/lang/Double.java (doubleToRawLongBits): Now native.
77 * java/lang/Float.java (floatToRawIntBits): Likewise.
78 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
79 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
81 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
83 * java/io/File.java (java.net): Imported.
84 (getAbsoluteFile): Added.
85 (getCanonicalPath): Likewise.
88 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
90 * java/lang/Byte.java: Remove redundant instanceof and null checks.
91 * java/lang/Integer.java: Likewise.
92 * java/lang/Long.java: Likewise.
93 * java/lang/Short.java: Likewise.
94 * java/lang/Double.java: Likewise.
95 (doubleToRawLongBits): New method.
96 * java/lang/Float.java: As above.
97 (floatToRawIntBits): New method.
99 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
100 IOException if stream closed.
102 2001-02-08 Tom Tromey <tromey@redhat.com>
104 * java/lang/Float.java (parseFloat): New method.
106 2001-02-08 Tom Tromey <tromey@redhat.com>
108 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
109 * java/io/InputStreamReader.java (ready, read): Throw IOException
110 if stream has been closed.
112 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
114 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
115 Change sources.redhat.com and sourceware.cygnus.com references to
118 2001-02-07 Tom Tromey <tromey@redhat.com>
120 Fix for PR libgcj/1906:
121 * java/text/MessageFormat.java (setLocale): Use named class
124 (format(Object,StringBuffer,FieldPosition)): Special case if
125 argument is an Object[].
127 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
129 * java/util/Arrays.java: Removed "cmp" methods.
130 (qsort): Don't use "cmp".
133 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
135 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
136 sort. Fix for PR java/1895.
138 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
140 * configure.host: Use sjlj-exceptions for Alpha.
142 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
144 * libgcj.spec.in: Don't force static libgcc into the executable.
145 * configure.in (FORCELIBGCCSPEC): Removed.
146 * configure: Rebuilt.
148 2001-01-31 Tom Tromey <tromey@redhat.com>
150 * Makefile.in: Rebuilt.
151 * Makefile.am (LTCXXCOMPILE): New macro.
153 2001-01-26 Andrew Haley <aph@redhat.com>
155 (INIT_FPE): Use a direct system call to set the handler.
157 2001-01-27 Richard Henderson <rth@redhat.com>
159 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
161 2001-01-27 Tom Tromey <tromey@redhat.com>
163 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
164 native interface structure.
166 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
168 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
170 (read (byte[], int, int)): Only call readNextBlock() if the block
171 buffer would actually be overrun. Increment blockDataPosition.
172 (callReadMethod): Propagate exceptions from invocation target.
173 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
174 exceptions from invocation target.
176 2001-01-26 Tom Tromey <tromey@redhat.com>
178 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
179 to internal representation.
180 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
181 _Jv_FindClassFromSignature.
183 2001-01-26 Warren Levy <warrenl@redhat.com>
185 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
186 and timezone if they are available on the system.
188 2001-01-24 Tom Tromey <tromey@redhat.com>
190 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
192 2001-01-24 Tom Tromey <tromey@redhat.com>
194 * Makefile.in: Rebuilt.
195 * Makefile.am (c_source_files): Added sf_fabs.c.
196 * java/lang/sf_fabs.c: New file.
198 2001-01-19 Warren Levy <warrenl@redhat.com>
200 * java/text/SimpleDateFormat.java (format): Compute hour for cases
201 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
202 correctly. Adjust properly from 0-23 clock hour.
204 2001-01-17 Mark Wielaard <mark@klomp.org>
206 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
208 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
210 * java/lang/Class.h (isInterface): Move implementation from
211 natClass.cc. Declare inline.
212 (Class): Add default constructor.
213 * java/lang/Object.h: Update comments.
214 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
215 initialize superclass, saving a call if super is already initialized.
217 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
219 * prims.cc (init_prim_class): Deleted.
220 (DECLARE_PRIM_TYPE): Rewritten.
221 * java/lang/Class.h (stdio.h): Include removed.
222 (stddef.h): Included.
223 (java/lang/reflect/Modifier.h): Likewise.
224 (Class): Contructor now takes arguments, initializes fields.
225 (initializePrim): Prototype deleted.
226 * java/lang/natClass.cc (initializePrim): Deleted.
228 2001-01-16 Warren Levy <warrenl@redhat.com>
230 * java/math/BigInteger.java: Update Copyright year.
232 2001-01-16 Hans Boehm <hans_boehm@hp.com>
234 * java/math/BigInteger.java (setShiftRight): Only do negative shift
237 2001-01-14 Mark Wielaard <mark@klomp.org>
238 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
239 (decode): Merge comments with Classpath, don't throw Exception
241 2001-01-12 Tom Tromey <tromey@redhat.com>
243 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
247 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
248 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
249 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
250 * gnu/awt/gtk/GtkLabelPeer.java: New file.
251 * gnu/awt/gtk/GtkButtonPeer.java: New file.
253 * java/lang/natSystem.cc: Include locale.h if it exists.
254 * configure: Rebuilt.
255 * configure.in: Check for locale.h.
257 2001-01-11 Tom Tromey <tromey@redhat.com>
259 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
260 (Cursor(int), getPredefinedCursor): Throw exception if argument
263 2001-01-03 Tom Tromey <tromey@redhat.com>
265 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
266 (getLocationOnScreen): Wrote.
268 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
270 * Makefile.am: Re-enable dependencies.
271 * Makefile.in: Rebuilt.
273 2001-01-10 Warren Levy <warrenl@redhat.com>
275 * java/math/BigDecimal.java (divide): Fixed comment.
277 2001-01-10 Warren Levy <warrenl@redhat.com>
279 Fix for PR libgcj/1596:
280 * java/math/BigDecimal.java (divide): Check newScale for validity.
281 Ensure that BigInteger.pow() is called with a non-negative value.
282 (setScale (int)): New public method.
283 (setScale (int,int)): New public method.
285 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
287 Fix for PR libgcj/1338:
288 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
289 commentChar. Fixed typos in comments.
291 2001-01-08 Warren Levy <warrenl@redhat.com>
293 Fix for PR libgcj/1411:
294 * Makefile.am: Removed java/util/natTimeZone.cc.
295 * Makefile.in: Rebuilt.
296 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
297 missing localized timezone names.
298 * java/lang/System.java (getDefaultTimeZoneId): New private method.
299 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
300 (init_properties): Set user.timezone property.
301 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
302 default timezone names; removed non-standard ones. Use standard
304 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
306 * java/util/TimeZone.java: Add standard ID names per JCL; removed
308 (getDefaultTimeZoneId): Removed.
310 * java/util/natTimeZone.cc: Removed.
312 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
314 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
315 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
316 (_Jv_GetArrayClass): New inline function.
317 (arrayclass): New field.
318 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
319 _Jv_GetArrayElementFromElementType.
320 (_Jv_NewPrimArray): Ditto.
321 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
322 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
323 Set Modifier::ABSTRACT.
324 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
325 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
326 Now synchronized. Array classes are now referenced from
327 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
328 Set array classes' accessibility flags correctly. Optimize so that
329 all array classes share the same IDT.
330 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
331 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
332 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
333 in superclasses from overwriting classes own fields.
334 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
335 Modifier::isAbstract().
336 (null_idt): New static field.
337 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
339 (_Jv_IndexOf): Made inline.
340 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
342 2001-01-08 Tom Tromey <tromey@redhat.com>
344 Fix for PR java/1586:
345 * Makefile.in: Rebuilt.
346 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
348 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
350 * Makefile.am: Use the new "-M -MF" option for generating dependencies
351 from the c++ compiler.
352 * Makefile.in: Rebuilt.
354 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
356 All files with updated copyright.
357 * prims.cc (class _Jv_PrimClass): Removed.
358 (init_prim_class): New function.
359 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
360 `_Jv_PrimClass' in primitive type declarations. Assign to the
361 value returned by `init_prim_class.'
362 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
363 primitive type declarations.
364 (JvPrimClass): Cast to `jclass' removed.
365 * java/lang/Class.h (Class): New constructor.
366 (Class): New copy constructor.
367 (initializePrim): New prototype.
368 (_Jv_PrimClass): Field removed.
369 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
370 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
371 (class java::lang::Object): `finalize' moved up front.
372 * java/lang/natClass.cc
373 (isAssignableFrom): Turned outline.
374 (isInstance): Likewise.
375 (isInterface): Likewise, fixed indentation.
376 (initializePrim): New function.
378 2001-01-07 Anthony Green <green@redhat.com>
380 * Makefile.am (texinfo): Add texinfo target for generating texinfo
382 * Makefile.in: Rebuilt.
384 * scripts/TexinfoDoclet.java: New file.
386 * doc/java-applet.texi, doc/java-lang-reflect.texi,
387 doc/java-awt-color.texi, doc/java-lang.texi,
388 doc/java-awt-datatransfer.texi, doc/java-math.texi,
389 doc/java-awt-event.texi, doc/java-net.texi,
390 doc/java-awt-geom.texi, doc/java-security-spec.texi,
391 doc/java-awt-image.texi, doc/java-security.texi,
392 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
393 doc/java-text.texi, doc/java-beans-beancontext.texi,
394 doc/java-util-jar.texi, doc/java-beans.texi,
395 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
396 doc/java-lang-ref.texi: New files.
398 2001-01-07 Anthony Green <green@redhat.com>
400 * java/net/URLConnection.java (setDoOutput): URLConnection's may
401 be used for both input and output, so don't clear doInput.
403 * java/lang/StringBuffer.java: Fix comments.
405 2001-01-06 Anthony Green <green@redhat.com>
407 * java/beans/PropertyDescriptor.java: Fix comment.
408 * java/io/PushbackReader.java: Fix comment.
409 * java/io/ObjectStreamClass.java: Fix comment.
410 * java/io/DataInputStream.java: Fix comment.
411 * java/io/PipedInputStream.java: Fix comments.
412 * java/io/PipedReader.java: Fix comments.
413 * java/sql/DatabaseMetaData.java: Fix comments.
415 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
417 * java/io/PipedReader: Synchronize on "lock" instead of this.
419 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
421 * java/lang/Thread.java: Update comment.
423 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
424 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
425 * java/io/PipedReader: New implementation based on new
427 * java/io/PipedWriter: Updated to match new PipedReader.
429 2001-01-03 Tom Tromey <tromey@redhat.com>
431 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
432 (getViewportSize): Insets include scrollbar size.
433 (doLayout): Finished.
434 (getScrollPosition): Wrote.
435 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
437 2001-01-02 Tom Tromey <tromey@redhat.com>
439 * java/awt/ScrollPane.java: Wrote.
440 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
443 * java/awt/Panel.java (Panel()): Fixed.
445 * java/awt/Component.java (isShowing): Return false if no peer
446 exists, and true if component is visible and no parent exists.
447 (getLocationOnScreen): Wrote.
448 (getPreferredSize): Removed FIXME comment.
449 (getMinimumSize): Likewise.
450 (getAlignmentX, getAlignmentY): Wrote.
452 (requestFocus): Wrote.
453 (transferFocus): Wrote.
454 (findNextFocusComponent): New method.
457 (enableEvents): Call setEventMask on the peer.
459 * java/awt/Container.java (list): Use super.list() to print self.
460 (findNextFocusComponent): New method.
461 (setLayout): Call invalidate.
462 (findComponentAt): Wrote.
464 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
466 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
467 the correct versions of various linuxthreads functions get linked.
468 * Makefile.in: Rebuilt.
469 * java/lang/natThread.cc (finalize_native): New static function. Call
470 _Jv_ThreadDestroyData.
471 (initialize_native): Register finalizer for "data".
472 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
473 (_Jv_ThreadDestroyData): New prototype.
474 * include/win32-threads.h: Ditto.
475 * include/no-threads.h: Ditto.
476 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
477 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
478 move mutex and condition variable destroy code from:
479 (really_start): ...here.
480 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
481 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
482 (_Jv_ThreadDestroyData): Implemented.
483 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
484 (_Jv_AllocArray): Ditto.
486 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
488 * java/sql/DriverManager.java (getConnection): Don't set user/password
491 2000-12-27 Warren Levy <warrenl@redhat.com>
493 Fix for PR libgcj/1358:
494 * java/lang/System.java: Update Copyright date properly.
495 * java/util/Calendar.java: Fix typo in comment.
496 (set): Set 24-hour clock hour instead of 12-hour clock hour.
497 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
498 initialize times. Spec says to set H:M:S values to zero only if
500 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
501 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
502 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
503 timezones and GMT offsets, being careful to account for units of
504 milliseconds vs. seconds.
506 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
508 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
509 not be assigned to Object.
511 Fix for PR libgcj/1516:
512 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
514 (can_widen): Declared inline. Remove redundant checks for void
515 arguments and char->short conversion. Add special case for boolean
517 (ffi_type): Declared inline.
518 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
520 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
522 * java/sql/SQLWarning.java: Fixed typo in comment.
524 2000-12-26 Tom Tromey <tromey@redhat.com>
526 * java/awt/MenuItem.java (paramString): Now protected.
528 * java/awt/MenuShortcut.java: Implements Serializable.
530 * java/awt/MenuBar.java: Rewrote from scratch.
532 * java/awt/MenuComponent.java (removeNotify): Wrote.
533 Implements Serializable.
535 * java/awt/GridBagConstraints.java (GridBagConstraints): New
538 * java/awt/CheckboxMenuItem.java: Wrote.
540 2000-12-25 Tom Tromey <tromey@redhat.com>
542 * java/awt/MenuContainer.java: Fixed typo.
544 * Makefile.in: Rebuilt.
545 * Makefile.am (awt_java_source_files): Added SystemColor.java.
546 * java/awt/SystemColor.java: New file.
548 * java/awt/Color.java (rgba): Now package-private.
550 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
552 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
555 * java/awt/MenuItem.java (addNotify): New method.
556 (MenuItem(String,MenuShortcut)): New constructor.
557 (setLabel): Notify peer of change.
558 (setEnabled): Likewise.
560 * java/awt/GridLayout.java (toString): New method.
562 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
563 (FlowLayout): Check for LEADING and TRAILING.
564 (setAlignment): Likewise.
565 (layoutContainer): Handle component orientation.
567 * java/awt/Component.java (orientatin): New field.
568 (setComponentOrientation): Wrote.
569 (getComponentOrientation): Wrote.
571 * java/awt/Event.java (Event): Implements Serializable.
572 (consumed): New field for serialization.
573 * java/awt/Dimension.java (Dimension): Implements Serializable.
574 * java/awt/Cursor.java (Cursor): Implements Serializable.
575 * java/awt/Container.java (Container): No longer abstract.
577 * java/awt/Choice.java: Wrote.
578 * java/awt/Checkbox.java: Wrote.
579 * java/awt/ItemSelectable.java: Documented.
580 * java/awt/CheckboxGroup.java: Wrote.
582 * java/awt/CardLayout.java (layoutContainer): Directly use fields
586 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
588 * java/io/FileDescriptor.java: Initialize fd to -1.
589 Remove default constructor.
591 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
593 * java/lang/mprec.h: Change C9X reference to refer to C99.
595 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
597 * java/lang/Throwable.java (trace_enabled): New static field.
598 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
599 trace_enabled not set.
600 * prims.cc (main_init): Turn off trace_enabled while creating
601 default exception objects.
603 2000-12-21 Tom Tromey <tromey@redhat.com>
605 * java/beans/PropertyChangeListener.java: Extends EventListener.
606 * java/beans/VetoableChangeListener.java: Extends EventListener.
608 * java/util/zip/Deflater.java (update, init): Now private.
610 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
612 * java/util/BasicMapEntry.java: Re-added.
613 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
614 (putAll): Test for BasicMapEntry.
615 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
616 (putAll): Test for BasicMapEntry.
617 Change references from `HashMap.Entry' to `Entry' in various places.
618 * Makefile.am: Add BasicMapEntry.java.
619 * Makefile.in: Rebuilt.
621 2000-12-18 Warren Levy <warrenl@redhat.com>
623 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
624 need to set timezone to a valid non-null value. Partial fix for
627 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
629 * java/awt/Window.java (addNotify): Remove peer casting hack now that
631 * java/awt/Button.java (addNotify): Likewise.
632 * java/awt/Label.java (addNotify): Likewise.
633 * java/awt/Panel.java (addNotify): Likewise.
634 * java/awt/Scrollbar.java (addNotify): Likewise.
635 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
636 Remove redundant null checks.
638 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
640 * COPYING: Update to current
641 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
642 to 19yy as example year in copyright notice).
644 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
646 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
647 end-of-stream if avail_in is 0.
649 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
651 * java/util/ArrayList.java (data): Declare transient.
652 (serialPersistantFields): Removed.
653 (readObject): Use defaultReadObject(), not readFields().
654 (writeObject): Use defaultWriteObject(), not writeFields().
656 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
658 * java/util/Hashtable.java (put): Remove `last' variable.
659 Link new entry to head of list.
660 * java/util/HashMap.java (put): Ditto.
662 2000-12-15 Tom Tromey <tromey@redhat.com>
664 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
665 loader to Class.forName.
667 2000-12-14 Tom Tromey <tromey@redhat.com>
669 * java/util/ResourceBundle.java
670 (getBundle(String,Locale,ClassLoader)): New method.
671 (trySomeGetBundle): Added `loader' argument.
672 (partialGetBundle): Likewise.
674 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
675 maximumFractionDigits, maximumIntegerDigits,
676 minimumFractionDigits, minimumIntegerDigits): Now
679 * java/lang/Thread.java (checkAccess): Now final.
681 * java/lang/RuntimePermission.java: Class now final.
683 * java/io/StringWriter.java (StringWriter(int)): Now public.
685 * java/io/SerializablePermission.java (legal_names): Now private.
687 * java/lang/Character.java: Updated UnicodeBlock constants.
688 * scripts/blocks.pl: Special case private use and surrogate
691 2000-12-12 Tom Tromey <tromey@redhat.com>
693 * Makefile.in: Rebuilt.
694 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
696 (GCJCOMPILE): Use it.
699 2000-12-11 Tom Tromey <tromey@redhat.com>
701 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
702 New static final fields.
704 * scripts/classes.pl (scan): Skip lines with leading `*'.
705 Fix for PR libgcj/378.
707 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
709 * configure.in: Remove check for -fuse-divide-subroutine.
710 * configure: Rebuilt.
712 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
714 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
716 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
718 * Makefile.am: Add HashSet.java and java/lang/ref classes.
719 Remove BasicMapEntry.java and Bucket.java.
720 * Makefile.in: Rebuilt.
721 * java/util/HashMap.java: Rewritten.
722 * java/util/HashSet.java: Imported from classpath.
723 * java/util/WeakHashMap.java: Imported from classpath.
724 * java/util/Hashtable.java: Rewritten based on new HashMap code.
725 * java/util/Bucket.java: Deleted.
726 * java/util/BasicMapEntry.java: Deleted.
727 * java/util/Collections.java (search): Use a for-loop, not iterator
729 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
730 of elements in source.
731 (max): Use a for-loop.
733 (reverse): Keep track of positions instead of using Iterator's
734 nextIndex() and previousIndex().
735 (shuffle(List)): Initialize defaultRandom if required using
736 double-check thread safety idiom. Call two-argument shuffle method
738 (defaultRandom): New field.
739 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
740 using previousIndex() and nextIndex().
741 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
742 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
743 * java/util/AbstractMap.java (toString): Use StringBuffer.
744 * java/lang/ref/PhantomReference.java: Imported from classpath.
745 * java/lang/ref/SoftReference.java: Ditto.
746 * java/lang/ref/Reference.java: Ditto.
747 * java/lang/ref/WeakReference.java: Ditto.
748 * java/lang/ref/ReferenceQueue.java: Ditto.
750 2000-12-10 Richard Henderson <rth@redhat.com>
752 * configure.host: Recognize alpha*-*, not alphaev6-*.
754 2000-12-09 Anthony Green <green@redhat.com>
756 * configure.host: Enable interpreter for Alpha.
758 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
760 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
761 (ZIP): Points at fastjar instead of zip.
762 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
763 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
764 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
765 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
766 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
767 ($(x_java_source_files:.java=.class):): Likewise.
768 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
770 (CLEANFILES): libgcj.jar replaces libgcj.zip.
771 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
772 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
773 java/lang/String.h:, java/lang/reflect/Constructor.h:,
774 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
775 gnu/gcj/runtime/VMClassLoader.h:,
776 java/io/ObjectInputStream$$GetField.h:,
777 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
778 (Makefile.in): Rebuilt.
780 2000-12-08 Tom Tromey <tromey@redhat.com>
783 * configure: Rebuilt.
784 * configure.in: Use echo, not `:', to create .d files.
786 2000-12-08 Warren Levy <warrenl@redhat.com>
788 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
789 NullPointerException so proper check of offset can be done.
791 2000-12-08 Warren Levy <warrenl@redhat.com>
793 * java/io/FileInputStream.java (close): Check if the fd is valid.
794 * java/io/RandomAccessFile.java (close): Ditto.
795 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
796 * java/net/PlainSocketImpl.java (close): Ditto.
798 2000-12-06 Tom Tromey <tromey@redhat.com>
800 * java/awt/GridBagConstraints.java: Filled in values for static
803 * java/util/BitSet.java: Updated copyright notice.
805 * Makefile.in: Rebuilt.
806 * Makefile.am (awt_java_source_files): Added new file.
807 * java/awt/GridBagConstraints.java: New file.
809 2000-12-05 Tom Tromey <tromey@redhat.com>
811 * java/text/Collator.java (decomposeCharacter, decmp, strength):
812 Now package-private, not protected.
813 * java/text/DateFormatSymbols.java (equals): Now private.
814 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
815 * java/util/BitSet.java: Class no longer final.
817 2000-12-04 Warren Levy <warrenl@redhat.com>
819 * java/util/TimeZone.java (getAvailableIDs): Activated commented
820 out code dependent on compiler and library changes.
822 2000-12-04 Warren Levy <warrenl@redhat.com>
824 * java/io/FilePermission.java: Made class final per spec.
825 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
826 method name to match spec (fixed typo).
827 * java/util/LinkedList.java: Implements List.
829 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
831 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
832 Edgar Villanueva <edgarvil@home.com>.
834 2000-12-03 Tom Tromey <tromey@redhat.com>
836 * java/awt/geom/Point2D.java: Added protected constructor.
837 (equals): New method.
838 (Float.setLocation(float,float)): New method.
839 * java/awt/geom/Dimension2D.java: Added protected constructor.
840 * java/awt/geom/AffineTransform.java: Made all constants public.
841 (concatenate): Fixed typo in name.
842 * java/awt/event/WindowAdapter.java: Class now abstract.
843 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
844 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
847 * java/awt/AWTError.java: Extend Error, not
848 IllegalStateException.
850 * Makefile.in: Rebuilt.
851 * Makefile.am (awt_java_source_files): Added new file.
852 * java/awt/geom/RoundRectangle2D.java: New file.
854 * Makefile.in: Rebuilt.
855 * Makefile.am (awt_java_source_files): Added new file.
856 * java/awt/FlowLayout.java: New file.
858 * Makefile.in: Rebuilt.
859 * Makefile.am (awt_java_source_files): Added new file.
860 * java/awt/GridLayout.java: New file.
862 2000-12-02 Tom Tromey <tromey@redhat.com>
864 * Makefile.in: Rebuilt.
865 * Makefile.am (awt_java_source_files): Added new files.
866 * java/awt/CardLayout.java: New file.
867 * java/awt/AWTPermission.java: New file.
869 2000-12-01 Tom Tromey <tromey@redhat.com>
871 * java/util/Vector.java (insertElementAt): Unconditionally
872 increment elementCount.
873 (removeRange): Clear unused slots in vector.
875 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
877 * java/lang/natMath.cc: Declare fabsf() function.
878 * java/lang/mprec.h: Don't include math.h.
879 * java/lang/dtoa.c: Include string.h.
880 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
883 From Adam Welc <welc@cs.purdue.edu>:
884 * java/util/LinkedList.java (removeFirst): Update `first' field.
885 Handle the last == first case.
886 (removeLast): Update `last' field. Handle the last == first case.
888 2000-12-01 Warren Levy <warrenl@cygnus.com>
890 * Makefile.am: Added entries for new java.sql modules.
891 * Makefile.in: Rebuilt.
893 2000-12-01 Warren Levy <warrenl@cygnus.com>
895 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
896 that aren't quite 1.2 compatible yet.
898 2000-11-30 Warren Levy <warrenl@cygnus.com>
900 * java/sql/Array.java: New file from classpath.
901 * java/sql/BatchUpdateException.java: Ditto.
902 * java/sql/Blob.java: Ditto.
903 * java/sql/Clob.java: Ditto.
904 * java/sql/Ref.java: Ditto.
905 * java/sql/SQLData.java: Ditto.
906 * java/sql/SQLInput.java: Ditto.
907 * java/sql/SQLOutput.java: Ditto.
908 * java/sql/Struct.java: Ditto.
909 * java/sql/CallableStatement.java: Merged file from claspath.
910 * java/sql/Connection.java: Ditto.
911 * java/sql/DataTruncation.java: Ditto.
912 * java/sql/DatabaseMetaData.java: Ditto.
913 * java/sql/DriverManager.java: Ditto.
914 * java/sql/PreparedStatement.java: Ditto.
915 * java/sql/ResultSet.java: Ditto.
916 * java/sql/ResultSetMetaData.java: Ditto.
917 * java/sql/SQLException.java: Ditto.
918 * java/sql/SQLWarning.java: Ditto.
919 * java/sql/Statement.java: Ditto.
920 * java/sql/Types.java: Ditto.
922 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
924 * java/lang/natSystem.cc (init_properties): Set user.language and
926 * configure.in: Check for setlocale.
927 * configure: Rebuilt.
928 * include/config.h.in: Rebuilt.
930 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
931 the infate() call didn't deliver any output. Throw a ZipException if
932 the needsDictionary() call returns true.
933 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
934 * java/io/InputStreamReader: Use the default buffer size for the
935 contained BufferedInputStream.
937 2000-11-28 Warren Levy <warrenl@cygnus.com>
939 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
940 more time zone entries.
941 * java/text/SimpleDateFormat.java (format): Added case for
944 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
946 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
947 directly rather than read() in all cases. Make primitive read
948 implementations more efficient, as defined in JDK online docs.
949 (skipBytes): Behave like the JDK's implementation.
950 * java/io/BufferedReader.java: Merge classpath docs. Check for a
951 closed stream with checkStatus() whenever an IOException can be
953 (checkStatus): New private method.
955 2000-11-27 Warren Levy <warrenl@cygnus.com>
957 * Makefile.am: Added natTimeZone.cc.
958 * Makefile.in: Rebuilt.
959 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
960 * java/text/DateFormatSymbols.java (ampms): Made package private.
961 (eras): Made package private.
962 (months): Made package private.
963 (shortMonths): Made package private.
964 (shortWeekdays): Made package private.
965 (weekdays): Made package private.
966 (formatPrefixes): New private field.
967 (localPatternCharsDefault): Made private.
968 (dateFormats): New package private field.
969 (timeFormats): New package private field.
970 (formatsForKey): New private method.
971 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
972 (DateFormatSymbols(DateFormatSymbols)): Ditto.
973 * java/text/SimpleDateFormat.java: Merged with Classpath.
974 * java/util/TimeZone.java: Merged with Classpath.
975 * java/util/natTimeZone.cc: New file.
977 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
979 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
980 (addElement): Don't increment elementCount twice. Doh.
981 * java/util/ArrayList.java (add): Only call ensureCapacity if the
982 array needs to be expanded.
984 * java/util/Collections.java (UnmodifiableCollection): Implement
986 (UnmodifiableList): Throw UnsupportedOperationException from
987 modification methods. Set `l' from the one-parameter constructor.
988 (UnmodifiableMap): Implement toString().
989 (SynchronizedCollection): Ditto.
990 (SynchronizedList): Set `l' from the one-parameter constructor.
991 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
992 (SynchronizedMap): Implement toString().
994 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
996 * javax/naming/NameParser.java,
997 javax/naming/directory/AttributeInUseException.java,
998 javax/naming/directory/AttributeModificationException.java,
999 javax/naming/directory/InvalidAttributeIdentifierException.java,
1000 javax/naming/directory/InvalidAttributesException.java,
1001 javax/naming/directory/InvalidAttributeValueException.java,
1002 javax/naming/directory/InvalidSearchControlsException.java,
1003 javax/naming/directory/InvalidSearchFilterException.java,
1004 javax/naming/directory/NoSuchAttributeException.java,
1005 javax/naming/directory/SchemaViolationException.java: New files.
1007 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1009 * javax/naming/InitialContext.java (rebind): Implement.
1010 (unbind): Implement.
1011 (rename): Implement.
1013 (listBindings): Implement.
1014 (destroySubcontext): Implement.
1015 (createSubcontext): Implement.
1016 (lookupLink): Implement.
1017 (getNameParser): Implement.
1018 (composeName): Implement.
1019 (addToEnvironment): Implement.
1021 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1023 * javax/naming/AuthenticationException.java,
1024 javax/naming/AuthenticationNotSupportedException.java,
1025 javax/naming/CannotProceedException.java,
1026 javax/naming/CommunicationException.java,
1027 javax/naming/ConfigurationException.java,
1028 javax/naming/ContextNotEmptyException.java,
1029 javax/naming/InsufficientResourcesException.java,
1030 javax/naming/InterruptedNamingException.java,
1031 javax/naming/InvalidNameException.java,
1032 javax/naming/LimitExceededException.java,
1033 javax/naming/LinkException.java,
1034 javax/naming/LinkLoopException.java,
1035 javax/naming/MalformedLinkException.java,
1036 javax/naming/NameAlreadyBoundException.java,
1037 javax/naming/NameNotFoundException.java,
1038 javax/naming/NamingSecurityException.java,
1039 javax/naming/NoPermissionException.java,
1040 javax/naming/NotContextException.java,
1041 javax/naming/PartialResultException.java,
1042 javax/naming/ReferralException.java,
1043 javax/naming/ServiceUnavailableException.java,
1044 javax/naming/SizeLimitExceededException.java,
1045 javax/naming/TimeLimitExceededException.java: New files.
1047 * javax/naming/Name.java (clone): New method.
1048 (compareTo): New method.
1049 (isEmpty): New method.
1050 (getAll): New method.
1051 (getPrefix): New method.
1052 (getSuffix): New method.
1053 (startsWith): New method.
1054 (endsWith): New method.
1055 (addAll): New method.
1056 (addAll): New method.
1059 (remove): New method.
1061 * javax/naming/Context.java (lookup): New method.
1062 (rebind): New method.
1063 (unbind): New method.
1064 (rename): New method.
1066 (listBindings): New method.
1067 (destroySubcontext): New method.
1068 (createSubcontext): New method.
1069 (lookupLink): New method.
1070 (getNameParser): New method.
1071 (composeName): New method.
1072 (addToEnvironment): New method.
1073 (removeFromEnvironment): New method.
1074 (getEnvironment): New method.
1075 (close): New method.
1076 (getNameInNamespace): New method.
1078 * javax/naming/InitialContext.java (lookup): New method.
1079 (rebind): New method.
1080 (unbind): New method.
1081 (rename): New method.
1083 (listBindings): New method.
1084 (destroySubcontext): New method.
1085 (createSubcontext): New method.
1086 (lookupLink): New method.
1087 (getNameParser): New method.
1088 (composeName): New method.
1089 (addToEnvironment): New method.
1090 (removeFromEnvironment): New method.
1091 (getEnvironment): New method.
1092 (close): New method.
1093 (getNameInNamespace): New method.
1095 2000-11-26 Tom Tromey <tromey@cygnus.com>
1097 * Makefile.in: Rebuilt.
1098 * Makefile.am (core_java_source_files): Added
1099 RuntimePermission.java.
1100 * java/lang/RuntimePermission.java: Imported from Classpath.
1101 * java/lang/Thread.java (getContextClassLoader): Now
1102 synchronized. Added security code.
1103 (setContextClassLoader): Likewise.
1105 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1106 length field of array.
1107 (_Jv_NewPrimArray): Likewise.
1108 * gcj/array.h (__JArray): `length' field now const. Added
1111 2000-11-26 Anthony Green <green@redhat.com>
1113 * javax/naming/spi/NamingManager.java,
1114 javax/naming/spi/ObjectFactory.java,
1115 javax/naming/spi/InitialContextFactory.java,
1116 javax/naming/spi/InitialContextFactoryBuilder.java,
1117 javax/naming/RefAddr.java, javax/naming/Reference.java,
1118 javax/naming/NamingException.java, javax/naming/Context.java,
1119 javax/naming/Referenceable.java,
1120 javax/naming/directory/InitialDirContext.java,
1121 javax/naming/directory/DirContext.java,
1122 javax/naming/directory/Attributes.java,
1123 javax/naming/directory/Attribute.java,
1124 javax/naming/StringRefAddr.java,
1125 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1126 javax/naming/InitialContext.java,
1127 javax/naming/NoInitialContextException.java: New files.
1129 2000-11-25 Anthony Green <green@redhat.com>
1131 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1132 (_Jv_NewPrimArray): Likewise.
1133 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1134 (class JArray): Removed constructor.
1136 * java/lang/Thread.java (context_class_loader): New private data.
1137 (getContextClassLoader): New method.
1138 (setContextClassLoader): New method.
1139 (Thread): Initialize context_class_loader.
1141 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1142 (getResource): Rename to findResource.
1143 (findResource): New method. Used to be getResource.
1144 (getResourceAsStream): Deleted.
1145 (jarFileize): Extracted logic from URLClassLoader constructor into
1146 this new private method.
1147 (addURL): New protected method.
1148 (URLClassLoader): Call jarFileize. Use addElement instead of
1150 (findResources): New method.
1152 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1153 (getResource): Implement correct logic.
1154 (findResource): New method.
1155 (getResources): New method.
1156 (findClass): Create a ClassNotFoundException with the name of the
1157 class rather than nothing at all.
1158 (defineClass) Only throw ClassFormatError.
1160 * java/lang/Class.java (forName): New method.
1161 * java/lang/Class.h (forName): New method.
1162 * java/lang/natClass.cc (forName): New method.
1164 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1166 * java/lang/System.java (setProperties): Only call init_properties()
1167 if properties is null.
1168 (getProperties): Ditto.
1169 (getProperty): Ditto.
1170 (setProperty): Call init_properties if properties are null.
1171 (prop_init): Remove field.
1172 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1173 method. Check for null properties after synchronizing instead of
1174 prop_init flag. Set the properties field last for thread safety.
1176 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1177 test for gcj.dumpobjects property and enable object stream dumping
1179 (dumpElement): No longer native.
1180 (dumpElementln): Ditto.
1181 (setDump): Do not define.
1182 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1183 (dumpElementln): Removed.
1186 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1188 * configure: Rebuilt.
1189 * Makefile.in: Rebuilt.
1190 * Makefile.am (built_java_source_files): Add Configuration.java.
1191 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1192 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1193 Create `gnu' directory in the build tree.
1194 * gnu/classpath/Configuration.java.in: New file.
1196 2000-11-24 Tom Tromey <tromey@cygnus.com>
1198 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1200 (_Jv_NewPrimArray): Likewise.
1202 * gcj/array.h (__JArray): `length' field now const. Added
1204 (class JArray): Added constructor.
1206 2000-11-23 Mark Wielaard <mark@klomp.org>
1208 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1211 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1213 * java/util/Vector.java: Improve exception messages.
1214 (Vector): Check initialCapacity for IllegalArgumentException.
1215 (tromToSize): Don't check for elementCount == elementData.length
1217 (toArray): Don't try to set null marker if target array is the same
1218 length as the vector.
1220 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1222 * Makefile.in: Rebuilt.
1223 * Makefile.am (core_java_source_files): Added Collections.java.
1224 * java/util/List.java: Merged from classpath.
1225 * java/util/Vector.java: Ditto.
1226 * java/util/Collections.java: From classpath.
1227 * java/util/ArrayList.java (addAll(Collection)): Call
1228 addAll(int,Collection) instead of duplicating code.
1229 (indexOf): Clean up int initialization.
1230 (clear): Set cleared array entries to null, to allow garbage
1232 * java/util/List.java: Minor formatting fixes.
1233 * java/util/SimpleTimeZone.java: ditto.
1235 2000-11-18 Tom Tromey <tromey@cygnus.com>
1237 * Makefile.in: Rebuilt.
1238 * Makefile.am (core_java_source_files): Added new files.
1239 * java/lang/reflect/ReflectPermission.java: New class.
1240 * java/io/FileFilter.java: From Classpath
1241 * java/io/FilePermission.java: From Classpath.
1243 2000-11-17 Tom Tromey <tromey@cygnus.com>
1245 * java/lang/reflect/AccessibleObject.java (isAccessible,
1246 setAccessible): Now public.
1248 * java/lang/natString.cc: Include Locale.h.
1249 (toUpperCase): Added `locale' argument. Handle locale
1251 (toLowerCase): Added `locale' argument. Handle locale
1253 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1254 CAPITAL_I): New defines.
1255 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1258 (toUpperCase, toLowerCase): New methods. Variants which accept
1261 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1264 * java/util/PropertyPermission.java: Re-merged from Classpath.
1266 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1268 * java/text/StringCharacterIterator.java: Reindented.
1269 (setText): New method.
1271 2000-11-17 Mark Wielaard <mark@klomp.org>
1273 Merge with Classpath (changes by Bryce McKinlay)
1274 * java/util/jar/*.java: Reformat all to unofficial standard coding
1275 style. No changes of substance.
1277 2000-11-17 Mark Wielaard <mark@klomp.org>
1279 * java/util/zip/*.java: Javadoc updates.
1281 2000-11-17 Tom Tromey <tromey@cygnus.com>
1283 * java/text/CollationKey.java: Implement Comparable.
1284 (compareTo(Object)): New method.
1285 * java/text/Collator.java (compare(Object,Object)): New method.
1286 Implement Comparator.
1288 * java/util/zip/InflaterInputStream.java (available): New method.
1289 (close): New method.
1290 (read, available, skip, fill): Throw exception if stream closed.
1291 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1292 getNextEntry): Throw exception if closed.
1294 2000-11-16 Tom Tromey <tromey@cygnus.com>
1296 * java/io/PushbackReader.java: Merged with Classpath.
1297 * java/util/Arrays.java: Updated from Classpath.
1299 * scripts/blocks.pl: New file.
1300 * java/lang/Character.java (Subset): New class.
1301 (UnicodeBlock): New class.
1303 * java/lang/Math.java (toDegrees, toRadians): New methods.
1305 * java/lang/Float.java: Implement Comparable.
1306 (compareTo): New methods.
1307 * java/lang/Double.java: Implement Comparable.
1308 (compareTo): New methods.
1310 2000-11-16 Warren Levy <warrenl@cygnus.com>
1312 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1314 (listeners): Made transient.
1315 (source): Renamed from 'bean'.
1316 (children): New field for serialization.
1317 (propertyChangeSupportSerializedDataVersion): Ditto.
1318 (serialVersionUID): Ditto.
1319 (writeObject): New serialization method.
1320 (readObject): New serialization method.
1321 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1323 (listeners): Made transient.
1324 (source): Renamed from 'bean'.
1325 (children): New field for serialization.
1326 (vetoableChangeSupportSerializedDataVersion): Ditto.
1327 (serialVersionUID): Ditto.
1328 (writeObject): New serialization method.
1329 (readObject): New serialization method.
1330 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1331 to allow constructor to have a return type (i.e. the class that the
1332 constructor constructs).
1334 2000-11-14 Tom Tromey <tromey@cygnus.com>
1336 * Makefile.in: Rebuilt.
1337 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1340 2000-11-02 Warren Levy <warrenl@cygnus.com>
1342 * java/io/ObjectInputStream.java (readObject): Added code to
1343 conditionally dump out the serialized data.
1344 Handle ENDBLOCKDATA case a bit more gracefully since the current
1345 behavior doesn't seem to work as expected.
1346 (readStreamHeader): Added code for serialized data dumper.
1347 (readNextBlock): Ditto.
1348 (readFields): Ditto.
1349 (dump): New private static field for turning on/off dumper.
1350 (setDump): New native method.
1351 (dumpElement): New native method.
1352 (dumpElementln): New native method.
1353 * java/io/natObjectInputStream.cc (setDump): New method.
1354 (dumpElement): New method.
1355 (dumpElementln): New method.
1357 2000-11-02 Warren Levy <warrenl@cygnus.com>
1359 * java/net/InetAddress.java (addr): Renamed from 'address'.
1360 (address): New field to match Serialized Form doc.
1361 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1362 (family): New serialization field.
1363 (serialVersionUID): New field.
1364 (readObject): New method.
1365 (writeObject): New method.
1366 (getFamily): New native method.
1367 (InetAddress): Set family.
1368 * java/net/natInetAddress.cc (getFamily): New method.
1369 (addr): Renamed from 'address'.
1370 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1371 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1372 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1374 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1376 * java/util/AbstractList.java (SubList): Make it a top-level private
1378 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1380 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1381 * Makefile.in: Rebuilt.
1383 2000-11-02 Tom Tromey <tromey@cygnus.com>
1385 * Makefile.in: Rebuilt.
1386 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1389 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1391 * java/util/AbstractList.java (remove): Comment out modCount increment
1392 to work around compiler bug.
1395 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1397 * java/util/AbstractList.java: Throw messages with
1398 IndexOutOfBoundsExceptions.
1399 (listIterator()): Call listIterator(0).
1400 (size): New field. Initialize to size().
1401 (hasNext): Test position against size, not size().
1402 (remove): Increment knownMod by one instead of resetting it from
1405 (SubList.upMod): Removed.
1406 (SubList.set): Don't call upMod() or update knownMod.
1407 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1408 (SubList.remove): Ditto.
1409 (SubList.addAll): Don't call backingList.size(). Increment size from
1411 (SubList.iterator): New method. Call listIterator(0).
1412 (SubList.listIterator): New method. Restore code to return an anonymous
1413 listIterator implementation (with some changes).
1414 * java/util/AbstractSequentialList.java: Throw messages with
1415 IndexOutOfBoundsExceptions.
1416 (addAll): Add a specnote.
1417 * java/util/ArrayList.java (removeRange): Get the math right.
1418 (addAll): Increment modCount _before_ creating iterator.
1419 * java/util/LinkedList.java: Rewritten, mostly.
1421 2000-11-01 Tom Tromey <tromey@cygnus.com>
1423 * scripts/encodings.pl: Added `ASCII' alias.
1424 * Makefile.in: Rebuilt.
1425 * Makefile.am (convert_source_files): Added new files.
1426 * gnu/gcj/convert/Input_ASCII.java: New file.
1427 * gnu/gcj/convert/Output_ASCII.java: New file.
1428 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1429 out-of-range characters.
1430 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1431 (read): Swap bytes if required. Treat `count' as character count,
1433 (write): Likewise. Also, handle case where iconv fails on a given
1435 (init): Put encoding into exception.
1436 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1437 (static): Call iconv_init. Rebuilt alias list.
1438 (iconv_init): New private method.
1440 2000-11-01 Tom Tromey <tromey@cygnus.com>
1442 * Makefile.in: Rebuilt.
1443 * Makefile.am (install-exec-hook): Only make a single symlink, and
1444 remove the destination before making the link.
1445 * configure: Rebuilt.
1446 * configure.in: Call AC_PROG_LN_S.
1448 2000-10-31 Warren Levy <warrenl@cygnus.com>
1450 * jni.cc: Added include of java/lang/ThreadGroup.h.
1451 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1452 per change of 2000-10-05.
1454 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1456 * java/util/BitSet.java: Updated @specnote.
1458 * java/io/Reader.java: Merge docs from classpath.
1459 (skip): Synchronize on `lock'.
1460 * java/io/FileReader.java: Import correct implementation from
1462 * java/io/StringReader.java: Merge docs from classpath.
1463 (ready): Throw IOException if stream is closed.
1465 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1467 * java/util/AbstractCollection.java (addAll): Use size() instead of
1468 hasNext() in iterator loop.
1470 (contains): Ditto. Simplify loop.
1471 (containsAll): Ditto.
1476 (toString): Ditto. Use string concatenation operators, not
1478 * java/util/AbstractList.java (addAll): Use size() instead of
1479 hasNext() in iterator loop.
1482 (indexOf): Ditto. Don't take null check outside of the loop.
1483 (iterator): Return an AbstractListItr instead of anonymous class.
1484 (lastIndexOf): Use a for loop bounded by size() instead of
1485 hasPrevious() in iterator loop.
1486 (listIterator): Return an AbstractListItr.
1487 (removeRange): Remove bounds checking code and docs.
1488 (AbstractListItr): New inner class. Code moved here from
1490 (SubList.iterator): Removed. Use default implementation from
1491 AbstractList instead.
1492 (SubList.listIterator): As above.
1493 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1494 instead of hasNext() in iterator loop.
1495 (containsValue): Ditto.
1501 (toString): Ditto. Use string concatenation operators, not
1503 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1504 bounded by size() instead of hasNext() in iterator loop.
1505 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1506 part of normal execution flow. Do an explicit null check instead.
1507 * java/util/ArrayList.java (_iSize): Rename to `size'.
1508 (_arData): Rename to `data'.
1509 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1512 (removeRange): Make protected. Don't check bounds.
1513 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1515 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1517 (addAll (int, Collection)): Check lower bounds. Simplify exception
1519 (clone): Clone the data array too.
1520 (indexOf): Inline doesEqual().
1521 (lastIndexOf): Ditto.
1522 (clear): Don't set array data to null.
1523 (set): Check lower bounds. Simplify exception string.
1524 (toArray): Correct comment.
1525 (trimToSize): Don't update modCount, this is not a structural change.
1528 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1530 (toString): Declare `bit' as long, not int.
1531 (data): Made package-private, not private.
1533 2000-10-27 Warren Levy <warrenl@cygnus.com>
1535 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1536 array elements to true.
1538 2000-10-27 Warren Levy <warrenl@cygnus.com>
1540 * Makefile.am: Added locale files from Classpath.
1541 * Makefile.in: Rebuilt.
1542 * gnu/java/locale/Calendar.java: New file.
1543 * gnu/java/locale/Calendar_de.java: New file.
1544 * gnu/java/locale/Calendar_en.java: New file.
1545 * gnu/java/locale/Calendar_nl.java: New file.
1546 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1547 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1548 serialization compatibility.
1549 (scale): Made private.
1550 (serialVersionUID): New field.
1551 * java/math/BigInteger.java (ival): Made transient.
1552 (words): Made transient.
1553 (bitCount): New serialization field.
1555 (firstNonzeroByteNum): Ditto.
1556 (lowestSetBit): Ditto.
1559 (serialVersionUID): New field.
1560 (readObject): New method.
1561 (writeObject): New method.
1562 * java/util/BitSet.java (serialVersionUID): New field.
1563 * java/util/Calendar.java: Replaced with Classpath file.
1564 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1565 of getDefault() for TimeZone or Locale instead of passing nulls.
1566 * java/util/Locale.java (serialVersionUID): New field.
1567 (writeObject): New method.
1568 (readObject): New method.
1569 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1571 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1573 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1574 (core_java_source_files): Put java.lang, java.io, and java.util here.
1575 (ordinary_java_source_files): Order so that core_java_source_files are
1577 (java_source_files): Reorder so that special_java_source_files are
1579 * configure.in: Don't pass -I flag to gcj.
1580 * Makefile.in: Rebuilt.
1581 * configure: Rebuilt.
1583 2000-10-25 Tom Tromey <tromey@cygnus.com>
1585 * Makefile.in: Rebuilt.
1586 * Makefile.am (install-exec-hook): New target.
1588 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1590 * java/util/EventObject.java: Merged from classpath.
1592 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1595 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1597 * java/util/AbstractSet.java (equals): Re-installed original code.
1599 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1601 * Makefile.am: Added rules for libgcjx library.
1602 * Makefile.in: Rebuilt.
1603 * configure.in: Added check for X.
1604 * configure: Rebuilt.
1605 * gnu/awt/LightweightRedirector.java: New file.
1606 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1607 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1608 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1609 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1610 * gnu/awt/j2d/MappedRaster.java: New file.
1611 * gnu/awt/xlib/XCanvasPeer.java: New file.
1612 * gnu/awt/xlib/XEventLoop.java: New file.
1613 * gnu/awt/xlib/XEventQueue.java: New file.
1614 * gnu/awt/xlib/XFontMetrics.java: New file.
1615 * gnu/awt/xlib/XFramePeer.java: New file.
1616 * gnu/awt/xlib/XGraphics.java: New file.
1617 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1618 * gnu/awt/xlib/XPanelPeer.java: New file.
1619 * gnu/awt/xlib/XToolkit.java: New file.
1620 * gnu/gcj/xlib/Clip.java: New file.
1621 * gnu/gcj/xlib/Colormap.java: New file.
1622 * gnu/gcj/xlib/Display.java: New file.
1623 * gnu/gcj/xlib/Drawable.java: New file.
1624 * gnu/gcj/xlib/Font.java: New file.
1625 * gnu/gcj/xlib/GC.java: New file.
1626 * gnu/gcj/xlib/Pixmap.java: New file.
1627 * gnu/gcj/xlib/Screen.java: New file.
1628 * gnu/gcj/xlib/Visual.java: New file.
1629 * gnu/gcj/xlib/WMSizeHints.java: New file.
1630 * gnu/gcj/xlib/Window.java: New file.
1631 * gnu/gcj/xlib/WindowAttributes.java: New file.
1632 * gnu/gcj/xlib/XAnyEvent.java: New file.
1633 * gnu/gcj/xlib/XButtonEvent.java: New file.
1634 * gnu/gcj/xlib/XColor.java: New file.
1635 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1636 * gnu/gcj/xlib/XConnectException.java: New file.
1637 * gnu/gcj/xlib/XEvent.java: New file.
1638 * gnu/gcj/xlib/XException.java: New file.
1639 * gnu/gcj/xlib/XExposeEvent.java: New file.
1640 * gnu/gcj/xlib/XID.java: New file.
1641 * gnu/gcj/xlib/XImage.java: New file.
1642 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1643 * gnu/gcj/xlib/natClip.cc: New file.
1644 * gnu/gcj/xlib/natColormap.cc: New file.
1645 * gnu/gcj/xlib/natDisplay.cc: New file.
1646 * gnu/gcj/xlib/natDrawable.cc: New file.
1647 * gnu/gcj/xlib/natFont.cc: New file.
1648 * gnu/gcj/xlib/natGC.cc: New file.
1649 * gnu/gcj/xlib/natPixmap.cc: New file.
1650 * gnu/gcj/xlib/natScreen.cc: New file.
1651 * gnu/gcj/xlib/natVisual.cc: New file.
1652 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1653 * gnu/gcj/xlib/natWindow.cc: New file.
1654 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1655 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1656 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1657 * gnu/gcj/xlib/natXColor.cc: New file.
1658 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1659 * gnu/gcj/xlib/natXException.cc: New file.
1660 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1661 * gnu/gcj/xlib/natXImage.cc: New file.
1662 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1663 * java/awt/EventDispatchThread.java: Start thead on creation.
1665 2000-10-20 Tom Tromey <tromey@cygnus.com>
1667 From Arno J. Klaassen:
1668 * interpret.cc: Include <stdlib.h> for alloca.
1669 * defineclass.cc: Include <stdlib.h> for alloca.
1671 * Makefile.in: Rebuilt.
1672 * Makefile.am: Include deps.mk.
1673 (GCJCOMPILE): Added -MD, -MT, and -MF.
1674 ($(javao_files)): Don't depend on libgcj.zip.
1675 (all-recursive): New target.
1676 (%.lo:%.cc): Do dependency tracking.
1677 ($(nat_headers)): Don't depend on libgcj.zip.
1678 * configure: Rebuilt.
1679 * configure.in: Make .d files and deps.mk.
1681 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1683 * exception.cc: Don't #include "exception".
1684 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1686 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1687 * Makefile.in: Updated.
1689 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1691 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1692 * java/awt/peer/ComponentPeer.java (disable): Removed.
1695 (minimumSize): Removed.
1696 (preferredSize): Removed.
1699 * java/awt/peer/ListPeer.java (addItem): Removed.
1701 (minimumSize): Removed.
1702 (preferredSize): Removed.
1703 (setMultipleSelections): Removed.
1704 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1705 (remove): Renamed from removeMenu.
1706 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1708 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1709 (remove): Renamed from removeItem.
1710 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1711 (getMinimumSize): Removed.
1712 (getPreferredSize): Removed.
1713 (minimumSize): Removed.
1714 (preferredSize): Removed.
1715 (replaceText): Removed.
1716 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1717 (preferredSize): Removed.
1718 (getMinimumSize): Removed.
1719 (getPreferredSize): Removed.
1720 (setEchoCharacter): Removed.
1722 2000-10-10 Warren Levy <warrenl@cygnus.com>
1724 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1725 * java/sql/Date.java (serialVersionUID): New field.
1726 * java/sql/Time.java (serialVersionUID): New field.
1727 * java/sql/Timestamp.java (serialVersionUID): New field.
1728 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1729 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1730 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1731 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1732 (readObject): New serialization method.
1733 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1734 (serialVersionOnStream): New field.
1735 (readObject): New serialization method.
1736 (getMonetaryDecimalSeparator): New method.
1737 (setMonetaryDecimalSeparator): New method.
1738 * java/text/NumberFormat.java (maxFractionDigits): New field.
1739 (maxIntegerDigits): New field.
1740 (minFractionDigits): New field.
1741 (minIntegerDigits): New field.
1742 (serialVersionOnStream): New field.
1743 (serialVersionUID): New field.
1744 (readObject): New serialization method.
1745 (writeObject): New serialization method.
1746 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1747 (serialVersionOnStream): New field.
1748 (serialVersionUID): New field.
1749 (readObject): New serialization method.
1751 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1753 * configure.in (GCJ): Avoid bogus error message when looking for
1754 (and not finding) gcj in the build tree.
1755 * configure: Rebuilt.
1757 2000-10-09 Tom Tromey <tromey@cygnus.com>
1759 * configure: Rebuilt.
1760 * configure.in: Include sys/types.h when checking for socklen_t.
1761 From Arno J. Klaassen.
1763 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1765 * include/jvm.h: Enable __builtin_expect().
1767 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1768 the main program. Fix for PR libgcj/341.
1770 2000-10-07 Tom Tromey <tromey@cygnus.com>
1772 * java/util/Properties.java: Merged with Classpath version.
1774 2000-10-05 Tom Tromey <tromey@cygnus.com>
1776 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1777 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1778 * java/lang/Class.h (Object): Added `class$' field.
1779 * java/lang/Object.h (Object): Added `class$' field.
1780 * defineclass.cc (ClassClass): Use `class$' form.
1781 (ClassObject): Likewise.
1782 * resolve.cc (ClassObject): Use `class$' form.
1783 (ObjectClass): Likewise.
1784 * interpret.cc (ClassError): Removed.
1785 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1787 (IntegerClass): Likewise.
1788 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1790 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1791 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1792 SerializableClass): Likewise.
1793 Include Serializable.h, Cloneable.h.
1794 * java/lang/natSystem.cc (SystemClass): Removed.
1795 (init_properties): Use `class$' form.
1796 * java/lang/natObject.cc (CloneableClass): Removed.
1797 (clone): Use `class$' form.
1798 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1799 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1800 ConstructorClass): Likewise.
1801 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1802 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1803 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1804 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1806 (ClassClass): Likewise.
1807 * include/jvm.h (StringClass): Use `class$' form.
1808 * prims.cc (ObjectClass): Removed.
1809 (_Jv_RunMain): Use `class$' form.
1810 (_Jv_AllocObject): Likewise.
1811 * jni.cc (ClassClass): Use `class$' form.
1812 (ThrowableClass): Likewise.
1813 (ObjectClass): Likewise.
1814 (MethodClass): Likewise.
1815 (ThreadGroupClass): Likewise.
1816 (NativeThreadClass): Likewise.
1817 * boehm.cc (ObjectClass): Removed.
1818 (ClassClass): Removed.
1819 (_Jv_MarkObj): Use `class$' form.
1820 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1823 2000-10-05 Warren Levy <warrenl@cygnus.com>
1825 * Makefile.am: Removed java/io/Replaceable.java and
1826 java/io/Resolvable.java.
1827 * Makefile.in: Rebuilt.
1828 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1830 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1832 (processResolution): Handle readResolve method via reflection with
1833 removal of Resolvable interface.
1834 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1835 method via reflection with removal of Replaceable interface.
1836 * java/io/Replaceable.java: Removed.
1837 * java/io/Resolvable.java: Removed.
1838 * java/security/Key.java (serialVersionUID): New field.
1839 * java/security/Provider.java (serialVersionUID): New field.
1840 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1842 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1844 * java/sql/DataTruncation.java (serialVersionUID): New field.
1845 * java/sql/SQLException.java (serialVersionUID): New field.
1846 * java/sql/SQLWarning.java (serialVersionUID): New field.
1847 * java/util/Date.java (serialVersionUID): New field.
1848 (millis): Made transient.
1849 (readObject): New method.
1850 (writeObject): New method.
1852 2000-10-05 Tom Tromey <tromey@cygnus.com>
1854 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1856 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1858 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1859 (JvRunMain): Set _Jv_argv and _Jv_argc.
1860 * java/awt/Component.java: Minor fixes.
1861 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1862 * java/awt/Toolkit.java (systemEventQueue): Removed.
1863 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1864 * java/awt/Window.java (getToolkit): Don't call super.
1865 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1866 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1867 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1868 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1869 * gnu/awt/gtk/GtkFramePeer.java: New file.
1870 * gnu/awt/gtk/GtkMainThread.java: New file.
1871 * gnu/awt/gtk/GtkToolkit.java: New file.
1872 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1873 * gnu/awt/gtk/gtkcommon.cc: New file.
1874 * gnu/awt/gtk/gtkcommon.h: New file.
1875 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1876 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1877 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1878 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1879 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1880 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1882 2000-09-30 Tom Tromey <tromey@cygnus.com>
1884 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1885 interrupted before modifying the cv's wait set.
1888 2000-09-30 Hans Boehm <boehm@acm.org>
1889 Bryce McKinlay <bryce@albatross.co.nz>
1891 Implement bitmap descriptor based marking for Boehm GC.
1893 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1894 * configure: Rebuilt.
1895 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1896 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1897 method get_finalizer().
1898 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1899 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1900 (_Jv_AllocObj): Add new jclass parameter.
1901 (_Jv_AllocArray): Ditto.
1902 (_Jv_BuildGCDescr): New prototype.
1903 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1904 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1905 get_finalizer() instead of direct finalizer vtable offset.
1906 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1907 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1908 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1909 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1910 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1911 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1912 (_Jv_DetermineVTableIndex): Ditto.
1913 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1914 calculations to account for new gc_descr field.
1915 * boehm.cc: #include gc_gcj.h.
1916 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1917 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1918 New commentary from HB. Mark the classes vtable.
1919 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1920 (GC_DEFAULT_DESCR): New #define.
1921 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1922 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1923 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1924 scan conservativly if size is less than min_heap_addr. Set vtable
1925 pointer of new object before returning.
1926 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1927 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1928 allocation for obj_kind_x.
1929 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1930 (_Jv_AllocObj): Set vtable on returned object.
1931 (_Jv_AllocArray): Ditto.
1932 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1933 (_Jv_NewPrimArray): Ditto.
1934 (_Jv_AllocObj): Declare as a friend.
1935 (_Jv_AllocArray): Ditto.
1936 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1937 from &ObjectClass into new array class. Remove offset-by-one
1938 adjustments from `method' size calculations to account for gc_descr
1941 2000-09-26 Tom Tromey <tromey@cygnus.com>
1943 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1944 `remove', not `add'.
1946 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1948 * java/lang/natSystem.cc (file_encoding): Added return statement.
1950 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1952 * Makefile.am: Re-work shell commands that exceeded command-line
1954 * Makefile.in: Rebuilt.
1956 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1958 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1959 * java/lang/natDouble.cc: Likewise.
1960 * java/lang/reflect/natMethod.cc: Likewise.
1961 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1963 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1965 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1967 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1968 * acinclude.m4: Arrange for automake to not bring in a new
1969 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1970 * Makefile.am: Leave it up to automake to subst GCJ.
1971 * aclocal.m4, configure, Makefile.in: Rebuilt.
1973 2000-09-13 Tom Tromey <tromey@cygnus.com>
1975 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1976 (get): Ensure Boolean class is initialized.
1977 * java/lang/reflect/natField.cc (BooleanClass): New define.
1978 (get): Ensure Boolean class is initialized.
1980 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1982 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1983 Initialize with anonymous class.
1984 (compareToIgnoreCase): New method.
1986 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1987 (uncaughtException): Set had_uncaught_exception.
1988 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1989 exit with error status if set.
1990 (_Jv_RunMain): Ditto.
1992 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1994 * configure: Rebuilt with new ../libtool.m4.
1996 2000-09-11 Tom Tromey <tromey@cygnus.com>
1998 * java/lang/reflect/Field.java (toString): Don't rely on
2001 2000-09-08 Tom Tromey <tromey@cygnus.com>
2003 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2004 default decoder use iconv.
2005 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2006 Let default encoder use iconv.
2007 * configure: Rebuilt.
2008 * configure.in: Check for nl_langinfo and <langinfo.h>.
2009 * java/lang/natSystem.cc (file_encoding): New function.
2010 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2012 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2014 * acinclude.m4: Simplify the tests for CC and CXX.
2015 * aclocal.m4, configure: Rebuilt.
2017 * acinclude.m4: Include libtool macros from the source tree.
2018 * aclocal.m4, configure: Rebuilt.
2020 2000-09-08 Warren Levy <warrenl@cygnus.com>
2022 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2023 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2024 * java/io/File.java (writeObject): Added.
2025 (readObject): Added.
2026 (serialVersionUID): Added.
2027 * java/io/ObjectOutputStream.java (writeObject): Initialized
2028 fieldsAlreadyWritten before recursion rather than after.
2029 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2030 * java/io/OptionalDataException.java (serialVersionUID): Added.
2031 (OptionalDataException): Made package private.
2032 * java/io/SyncFailedException.java (SyncFailedException): Removed
2033 default constructor to match spec.
2034 * java/lang/Boolean.java (serialVersionUID): Added.
2035 * java/lang/Byte.java (serialVersionUID): Added.
2036 * java/lang/Character.java (serialVersionUID): Added.
2037 * java/lang/Double.java (serialVersionUID): Added.
2038 * java/lang/Float.java (serialVersionUID): Added.
2039 * java/lang/Integer.java (serialVersionUID): Added.
2040 * java/lang/Long.java (serialVersionUID): Added.
2041 * java/lang/Number.java (serialVersionUID): Added.
2042 * java/lang/Short.java (serialVersionUID): Added.
2043 * java/lang/String.java (serialVersionUID): Added.
2044 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2046 * java/lang/reflect/InvocationTargetException.java
2047 (serialVersionUID): Added.
2048 * java/net/URL.java (handler): Made transient.
2049 (hashCode): Added field for serialization, per spec. and use
2050 cached value if available.
2051 (serialVersionUID): Added.
2052 (URL): Initialize hashCode.
2053 (set): Adjust hashCode.
2054 (readObject): New Method to initialize the protocol handler when
2056 (writeObject): New method.
2057 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2058 * java/text/Collator.java: Removed 'implements Serializable'.
2059 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2060 * java/util/Properties.java (serialVersionUID): Added.
2061 * java/util/Random.java (serialVersionUID): Added.
2062 (seed): Made private.
2063 (nextNextGaussian): Made private.
2064 (haveNextNextGaussian): Made private.
2065 * java/util/Stack.java (serialVersionUID): Added.
2066 * java/util/TimeZone.java (serialVersionUID): Added.
2067 * java/util/Vector.java (serialVersionUID): Added.
2069 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2071 * Makefile.am (Thread.h): Don't be friends with native threads
2073 * Makefile.in: Rebuilt.
2074 * java/lang/Thread.java (interrupt_flag): Make package-private.
2076 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2078 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2079 to avoid long long division.
2081 2000-09-06 Tom Tromey <tromey@cygnus.com>
2083 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2085 * java/lang/reflect/Method.java (toString): Use `getName' for
2088 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2089 `args' if method takes no parameters.
2091 Fix for PR java.lang/339:
2092 * java/lang/natPosixProcess.cc (fail): New function.
2093 (cleanup): New function.
2094 (startProcess): Use them. Create pipe so child can communicate
2095 exec failure back to parent.
2097 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2099 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2101 (send): Undo last patch. Remove the label only.
2103 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2105 * java/net/natInetAdress.cc: Ditto.
2107 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2109 2000-09-05 Tom Tromey <tromey@cygnus.com>
2111 * doc/cni.sgml: Updated from master copy.
2113 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2115 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2117 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2119 * java/lang/fdlibm.h: #undef __P if previously defined.
2120 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2121 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2125 2000-09-04 Tom Tromey <tromey@cygnus.com>
2127 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2130 2000-09-04 Anthony Green <green@redhat.com>
2132 Fix for PR java.io/203:
2133 * java/io/File.java (createTempFile): Obey directory argument.
2134 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2135 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2136 variable to set java.io.tmpdir on non-WIN32 systems.
2138 2000-09-04 Anthony Green <green@redhat.com>
2140 * java/io/File.java (deleteOnExit): New method.
2141 * gnu/gcj/runtime/FileDeleter.java: New class.
2142 * java/lang/natRuntime.cc (exit): Call
2143 FileDeleter.deleteOnExitNow()
2144 * Makefile.am: Add FileDeleter.java.
2145 * Makefile.in: Rebuilt.
2147 2000-09-02 Tom Tromey <tromey@cygnus.com>
2149 * Makefile.in: Rebuilt.
2150 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2151 environment variable.
2153 2000-09-01 Andrew Haley <aph@redhat.com>
2155 * java/io/StreamTokenizer.java: Don't throw a
2156 NumberFormatException if a field is numeric as far as the
2157 StreamTokenizer is concerned but not as far as Double.valueOf() is
2158 concerned: return a zero instead.
2160 2000-08-30 Tom Tromey <tromey@cygnus.com>
2162 * Makefile.in: Rebuilt.
2163 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2165 2000-08-28 Tom Tromey <tromey@cygnus.com>
2167 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2168 gnu/gcj/awt/ComponentDataBlitOp.java,
2169 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2170 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2171 java/awt/color/ICC_ColorSpace.java,
2172 java/awt/color/ICC_Profile.java,
2173 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2174 java/awt/image/ComponentColorModel.java,
2175 java/awt/image/ComponentSampleModel.java,
2176 java/awt/image/DataBuffer.java,
2177 java/awt/image/DataBufferByte.java,
2178 java/awt/image/DataBufferInt.java,
2179 java/awt/image/DataBufferUShort.java,
2180 java/awt/image/DirectColorModel.java,
2181 java/awt/image/IndexColorModel.java,
2182 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2183 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2184 java/awt/image/SinglePixelPackedSampleModel.java,
2185 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2186 Removed Latin-1 copyright symbols.
2187 * java/util/zip/ZipFile.java: Indentation fixes.
2189 2000-08-27 Mark Wielaard <mark@klomp.org>
2191 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2192 constructor, close can delete the file, finalize calls close.
2193 * java/util/jar/JarFile.java: Constructor that takes mode now
2196 2000-08-27 Anthony Green <green@redhat.com>
2198 * java/util/ArrayList.java, java/util/Timer.java,
2199 java/util/LinkedList.java, java/util/TimerTask.java,
2200 java/util/HashMap.java, java/util/AbstractMap.java,
2201 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2202 java/util/SortedSet.java: Imported from GNU Classpath.
2203 * Makefile.in: Rebuilt.
2204 * Makefile.am: Added new files.
2206 2000-08-26 Anthony Green <green@redhat.com>
2208 * Makefile.in: Rebuilt.
2209 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2212 * prims.cc: Include ClassLoader.h.
2213 (_Jv_RunMain): When executing jar files, classpath must be the jar
2214 file only. Lose our reference to the system ClassLoader in order
2215 to get a new one with the correct classpath.
2216 * java/lang/natSystem.cc (init_properties): When executing a jar
2217 file, only use the jar file for java.class.path.
2219 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2220 for bytecode archives.
2222 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2223 exists, but not Main-Class.
2225 2000-08-23 Mark Wielaard <mark@klomp.org>
2227 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2228 return -1 when fill() has no more data for the Inflater.
2230 2000-08-23 Mark Wielaard <mark@klomp.org>
2232 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2233 write(String) already does.
2235 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2237 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2238 to `alive_flag', call `init'.
2239 (init): New native method.
2240 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2243 2000-08-21 Mark Wielaard <mark@klomp.org>
2245 * Makefile.in: Rebuilt.
2246 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2248 (java/lang/reflect/Field.h): Likewise.
2249 (java/lang/reflect/Method.h): Likewise.
2250 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2253 2000-08-21 Tom Tromey <tromey@cygnus.com>
2255 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2258 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2260 * java/lang/natSystem.cc (init_properties): Change sourceware
2261 reference to sources.redhat.com.
2263 * include/java-props.h: Add _Jv_Jar_Class_Path.
2264 * prims.cc: Ditto. Set it from `gij -jar file' option.
2266 * java/lang/natSystem.cc (init_properties): Set java.class.path
2268 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2270 * java/util/PropertyPermission.java: Import from GNU Classpath.
2271 * Makefile.in: Rebuilt.
2272 * Makefile.am: Add java/util/PropertyPermission.java.
2273 * java/lang/System.java: Add setProperty method.
2275 * gij.cc (main): Add -jar option to execute jar files.
2276 (help): Describe -jar option.
2277 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2278 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2279 * gnu/gcj/runtime/FirstThread.java (main): New method.
2281 * java/util/jar/Attributes.java: Correct comment spelling.
2283 2000-08-20 Mark Wielaard <mark@klomp.org>
2285 * java/util/zip/Adler32.java: Make private variables really private
2286 * java/util/zip/CRC32.java: Make private variables really private
2287 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2289 * java/util/zip/InflaterInputStream.java: skip() could skip to
2291 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2292 * java/util/zip/ZipFile.java: size() new 1.2 method
2293 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2294 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2297 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2299 * java/util/jar/JarFile.java: Don't call
2300 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2303 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2305 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2306 Read the entire contents of the class file, not just what is
2309 * java/net/JarURLConnection.java: getEntry doesn't take any
2310 arguments. Return null if element is null.
2312 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2313 size from the archive, not the inflated size.
2315 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2316 java.util.zip.ZipFile.getEntry.
2318 * gij.cc (help): Change sourceware reference to
2321 2000-08-19 Tom Tromey <tromey@cygnus.com>
2323 * java/util/zip/ZipInputStream.java (createZipEntry):
2326 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2328 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2329 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2330 java/util/jar/JarInputStream.java,
2331 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2332 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2333 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2334 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2335 java/security/cert/Certificate.java,
2336 java/security/cert/CertificateEncodingException.java,
2337 java/security/cert/CertificateException.java,
2338 java/security/cert/CertificateExpiredException.java,
2339 java/security/cert/CertificateFactory.java,
2340 java/security/cert/CertificateFactorySpi.java,
2341 java/security/cert/CertificateNotYetValidException.java,
2342 java/security/cert/CertificateParsingException.java,
2343 java/security/cert/X509CRL.java,
2344 java/security/cert/X509CRLEntry.java,
2345 java/security/cert/X509Certificate.java,
2346 java/security/cert/X509Extension.java: Imported from Classpath.
2347 * java/util/Hashtable.java: Imported from Classpath.
2349 * java/util/zip/ZipInputStream.java: Create stub for
2352 * gcj/javaprims.h: Updated class list.
2354 * Makefile.in, gcj/Makefile.in: Rebuilt.
2355 * Makefile.am (ordinary_java_source_files): Add these new classes.
2357 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2359 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2360 * gnu/gcj/awt/GLightweightPeer.java: New file.
2361 * java/awt/BorderLayout.java: Implemented all methods.
2362 * java/awt/Button.java (actionListener, actionCommand): Renamed
2363 and modifier change.
2364 (addNotify): Call super.
2365 (dispatchEventImpl): New method.
2366 (getListeners): New method.
2367 (label): Made package-private, not private.
2368 * java/awt/Canvas.java: Implemented class body.
2369 * java/awt/Color.java (brighter): New method.
2370 (darker): New method.
2371 (hashCode): New method.
2372 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2373 (getGraphicsConfiguration): Delegate to
2374 getGraphicsConfigurationImpl().
2375 (getGraphicsConfigurationImpl): New method.
2376 (getToolkit): Only return value from peer if not null.
2377 (isDisplayable): Check with parent.
2378 (isShowing): No parent implies not showing.
2379 (getForeground): Check parent property if local is null.
2380 (getBackground): Likewise.
2381 (getFont): Likewise.
2382 (setForeground): Inform peer.
2383 (setBackground): Likewise
2384 (setLocale): Invalidate component.
2385 (getColorModel): Implemented.
2386 (setLocation): Invalidate, or ignore if no change.
2387 (setSize): Invalidate, or ignore if no change.
2388 (setBounds): Invalidate, or ignore if no change.
2389 (isOpaque): By default, heavyweight implies opaque.
2390 (isLightweight): Implemented.
2391 (getMaximumSize): Implemented.
2392 (doLayout): Implemented, NOP.
2393 (validate): Implemented, NOP.
2394 (invalidate): Only propagate to parent if parent was valid.
2395 (getGraphics): Implemented.
2396 (getFontMetrics): Implemented.
2397 (update): Implemented.
2398 (paintAll): Implemented.
2399 (repaint): Implemented all repaint methods.
2400 (print): Implemented.
2401 (printAll): Implemented.
2402 (createImage): Implemented.
2403 (dispatchEvent): Give the peer a chance to handle the event.
2404 (dispatchEventImpl): Dispatch paint events.
2405 (enableEvents): Lightweights enable events on parent component.
2406 (coalesceEvents): Coalesce paint events, and select event type
2408 (coalescePaintEvents): New method.
2409 (processEvent): Fix unfortunate ordering of statements, and call
2410 correct method for MOUSE_CLICKED.
2411 (processPaintEvent): New method.
2412 (addNotify): Allow container to notify children before event
2413 mask is set in peer.
2414 (addNotifyContainerChildren): New method.
2415 (removeNotify): Visibility should not change on removeNotify.
2416 (paramString): Implemented.
2417 (list): Implemented two of the list methods.
2418 * Container (myInsets): Removed, insets are managed by peer.
2419 (getInsets): Query peer.
2420 (addImpl): Fix reparenting, enable events for lightweights,
2421 initialize component array.
2422 (validate): Call doLayout in validateTree() instead.
2423 (validateTree): Do nothing if already valid. Call beginValidate(),
2424 endValidate() on peer. Call validateTree() instead of validate()
2425 for children that are containers. Mark valid after validation of
2427 (setFont): Partial implementation.
2428 (paint): Implemented.
2429 (visitChildren): New method.
2430 (visitChild): New method.
2431 (update): Implemented.
2432 (print): Implemented.
2433 (paintComponents): Implemented.
2434 (printComponents): Consider translation and clipping.
2435 (getComponentAt): Ignore invisible children. Return this if no
2437 (addNotify): Call super.
2438 (addNotifyContainerChildren): New method.
2439 (paramString): Implemented.
2440 (list): Implemented.
2441 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2443 (invokeLater): Likewise.
2444 (isDispatchThread): Likewise.
2445 * java/awt/FontMetrics (getLeading): Formula change.
2446 (getDescent): Consider leading also.
2447 (getMaxAscent): Default to getAscent().
2448 (getMaxDescent): Default to getDescent.
2449 (getMaxAdvance): Return value signifying unknown.
2450 (charWidth): Both methods implemented.
2451 (charsWidth): Implemented.
2452 (bytesWidth): Implemented.
2453 (getWidths): Implemented.
2454 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2456 (Frame): Rearragend constuctor chaining to disallow null being
2457 passed as a graphics configuration.
2458 (getTitle): Return empty string if null.
2460 (getIconImage): New method.
2461 (setIconImage): New method.
2462 (finalize): New method.
2463 (setMenuBar): Notify peer.
2464 (isResizable): New method.
2465 (setResizable): New method.
2466 (getState): New method.
2468 (remove): Implemented.
2469 (removeNotify): New method.
2470 (getFrames): New method.
2471 * java/awt/Graphics.java: Implemented body of class.
2472 * java/awt/Graphics2D.java: New file.
2473 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2474 * java/awt/Image.java: Implemented body of class.
2475 * java/awt/Panel.java (Panel): Call correct super constructor.
2476 (addNotify): Implemented.
2477 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2478 * java/awt/RenderingHints.java: New file.
2479 * java/awt/Toolkit.java (createComponent): Implemented.
2480 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2481 * java/awt/Window.java (Window): Two new constructors. Reordered
2482 constructor chaining.
2483 (getGraphicsConfigurationImpl): New method.
2484 (finalize): Call super.
2485 (addNotify): Call super.
2486 (pack): Do layout stuff.
2487 (show): Ensure that peer exists and that component is valid.
2488 (dispose): Dispose owned children.
2489 (getOwner): Simplify code, casting null pointers is valid.
2490 (getGraphicsConfiguration): Ask peer if local value is null.
2491 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2493 * java/awt/image/BufferedImage.java: New file.
2494 * java/awt/image/RasterOp.java: New file.
2495 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2496 More powerfull replacement for getColorModel().
2497 (getColorModel) Removed.
2498 (setEventMask) New method.
2499 * Makefile.am: Added new files.
2500 * Makefile.in: Rebuilt.
2502 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2504 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2505 (finit_leg_name): New global.
2506 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2507 `$finit$'. This is a backward compatibility hack.
2508 (java::lang::Class::_getMethods): Likewise.
2510 2000-08-15 Andrew Haley <aph@cygnus.com>
2512 * include/jvm.h (_Jv_HashCode): New hash code.
2514 2000-08-15 Tom Tromey <tromey@cygnus.com>
2516 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2518 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2520 * THANKS: More thanks.
2522 2000-08-10 Tom Tromey <tromey@cygnus.com>
2524 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2526 (connect): Likewise.
2528 (getOption): Likewise.
2529 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2530 case when errno not set.
2533 (receive): Likewise.
2534 (mcastGrp): Likewise.
2535 (setOption): Likewise.
2536 (getOption): Likewise.
2538 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2539 John Stracke <francis@ecal.com>
2541 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2542 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2544 (disconnect): Don't unset connected flag.
2545 (getHeaderField (String)): Call connect() if not connected.
2546 (getHeaderField (int)): Ditto.
2547 (getHeaderFieldKey): Ditto.
2548 (getHttpHeaders): Don't call connect().
2549 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2550 gotResponseVals): New fields.
2551 (getResponseCode): Call getResponseVals() conditionally.
2552 (getResponseMessage): Ditto.
2553 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2555 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2557 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2558 * Makefile.in: Rebuilt.
2559 * java/awt/Color.java (getTransparency): New method.
2560 * java/awt/Component.java: Various updates.
2561 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2562 after dealing with children.
2563 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2564 * java/awt/Window.java: Various new methods and updates.
2565 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2567 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2568 * java/awt/event/WindowEvent.java (paramString): Ditto.
2569 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2571 * java/awt/geom/Point2D.java (clone): Ditto.
2572 * java/awt/geom/RectangularShape.java (clone): Ditto.
2573 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2574 isAlphaPremultiplied): Make package-private, not private.
2576 2000-08-08 Tom Tromey <tromey@cygnus.com>
2578 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2579 surrogate characters.
2580 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2582 (write): Correct handling of surrogate characters.
2584 2000-08-07 Tom Tromey <tromey@cygnus.com>
2586 * java/lang/reflect/Method.java (hashCode): Use getName().
2587 (toString): Likewise.
2588 * java/lang/reflect/natMethod.cc (getType): Initialize
2591 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2593 * java/lang/reflect/Field.java (toString): Correct formatting.
2596 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2598 (receive): Streamlined.
2600 2000-08-05 Tom Tromey <tromey@cygnus.com>
2602 * java/io/PrintWriter.java: Merged comments from Classpath.
2603 (printlnUnsynchronized): Removed.
2604 (println()): Print the separator.
2605 (println): Call println(), not printlnUnsynchronized.
2606 (out): Now protected, to match spec.
2608 2000-08-04 Tom Tromey <tromey@cygnus.com>
2610 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2611 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2614 2000-08-03 Warren Levy <warrenl@cygnus.com>
2616 * java/io/ObjectInputStream.java (readFields): Turn off
2617 readDataFromBlock while reading via GetField.
2618 (GetField$1.get(String, Object)): Pass Class of default value to
2620 (getField): Allow for null default values.
2622 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2623 (PutField$1.put): Fixed calls of checkType in most of the put
2624 methods to pass the correct parameter.
2625 (PutField$1.put(String, Object)): Allow for null value arg.
2626 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2629 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2630 typo in spec'ed field name.
2631 (getSerialPersistentFields): Changed spelling of method to match
2632 the correct spelling of the spec'ed field name.
2634 2000-08-03 Tom Tromey <tromey@cygnus.com>
2636 * Makefile.in: Rebuilt.
2637 * Makefile.am (awt_java_source_files): Added new files.
2639 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2641 * Makefile.am: Add new AWT stubs.
2642 * java/awt/Canvas.java: New placeholder class.
2643 * java/awt/Checkbox.java: Ditto.
2644 * java/awt/CheckboxMenuItem.java: Ditto.
2645 * java/awt/Choice.java: Ditto.
2646 * java/awt/Dialog.java: Ditto.
2647 * java/awt/FileDialog.java: Ditto.
2648 * java/awt/List.java: Ditto.
2649 * java/awt/ScrollPane.java: Ditto.
2650 * java/awt/TextField.java: Ditto.
2651 * java/awt/datatransfer/Clipboard.java: Ditto.
2652 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2653 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2654 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2655 Some commented out. Partially implemented.
2656 * java/awt/natToolkit.cc: Removed file.
2658 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2660 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2661 Fixes "make -j" builds.
2662 * Makefile.in: Rebuild.
2664 2000-08-02 Tom Tromey <tromey@cygnus.com>
2666 * Makefile.in: Rebuilt.
2667 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2668 * java/net/natPlainSocketImpl.cc: Include posix.h.
2669 (accept): Use _Jv_select.
2670 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2671 (receive): Use _Jv_select.
2672 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2673 (available): Use _Jv_select.
2674 * java/lang/natSystem.cc: Include posix.h.
2675 (currentTimeMillis): Use _Jv_gettimeofday.
2676 * include/posix.h: New file.
2677 * posix.cc: New file.
2679 * scripts/encodings.pl: New file.
2680 * Makefile.in: Rebuilt.
2681 * Makefile.am (convert_source_files): Added IOConverter.java.
2682 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2684 (getDefaultDecodingClass): Canonicalize default encoding name.
2685 (getEncoder): Likewise.
2686 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2688 (getDefaultDecodingClass): Canonicalize default encoding name.
2689 (getDecoder): Likewise.
2690 * gnu/gcj/convert/IOConverter.java: New file.
2692 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2694 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2695 to match C declaration in ffi.h.
2696 * Makefile.am: Add java/awt/Button.java.
2697 * Makefile.in: Rebuilt.
2699 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2701 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2702 cast of the second argument to `ffi_raw_call' changed to match
2705 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2707 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2708 argument to `ffi_raw_call' changed to match prototype.
2710 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2712 * java/awt/Component.java (toString): Implemented.
2713 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2714 dispatchEvent() to dispatch the event.
2715 (removeImpl): Ditto.
2717 2000-07-30 Anthony Green <green@redhat.com>
2719 * java/awt/Component.java: Add treeLock object.
2720 (getTreeLock): Implement.
2721 (isShowing): Implement.
2723 2000-07-30 Tom Tromey <tromey@cygnus.com>
2725 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2727 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2729 * java/awt/Window.java (addNotify): Wrote.
2730 (addWindowListener): Wrote.
2732 (getWarningString): Wrote.
2733 (processEvent): Wrote.
2734 (processWindowEvent): Wrote.
2735 (removeWindowListener): Wrote.
2736 (show): Call validate(), setVisible().
2740 * java/awt/Toolkit.java (createWindow): Declare.
2742 * java/awt/Frame.java (addNotify): Use getToolkit to find
2745 * java/awt/Component.java (invalidate): Wrote.
2747 (getToolkit): Wrote.
2749 * java/awt/Container.java (addContainerListener): Removed
2751 (removeContainerListener): Likewise.
2753 (add(Component)): Use it.
2754 (add(String,Component)): Likewise.
2755 (add(Component,int)): Likewise.
2756 (add(Component,Object)): Likewise.
2757 (add(Component,Object,int)): Likewise.
2759 (getAlignmentX): Wrote.
2760 (getAlignmentY): Wrote.
2761 (getComponentAt): Wrote.
2762 (getMaximumSize): Wrote.
2763 (invalidate): Wrote.
2764 (list(PrintStream,int)): Wrote.
2765 (list(PrintWriter,int)): Wrote.
2766 (getMinimumSize): Wrote.
2767 (getPreferredSize): Wrote.
2768 (printComponents): Wrote.
2769 (processContainerEvent): Look at containerListener, not
2771 (remove): Added event processing and peer destruction.
2772 (removeAll): Use remove.
2773 (removeNotify): Wrote.
2775 (validateTree): Wrote.
2777 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2778 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2779 * java/awt/Container.java (addNotify): Don't create Container
2781 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2783 2000-07-30 Tom Tromey <tromey@cygnus.com>
2785 * java/awt/Container.java (remove(int)): Wrote.
2786 (remove(Component)): Wrote.
2787 (add(Component)): Wrote.
2788 (add(Component,int)): Wrote.
2790 (addNotify): Set our own peer.
2791 * java/awt/Scrollbar.java (listeners): Changed type.
2792 (Scrollbar): Don't initialize listeners.
2794 (setValue): Call setValues.
2795 (setMinimum): Likewise.
2796 (setMaxPriority): Likewise.
2797 (setVisibleAmount): Likewise.
2799 (setUnitIncrement): Forward to peer.
2800 (setLineIncrement): Call setUnitIncrement.
2801 (setPageIncrement): Call setBlockIncrement.
2802 (setBlockIncrement): Forward to peer.
2803 (addAdjustmentListener): Rewrote.
2804 (removeAdjustmentListener): Rewrote.
2805 (processAdjustmentEvent): Rewrote.
2806 (paramString): Wrote.
2807 * Makefile.in: Rebuilt.
2808 * Makefile.am (awt_java_source_files): Added Button.java.
2809 * java/awt/Button.java: New file.
2810 * java/awt/Toolkit.java (createLabel): Declare.
2811 (createButton): Likewise.
2812 (createScrollbar): Likewise.
2813 (createContainer): Likewise.
2814 * java/awt/Label.java (addNotify): Wrote.
2815 (setAlignment): Call setAlignment in the peer.
2816 (setText): Call setText in the peer.
2818 2000-07-28 Warren Levy <warrenl@cygnus.com>
2820 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2821 NotSerializableException with just the class name.
2823 2000-07-26 Andrew Haley <aph@cygnus.com>
2825 * interpret.cc (continue1): Insert missing break into switch.
2827 2000-07-28 Warren Levy <warrenl@cygnus.com>
2829 * java/io/ObjectStreamException.java: Made constructors protected.
2831 2000-07-27 Tom Tromey <tromey@cygnus.com>
2833 * java/io/OutputStreamWriter.java (close): Only flush if not
2836 2000-07-27 Warren Levy <warrenl@cygnus.com>
2838 * mauve-libgcj: Activated serialization tests.
2839 * gcj/field.h (getModifiers): Mask off unknown flags.
2840 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2841 spurious bits don't cause discrepancies.
2842 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2843 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2844 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2845 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2846 * java/lang/Throwable.java (serialVersionUID): New field.
2847 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2848 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2850 * java/lang/reflect/natMethod.cc: Ditto.
2851 * java/security/Key.java (serialVersionUID): Removed field for now.
2852 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2853 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2855 2000-07-22 Tom Tromey <tromey@cygnus.com>
2857 * java/awt/geom/RectangularShape.java (getPathIterator):
2860 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2862 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2863 stub libjava/java/awt/ColorModel.java which was located in the
2865 * libjava/java/awt/image/ComponentColorModel.java: New file.
2866 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2867 * libjava/java/awt/image/DataBuffer.java: New file.
2868 * libjava/java/awt/image/DataBufferByte.java: New file.
2869 * libjava/java/awt/image/DataBufferInt.java: New file.
2870 * libjava/java/awt/image/DataBufferUShort.java: New file.
2871 * libjava/java/awt/image/DirectColorModel.java: New file.
2872 * libjava/java/awt/image/PackedColorModel.java: New file.
2873 * libjava/java/awt/image/Raster.java: New file.
2874 * libjava/java/awt/image/SampleModel.java: New file.
2875 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2877 * libjava/java/awt/image/IndexColorModel.java: New file.
2878 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2879 java.awt.ColorModel stub.
2881 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2882 * gnu/gcj/util/Buffers.java: New file, utility class.
2884 * libjava/Makefile.am: Updated to include new files.
2885 * libjava/Makefile.in: Rebuilt.
2887 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2889 * java/io/StreamTokenizer.java: Merged with classpath.
2891 2000-07-20 Tom Tromey <tromey@cygnus.com>
2893 * Makefile.in: Rebuilt.
2894 * Makefile.am (awt_java_source_files): Updated for new files.
2895 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2896 * java/awt/Label.java: New file.
2897 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2898 (createIntersection, createUnion, getBounds2D): New methods.
2899 * java/awt/Scrollbar.java: New file.
2900 * java/awt/Shape.java: Updated to 1.2.
2901 * java/awt/geom/AffineTransform.java: New file.
2902 * java/awt/geom/Ellipse2D.java: New file.
2903 * java/awt/geom/NoninvertibleTransformException.java: New file.
2904 * java/awt/geom/PathIterator.java: New file.
2905 * java/awt/geom/Rectangle2D.java: New file.
2906 * java/awt/geom/RectangularShape.java: New file.
2907 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2908 * java/awt/geom/IllegalPathStateException.java: New file.
2910 * scripts/showval.java: New file.
2912 * scripts/classes.pl (scan): Print inner classes properly.
2913 * gcj/javaprims.h: Updated class list.
2915 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2916 initialize String fields for interpreted classes. Fixes bug
2917 reported by Hans Boehm.
2919 * java/io/File.java (getParentFile): New method, from Classpath
2920 via Oskar Liljeblad.
2922 * java/util/Vector.java (remove(Object)): Implemented.
2924 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2926 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2927 zero return from backtrace().
2929 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2931 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2933 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2934 before calling notifyAll().
2936 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2938 Add missing files from last check-in:
2939 * java/awt/image/ImageConsumer.java: New file.
2940 * java/awt/image/ImageProducer.java: New file.
2941 * java/awt/image/ImageObserver.java: New file.
2943 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2945 Merged implementation of java.applet from classpath:
2946 * java/applet/Applet.java: New file.
2947 * java/applet/AppletContext.java: New file.
2948 * java/applet/AppletStub.java: New file.
2949 * java/applet/AudioClip.java: New file.
2951 * Makefile.am: Added new java.applet classes.
2952 * Makefile.in: Rebuilt.
2954 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2957 * java/util/ResourceBundle.java (getLocale): stub.
2958 * Makefile.am: Added new AWT classes.
2959 * Makefile.in: Rebuilt.
2960 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2961 constructors. Fix toString() and paramString().
2962 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2963 * java/awt/CheckboxGroup.java: New class.
2964 * java/awt/ColorModel.java: New class.
2965 * java/awt/Component.java: Added stubs for most methods. Implemented
2967 * java/awt/Container.java: ditto.
2968 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2969 * java/awt/Cursor.java: ditto.
2970 * java/awt/Event.java: Fix paramString().
2971 * java/awt/EventQueue.java: New class. Implemented.
2972 * java/awt/Font.java: Added additional stub methods. Implemented
2974 * java/awt/FontMetrics.java: New class. Stubbed.
2975 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2977 * java/awt/Insets.java: New class. Implemented.
2978 * java/awt/Menu.java: Add new methods. Partially implemented.
2979 * java/awt/MenuItem.java: Add new methods and fields. Partially
2981 * java/awt/MenuShortcut.java: New class. Implemented.
2982 * java/awt/Panel.java: New class. Placeholder.
2983 * java/awt/PopupMenu.java: New class. Stubbed.
2984 * java/awt/Rectangle.java: New class. Implemented.
2985 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2986 * java/awt/event/ActionEvent.java: Implement paramString().
2987 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2988 * java/awt/event/ComponentEvent.java: Implement paramString().
2989 * java/awt/event/ContainerEvent.java: Implement paramString().
2990 * java/awt/event/FocusEvent.java: Implement paramString().
2991 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2992 * java/awt/event/HierarchyBoundsListener.java: New class.
2993 * java/awt/event/HierarchyEvent.java: New class.
2994 * java/awt/event/HierarchyListener.java: New class.
2995 * java/awt/event/InputMethodEvent.java: Implement paramString().
2996 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2997 exception if !catchExceptions.
2998 * java/awt/event/ItemEvent.java: Implement paramString().
2999 * java/awt/event/KeyEvent.java: Implement paramString().
3000 * java/awt/event/MouseEvent.java: Implement paramString().
3001 * java/awt/event/PaintEvent.java: Implement paramString().
3002 * java/awt/event/TextEvent.java: Implement paramString().
3003 * java/awt/event/WindowEvent.java: Implement paramString().
3005 AWT Peer interfaces:
3006 * java/awt/peer/ButtonPeer.java: New file.
3007 * java/awt/peer/ListPeer.java: New file.
3008 * java/awt/peer/CanvasPeer.java: New file.
3009 * java/awt/peer/MenuBarPeer.java: New file.
3010 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3011 * java/awt/peer/MenuComponentPeer.java: New file.
3012 * java/awt/peer/CheckboxPeer.java: New file.
3013 * java/awt/peer/MenuItemPeer.java: New file.
3014 * java/awt/peer/ChoicePeer.java: New file.
3015 * java/awt/peer/MenuPeer.java: New file.
3016 * java/awt/peer/ComponentPeer.java: Implemented.
3017 * java/awt/peer/PanelPeer.java: New file.
3018 * java/awt/peer/ContainerPeer.java: Implemented.
3019 * java/awt/peer/PopupMenuPeer.java: New file.
3020 * java/awt/peer/DialogPeer.java: New file.
3021 * java/awt/peer/ScrollPanePeer.java: New file.
3022 * java/awt/peer/FileDialogPeer.java: New file.
3023 * java/awt/peer/ScrollbarPeer.java: New file.
3024 * java/awt/peer/FontPeer.java: New file.
3025 * java/awt/peer/TextAreaPeer.java: New file.
3026 * java/awt/peer/FramePeer.java: Implemented.
3027 * java/awt/peer/TextComponentPeer.java: New file.
3028 * java/awt/peer/LabelPeer.java: New file.
3029 * java/awt/peer/TextFieldPeer.java: New file.
3030 * java/awt/peer/LightweightPeer.java: New file.
3031 * java/awt/peer/WindowPeer.java: Implemented.
3033 2000-07-06 Tom Tromey <tromey@cygnus.com>
3035 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3036 Initialize static final String fields.
3038 2000-07-03 Tom Tromey <tromey@cygnus.com>
3040 * java/io/PrintWriter.java (print): Call write(String), not
3041 print(String). See PR libgcj/277.
3042 (print(String)): Use write, not out.write.
3044 2000-06-30 Tom Tromey <tromey@cygnus.com>
3046 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3048 2000-06-27 Andrew Haley <aph@cygnus.com>
3050 * java/io/File.java (createTempFile): Close the FileDescriptor
3051 used to create a temp file. Fixes some of PR 203.
3052 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3053 collection if we run out of file handles.
3055 2000-06-28 Warren Levy <warrenl@cygnus.com>
3057 * gnu/java/security/provider/Gnu.java: New file.
3058 * gnu/java/security/provider/SHA.java: New file.
3059 * gnu/java/security/provider/SHA1PRNG.java: New file.
3060 * Makefile.am: Added the above files.
3061 * Makefile.in: Rebuilt.
3063 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3065 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3067 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3068 (destroyed_flag): Removed.
3069 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3070 (activeCount): Added spec note.
3072 2000-06-27 Warren Levy <warrenl@cygnus.com>
3074 * java/security/Principal.java: New file.
3075 * Makefile.am: Added Principal.java.
3076 * Makefile.in: Rebuilt.
3078 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3080 * java/awt/event/MouseEvent.java: Fixed coordinate space
3083 2000-06-27 Tom Tromey <tromey@cygnus.com>
3085 * java/io/PushbackInputStream.java (read): If there are characters
3086 in the buffer, don't also call super.read().
3087 * java/io/PushbackReader.java (read): If there are characters in
3088 the buffer, don't also call super.read().
3090 * java/lang/Double.java (valueOf): Call parseDouble().
3092 2000-06-26 Warren Levy <warrenl@cygnus.com>
3094 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3095 (newVal): Renamed to newValue.
3096 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3097 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3098 (revokeNow): Renamed to invalidateRefs.
3099 * java/io/OptionalDataException.java: Updated FIXME.
3100 (eof): New placeholder field.
3102 * java/io/WriteAbortedException.java (message): Made transient.
3103 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3104 * java/lang/Throwable.java (stackTrace): Made transient.
3105 * java/net/InetAddress.java: Made Serializable.
3106 * java/security/KeyPair.java: Made Serializable.
3107 * java/security/Provider.java: Replaced with Classpath version that
3108 implements serialization and proper methods.
3109 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3110 (limits): Renamed to choiceLimits.
3112 2000-06-24 Tom Tromey <tromey@cygnus.com>
3114 * java/lang/natDouble.cc (parseDouble): Renamed from
3116 * java/lang/Double.java (parseDouble): Renamed from
3117 doubleValueOf. Now public.
3119 2000-06-23 Andrew Haley <aph@cygnus.com>
3121 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3122 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3124 2000-06-23 Tom Tromey <tromey@cygnus.com>
3126 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3127 * java/lang/natDouble.cc: Always include <alloca.h>.
3128 Fix for PR libgcj/267.
3130 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3132 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3133 comply with classpath VM spec.
3134 (add(Group)): Rename to addGroup().
3135 * java/lang/Thread.java (Thread): Use addThread().
3136 * java/lang/natThread.cc (finish_): Use removeThread().
3138 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3140 * java/lang/ThreadGroup.java: Merged with classpath.
3141 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3142 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3144 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3145 ThreadGroup.root if Thread.currentThread is null. Honour the
3146 ThreadGroup's max priority setting.
3148 2000-06-18 Tom Tromey <tromey@cygnus.com>
3150 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3151 returned class. For PR gcj/260.
3153 2000-06-16 Tom Tromey <tromey@cygnus.com>
3155 Fix for PR libgcj/261:
3156 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3158 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3159 argument. (This is a patch from long ago that somehow went
3162 2000-06-15 Tom Tromey <tromey@cygnus.com>
3164 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3168 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3170 Fix for PR java.lang/258:
3171 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3172 JV_STATE_DONE, to prevent accidental initialization.
3173 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3174 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3175 interface or an abstract class. Remove redundant initializeClass calls.
3176 Remove duplicate if_idt test.
3177 (_Jv_InterfaceAssignableFrom): New function.
3178 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3180 2000-05-31 Tom Tromey <tromey@cygnus.com>
3182 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3183 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3184 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3185 (NUM_OBJECT_METHODS): New define.
3186 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3187 `array_vtable' parameter. Added assertion.
3188 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3191 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3193 * gcj/cni.h: Include <string.h>.
3194 * defineclass.cc: Include <alloca.h>.
3195 * interpret.cc: Ditto.
3196 * gij.cc: Include <stdlib.h>.
3198 2000-05-30 Tom Tromey <tromey@cygnus.com>
3200 * include/name-finder.h: Include <sys/wait.h>.
3201 (_Jv_name_finder::pid): Now of type `pid_t'.
3202 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3203 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3206 2000-05-24 Warren Levy <warrenl@cygnus.com>
3208 * java/io/ObjectOutputStream.java (writeObject): Use component type
3209 when writing arrays.
3212 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3214 Fix for PR libgcj/226:
3215 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3216 since this is an installed header.
3218 Fix for PR libgcj/228:
3219 * java/util/zip/ZipFile (getInputStream): Create inflater with
3222 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3223 with DataFormatException.
3225 2000-05-20 Tom Tromey <tromey@cygnus.com>
3227 * Makefile.in: Rebuilt.
3228 * Makefile.am (hack1): Removed.
3229 (awto_files): Likewise.
3230 (libgcjawt_la_SOURCES): Likewise.
3231 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3232 (libgcjawt_la_DEPENDENCIES): Likewise.
3233 (libgcjawt_la_LIBADD): Likewise.
3234 (libgcjawt_la_LDFLAGS): Likewise.
3235 (libgcjawt_la_LINK): Likewise.
3236 ($(awt_java_source_files:.java=.class)): Likewise.
3237 (libgcj.zip): Don't depend on AWT files.
3238 (MOSTLYCLEANFILES): Don't include AWT files.
3239 ($(awto_files)): Removed.
3240 (nat_headers): Removed AWT files.
3241 (cond_awt_java_source_files): Removed.
3242 (ordinary_java_source_files): Added awt_java_source_files.
3243 * libgcj.spec.in (*lib): Removed -lgcjawt.
3244 * configure: Rebuilt.
3245 * configure.in: Removed --enable-java-awt option.
3247 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3249 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3250 (ZipEntry): Copy the `name' field.
3251 (clone): Implement JDK1.2 method.
3252 (setCompressedSize): ditto.
3255 2000-05-19 Tom Tromey <tromey@cygnus.com>
3257 * java/io/BufferedWriter.java: Merged with Classpath.
3258 * java/io/BufferedOutputStream.java: Merged with Classpath.
3260 2000-05-16 Andrew Haley <aph@cygnus.com>
3262 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3263 build_ia64_frame_state.
3264 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3267 2000-05-15 Warren Levy <warrenl@cygnus.com>
3269 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3270 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3271 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3272 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3273 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3274 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3275 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3276 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3277 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3278 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3279 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3280 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3281 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3282 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3283 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3284 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3285 * gnu/gcj/io/NullOutputStream.java: Removed.
3286 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3287 * gnu/gcj/lang/ArrayHelper.java: Removed.
3288 * gnu/gcj/lang/ClassHelper.java: Removed.
3289 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3291 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3292 * gnu/java/beans/EmptyBeanInfo.java: New file.
3293 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3294 * gnu/java/beans/IntrospectionIncubator.java: New file.
3295 * gnu/java/beans/editors/ColorEditor.java: New file.
3296 * gnu/java/beans/editors/FontEditor.java: New file.
3297 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3298 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3299 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3300 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3301 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3302 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3303 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3304 * gnu/java/beans/editors/StringEditor.java: New file.
3305 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3306 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3307 * gnu/java/io/NullOutputStream.java: New file.
3308 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3309 * gnu/java/lang/ArrayHelper.java: New file.
3310 * gnu/java/lang/ClassHelper.java: New file.
3311 * gnu/java/lang/reflect/TypeSignature.java: New file.
3313 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3314 namespace back to the original Classpath gnu/java namespace.
3315 * Makefile.in: Rebuilt.
3317 * java/beans/Beans.java: Namespace change.
3318 * java/beans/EventSetDescriptor.java: Namespace change.
3319 * java/beans/Introspector.java: Namespace change.
3320 * java/beans/PropertyEditorManager.java: Namespace change.
3321 * java/io/ObjectInputStream.java: Namespace change.
3322 * java/io/ObjectOutputStream.java: Namespace change.
3323 * java/io/ObjectStreamClass.java: Namespace change.
3324 * java/io/ObjectStreamField.java: Namespace change.
3326 2000-04-21 Warren Levy <warrenl@cygnus.com>
3328 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3329 now that compiler patch is available.
3330 Removed unneeded System.loadLibrary.
3331 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3332 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3334 2000-04-19 Andrew Haley <aph@cygnus.com>
3336 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3337 and target classes have been initialized.
3339 2000-04-19 Andrew Haley <aph@cygnus.com>
3341 * java/lang/String.java: implement Serializable, Comparable.
3342 (compareTo (Object)): New method.
3344 2000-04-19 Warren Levy <warrenl@cygnus.com>
3346 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3347 instead of getField to retrieve non-public field.
3348 (getSerialPersistantFields): Ditto.
3350 2000-04-18 Warren Levy <warrenl@cygnus.com>
3352 * mauve-libgcj: Turned off object serialization tests temporarily
3353 due to compiler error.
3355 2000-04-17 Warren Levy <warrenl@cygnus.com>
3357 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3358 to avoid build problem.
3360 * mauve-libgcj: Turned on object serialization tests.
3362 2000-04-17 Tom Tromey <tromey@cygnus.com>
3364 * libgcj.spec.in (*lib): Added -lgcjawt.
3366 2000-04-17 Andrew Haley <aph@cygnus.com>
3368 * Makefile.am: Add new files:
3369 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3371 * Makefile.in: Rebuilt.
3373 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3374 interface that has no implementations.
3375 Check for an attempt to assign an abstract class to an interface.
3377 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3378 if we fail to find MessageDigest.getInstance ("SHA").
3380 * gnu/gcj/io/SimpleSHSStream.java: New file.
3381 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3382 * gnu/gcj/io/shs.cc: New file.
3383 * gnu/gcj/io/shs.h: new file.
3385 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3388 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3389 punctuation from the classname of an array element.
3391 * gcj/javaprims.h: Add SimpleDigestStream.
3393 2000-04-17 Andrew Haley <aph@cygnus.com>
3395 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3396 to getPrivateField for superclasses.
3398 2000-04-14 Andrew Haley <aph@cygnus.com>
3400 * Makefile.am: Add new files:
3401 java/io/ObjectOutputStream$PutField.h,
3402 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3403 java/io/natObjectOutputStream.cc
3404 * Makefile.in: Rebuilt.
3405 * gcj/Makefile.in: Rebuilt.
3406 * include/Makefile.in: Rebuilt.
3407 * java/lang/Class.h (getPrivateField): New method.
3408 (getPrivateMethod): Ditto.
3409 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3410 and java::io::ObjectStreamClass our friends.
3411 * java/lang/natClass.cc (getPrivateField): New method.
3412 (getPrivateMethod): Ditto.
3413 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3414 * gcj/javaprims.h: Add serialization classes.
3415 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3416 (setByteField): Ditto.
3417 (setCharField): Ditto.
3418 (setDoubleField): Ditto.
3419 (setFloatField): Ditto.
3420 (setIntField): Ditto.
3421 (setLongField): Ditto.
3422 (setShortField): Ditto.
3423 (setObjectField): Ditto.
3424 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3426 (getByteField): Ditto.
3427 (getCharField): Ditto.
3428 (getDoubleField): Ditto.
3429 (getFloatField): Ditto.
3430 (getIntField): Ditto.
3431 (getLongField): Ditto.
3432 (getShortField): Ditto.
3433 (getObjectField): Ditto.
3434 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3436 (getSerialPersistantFields): Ditto.
3437 (getDefinedSUID): Ditto.
3438 * java/io/natObjectOutputStream.cc: New file.
3439 * java/io/natObjectInputStream.cc: New file.
3441 2000-04-13 Warren Levy <warrenl@cygnus.com>
3443 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3444 problems. Revert to previous version to reproduce and when fixed.
3446 2000-04-13 Warren Levy <warrenl@cygnus.com>
3448 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3449 * gnu/gcj/io/NullOutputStream.java: New file.
3450 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3451 * java/io/BlockDataException.java: New file.
3452 * java/io/Externalizable.java: New file.
3453 * java/io/InvalidClassException.java: New file.
3454 * java/io/InvalidObjectException.java: New file.
3455 * java/io/NotActiveException.java: New file.
3456 * java/io/NotSerializableException.java: New file.
3457 * java/io/ObjectInput.java: New file.
3458 * java/io/ObjectInputStream.java: New file.
3459 * java/io/ObjectInputValidation.java: New file.
3460 * java/io/ObjectOutput.java: New file.
3461 * java/io/ObjectOutputStream.java: New file.
3462 * java/io/ObjectStreamClass.java: New file.
3463 * java/io/ObjectStreamConstants.java: New file.
3464 * java/io/ObjectStreamField.java: New file.
3465 * java/io/Replaceable.java: New file.
3466 * java/io/Resolvable.java: New file.
3467 * java/io/SerializablePermission.java: New file.
3468 * java/io/WriteAbortedException.java: New file.
3469 * java/security/BasicPermission.java: New file.
3470 * java/security/DigestOutputStream.java: New file.
3471 * java/security/Guard.java: New file.
3472 * java/security/Permission.java: New file.
3473 * java/security/PermissionCollection.java: New file.
3474 * Makefile.am: Added above files.
3475 * Makefile.in: Rebuilt.
3477 * java/beans/Beans.java (instantiate): Activated serialization code.
3478 * java/lang/SecurityManager.java (checkPermission): New method.
3480 2000-04-12 Warren Levy <warrenl@cygnus.com>
3482 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3483 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3484 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3485 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3486 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3487 * gnu/gcj/beans/editors/FontEditor.java: New file.
3488 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3489 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3490 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3491 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3492 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3493 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3494 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3495 * gnu/gcj/beans/editors/StringEditor.java: New file.
3496 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3497 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3498 * gnu/gcj/lang/ArrayHelper.java: New file.
3499 * gnu/gcj/lang/ClassHelper.java: New file.
3500 * java/beans/BeanDescriptor.java: New file.
3501 * java/beans/BeanInfo.java: New file.
3502 * java/beans/Beans.java: New file.
3503 * java/beans/Customizer.java: New file.
3504 * java/beans/DesignMode.java: New file.
3505 * java/beans/EventSetDescriptor.java: New file.
3506 * java/beans/FeatureDescriptor.java: New file.
3507 * java/beans/IndexedPropertyDescriptor.java: New file.
3508 * java/beans/IntrospectionException.java: New file.
3509 * java/beans/Introspector.java: New file.
3510 * java/beans/MethodDescriptor.java: New file.
3511 * java/beans/ParameterDescriptor.java: New file.
3512 * java/beans/PropertyChangeEvent.java: New file.
3513 * java/beans/PropertyChangeListener.java: New file.
3514 * java/beans/PropertyChangeSupport.java: New file.
3515 * java/beans/PropertyDescriptor.java: New file.
3516 * java/beans/PropertyEditor.java: New file.
3517 * java/beans/PropertyEditorManager.java: New file.
3518 * java/beans/PropertyEditorSupport.java: New file.
3519 * java/beans/PropertyVetoException.java: New file.
3520 * java/beans/SimpleBeanInfo.java: New file.
3521 * java/beans/VetoableChangeListener.java: New file.
3522 * java/beans/VetoableChangeSupport.java: New file.
3523 * java/beans/Visibility.java: New file.
3524 * java/beans/beancontext/BeanContext.java: New file.
3525 * java/beans/beancontext/BeanContextChild.java: New file.
3526 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3527 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3528 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3529 * java/beans/beancontext/BeanContextEvent.java: New file.
3530 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3531 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3532 * java/beans/beancontext/BeanContextProxy.java: New file.
3533 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3535 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3536 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3538 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3539 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3541 * java/beans/beancontext/BeanContextServices.java: New file.
3542 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3543 * java/util/AbstractCollection.java: New file.
3544 * java/util/AbstractList.java: New file.
3545 * java/util/Arrays.java: New file.
3546 * Makefile.am: Added above files.
3547 * Makefile.in: Rebuilt.
3549 2000-04-11 Warren Levy <warrenl@cygnus.com>
3551 * java/awt/AWTError.java: New file.
3552 * java/awt/AWTEvent.java: New file.
3553 * java/awt/AWTException.java: New file.
3554 * java/awt/ActiveEvent.java: New file.
3555 * java/awt/Adjustable.java: New file.
3556 * java/awt/BorderLayout.java: New file.
3557 * java/awt/Color.java: New file.
3558 * java/awt/Component.java: New file.
3559 * java/awt/Container.java: New file.
3560 * java/awt/Dimension.java: New file.
3561 * java/awt/Event.java: New file.
3562 * java/awt/Font.java: New file.
3563 * java/awt/Frame.java: New file.
3564 * java/awt/Graphics.java: New file.
3565 * java/awt/IllegalComponentStateException.java: New file.
3566 * java/awt/Image.java: New file.
3567 * java/awt/ItemSelectable.java: New file.
3568 * java/awt/LayoutManager.java: New file.
3569 * java/awt/LayoutManager2.java: New file.
3570 * java/awt/Menu.java: New file.
3571 * java/awt/MenuBar.java: New file.
3572 * java/awt/MenuComponent.java: New file.
3573 * java/awt/MenuContainer.java: New file.
3574 * java/awt/MenuItem.java: New file.
3575 * java/awt/Paint.java: New file.
3576 * java/awt/PaintContext.java: New file.
3577 * java/awt/Point.java: New file.
3578 * java/awt/Rectangle.java: New file.
3579 * java/awt/Shape.java: New file.
3580 * java/awt/TextArea.java: New file.
3581 * java/awt/TextComponent.java: New file.
3582 * java/awt/Toolkit.java: New file.
3583 * java/awt/Transparency.java: New file.
3584 * java/awt/Window.java: New file.
3585 * java/awt/natToolkit.cc: New file.
3586 * java/awt/event/AWTEventListener.java: New file.
3587 * java/awt/event/ActionEvent.java: New file.
3588 * java/awt/event/ActionListener.java: New file.
3589 * java/awt/event/AdjustmentEvent.java: New file.
3590 * java/awt/event/AdjustmentListener.java: New file.
3591 * java/awt/event/ComponentAdapter.java: New file.
3592 * java/awt/event/ComponentEvent.java: New file.
3593 * java/awt/event/ComponentListener.java: New file.
3594 * java/awt/event/ContainerAdapter.java: New file.
3595 * java/awt/event/ContainerEvent.java: New file.
3596 * java/awt/event/ContainerListener.java: New file.
3597 * java/awt/event/FocusAdapter.java: New file.
3598 * java/awt/event/FocusEvent.java: New file.
3599 * java/awt/event/FocusListener.java: New file.
3600 * java/awt/event/InputEvent.java: New file.
3601 * java/awt/event/InputMethodEvent.java: New file.
3602 * java/awt/event/InputMethodListener.java: New file.
3603 * java/awt/event/InvocationEvent.java: New file.
3604 * java/awt/event/ItemEvent.java: New file.
3605 * java/awt/event/ItemListener.java: New file.
3606 * java/awt/event/KeyAdapter.java: New file.
3607 * java/awt/event/KeyEvent.java: New file.
3608 * java/awt/event/KeyListener.java: New file.
3609 * java/awt/event/MouseAdapter.java: New file.
3610 * java/awt/event/MouseEvent.java: New file.
3611 * java/awt/event/MouseListener.java: New file.
3612 * java/awt/event/MouseMotionAdapter.java: New file.
3613 * java/awt/event/MouseMotionListener.java: New file.
3614 * java/awt/event/PaintEvent.java: New file.
3615 * java/awt/event/TextEvent.java: New file.
3616 * java/awt/event/TextListener.java: New file.
3617 * java/awt/event/WindowAdapter.java: New file.
3618 * java/awt/event/WindowEvent.java: New file.
3619 * java/awt/event/WindowListener.java: New file.
3620 * java/awt/geom/Dimension2D.java: New file.
3621 * java/awt/geom/Point2D.java: New file.
3622 * java/awt/peer/ComponentPeer.java: New file.
3623 * java/awt/peer/ContainerPeer.java: New file.
3624 * java/awt/peer/FramePeer.java: New file.
3625 * java/awt/peer/WindowPeer.java: New file.
3626 * java/util/Collection.java: New file.
3627 * java/util/Comparator.java: New file.
3628 * java/util/Iterator.java: New file.
3629 * java/util/List.java: New file.
3630 * java/util/ListIterator.java: New file.
3631 * Makefile.am: Added above files.
3632 * Makefile.in: Rebuilt.
3634 2000-04-10 Warren Levy <warrenl@cygnus.com>
3636 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3637 * java/lang/FirstThread.java: Ditto.
3638 * java/lang/StringBuffer.java: Ditto.
3639 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3641 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3642 Special case handled in java.math.BigInteger.
3643 * java/math/BigInteger.java (divide): Handle the special case when
3644 dividing by 1 and the high bit of the dividend is set.
3645 (setShiftRight): Handle case when count == 0.
3647 2000-04-05 Andrew Haley <aph@cygnus.com>
3649 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3652 2000-04-05 Andrew Haley <aph@cygnus.com>
3654 * sysdep/ia64.c (rse_address_add): Delete.
3655 (IS_NaT_COLLECTION_ADDR): Delete.
3656 (ia64_backtrace_helper): check for null unwind_info.
3658 * sysdep/ia64-frame.h: add calc_caller_bsp.
3660 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3663 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3664 (_Jv_remI): Likewise.
3665 (_Jv_divJ): Likewise.
3666 (_Jv_remJ): Likewise.
3668 * interpret.cc (continue1): Use divide subroutines to guarantee
3669 correct Java standard behaviour.
3670 Floating-point division should not abort; make it so.
3672 2000-03-29 Tom Tromey <tromey@cygnus.com>
3674 * configure: Rebuilt.
3675 * configure.in: Test against `libgcj_sjlj', not
3676 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3677 to be set even when using sjlj.
3679 2000-03-24 Andrew Haley <aph@cygnus.com>
3681 * Makefile.am: Add file addr2name.awk.
3682 * Makefile.in: Rebuilt.
3683 * addr2name.awk: New file.
3684 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3686 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3689 2000-03-22 Andrew Haley <aph@cygnus.com>
3691 * configure.host: Add -funwind-tables for IA64.
3692 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3693 * Makefile.in: Rebuilt.
3694 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3695 * sysdep/ia64.c: New file.
3696 * sysdep/ia64-frame.h: New file.
3697 * configure.in: Add sysdep/ia64.c for ia64.
3698 * configure: Rebuilt.
3700 2000-03-17 Andrew Haley <aph@cygnus.com>
3702 * java/lang/natString.cc: Remove `register' keyword.
3703 interpret.cc: ditto.
3705 2000-03-16 Andrew Haley <aph@cygnus.com>
3707 * configure.host (ia64): Enable interpreter.
3709 2000-03-14 Hans Boehm <boehm@acm.org>
3711 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3713 2000-03-14 Andrew Haley <aph@cygnus.com>
3715 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3718 2000-03-10 Andrew Haley <aph@cygnus.com>
3720 * java/lang/ieeefp.h: Import latest version from fdlibm.
3722 2000-03-14 Andrew Haley <aph@cygnus.com>
3724 * prims.cc (_Jv_ThrowSignal): New function.
3725 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3727 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3728 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3729 * include/ppc-signal.h: New file.
3731 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3733 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3734 * java/lang/natThread.java (initialize_native): Cast `data' to
3736 * gnu/gcj/RawData.java: Clarify documentation.
3738 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3739 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3740 `jarFile', not `jarFileURL'.
3742 2000-05-15 Andrew Haley <aph@cygnus.com>
3744 * include/ppc-signal.h: New file.
3746 2000-05-11 Tom Tromey <tromey@cygnus.com>
3748 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3749 file headers, don't include `size' in the skip call.
3751 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3753 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3754 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3756 (replace): Reimplemented. Fix javadoc.
3757 (reverse): Call ensureCapacity_unsynchronized().
3758 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3760 (replace): Calculate length for arraycopy() correctly.
3762 2000-05-09 Tom Tromey <tromey@cygnus.com>
3764 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3766 (insert(int,char[],int,int): New method.
3767 (delete): New method from Classpath.
3768 (deleteCharAt): Likewise.
3769 (substring): Likewise.
3770 (shared): No longer private.
3771 Added JavaDoc comments from Classpath.
3772 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3775 2000-05-07 Tom Tromey <tromey@cygnus.com>
3777 * Makefile.in: Rebuilt.
3778 * Makefile.am (LIBLINK): New macro.
3779 (libgcj_la_LINK): Use it.
3780 (libgcjawt_la_LINK): Likewise.
3782 2000-05-06 Tom Tromey <tromey@cygnus.com>
3784 * Makefile.in: Rebuilt.
3785 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3787 2000-05-05 Tom Tromey <tromey@cygnus.com>
3789 Fix for PR libgcj/220:
3790 * Makefile.in: Rebuilt.
3791 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3792 (jv_convert_LDFLAGS): Likewise.
3793 (libgcj_la_LDFLAGS): Likewise.
3794 (GCJLINK): New macro.
3795 (jv_convert_LINK): Use it.
3796 (gij_LINK): Likewise.
3797 (libgcj_la_LINK): New macro.
3798 (libgcjawt_la_LINK): Likewise.
3800 2000-05-04 Tom Tromey <tromey@cygnus.com>
3802 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3804 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3808 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3810 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3811 (_Jv_IsAssignableFrom): Ditto.
3812 (_Jv_IsInstanceOf): Ditto.
3813 (_Jv_CheckCast): Ditto.
3814 (_Jv_CheckArrayStore): Ditto.
3815 * java/lang/Class.h (_Jv_InitClass): Ditto.
3816 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3821 (_Jv_MonitorExit): Ditto.
3822 * boehm.cc (_Jv_MarkObj): Ditto.
3823 (_Jv_MarkObj): Ditto.
3824 (_Jv_MarkArray): Ditto.
3825 * prims.cc (_Jv_AllocObject): Ditto.
3826 (_Jv_NewObjectArray): Ditto.
3827 (_Jv_NewPrimArray): Ditto.
3828 (_Jv_Malloc): Ditto.
3829 (_Jv_Realloc): Ditto.
3830 (_Jv_MallocUnchecked): Ditto.
3836 2000-05-04 Tom Tromey <tromey@cygnus.com>
3838 * java/util/Locale.java (Locale): Don't explicitly check for
3840 * java/util/Hashtable.java (containsKey): Don't explicitly check
3843 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3845 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3847 * java/text/StringCharacterIterator.java
3848 (StringCharacterIterator): Don't check for null.
3849 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3851 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3852 check for null pointer.
3853 (leaveGroup): Likewise.
3854 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3856 (setData): Likewise.
3857 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3860 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3862 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3863 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3864 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3865 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3866 -rpath for in-gcc builds.
3867 * Makefile.in: Rebuilt.
3869 2000-04-28 Tom Tromey <tromey@cygnus.com>
3871 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3874 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3876 * libjava/java/lang/String.java (toString): Remove `final' hack.
3878 2000-04-05 Tom Tromey <tromey@cygnus.com>
3880 Runtime support for PR gcj/2:
3881 * prims.cc (_Jv_ThrowNullPointerException): New function.
3882 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3884 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3886 * prims.cc (_Jv_NewObjectArray): Fix typo.
3888 2000-04-26 Tom Tromey <tromey@cygnus.com>
3890 * Makefile.in: Rebuilt.
3891 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3893 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3895 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3898 2000-04-22 Anthony Green <green@cygnus.com>
3900 * include/jvm.h (__builtin_expect): Define as unused for now.
3901 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3905 (_Jv_MonitorExit): Ditto.
3906 * boehm.cc (_Jv_MarkObj): Ditto.
3907 (_Jv_MarkObj): Ditto.
3908 (_Jv_MarkArray): Ditto.
3909 (_Jv_AllocBytes): Ditto.
3910 * prims.cc (_Jv_AllocObject): Ditto.
3911 (_Jv_NewObjectArray): Ditto.
3912 (_Jv_NewPrimArray): Ditto.
3913 (_Jv_Malloc): Ditto.
3914 (_Jv_Realloc): Ditto.
3915 (_Jv_MallocUnchecked): Ditto.
3921 * include/Makefile.in: Rebuilt.
3922 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3924 2000-04-21 Tom Tromey <tromey@cygnus.com>
3926 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3927 Yet another new version from Classpath.
3929 Fix for PR libgcj/15:
3930 * java/util/natGregorianCalendar.cc (_REENTRANT,
3931 _POSIX_PTHREAD_SEMANTICS): Don't define.
3932 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3933 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3935 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3937 * configure: Rebuilt.
3938 * configure.in: If using POSIX threads, define _REENTRANT if
3939 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3940 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3942 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3943 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3944 version from Classpath.
3946 Fix for PR libgcj/213:
3947 * Makefile.in: Rebuilt.
3948 * Makefile.am (gij_SOURCES): Added gij.cc.
3949 (EXTRA_gij_SOURCES): Removed.
3950 (gij_LDADD): Removed gij.lo.
3951 (gij_DEPENDENCIES): Likewise.
3952 ($(gij_OBJECTS)): Depend on nat_headers.
3954 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3955 `setURL', not `url.set'.
3957 2000-04-20 Tom Tromey <tromey@cygnus.com>
3959 Fix for PR java.io/204:
3960 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3961 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3964 Fix for PR libgcj/212:
3965 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3966 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3967 * java/lang/Class.h (_Jv_word): Declare.
3969 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3971 2000-04-19 Tom Tromey <tromey@cygnus.com>
3973 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3974 doesn't have a loader.
3976 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3978 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3979 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3981 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3983 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3985 (available): Initialize `where' to prevent bogus compiler warning.
3987 2000-04-12 Tom Tromey <tromey@cygnus.com>
3989 * java/lang/natString.cc (intern): Temporarily disable finalizer
3992 * java/lang/natString.cc (unintern): Added `obj' argument.
3993 (intern): Register finalizer for string.
3994 * java/lang/String.java (unintern): Now static; added obj
3997 2000-04-11 Tom Tromey <tromey@cygnus.com>
3999 * java/util/Vector.java (VectorEnumeration): Now `final'.
4000 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4001 (HashtableEnumeration): Likewise.
4002 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4003 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4005 2000-04-10 Warren Levy <warrenl@cygnus.com>
4007 * java/io/ObjectStreamException.java: New file.
4008 * java/io/OptionalDataException.java: New file.
4009 * java/io/StreamCorruptedException.java: New file.
4010 * java/math/BigDecimal.java: New file.
4011 * java/sql/CallableStatement.java: New file.
4012 * java/sql/Connection.java: New file.
4013 * java/sql/DataTruncation.java: New file.
4014 * java/sql/DatabaseMetaData.java: New file.
4015 * java/sql/Date.java: New file.
4016 * java/sql/Driver.java: New file.
4017 * java/sql/DriverManager.java: New file.
4018 * java/sql/DriverPropertyInfo.java: New file.
4019 * java/sql/PreparedStatement.java: New file.
4020 * java/sql/ResultSet.java: New file.
4021 * java/sql/ResultSetMetaData.java: New file.
4022 * java/sql/SQLException.java: New file.
4023 * java/sql/SQLWarning.java: New file.
4024 * java/sql/Statement.java: New file.
4025 * java/sql/Time.java: New file.
4026 * java/sql/Timestamp.java: New file.
4027 * java/sql/Types.java: New file.
4028 * Makefile.am: Added above new files.
4029 * Makefile.in: Rebuilt.
4031 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4032 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4033 DatagramSocket constructor instead of null.
4035 2000-04-08 Anthony Green <green@cygnus.com>
4037 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4040 2000-04-08 Anthony Green <green@cygnus.com>
4042 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4043 (_Jv_MutexUnlock): Ditto.
4044 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4045 (_Jv_MutexUnlock): Ditto.
4047 2000-04-08 Anthony Green <green@cygnus.com>
4049 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4050 (ensureCapacity_unsynchronized): New private method.
4051 (append): Use ensureCapacity_unsynchronized.
4053 2000-04-08 Tom Tromey <tromey@cygnus.com>
4055 * Makefile.in: Rebuilt.
4056 * Makefile.am (awt_java_source_files): Added new files.
4057 * java/awt/IllegalComponentStateException.java: New file.
4058 * java/awt/ItemSelectable.java: New file.
4059 * java/awt/event/WindowEvent.java: Finished.
4060 * java/awt/event/TextEvent.java: Finished.
4061 * java/awt/event/ContainerEvent.java: New file.
4062 * java/awt/Component.java (getX, getY): New methods.
4063 * java/awt/event/PaintEvent.java: New file.
4064 * java/awt/event/MouseEvent.java: New file.
4065 * java/awt/ActiveEvent.java: New file.
4066 * java/awt/event/KeyEvent.java: Finished.
4067 * java/awt/event/ItemEvent.java: New file.
4068 * java/awt/Adjustable.java: New file.
4069 * java/awt/event/InputMethodEvent.java: New file.
4070 * java/awt/event/InputEvent.java: Finished.
4071 * java/awt/event/FocusEvent.java: New file.
4072 * java/awt/event/MouseMotionAdapter.java: New file.
4073 * java/awt/event/MouseAdapter.java: New file.
4074 * java/awt/event/KeyAdapter.java: New file.
4075 * java/awt/event/FocusAdapter.java: New file.
4076 * java/awt/event/ContainerAdapter.java: New file.
4077 * java/awt/event/ComponentEvent.java: Finished.
4078 * java/awt/event/AdjustmentEvent.java: New file.
4079 * java/awt/event/ComponentAdapter.java: New file.
4080 * java/awt/event/ActionEvent.java: Finished.
4081 * java/awt/event/MouseMotionListener.java: New file.
4082 * java/awt/event/MouseListener.java: New file.
4083 * java/awt/event/ItemListener.java: New file.
4084 * java/awt/event/InputMethodListener.java: New file.
4085 * java/awt/event/ContainerListener.java: New file.
4086 * java/awt/event/FocusListener.java: New file.
4087 * java/awt/event/ComponentListener.java: New file.
4088 * java/awt/event/AWTEventListener.java: New file.
4089 * java/awt/event/AdjustmentListener.java: New file.
4091 2000-04-08 Anthony Green <green@cygnus.com>
4093 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4094 check when we have to.
4096 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4099 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4102 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4103 inline hasMoreElements.
4105 2000-04-05 Tom Tromey <tromey@cygnus.com>
4107 * configure: Rebuilt.
4108 * configure.in: Recognize --enable-java-awt.
4109 (AWT): New conditional.
4110 * Makefile.in: Rebuilt.
4111 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4113 (libgcjawt_la_SOURCES): New macro.
4114 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4115 (libgcjawt_la_DEPENDENCIES): Likewise.
4116 (libgcjawt_la_LIBADD): Likewise.
4117 (libgcjawt_la_LDFLAGS): Likewise.
4118 (libgcj.zip): Depend on cond_java_awt_source_files
4119 (cond_awt_java_source_files): New macro.
4120 (MOSTLYCLEANFILES): Added awto_files.
4121 (awto_files): New macro. Use where javao_files used.
4122 (nat_headers): Use cond_awt_java_source_files.
4124 2000-04-04 Tom Tromey <tromey@cygnus.com>
4126 * Makefile.in: Rebuilt.
4127 * Makefile.am (awt_java_source_files): Added AWTException.java.
4128 * java/awt/AWTException.java: New file.
4130 2000-04-03 Tom Tromey <tromey@cygnus.com>
4132 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4133 commentary from Alex.
4135 * Makefile.in: Rebuilt.
4136 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4139 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4141 * configure: Rebuilt.
4142 * configure.in: Add --disable-jvmpi.
4143 * include/config.h.in: Rebuilt.
4144 * acconfig.h: Add ENABLE_JVMPI.
4146 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4147 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4148 (_Jv_JVMPI_Notify_THREAD_END): New define.
4149 (_Jv_JVMPI_Notify_THREAD_END): New define.
4150 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4151 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4152 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4154 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4157 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4158 (finish_): Generate JVMPI thread end events.
4159 (run_): Generate JVMPI thread start events.
4160 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4161 preloaded JNI library.
4162 Include JVMPI headers if necessary.
4163 (run): Generate JVMPI thread start events.
4165 * boehm.cc: Define GC_disable and GC_enable.
4166 (_Jv_DisableGC): New function.
4167 (_Jv_EnableGC): New function.
4168 (disable_gc_mutex): Declare.
4169 * nogc.cc (_Jv_DisableGC): New function.
4170 (_Jv_EnableGC): New function.
4172 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4173 (_Jv_JVMPI_Interface): Define.
4174 (jvmpiEnableEvent): New function.
4175 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4177 * include/jvmpi.h: New file.
4179 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4181 * Makefile.in: New #defines and friends for Thread.h.
4182 * Makefile.am: Ditto.
4183 * posix-threads.cc: (struct starter): Remove `object'.
4184 (_Jv_CondWait): Use interruptable condition variables and new
4185 recursive mutexes. New return codes on interrupt or non-ownership
4187 (_Jv_CondNotify): Ditto.
4188 (_Jv_CondNotifyAll): Ditto.
4189 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4190 the target thread by signaling its wait condition.
4191 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4192 not the starter struct. Initialize wait_mutex and wait_cond.
4193 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4195 (_Jv_MutexUnlock): Ditto.
4196 (really_start): Set info->data->thread from pthread_self() to work
4197 around a race condition. Destroy wait_mutex and wait_cond when run()
4199 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4200 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4202 startable_flag: New private field.
4203 (Thread): Initialize `startable_flag'.
4204 (toString): Check for null thread group.
4205 * java/lang/natThread.cc: (struct natThread): New fields
4206 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4207 (class locker): Removed.
4208 (initialize_native): Initialize `join_cond' and `join_mutex'.
4209 (interrupt): Now just calls _Jv_ThreadInterrupt().
4210 (join): Simplified. Just wait on the target thread's join condition.
4211 (finish_): Remove join list code. Unset thread group. Signal
4212 potential joiners by notifying the dying threads join_cond.
4213 (start): Check for illegal restarts.
4214 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4216 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4217 #defines and #ifdefs.
4218 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4219 `wait_mutex', `next'.
4220 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4221 directly mapping to pthread_cond_t.
4222 (struct _Jv_Mutex_t): New recursive implementation.
4223 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4224 _Jv_HaveCondDestroy: Never define this for posix-threads.
4225 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4226 (_Jv_CondNotifyAll): Ditto.
4227 (_Jv_MutexLock): Ditto.
4228 (_Jv_MutexUnlock): Ditto.
4229 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4230 (_Jv_MutexDestroy): Ditto.
4231 (_Jv_CondDestroy): Removed.
4232 (_Jv_PthreadGetMutex): Removed.
4233 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4234 error. Add a FIXME about this.
4235 (_Jv_CondNotifyAll): Ditto.
4236 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4237 _JV_NOT_OWNER on other errors. Add FIXME.
4239 2000-03-26 Tom Tromey <tromey@cygnus.com>
4241 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4243 (call): Don't throw exception here.
4245 2000-03-26 Tom Tromey <tromey@cygnus.com>
4247 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4248 * interpret.cc: Use SIZEOF_VOID_P.
4249 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4250 (_Jv_loadLong): Likewise.
4251 (_Jv_storeDouble): Likewise.
4252 * configure: Rebuilt.
4253 * configure.in: Check size of void*.
4255 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4257 2000-03-26 Hans Boehm <boehm@acm.org>
4259 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4260 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4262 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4263 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4264 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4265 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4267 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4268 (FFI_RAW_SIZE): Likewise.
4269 (_Jv_InterpMethod::ncode): Use them.
4270 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4271 STORED): Define differently on a 64 bit machine.
4272 (continue1): Use ffi_java_raw_call when appropriate.
4274 2000-03-24 Warren Levy <warrenl@cygnus.com>
4276 * java/math/BigInteger.java(divide): Handle the special case when
4277 dividing by 1 and the high bit of the dividend is set.
4278 (setShiftRight): Handle case when count == 0.
4280 2000-03-24 Warren Levy <warrenl@cygnus.com>
4282 * java/awt/Font.java(isBold): Fix syntax error.
4284 * java/awt/Frame.java(postEvent): ditto.
4285 * java/awt/Menu.java(postEvent): ditto.
4286 * java/awt/MenuBar.java(postEvent): ditto.
4287 * java/awt/Toolkit.java(init): Included a stub.
4289 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4291 * java/awt/Event.java: Add all the event type constants.
4292 (Event): Implemented constructors.
4293 (controlDown): Implemented.
4294 (metaDown): Implemented.
4295 (paramString): Stubbed.
4296 (shiftDown): Implemented.
4297 (toString): Implemented.
4298 (translate): Implemented.
4300 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4302 * java/lang/natClass.cc (isInstance): Initialize `this'.
4303 (isAssignableFrom): Initialize `this' and `klass'.
4304 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4305 implemented by any loaded class, so return false.
4306 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4307 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4309 2000-03-19 Warren Levy <warrenl@cygnus.com>
4311 * java/awt/Color.java: Specified java.io for Serializable.
4312 * java/awt/Toolkit.java: Imported java.net.URL.
4314 2000-03-19 Warren Levy <warrenl@cygnus.com>
4316 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4318 2000-03-16 Warren Levy <warrenl@cygnus.com>
4320 * java/awt/Color.java: New file.
4321 * java/awt/Graphics.java: New file.
4322 * java/awt/Image.java: New file.
4323 * java/awt/Paint.java: New file.
4324 * java/awt/PaintContext.java: New file.
4325 * java/awt/Transparency.java: New file.
4326 * java/util/Collection.java: New file.
4327 * java/util/Comparator.java: New file.
4328 * java/util/Iterator.java: New file.
4329 * java/util/List.java: New file.
4330 * java/util/ListIterator.java: New file.
4331 * Makefile.am: Added above new files.
4332 * Makefile.in: Rebuilt.
4334 * java/awt/Font.java (PLAIN): New field.
4336 (ITALIC): New field.
4337 (ROMAN_BASELINE): New field.
4338 (CENTER_BASELINE): New field.
4339 (HANGING_BASELINE): New field.
4343 (pointSize): New field.
4344 (Font): Implemented constructor.
4345 (isPlain): Implemented method.
4346 (isBold): Implemented method.
4347 (isItalic): Implemented method.
4348 (getName): Implemented method.
4349 (getStyle): Implemented method.
4350 (getSize): Implemented method.
4351 (getSize2D): Implemented method.
4353 * java/awt/Frame.java (getFont): Stubbed.
4354 (postEvent): Stubbed.
4356 * java/awt/Menu.java (postEvent): Stubbed.
4357 * java/awt/MenuBar.java (getFont): Stubbed.
4358 (postEvent): Stubbed.
4359 * java/awt/Toolkit.java (getImage): Added abstract method.
4361 2000-03-15 Tom Tromey <tromey@cygnus.com>
4363 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4365 * prims.cc (win32_exception_handler): Reformatted.
4367 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4368 (_Jv_HaveMutexDestroy): Likewise.
4370 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4372 * java/io/natFileDescriptorWin32.cc: New file.
4373 * java/io/natFileWin32.cc: New file.
4374 * java/net/natInetAddress.cc: Added conditional inclusion of
4375 Windows / Winsock headers.
4376 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4377 inclusion of Windows / Winsock headers.
4378 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4379 Windows / Winsock headers.
4380 * include/win32-signal.h: New file.
4381 * include/win32-threads.h: New file.
4382 * win32-threads.cc: New file.
4383 * exception.cc (win32_get_restart_frame): New function.
4384 * prims.cc (win32_exception_handler): New function.
4385 (main_init) Performs Winsock initialisation.
4386 (main_init) Installs exeception handler.
4388 2000-03-14 Tom Tromey <tromey@cygnus.com>
4390 * jni.cc (mangled_name): Fixed assertion.
4391 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4392 turned assert into actual failure.
4394 2000-03-09 Warren Levy <warrenl@cygnus.com>
4396 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4397 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4398 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4400 2000-03-09 Warren Levy <warrenl@cygnus.com>
4402 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4403 * java/security/DigestException.java: New file.
4404 * java/security/GeneralSecurityException.java: New file.
4405 * java/security/InvalidAlgorithmParameterException.java: New file.
4406 * java/security/InvalidKeyException.java: New file.
4407 * java/security/InvalidParameterException.java: New file.
4408 * java/security/Key.java: New file.
4409 * java/security/KeyException.java: New file.
4410 * java/security/KeyPair.java: New file.
4411 * java/security/KeyPairGenerator.java: New file.
4412 * java/security/KeyPairGeneratorSpi.java: New file.
4413 * java/security/NoSuchProviderException.java: New file.
4414 * java/security/PrivateKey.java: New file.
4415 * java/security/Provider.java: New file.
4416 * java/security/PublicKey.java: New file.
4417 * java/security/SecureRandom.java: New file.
4418 * java/security/Security.java: New file.
4419 * java/security/Signature.java: New file.
4420 * java/security/SignatureException.java: New file.
4421 * java/security/interfaces/DSAKey.java: New file.
4422 * java/security/interfaces/DSAParams.java: New file.
4423 * java/security/interfaces/DSAPrivateKey.java: New file.
4424 * java/security/interfaces/DSAPublicKey.java: New file.
4425 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4426 * java/security/interfaces/RSAPrivateKey.java: New file.
4427 * java/security/interfaces/RSAPublicKey.java: New file.
4428 * java/security/spec/AlgorithmParameterSpec.java: New file.
4429 * java/security/spec/InvalidKeySpecException.java: New file.
4430 * java/security/spec/InvalidParameterSpecException.java: New file.
4431 * java/security/spec/KeySpec.java: New file.
4432 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4433 * java/security/spec/RSAPrivateKeySpec.java: New file.
4434 * java/security/spec/RSAPublicKeySpec.java: New file.
4435 * Makefile.am: Added above java.security files.
4436 * Makefile.in: Rebuilt.
4438 * java/security/MessageDigest.java: Rewritten.
4439 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4441 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4445 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4447 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4448 _Jv_PrepareConstantTimeTables.
4449 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4450 classes should have an IDT, so don't return if klass is an array
4453 2000-03-08 Tom Tromey <tromey@cygnus.com>
4455 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4456 of `void' to be created.
4458 2000-03-08 Warren Levy <warrenl@cygnus.com>
4460 * java/math/BigInteger.java(signum): Handle zero properly.
4462 2000-03-07 Tom Tromey <tromey@cygnus.com>
4464 * All files: Updated copyright information.
4465 * COPYING: New file.
4466 * COPYING.LIB: Removed.
4467 * LIBGCJ_LICENSE: We now use GPL + special exception.
4469 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4471 * resolve.cc (_Jv_SearchMethodInClass): New function.
4472 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4473 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4475 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4477 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4478 (struct _Jv_ifaces): New declaration.
4479 JV_CLASS: New macro definition.
4480 (getComponentType): Relocate below isArray() for inlining.
4481 (getModifiers): Declare `inline'.
4482 (getSuperclass): Ditto.
4484 (isPrimitive): Ditto.
4485 (_Jv_IsAssignableFrom): New prototype.
4486 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4488 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4489 Check for JV_STATE_DONE before invoking initializeClass().
4490 (_Jv_PrepareConstantTimeTables): New prototype.
4491 (_Jv_GetInterfaces): Ditto.
4492 (_Jv_GenerateITable): Ditto.
4493 (_Jv_GetMethodString): Ditto.
4494 (_Jv_AppendPartialITable): Ditto.
4495 (_Jv_FindIIndex): Ditto.
4496 depth, ancestors, idt: New class fields.
4498 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4499 inline function `_Jv_IsAssignableFrom'. Use that function.
4500 (isInstance): Declare `inline'.
4501 (initializeClass): Get lock on class before checking `state'. Unlock
4502 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4504 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4505 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4506 class->depth and ancestor table.
4507 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4508 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4509 _Jv_IsAssignableFrom.
4510 (_Jv_CheckArrayStore): Ditto.
4511 (_Jv_LookupInterfaceMethodIdx): New function.
4512 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4513 (_Jv_PrepareConstantTimeTables): New function.
4514 (_Jv_IndexOf): Ditto.
4515 (_Jv_GetInterfaces): Ditto.
4516 (_Jv_GenerateITable): Ditto.
4517 (_Jv_GetMethodString): Ditto.
4518 (_Jv_AppendPartialITable): Ditto.
4519 iindex_mutex, iindex_mutex_initialized: New static fields.
4520 (_Jv_FindIIndex): New function.
4522 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4524 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4525 (_Jv_CheckArrayStore): Ditto.
4526 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4527 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4528 Moved to gcj/array.h.
4529 (_Jv_Realloc): New function.
4531 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4533 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4534 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4535 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4536 JvNewDoubleArray): Implementations moved from prims.cc and
4539 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4541 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4543 2000-03-06 Tom Tromey <tromey@cygnus.com>
4545 * jni.cc (MARK_NONE): New define.
4546 (MARK_USER): Likewise.
4547 (MARK_SYSTEM): Likewise.
4548 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4550 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4551 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4552 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4553 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4555 (call): Use MARK_SYSTEM.
4556 (_Jv_GetJNIEnvNewFrame): New function.
4557 (_Jv_LookupJNIMethod): New function.
4558 (_Jv_JNI_PopSystemFrame): New function.
4559 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4561 2000-03-05 Tom Tromey <tromey@cygnus.com>
4563 Fix for PR libgcj/43:
4564 * include/Makefile.in: Rebuilt.
4565 * include/Makefile.am (include_HEADERS): New define.
4567 2000-03-05 Anthony Green <green@redhat.com>
4569 * gcj/javaprims.h ("Java"): Remove FirstThread.
4571 * configure.host: Fix __NO_MATH_INLNES botch.
4573 * Makefile.in: Rebuilt.
4574 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4575 (gnu/gcj/runtime/FirstThread.h): Moved.
4576 (ordinary_java_source_files): Move FirstThread.java.
4577 * prims.cc: Deal with FirstThread movement.
4579 (_Jv_RunMain): Ditto.
4581 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4582 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4584 2000-03-05 Warren Levy <warrenl@cygnus.com>
4586 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4587 Handle null addresses.
4589 2000-03-04 Anthony Green <green@redhat.com>
4591 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4594 2000-03-04 Anthony Green <green@redhat.com>
4596 * configure: Rebuilt.
4597 * configure.in (ZLIBTESTSPEC): New macro.
4598 (GCTESTSPEC): New macro.
4599 (LIBGCJTESTSPEC): New macro.
4600 * libgcj-test.spec.in: New file.
4602 2000-03-02 Tom Tromey <tromey@cygnus.com>
4604 * include/java-interp.h: Don't include MethodInvocation.h.
4605 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4606 * Makefile.in: Rebuilt.
4607 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4608 (ordinary_java_source_files): Don't mention
4609 MethodInvocation.java.
4610 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4611 * interpret.cc (MethodInvocation::continue1): Removed.
4612 (run): Handle exceptions here.
4613 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4615 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4617 (defineClass2): Removed.
4619 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4621 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4623 (hack_call): Removed.
4625 * java/lang/Class.h (Class): Removed hackRunInitializers,
4627 * java/lang/natClass.cc (hackRunInitializers): Removed.
4628 (initializeClass): Catch exceptions here.
4629 Include ExceptionInInitializerError.h.
4630 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4633 * java/lang/Object.h (Object): Don't mention hack12_6.
4634 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4636 * java/lang/Object.java (hack12_6): Removed.
4638 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4639 (start): Use run_, not run__.
4640 * java/lang/Thread.java (run_): Renamed from run__; old run_
4643 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4644 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4645 (_Jv_JNI_DefineClass): Likewise.
4646 (_Jv_JNI_ThrowNew): Likewise.
4647 (_Jv_JNI_AllocObject): Likewise.
4648 (_Jv_JNI_GetAnyMethodID): Likewise.
4649 (_Jv_JNI_CallAnyMethodV): Likewise.
4650 (_Jv_JNI_CallAnyMethodA): Likewise.
4651 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4652 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4653 (_Jv_JNI_GetAnyFieldID): Likewise.
4654 (_Jv_JNI_NewString): Likewise.
4655 (_Jv_JNI_NewStringUTF): Likewise.
4656 (_Jv_JNI_GetStringUTFChars): Likewise.
4657 (_Jv_JNI_NewObjectArray): Likewise.
4658 (_Jv_JNI_NewPrimitiveArray): Likewise.
4659 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4660 (_Jv_JNI_GetStringRegion): Likewise.
4661 (_Jv_JNI_GetStringUTFRegion): Likewise.
4662 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4663 (_Jv_JNI_MonitorEnter): Likewise.
4664 (_Jv_JNI_MonitorExit): Likewise.
4665 (_Jv_JNI_ToReflectedField): Likewise.
4666 (_Jv_JNI_ToReflectedMethod): Likewise.
4667 (_Jv_JNI_RegisterNatives): Likewise.
4668 (_Jv_JNI_AttachCurrentThread): Likewise.
4669 (_Jv_JNI_DestroyJavaVM): Likewise.
4671 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4673 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4674 error caused by the incorrect casting of a long to an int.
4676 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4678 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4679 SIGSEV caused by use of the wrong instance variable.
4681 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4683 * java/io/File.java (File(String, String)): For dirPath, treat an
4684 empty String the same as `null'.
4686 2000-02-26 Anthony Green <green@cygnus.com>
4688 * gnu/gcj/io/MimeTypes.java: Test for null.
4690 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4691 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4693 * java/net/URLConnection.java: Update copyright notice.
4695 2000-02-25 Tom Tromey <tromey@cygnus.com>
4697 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4700 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4702 * java/net/URLConnection.java (initializeDateFormats): New
4704 (getHeaderFieldDate): Call initializeDateFormats if required.
4705 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4707 Fix for PR libgcj/38.
4709 2000-02-24 Warren Levy <warrenl@cygnus.com>
4711 * java/math/BigInteger.java(ival): Made private.
4715 2000-02-20 Anthony Green <green@cygnus.com>
4717 * Makefile.in: Rebuilt.
4718 * Makefile.am (ordinary_java_source_files): Add
4719 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4721 * scripts/MakeDefaultMimeTypes.java: New file.
4722 * scripts/mime.types: New file.
4723 * scripts/classes.pl: Moved from top level.
4724 * classes.pl: Moved to scripts directory.
4726 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4728 * gnu/gcj/io/MimeTypes.java: New file.
4729 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4731 2000-02-20 Tom Tromey <tromey@cygnus.com>
4733 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4735 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4737 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4740 2000-02-18 Tom Tromey <tromey@cygnus.com>
4742 * include/jvm.h (_Jv_GetJavaVM): Declare.
4743 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4744 (_Jv_MethodBase::get_method): New method.
4745 (_Jv_JNIMethod::set_function): New method.
4746 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4747 (_Jv_JNI_RegisterNatives): New function.
4748 (_Jv_JNIFunctions): Updated for new functions.
4749 (_Jv_GetJavaVM): New function.
4750 (_Jv_JNI_GetJavaVM): Use it. Now static.
4751 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4752 is already a Java thread but does not have a JNIEnv yet.
4754 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4757 2000-02-17 Tom Tromey <tromey@cygnus.com>
4759 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4762 2000-02-16 Tom Tromey <tromey@cygnus.com>
4764 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4766 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4767 (_Jv_JNI_NewObject): Likewise.
4768 (_Jv_JNI_NewObjectA): Likewise.
4769 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4770 as "return" type to _Jv_CallAnyMethodA.
4771 (_Jv_JNI_CallAnyMethodA): Likewise.
4772 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4774 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4777 2000-02-15 Tom Tromey <tromey@cygnus.com>
4779 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4781 (init_cif): Added `rtype_p' argument.
4782 * include/java-interp.h (class _Jv_MethodBase): Added
4784 (class _Jv_InterpMethod): Removed args_raw_size.
4785 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4786 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4787 class pointer as well as the ordinary arguments.
4789 * jni.cc (mangled_name): Skip leading `(' in signature.
4791 * jni.cc (add_char): Added missing `else'.
4793 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4796 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4800 * java/lang/natRuntime.cc (_load): Include library path with
4803 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4806 * java/lang/natThread.cc (dumpStack): Removed.
4807 * java/lang/Thread.java (dumpStack): Implemented.
4809 2000-02-15 Tom Tromey <tromey@cygnus.com>
4811 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4812 with `lib' for loadLibrary. Fixes PR gcj/150.
4814 2000-02-14 Warren Levy <warrenl@cygnus.com>
4816 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4818 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4822 (modPow): Rewritten to not use the naive, slow, brute force approach.
4823 (isProbablePrime): Implemented.
4824 (testBit): Implemented.
4825 (flipBit): Implemented.
4826 (getLowestSetBit): Implemented.
4828 2000-02-16 Anthony Green <green@redhat.com>
4830 * configure.host: Use the same options for i386 and i486 as we do
4833 2000-02-12 Tom Tromey <tromey@cygnus.com>
4835 * java/io/File.java (createTempFile): Use low bits from counter,
4838 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4840 * THANKS: More thanks.
4842 2000-02-11 Tom Tromey <tromey@cygnus.com>
4844 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4845 astore instruction. From Hans Boehm.
4847 2000-02-11 Warren Levy <warrenl@cygnus.com>
4849 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4850 (BigInteger(String)): New constructor.
4851 (not): Rewritten using version from Kawa's BitOps class.
4852 (valueOf): New private methods from Kawa's BitOps class.
4859 (andNot): Implemented.
4860 (clearBit): Implemented.
4861 (setBit): Implemented.
4862 (bitCount): Implemented.
4863 (toByteArray): Implemented.
4865 2000-02-11 Tom Tromey <tromey@cygnus.com>
4867 * java/io/File.java (nextValue): Now synchronized.
4869 2000-02-10 Tom Tromey <tromey@cygnus.com>
4871 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4872 * java/io/FileDescriptor.java (EXCL): New static field.
4873 * java/io/File.java (tmpdir): New static field.
4874 (createTempFile): New method.
4875 (nextValue): New method.
4876 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4879 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4880 (jboolean): Declare as an attributed int, not a bool.
4881 (_Jv_func): Declare differently for C.
4883 * gnu/gcj/jni/natNativeThread.cc: New file.
4884 * gnu/gcj/jni/NativeThread.java: New file.
4885 * java/lang/Thread.java (data): Now a RawData.
4886 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4888 * Makefile.in: Rebuilt.
4889 * Makefile.am (java/lang/Thread.h): New target.
4890 (ordinary_java_source_files): Added NativeThread.java.
4891 (nat_source_files): Added natNativeThread.cc.
4892 * java/lang/natThread.cc: Include <jni.h>
4893 (struct natThread): Added `jni_env' field.
4894 (_Jv_GetCurrentJNIEnv): New function.
4895 (_Jv_SetCurrentJNIEnv): Likewise.
4896 (initialize_native): Initialize jni_env.
4898 * jni.cc (ThreadGroupClass): New define.
4899 (_Jv_JNI_InvokeFunctions): New structure.
4900 (JNI_GetCreatedJavaVMs): New function.
4901 (the_vm): New global.
4902 (JNI_GetDefaultJavaVMInitArgs): New function.
4903 Include NativeThread.h.
4904 (NativeThreadClass): New define.
4905 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4906 (_Jv_JNI_DestroyJavaVM): New function.
4907 (_Jv_JNI_AttachCurrentThread): New function.
4908 (_Jv_JNI_DetachCurrentThread): New function.
4909 (_Jv_JNI_GetEnv): New function.
4910 (JNI_CreateJavaVM): New function.
4911 (_Jv_JNI_GetJavaVM): New function.
4912 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4913 * include/jni.h (JavaVMAttachArgs): New structure.
4914 (JNI_EDETACHED): New define.
4915 (JNI_EVERSION): Likewise.
4916 (JavaVM): Define properly.
4917 (struct JNIInvokeInterface): New structure.
4918 (class _Jv_JavaVM): New class.
4919 (JNI_OnLoad, JNI_OnUnload): Declare.
4920 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4921 JNI_GetCreatedJavaVMs): Declare.
4922 (JavaVMInitArgs): New typedef.
4923 (JavaVMOption): Likewise.
4924 (JNI_ERR): New define.
4927 2000-02-10 Andrew Haley <aph@cygnus.com>
4929 * interpret.cc: Don't include fdlibm.h.
4930 Replace #if with #ifdef throughout.
4931 Declare extern __ieee754_fmod.
4932 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4934 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4935 Search class hierarchy for superclass vtable.
4937 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4938 off the end of a pointer list.
4940 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4944 2000-02-09 Tom Tromey <tromey@cygnus.com>
4946 * java/lang/natRuntime.cc (_load): Call add_library.
4947 (loadLibraryInternal): Likewise.
4949 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4950 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4951 (Output_iconv::finalize): Likewise.
4953 2000-02-08 Tom Tromey <tromey@cygnus.com>
4955 * java/util/Properties.java (setProperty): New method.
4956 (store): New method.
4958 2000-02-07 Tom Tromey <tromey@cygnus.com>
4960 * java/lang/Runtime.java (_load): Declare.
4961 (load, loadLibrary): Wrote in terms of _load.
4962 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4964 (loadLibrary): Likewise.
4966 (_load): New method.
4967 (loadLibrary, load): Removed.
4969 * jni.cc (ThrowableClass): New define.
4970 (_Jv_JNI_Throw): Check argument.
4971 (_Jv_JNI_ThrowNew): Likewise.
4972 (wrap_value): Don't wrap object if it is NULL.
4973 (_Jv_JNI_DefineClass): Use wrap_value.
4974 (_Jv_JNI_FindClass): Likewise.
4975 (_Jv_JNI_GetSuperclass): Likewise.
4976 (_Jv_JNI_ExceptionOccurred): Likewise.
4977 (_Jv_JNI_AllocObject): Likewise.
4978 (_Jv_JNI_GetObjectClass): Likewise.
4979 (_Jv_JNI_NewString): Likewise.
4980 (_Jv_JNI_NewStringUTF): Likewise.
4981 (_Jv_JNI_NewObjectArray): Likewise.
4982 (_Jv_JNI_GetObjectArrayElement): Likewise.
4983 (_Jv_JNI_NewPrimitiveArray): Likewise.
4984 (_Jv_JNI_ToReflectedField): Likewise.
4985 (_Jv_JNI_ToReflectedMethod): Likewise.
4986 (_Jv_JNI_AllocObject): Check argument.
4987 (_Jv_JNI_NewObjectV): Likewise.
4988 (_Jv_JNI_NewObject): Likewise.
4989 (_Jv_JNI_NewObjectA): Likewise.
4990 (_Jv_JNI_GetObjectClass): Likewise.
4991 (_Jv_JNI_GetField): Likewise.
4992 (_Jv_JNI_SetField): Likewise.
4994 * interpret.cc (PUSHL): Don't use expression statement.
4999 * jni.cc (add_char): Conditional on INTERPRETER.
5000 (mangled_name): Likewise.
5002 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5004 (class _Jv_JNIMethod): Likewise.
5006 2000-02-04 Warren Levy <warrenl@cygnus.com>
5008 * Makefile.am: Added MPN.java and BigInteger.java.
5009 * Makefile.in: Rebuilt.
5010 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5012 * java/math/BigInteger.java: New file. Based primarily on
5013 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5015 2000-02-04 Tom Tromey <tromey@cygnus.com>
5017 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5019 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5020 if the method is native.
5021 * resolve.cc (ncode): Don't handle native methods.
5022 (_Jv_JNIMethod::ncode): New method.
5023 (_Jv_PrepareClass): Handle native methods.
5024 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5025 Include AbstractMethodError.h.
5026 (add_char): New function.
5027 (mangled_name): Likewise.
5028 * include/java-interp.h (class _Jv_JNIMethod): New class.
5029 (class _Jv_MethodBase): New class.
5030 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5031 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5034 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5035 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5036 libraries): New globals.
5037 (add_library): New function.
5038 (_Jv_FindSymbolInExecutable): New function.
5040 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5043 2000-02-04 Andrew Haley <aph@cygnus.com>
5045 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5046 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5047 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5048 printStackTrace to printRawStackTrace.
5050 2000-02-03 Tom Tromey <tromey@cygnus.com>
5052 * java/util/Calendar.java (toString): New method.
5053 * java/util/SimpleTimeZone.java (clone): New method.
5054 (toString): New method.
5055 * java/util/TimeZone.java (clone): New method.
5056 * java/text/SimpleDateFormat.java (clone): New method.
5057 * java/text/NumberFormat.java (clone): New method.
5058 (equals): New method.
5059 * java/text/Format.java (clone): New method.
5060 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5062 (clone): New method.
5063 * java/text/DateFormat.java (clone): New method.
5064 * java/text/Collator.java (clone): New method.
5066 2000-02-03 Tom Tromey <tromey@cygnus.com>
5068 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5071 2000-02-01 Tom Tromey <tromey@cygnus.com>
5073 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5074 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5075 constructing the closure if the function is native.
5076 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5077 a template function, #if'd out, or static.
5078 Include <java-interp.h>.
5080 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5082 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5084 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5085 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5087 (wrap_value): New function.
5088 (_Jv_JNI_CallAnyMethodV): Use it.
5089 (_Jv_JNI_CallAnyMethodA): Likewise.
5090 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5091 (_Jv_JNI_GetStaticField): Likewise.
5093 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5094 (_Jv_JNI_GetStaticField): Likewise.
5096 2000-01-31 Tom Tromey <tromey@cygnus.com>
5098 * prims.cc (_Jv_MallocUnchecked): New function.
5099 (main_init): Call _Jv_JNI_Init.
5100 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5101 (_Jv_JNI_Init): Declare.
5102 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5104 (_Jv_JNI_NewGlobalRef): New function.
5105 (_Jv_JNI_DeleteGlobalRef): New function.
5106 (_Jv_JNI_DeleteLocalRef): New function.
5107 (_Jv_JNI_conversion_call): Initialize and clear local reference
5109 (_Jv_JNI_NewLocalRef): New function.
5110 (struct _Jv_JNI_LocalFrame): New structure.
5111 (_Jv_JNI_PushLocalFrame): New function.
5112 (_Jv_JNI_EnsureLocalCapacity): New function.
5113 (FRAME_SIZE): New define.
5114 (_Jv_JNI_GetStringChars): Mark string, not characters.
5115 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5116 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5117 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5119 (_Jv_JNI_DefineClass): Make return value a local ref.
5120 (_Jv_JNI_FindClass): Likewise.
5121 (_Jv_JNI_GetSuperclass): Likewise.
5122 (_Jv_JNI_ExceptionOccurred): Likewise.
5123 (_Jv_JNI_AllocObject): Likewise.
5124 (_Jv_JNI_GetObjectClass): Likewise.
5125 (_Jv_JNI_CallAnyMethodV): Likewise.
5126 (_Jv_JNI_NewString): Likewise.
5127 (_Jv_JNI_NewStringUTF): Likewise.
5128 (_Jv_JNI_NewObjectArray): Likewise.
5129 (_Jv_JNI_GetObjectArrayElement): Likewise.
5130 (_Jv_JNI_ToReflectedField): Likewise.
5131 (_Jv_JNI_ToReflectedMethod): Likewise.
5132 (_Jv_JNIFunctions): Updated table for new functions.
5133 (_Jv_JNI_Init): New function.
5134 (mark_for_gc): Wrote.
5135 (unmark_for_gc): Wrote.
5136 * include/jni.h (struct JNINativeInterface): Removed name from
5137 PopLocalFrame parameter.
5138 (class _Jv_JNIEnv): Added `locals' field.
5140 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5142 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5145 2000-01-30 Tom Tromey <tromey@cygnus.com>
5147 * include/config.h.in: Rebuilt.
5148 * acconfig.h (HAVE_ICONV): Define.
5149 * configure: Rebuilt.
5150 * configure.in: Check for `iconv' function.
5151 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5152 no specific encoder exists.
5153 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5154 no specific encoder exists.
5155 * Makefile.in: Rebuilt.
5156 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5158 (nat_source_files): Added natIconv.cc.
5159 * gnu/gcj/convert/natIconv.cc: New file.
5160 * gnu/gcj/convert/Input_iconv.java: New file.
5161 * gnu/gcj/convert/Output_iconv.java: New file.
5163 2000-01-28 Tom Tromey <tromey@cygnus.com>
5165 * Makefile.in: Rebuilt.
5166 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5168 2000-01-26 Tom Tromey <tromey@cygnus.com>
5170 * gcj/method.h (JvNumMethods): Moved from Class.h.
5171 (JvGetFirstMethod): Likewise.
5172 * java/lang/Class.h (Object): Updated decl of
5173 _Jv_JNI_ToReflectedField.
5174 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5175 * Makefile.in: Rebuilt.
5176 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5177 argument of _Jv_JNI_ToReflectedField.
5178 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5180 (java/lang/reflect/Method.h): Likewise.
5181 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5183 (jweak): New typedef.
5184 (struct JNINativeInterface): Correctly declare remaining entries.
5185 * jni.cc: Include Class.h, ClassLoader.h.
5186 (_Jv_JNI_FindClass): New function.
5187 (_Jv_JNI_DefineClass): New function.
5188 (_Jv_JNI_conversion_call): New function.
5189 (_Jv_JNI_FindClass): Use current class loader to find class.
5190 (_Jv_JNI_ExceptionCheck): New function.
5191 (_Jv_JNI_FromReflectedField): Now static.
5192 (MethodClass): New define.
5193 (_Jv_JNI_FromReflectedMethod): New function.
5194 (_Jv_JNI_ToReflectedMethod): Likewise.
5196 (_Jv_JNI_IsAssignableFrom): Renamed.
5197 (_Jv_JNI_GetStringRegion): New function.
5198 Include StringIndexOutOfBoundsException.h.
5199 (_Jv_JNI_GetStringUTFRegion): New function.
5200 (_Jv_JNIFunctions): Updated for new functions.
5201 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5202 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5203 (_Jv_JNI_GetStringCritical): New function.
5204 (_Jv_JNI_ReleaseStringCritical): Likewise.
5205 (get_throwable): Removed.
5206 (GCJ_JV_JNIENV_FRIEND): Removed.
5207 (__GCJ_JNI_IMPL__): Define.
5210 * resolve.cc (get_ffi_type_from_signature): Handle case where
5213 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5215 * interpret.cc (run): Don't call println.
5216 Don't include PrintStream.h.
5218 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5219 nameIndex. Use "jint" as type for boffset.
5220 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5222 (Class): Likewise. Also changed type of method_count,
5223 vtable_method_count, size_in_bytes, field_count,
5224 static_field_count, interface_count.
5225 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5228 2000-01-21 Tom Tromey <tromey@cygnus.com>
5230 * java/lang/reflect/natConstructor.cc (newInstance): Use
5232 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5233 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5234 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5237 (invoke): Use _Jv_CallAnyMethodA.
5239 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5240 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5242 (struct _Jv_Method): Added getNextMethod method.
5243 (JvNumMethods): New function.
5244 (JvGetFirstMethod): Likewise.
5245 * gcj/field.h (JvGetFirstStaticField): New function.
5246 (JvNumStaticFields): Likewise.
5247 (getNextField): Renamed from getNextInstanceField.
5248 (struct _Jv_Field): New method getClass.
5249 * jni.cc: Wrote many new functions.
5250 * include/jni.h (JNI_TRUE): Define.
5251 (JNI_FALSE): Likewise.
5252 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5253 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5254 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5255 (jfieldID, jmethodID): Likewise.
5256 (JNI_COMMIT, JNI_ABORT): New defines.
5257 (JNINativeMethod): New struct.
5258 (struct JNINativeInterface): Correctly declared more entries.
5259 (class _Jv_JNIEnv): Added `ex' member.
5260 (JNI_VERSION_1_1): New define.
5261 (JNI_VERSION_1_2): Likewise.
5263 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5264 getNextInstanceField.
5266 2000-01-20 Tom Tromey <tromey@cygnus.com>
5268 * resolve.cc (StringClass): Removed.
5269 * defineclass.cc (StringClass): Removed.
5271 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5275 2000-01-19 Tom Tromey <tromey@cygnus.com>
5277 * interpret.cc (PC_REGISTER_ASM): Removed.
5279 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5280 From Bryce McKinlay.
5282 * All files: Updated copyright to reflect Cygnus purchase.
5284 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5286 * configure: Rebuilt.
5287 * configure.in: Recognize --disable-interpreter.
5289 2000-01-18 Andrew Haley <aph@cygnus.com>
5291 * name-finder.cc (lookup): Check for dladdr function.
5292 acconfig.h (HAVE_DLADDR): Add.
5293 configure.in: Check for HAVE_DLADDR
5295 include/config.h.in: Rebuilt.
5297 2000-01-17 Andrew Haley <aph@cygnus.com>
5299 * prims.cc (_Jv_RunMain): Set the name of this executable.
5301 2000-01-17 Tom Tromey <tromey@cygnus.com>
5303 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5304 when backtrace can't be computed.
5306 * configure: Rebuilt.
5307 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5309 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5310 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5311 (_Jv_FindClassInCache): Likewise.
5312 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5313 (findSystemClass): Try to load class from compiled module.
5315 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5316 (loadLibrary): Likewise.
5317 (lt_preloaded_symbols): Define.
5318 (loadLibraryInternal): New method.
5319 * include/config.h.in: Rebuilt.
5320 * acconfig.h (USE_LTDL): Added.
5321 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5322 (INCLUDES): Added $(INCLTDL).
5323 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5324 (libgcj_la_LIBADD): Likewise.
5325 * aclocal.m4, configure: Rebuilt.
5326 * configure.in: Added libltdl support.
5328 2000-01-15 Tom Tromey <tromey@cygnus.com>
5330 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5332 2000-01-14 Andrew Haley <aph@cygnus.com>
5334 * java/lang/natThrowable.cc: New file.
5336 * java/lang/Throwable.java (fillInStackTrace): Make native.
5337 (printStackTrace): Call native method to do this.
5338 (Throwable): Call fillInStackTrace.
5339 (stackTrace): New variable.
5341 * include/jvm.h: Add _Jv_ThisExecutable functions.
5343 * prims.cc: (_Jv_execName): New variable.
5344 (catch_segv): Call fillInStackTrace.
5346 (_Jv_ThisExecutable): New functions.
5347 (JvRunMain): Set the name of this executable.
5349 * Makefile.am: Add java/lang/natThrowable.cc.
5351 * Makefile.in: Rebuilt.
5353 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5355 * configure.in: Force link with __frame_state_for in
5356 FORCELIBGCCSPEC. Add new checks for backtrace.
5357 * include/config.h.in: Rebuilt.
5359 * name-finder.cc: New file.
5360 * include/name-finder.h: New file.
5362 2000-01-16 Anthony Green <green@cygnus.com>
5364 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5367 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5369 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5371 2000-01-13 Tom Tromey <tromey@cygnus.com>
5373 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5374 not system loader, as initiating loader.
5376 2000-01-11 Tom Tromey <tromey@cygnus.com>
5378 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5379 HP/UX. From David Scott Urban.
5381 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5383 * java/lang/natMath.cc (pow): Cast args to `double', not
5386 (IEEEremainder): Likewise.
5387 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5388 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5390 2000-01-09 Anthony Green <green@cygnus.com>
5392 * java/lang/natString.cc (init): Test for overflow condition
5393 during out of bounds check.
5394 (getChars): Throw StringIndexOutOfBoundsException, not
5395 ArrayIndexOutOfBoundsException.
5397 (regionMatches): Obey case option during string comparison.
5399 * configure.host (ligcj_interpreter): New variable. Enable
5400 interpreter by default on IA-32.
5401 * configure.in: Examine libgcj_interpreter.
5402 * configure: Rebuilt.
5404 2000-01-07 Tom Tromey <tromey@cygnus.com>
5406 * mauve-libgcj: Don't disable ClassTest.
5408 * java/lang/natClass.cc (getClasses): Wrote.
5410 2000-01-06 Tom Tromey <tromey@cygnus.com>
5412 * java/lang/natClass.cc (_getConstructors): Correctly check
5413 whether method name is the init name.
5414 (getMethod): Look at accflags on method in `klass', not `this'.
5416 2000-01-05 Tom Tromey <tromey@cygnus.com>
5418 * java/lang/natClass.cc (getMethod): Compute offset relative to
5419 `klass's methods table, not `this's table.
5421 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5422 In unwrapping/widening case, check whether `k' is null, not
5423 whether it is primitive. Initialize `num' from `argelts', not
5424 `paramelts'. Correct create and pass arguments to ffi_call.
5425 Don't let presence of `this' argument affect index used to look in
5427 (COPY): Set appropriate element in `values' vector.
5429 * java/lang/natClass.cc: Include <gcj/method.h>.
5431 * java/lang/Class.h (_getMethods): Correctly declare as private,
5434 * java/lang/Class.h (_getMethods): Declare.
5435 * java/lang/Class.java (_getMethods): Declare.
5436 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5437 (getDeclaredClasses): Always return empty array.
5438 (_getMethods): New method.
5439 (getMethods): Wrote.
5440 (getDeclaredMethod): Return `rmethod'.
5441 (finit_name): New global.
5442 (getDeclaredMethods): Check for finit_name.
5443 (_getMethods): Likewise.
5444 (getMethod): Only return public methods.
5446 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5447 jboolean and select correct ffi type on that basis.
5448 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5449 Constructor call always has `void' return type.
5451 2000-01-04 Tom Tromey <tromey@cygnus.com>
5453 * java/lang/Class.h (getSignature): Updated.
5454 * java/lang/Class.java (getSignature): Updated.
5455 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5457 (getConstructor): Ensure constructor is public.
5458 (_getConstructors): Check for public-ness of constructor when
5459 `declared' is false, not when it is true.
5461 2000-01-04 Warren Levy <warrenl@cygnus.com>
5463 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5465 (receive): Set the sender's address in the DatagramPacket.
5467 2000-01-04 Tom Tromey <tromey@cygnus.com>
5469 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5470 declaring class as return_type argument to
5471 _Jv_CallNonvirtualMethodA.
5472 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5473 constructor case, create object and use it as `this' argument.
5474 * java/lang/Class.h (_getConstructors): Declare.
5475 (_getFields): Declare.
5476 * java/lang/Class.java (getConstructors): Wrote.
5477 (_getConstructors): New native method.
5478 (getDeclaredConstructors): Wrote.
5479 (_getFields): Declare new native method.
5480 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5482 (getMethod): Work correctly when class is primitive.
5483 (getDeclaredMethods): Likewise. Compute offset using `method',
5485 (getDeclaredMethod): Likewise.
5486 (getConstructor): Wrote.
5487 (ConstructorClass): New define.
5488 (getDeclaredConstructor): Wrote.
5489 (_getConstructors): New method.
5490 (_getFields): New method.
5493 * Makefile.in: Rebuilt.
5494 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5496 * prims.cc: Remove `#pragma implementation'.
5497 * gcj/array.h: Remove `#pragma interface'.
5499 * prims.cc (_Jv_equaln): New function.
5500 * java/lang/Class.java (getSignature): Declare.
5501 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5502 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5504 (getSignature): New method.
5505 (getDeclaredMethod): Wrote.
5507 Include StringBuffer.h.
5508 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5509 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5511 (getSignature): Declare.
5512 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5513 (_Jv_equaln): Declare.
5514 (_Jv_CallNonvirtualMethodA): Declare.
5515 * Makefile.in: Rebuilt.
5516 * Makefile.am (nat_source_files): Added natConstructor.cc.
5517 (java/lang/reflect/Constructor.h): New target.
5518 * java/lang/reflect/natConstructor.cc: New file.
5519 * java/lang/reflect/Constructor.java (newInstance): Now native.
5520 (declaringClass): Renamed from decl_class.
5521 (offset): Renamed from index.
5522 (getType): New native method.
5523 (getModifiers): Now native.
5524 (getParameterTypes): Call getType if required.
5525 (hashCode): Include hash code from declaring class.
5526 (modifiers): Removed.
5527 (toString): Call getType if required.
5528 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5529 * java/lang/reflect/natMethod.cc (hack_call): New method.
5530 Removed `#if 0' around FFI code.
5531 Include <gnu/gcj/RawData.h>.
5532 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5533 IllegalArgumentException when argument object and class disagree.
5534 (_Jv_GetTypesFromSignature): New function.
5536 (ObjectClass): New define.
5537 (_Jv_CallNonvirtualMethodA): New function.
5538 * java/lang/reflect/Method.java (hack_trampoline): New method.
5539 (hack_call): New native method.