1 2001-02-23 Per Bothner <per@bothner.com>
3 Change to sometimes include class name in ClassFormatError message.
4 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
5 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
6 boolean instead of throwing ClassFormatError on failure.
7 (throw_class_format_error): Change static function to method.
8 (_Jv_ClassReader): New inline methods verify_identifier,
9 two overloads of verify_classname, verify_field_signature, and
10 verify_method_signature
11 * include/java-interp.h: Update declarations to return bool.
12 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
13 ClassFormatError since _Jv_VerifyClassName now returns bool.
15 2001-02-23 Per Bothner <per@bothner.com>
17 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
18 c++filt to select java-style output.
20 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
23 * java/util/HashMap.java (HashMap): Don't throw exception for
24 loadFactor > 1. Add exception messages.
25 * java/util/Hashtable.java (Hashtable): Likewise.
27 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
29 Disable libgcjx by default.
30 * configure.in: Add support for --enable-java-awt configure option.
31 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
32 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
33 * Makefile.in: Rebuilt.
36 2001-02-20 Tom Tromey <tromey@redhat.com>
38 * java/io/PipedWriter.java (flush): Throw exception if stream
40 * java/io/OutputStreamWriter.java (write): Throw exception if
42 (writeChars): Don't throw exception if stream closed.
43 * java/io/CharArrayWriter.java (closed): New field.
45 (flush): Throw exception if stream closed.
46 (reset): Synchronize on correct lock. Allow stream to be
48 (toCharArray, toString, writeTo): Synchronize.
49 (write): Throwe exception if stream closed.
50 * java/io/BufferedWriter.java (close): Clear `buffer'.
51 (flush): Throw IOException if stream is closed.
54 2001-02-16 Tom Tromey <tromey@cygnus.com>
56 * java/lang/ThreadGroup.java (activeCount): Only include threads
58 (enumerate): Likewise.
60 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
62 * java/lang/Integer.java (getInteger): Return default argument if
63 property is not set. Don't call decode with null argument.
64 * java/lang/Long.java (getLong): Likewise.
66 * java/io/CharArrayReader.java (CharArrayReader): Throw
67 IllegalArgumentException if constructor arguments are illegal.
68 (ready): Return false if no more characters can be read.
69 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
71 2001-02-17 Mark Wielaard <mark@klomp.org>
73 * java/util/TimerTask.java: New version from Classpath.
75 2001-02-17 Mark Wielaard <mark@klomp.org>
77 Remerge with Classpath
78 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
79 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
80 (readByte): Use convertToByte().
81 (readChar): Use convertToChar().
82 (readInt): Use convertToInt().
83 (readLong): Use convertToLong().
84 (readShort): Use convertToShort().
85 (readUnsignedByte): Use convertToUnsignedByte().
86 (readUnsignedShort): Use convertToUnsignedShort().
87 (readUTF): Use convertToUTF().
89 (convertToBoolean): Resurrected.
90 (convertToByte): Ditto.
91 (convertToChar): Ditto.
92 (convertToInt): Ditto.
93 (convertToLong): Ditto.
94 (convertToShort): Ditto.
95 (convertToUnsignedByte): Ditto.
96 (convertToUnsignedShort): Ditto.
97 (convertToUTF): Ditto.
99 2001-02-17 Mark Wielaard <mark@klomp.org>
103 2001-02-17 Mark Wielaard <mark@klomp.org>
105 * java/io/DataInputStream.java: update copyright notice
106 * java/io/PrintWriter.java: idem
107 * java/io/Reader.java: idem
108 * java/io/StreamTokenizer.java: idem
109 * java/io/StringReader.java: idem
110 * java/lang/reflect/ReflectPermission.java: idem
112 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
114 * java/util/TreeSet.java (clone): Made subclass safe, use
115 super.clone(), not new.
116 * java/util/TreeMap.java (clone): Likewise.
118 * java/util/TreeMap.java (nil): Made non-final.
119 (clone): Create new nil node for copy.
121 * java/util/HashSet.java (clone): Made subclass safe, use
122 super.clone(), not new.
124 2001-02-14 Andrew Haley <aph@redhat.com>
126 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
129 2001-02-15 Anthony Green <green@redhat.com>
131 * defineclass.cc: Don't include alloca.h.
132 (prepare_pool_entry): Convert alloca to __builtin_alloca.
133 * interpret.cc (run_normal): Ditto.
135 * java/lang/natDouble.cc (parseDouble): Ditto.
137 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
139 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
141 * java/util/Collections.java (ReverseComparator): New static class.
142 (reverseOrder): Return static instance of ReverseComparator.
144 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
145 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
146 Rectangle.clone(), not Object.clone().
148 * java/util/HashSet.java (clone): Remove try/catch.
150 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
151 * java/util/Collection.java: Likewise.
152 * java/util/Comparator.java: Likewise.
153 * java/util/Dictionary.java: Likewise.
154 * java/util/Iterator.java: Likewise.
155 * java/util/ListIterator.java: Likewise.
156 * java/util/Map.java: Likewise.
157 * java/util/Set.java: Likewise.
159 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
161 * java/util/TreeMap.java: New file.
162 * java/util/TreeSet.java: New file.
163 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
164 * Makefile.in: Rebuilt.
165 * java/util/HashSet.java (clone): Use constructor instead of calling
167 * java/util/SortedSet.java: Sync with classpath.
168 * java/util/HashMap.java (hash): Use if statement instead of ternary,
171 * java/lang/natClass.cc (getSignature): Don't try to dereference
172 param_types if it is null. Instead, take this to mean "no parameters".
173 * java/lang/TreeMap.java (TreeIterator.next): Throw
174 NoSuchElementException in preference to ConcurrentModificationException.
175 (TreeIterator.remove): Throw IllegalStateException in preference to
176 ConcurrentModificationException.
177 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
178 throw a NoSuchElementException.
179 (SubMap.lastKey): Likewise.
181 2001-02-13 Tom Tromey <tromey@redhat.com>
183 * java/io/PipedReader.java (ready): Throw IOException if pipe
185 * java/io/FilterReader.java (close): Don't clear `in'.
186 * java/io/CharArrayReader.java (mark): Throw IOException if stream
188 (read, ready, reset, skip): Added exception message.
189 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
190 Perform checkStatus check inside synchronized block.
192 2001-02-13 Tom Tromey <tromey@redhat.com>
194 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
196 2001-02-13 Tom Tromey <tromey@redhat.com>
198 Fix for PR libgcj/1351:
199 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
201 Include Thread.h and InterruptedIOException.h.
203 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
205 * java/io/BlockDataException.java: Removed.
206 * java/io/ObjectInputStream.java (readObject): Throw
207 StreamCorruptedException, not BlockDataException.
208 * Makefile.am: Remove BlockDataException.
209 * Makefile.in: Rebuild.
211 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
212 Tom Tromey <tromey@redhat.com>
214 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
217 2001-02-09 Tom Tromey <tromey@redhat.com>
219 * java/util/Timer.java: New version from Classpath.
221 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
223 * java/lang/Double.java (doubleToRawLongBits): Now native.
224 * java/lang/Float.java (floatToRawIntBits): Likewise.
225 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
226 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
228 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
230 * java/io/File.java (java.net): Imported.
231 (getAbsoluteFile): Added.
232 (getCanonicalPath): Likewise.
235 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
237 * java/lang/Byte.java: Remove redundant instanceof and null checks.
238 * java/lang/Integer.java: Likewise.
239 * java/lang/Long.java: Likewise.
240 * java/lang/Short.java: Likewise.
241 * java/lang/Double.java: Likewise.
242 (doubleToRawLongBits): New method.
243 * java/lang/Float.java: As above.
244 (floatToRawIntBits): New method.
246 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
247 IOException if stream closed.
249 2001-02-08 Tom Tromey <tromey@redhat.com>
251 * java/lang/Float.java (parseFloat): New method.
253 2001-02-08 Tom Tromey <tromey@redhat.com>
255 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
256 * java/io/InputStreamReader.java (ready, read): Throw IOException
257 if stream has been closed.
259 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
261 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
262 Change sources.redhat.com and sourceware.cygnus.com references to
265 2001-02-07 Tom Tromey <tromey@redhat.com>
267 Fix for PR libgcj/1906:
268 * java/text/MessageFormat.java (setLocale): Use named class
271 (format(Object,StringBuffer,FieldPosition)): Special case if
272 argument is an Object[].
274 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
276 * java/util/Arrays.java: Removed "cmp" methods.
277 (qsort): Don't use "cmp".
280 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
282 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
283 sort. Fix for PR java/1895.
285 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
287 * configure.host: Use sjlj-exceptions for Alpha.
289 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
291 * libgcj.spec.in: Don't force static libgcc into the executable.
292 * configure.in (FORCELIBGCCSPEC): Removed.
293 * configure: Rebuilt.
295 2001-01-31 Tom Tromey <tromey@redhat.com>
297 * Makefile.in: Rebuilt.
298 * Makefile.am (LTCXXCOMPILE): New macro.
300 2001-01-26 Andrew Haley <aph@redhat.com>
302 (INIT_FPE): Use a direct system call to set the handler.
304 2001-01-27 Richard Henderson <rth@redhat.com>
306 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
308 2001-01-27 Tom Tromey <tromey@redhat.com>
310 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
311 native interface structure.
313 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
315 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
317 (read (byte[], int, int)): Only call readNextBlock() if the block
318 buffer would actually be overrun. Increment blockDataPosition.
319 (callReadMethod): Propagate exceptions from invocation target.
320 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
321 exceptions from invocation target.
323 2001-01-26 Tom Tromey <tromey@redhat.com>
325 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
326 to internal representation.
327 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
328 _Jv_FindClassFromSignature.
330 2001-01-26 Warren Levy <warrenl@redhat.com>
332 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
333 and timezone if they are available on the system.
335 2001-01-24 Tom Tromey <tromey@redhat.com>
337 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
339 2001-01-24 Tom Tromey <tromey@redhat.com>
341 * Makefile.in: Rebuilt.
342 * Makefile.am (c_source_files): Added sf_fabs.c.
343 * java/lang/sf_fabs.c: New file.
345 2001-01-19 Warren Levy <warrenl@redhat.com>
347 * java/text/SimpleDateFormat.java (format): Compute hour for cases
348 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
349 correctly. Adjust properly from 0-23 clock hour.
351 2001-01-17 Mark Wielaard <mark@klomp.org>
353 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
355 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
357 * java/lang/Class.h (isInterface): Move implementation from
358 natClass.cc. Declare inline.
359 (Class): Add default constructor.
360 * java/lang/Object.h: Update comments.
361 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
362 initialize superclass, saving a call if super is already initialized.
364 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
366 * prims.cc (init_prim_class): Deleted.
367 (DECLARE_PRIM_TYPE): Rewritten.
368 * java/lang/Class.h (stdio.h): Include removed.
369 (stddef.h): Included.
370 (java/lang/reflect/Modifier.h): Likewise.
371 (Class): Contructor now takes arguments, initializes fields.
372 (initializePrim): Prototype deleted.
373 * java/lang/natClass.cc (initializePrim): Deleted.
375 2001-01-16 Warren Levy <warrenl@redhat.com>
377 * java/math/BigInteger.java: Update Copyright year.
379 2001-01-16 Hans Boehm <hans_boehm@hp.com>
381 * java/math/BigInteger.java (setShiftRight): Only do negative shift
384 2001-01-14 Mark Wielaard <mark@klomp.org>
385 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
386 (decode): Merge comments with Classpath, don't throw Exception
388 2001-01-12 Tom Tromey <tromey@redhat.com>
390 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
394 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
395 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
396 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
397 * gnu/awt/gtk/GtkLabelPeer.java: New file.
398 * gnu/awt/gtk/GtkButtonPeer.java: New file.
400 * java/lang/natSystem.cc: Include locale.h if it exists.
401 * configure: Rebuilt.
402 * configure.in: Check for locale.h.
404 2001-01-11 Tom Tromey <tromey@redhat.com>
406 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
407 (Cursor(int), getPredefinedCursor): Throw exception if argument
410 2001-01-03 Tom Tromey <tromey@redhat.com>
412 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
413 (getLocationOnScreen): Wrote.
415 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
417 * Makefile.am: Re-enable dependencies.
418 * Makefile.in: Rebuilt.
420 2001-01-10 Warren Levy <warrenl@redhat.com>
422 * java/math/BigDecimal.java (divide): Fixed comment.
424 2001-01-10 Warren Levy <warrenl@redhat.com>
426 Fix for PR libgcj/1596:
427 * java/math/BigDecimal.java (divide): Check newScale for validity.
428 Ensure that BigInteger.pow() is called with a non-negative value.
429 (setScale (int)): New public method.
430 (setScale (int,int)): New public method.
432 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
434 Fix for PR libgcj/1338:
435 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
436 commentChar. Fixed typos in comments.
438 2001-01-08 Warren Levy <warrenl@redhat.com>
440 Fix for PR libgcj/1411:
441 * Makefile.am: Removed java/util/natTimeZone.cc.
442 * Makefile.in: Rebuilt.
443 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
444 missing localized timezone names.
445 * java/lang/System.java (getDefaultTimeZoneId): New private method.
446 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
447 (init_properties): Set user.timezone property.
448 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
449 default timezone names; removed non-standard ones. Use standard
451 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
453 * java/util/TimeZone.java: Add standard ID names per JCL; removed
455 (getDefaultTimeZoneId): Removed.
457 * java/util/natTimeZone.cc: Removed.
459 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
461 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
462 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
463 (_Jv_GetArrayClass): New inline function.
464 (arrayclass): New field.
465 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
466 _Jv_GetArrayElementFromElementType.
467 (_Jv_NewPrimArray): Ditto.
468 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
469 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
470 Set Modifier::ABSTRACT.
471 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
472 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
473 Now synchronized. Array classes are now referenced from
474 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
475 Set array classes' accessibility flags correctly. Optimize so that
476 all array classes share the same IDT.
477 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
478 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
479 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
480 in superclasses from overwriting classes own fields.
481 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
482 Modifier::isAbstract().
483 (null_idt): New static field.
484 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
486 (_Jv_IndexOf): Made inline.
487 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
489 2001-01-08 Tom Tromey <tromey@redhat.com>
491 Fix for PR java/1586:
492 * Makefile.in: Rebuilt.
493 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
495 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
497 * Makefile.am: Use the new "-M -MF" option for generating dependencies
498 from the c++ compiler.
499 * Makefile.in: Rebuilt.
501 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
503 All files with updated copyright.
504 * prims.cc (class _Jv_PrimClass): Removed.
505 (init_prim_class): New function.
506 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
507 `_Jv_PrimClass' in primitive type declarations. Assign to the
508 value returned by `init_prim_class.'
509 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
510 primitive type declarations.
511 (JvPrimClass): Cast to `jclass' removed.
512 * java/lang/Class.h (Class): New constructor.
513 (Class): New copy constructor.
514 (initializePrim): New prototype.
515 (_Jv_PrimClass): Field removed.
516 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
517 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
518 (class java::lang::Object): `finalize' moved up front.
519 * java/lang/natClass.cc
520 (isAssignableFrom): Turned outline.
521 (isInstance): Likewise.
522 (isInterface): Likewise, fixed indentation.
523 (initializePrim): New function.
525 2001-01-07 Anthony Green <green@redhat.com>
527 * Makefile.am (texinfo): Add texinfo target for generating texinfo
529 * Makefile.in: Rebuilt.
531 * scripts/TexinfoDoclet.java: New file.
533 * doc/java-applet.texi, doc/java-lang-reflect.texi,
534 doc/java-awt-color.texi, doc/java-lang.texi,
535 doc/java-awt-datatransfer.texi, doc/java-math.texi,
536 doc/java-awt-event.texi, doc/java-net.texi,
537 doc/java-awt-geom.texi, doc/java-security-spec.texi,
538 doc/java-awt-image.texi, doc/java-security.texi,
539 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
540 doc/java-text.texi, doc/java-beans-beancontext.texi,
541 doc/java-util-jar.texi, doc/java-beans.texi,
542 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
543 doc/java-lang-ref.texi: New files.
545 2001-01-07 Anthony Green <green@redhat.com>
547 * java/net/URLConnection.java (setDoOutput): URLConnection's may
548 be used for both input and output, so don't clear doInput.
550 * java/lang/StringBuffer.java: Fix comments.
552 2001-01-06 Anthony Green <green@redhat.com>
554 * java/beans/PropertyDescriptor.java: Fix comment.
555 * java/io/PushbackReader.java: Fix comment.
556 * java/io/ObjectStreamClass.java: Fix comment.
557 * java/io/DataInputStream.java: Fix comment.
558 * java/io/PipedInputStream.java: Fix comments.
559 * java/io/PipedReader.java: Fix comments.
560 * java/sql/DatabaseMetaData.java: Fix comments.
562 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
564 * java/io/PipedReader: Synchronize on "lock" instead of this.
566 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
568 * java/lang/Thread.java: Update comment.
570 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
571 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
572 * java/io/PipedReader: New implementation based on new
574 * java/io/PipedWriter: Updated to match new PipedReader.
576 2001-01-03 Tom Tromey <tromey@redhat.com>
578 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
579 (getViewportSize): Insets include scrollbar size.
580 (doLayout): Finished.
581 (getScrollPosition): Wrote.
582 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
584 2001-01-02 Tom Tromey <tromey@redhat.com>
586 * java/awt/ScrollPane.java: Wrote.
587 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
590 * java/awt/Panel.java (Panel()): Fixed.
592 * java/awt/Component.java (isShowing): Return false if no peer
593 exists, and true if component is visible and no parent exists.
594 (getLocationOnScreen): Wrote.
595 (getPreferredSize): Removed FIXME comment.
596 (getMinimumSize): Likewise.
597 (getAlignmentX, getAlignmentY): Wrote.
599 (requestFocus): Wrote.
600 (transferFocus): Wrote.
601 (findNextFocusComponent): New method.
604 (enableEvents): Call setEventMask on the peer.
606 * java/awt/Container.java (list): Use super.list() to print self.
607 (findNextFocusComponent): New method.
608 (setLayout): Call invalidate.
609 (findComponentAt): Wrote.
611 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
613 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
614 the correct versions of various linuxthreads functions get linked.
615 * Makefile.in: Rebuilt.
616 * java/lang/natThread.cc (finalize_native): New static function. Call
617 _Jv_ThreadDestroyData.
618 (initialize_native): Register finalizer for "data".
619 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
620 (_Jv_ThreadDestroyData): New prototype.
621 * include/win32-threads.h: Ditto.
622 * include/no-threads.h: Ditto.
623 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
624 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
625 move mutex and condition variable destroy code from:
626 (really_start): ...here.
627 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
628 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
629 (_Jv_ThreadDestroyData): Implemented.
630 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
631 (_Jv_AllocArray): Ditto.
633 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
635 * java/sql/DriverManager.java (getConnection): Don't set user/password
638 2000-12-27 Warren Levy <warrenl@redhat.com>
640 Fix for PR libgcj/1358:
641 * java/lang/System.java: Update Copyright date properly.
642 * java/util/Calendar.java: Fix typo in comment.
643 (set): Set 24-hour clock hour instead of 12-hour clock hour.
644 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
645 initialize times. Spec says to set H:M:S values to zero only if
647 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
648 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
649 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
650 timezones and GMT offsets, being careful to account for units of
651 milliseconds vs. seconds.
653 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
655 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
656 not be assigned to Object.
658 Fix for PR libgcj/1516:
659 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
661 (can_widen): Declared inline. Remove redundant checks for void
662 arguments and char->short conversion. Add special case for boolean
664 (ffi_type): Declared inline.
665 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
667 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
669 * java/sql/SQLWarning.java: Fixed typo in comment.
671 2000-12-26 Tom Tromey <tromey@redhat.com>
673 * java/awt/MenuItem.java (paramString): Now protected.
675 * java/awt/MenuShortcut.java: Implements Serializable.
677 * java/awt/MenuBar.java: Rewrote from scratch.
679 * java/awt/MenuComponent.java (removeNotify): Wrote.
680 Implements Serializable.
682 * java/awt/GridBagConstraints.java (GridBagConstraints): New
685 * java/awt/CheckboxMenuItem.java: Wrote.
687 2000-12-25 Tom Tromey <tromey@redhat.com>
689 * java/awt/MenuContainer.java: Fixed typo.
691 * Makefile.in: Rebuilt.
692 * Makefile.am (awt_java_source_files): Added SystemColor.java.
693 * java/awt/SystemColor.java: New file.
695 * java/awt/Color.java (rgba): Now package-private.
697 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
699 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
702 * java/awt/MenuItem.java (addNotify): New method.
703 (MenuItem(String,MenuShortcut)): New constructor.
704 (setLabel): Notify peer of change.
705 (setEnabled): Likewise.
707 * java/awt/GridLayout.java (toString): New method.
709 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
710 (FlowLayout): Check for LEADING and TRAILING.
711 (setAlignment): Likewise.
712 (layoutContainer): Handle component orientation.
714 * java/awt/Component.java (orientatin): New field.
715 (setComponentOrientation): Wrote.
716 (getComponentOrientation): Wrote.
718 * java/awt/Event.java (Event): Implements Serializable.
719 (consumed): New field for serialization.
720 * java/awt/Dimension.java (Dimension): Implements Serializable.
721 * java/awt/Cursor.java (Cursor): Implements Serializable.
722 * java/awt/Container.java (Container): No longer abstract.
724 * java/awt/Choice.java: Wrote.
725 * java/awt/Checkbox.java: Wrote.
726 * java/awt/ItemSelectable.java: Documented.
727 * java/awt/CheckboxGroup.java: Wrote.
729 * java/awt/CardLayout.java (layoutContainer): Directly use fields
733 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
735 * java/io/FileDescriptor.java: Initialize fd to -1.
736 Remove default constructor.
738 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
740 * java/lang/mprec.h: Change C9X reference to refer to C99.
742 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
744 * java/lang/Throwable.java (trace_enabled): New static field.
745 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
746 trace_enabled not set.
747 * prims.cc (main_init): Turn off trace_enabled while creating
748 default exception objects.
750 2000-12-21 Tom Tromey <tromey@redhat.com>
752 * java/beans/PropertyChangeListener.java: Extends EventListener.
753 * java/beans/VetoableChangeListener.java: Extends EventListener.
755 * java/util/zip/Deflater.java (update, init): Now private.
757 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
759 * java/util/BasicMapEntry.java: Re-added.
760 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
761 (putAll): Test for BasicMapEntry.
762 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
763 (putAll): Test for BasicMapEntry.
764 Change references from `HashMap.Entry' to `Entry' in various places.
765 * Makefile.am: Add BasicMapEntry.java.
766 * Makefile.in: Rebuilt.
768 2000-12-18 Warren Levy <warrenl@redhat.com>
770 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
771 need to set timezone to a valid non-null value. Partial fix for
774 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
776 * java/awt/Window.java (addNotify): Remove peer casting hack now that
778 * java/awt/Button.java (addNotify): Likewise.
779 * java/awt/Label.java (addNotify): Likewise.
780 * java/awt/Panel.java (addNotify): Likewise.
781 * java/awt/Scrollbar.java (addNotify): Likewise.
782 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
783 Remove redundant null checks.
785 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
787 * COPYING: Update to current
788 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
789 to 19yy as example year in copyright notice).
791 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
793 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
794 end-of-stream if avail_in is 0.
796 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
798 * java/util/ArrayList.java (data): Declare transient.
799 (serialPersistantFields): Removed.
800 (readObject): Use defaultReadObject(), not readFields().
801 (writeObject): Use defaultWriteObject(), not writeFields().
803 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
805 * java/util/Hashtable.java (put): Remove `last' variable.
806 Link new entry to head of list.
807 * java/util/HashMap.java (put): Ditto.
809 2000-12-15 Tom Tromey <tromey@redhat.com>
811 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
812 loader to Class.forName.
814 2000-12-14 Tom Tromey <tromey@redhat.com>
816 * java/util/ResourceBundle.java
817 (getBundle(String,Locale,ClassLoader)): New method.
818 (trySomeGetBundle): Added `loader' argument.
819 (partialGetBundle): Likewise.
821 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
822 maximumFractionDigits, maximumIntegerDigits,
823 minimumFractionDigits, minimumIntegerDigits): Now
826 * java/lang/Thread.java (checkAccess): Now final.
828 * java/lang/RuntimePermission.java: Class now final.
830 * java/io/StringWriter.java (StringWriter(int)): Now public.
832 * java/io/SerializablePermission.java (legal_names): Now private.
834 * java/lang/Character.java: Updated UnicodeBlock constants.
835 * scripts/blocks.pl: Special case private use and surrogate
838 2000-12-12 Tom Tromey <tromey@redhat.com>
840 * Makefile.in: Rebuilt.
841 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
843 (GCJCOMPILE): Use it.
846 2000-12-11 Tom Tromey <tromey@redhat.com>
848 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
849 New static final fields.
851 * scripts/classes.pl (scan): Skip lines with leading `*'.
852 Fix for PR libgcj/378.
854 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
856 * configure.in: Remove check for -fuse-divide-subroutine.
857 * configure: Rebuilt.
859 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
861 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
863 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
865 * Makefile.am: Add HashSet.java and java/lang/ref classes.
866 Remove BasicMapEntry.java and Bucket.java.
867 * Makefile.in: Rebuilt.
868 * java/util/HashMap.java: Rewritten.
869 * java/util/HashSet.java: Imported from classpath.
870 * java/util/WeakHashMap.java: Imported from classpath.
871 * java/util/Hashtable.java: Rewritten based on new HashMap code.
872 * java/util/Bucket.java: Deleted.
873 * java/util/BasicMapEntry.java: Deleted.
874 * java/util/Collections.java (search): Use a for-loop, not iterator
876 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
877 of elements in source.
878 (max): Use a for-loop.
880 (reverse): Keep track of positions instead of using Iterator's
881 nextIndex() and previousIndex().
882 (shuffle(List)): Initialize defaultRandom if required using
883 double-check thread safety idiom. Call two-argument shuffle method
885 (defaultRandom): New field.
886 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
887 using previousIndex() and nextIndex().
888 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
889 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
890 * java/util/AbstractMap.java (toString): Use StringBuffer.
891 * java/lang/ref/PhantomReference.java: Imported from classpath.
892 * java/lang/ref/SoftReference.java: Ditto.
893 * java/lang/ref/Reference.java: Ditto.
894 * java/lang/ref/WeakReference.java: Ditto.
895 * java/lang/ref/ReferenceQueue.java: Ditto.
897 2000-12-10 Richard Henderson <rth@redhat.com>
899 * configure.host: Recognize alpha*-*, not alphaev6-*.
901 2000-12-09 Anthony Green <green@redhat.com>
903 * configure.host: Enable interpreter for Alpha.
905 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
907 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
908 (ZIP): Points at fastjar instead of zip.
909 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
910 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
911 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
912 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
913 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
914 ($(x_java_source_files:.java=.class):): Likewise.
915 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
917 (CLEANFILES): libgcj.jar replaces libgcj.zip.
918 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
919 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
920 java/lang/String.h:, java/lang/reflect/Constructor.h:,
921 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
922 gnu/gcj/runtime/VMClassLoader.h:,
923 java/io/ObjectInputStream$$GetField.h:,
924 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
925 (Makefile.in): Rebuilt.
927 2000-12-08 Tom Tromey <tromey@redhat.com>
930 * configure: Rebuilt.
931 * configure.in: Use echo, not `:', to create .d files.
933 2000-12-08 Warren Levy <warrenl@redhat.com>
935 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
936 NullPointerException so proper check of offset can be done.
938 2000-12-08 Warren Levy <warrenl@redhat.com>
940 * java/io/FileInputStream.java (close): Check if the fd is valid.
941 * java/io/RandomAccessFile.java (close): Ditto.
942 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
943 * java/net/PlainSocketImpl.java (close): Ditto.
945 2000-12-06 Tom Tromey <tromey@redhat.com>
947 * java/awt/GridBagConstraints.java: Filled in values for static
950 * java/util/BitSet.java: Updated copyright notice.
952 * Makefile.in: Rebuilt.
953 * Makefile.am (awt_java_source_files): Added new file.
954 * java/awt/GridBagConstraints.java: New file.
956 2000-12-05 Tom Tromey <tromey@redhat.com>
958 * java/text/Collator.java (decomposeCharacter, decmp, strength):
959 Now package-private, not protected.
960 * java/text/DateFormatSymbols.java (equals): Now private.
961 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
962 * java/util/BitSet.java: Class no longer final.
964 2000-12-04 Warren Levy <warrenl@redhat.com>
966 * java/util/TimeZone.java (getAvailableIDs): Activated commented
967 out code dependent on compiler and library changes.
969 2000-12-04 Warren Levy <warrenl@redhat.com>
971 * java/io/FilePermission.java: Made class final per spec.
972 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
973 method name to match spec (fixed typo).
974 * java/util/LinkedList.java: Implements List.
976 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
978 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
979 Edgar Villanueva <edgarvil@home.com>.
981 2000-12-03 Tom Tromey <tromey@redhat.com>
983 * java/awt/geom/Point2D.java: Added protected constructor.
984 (equals): New method.
985 (Float.setLocation(float,float)): New method.
986 * java/awt/geom/Dimension2D.java: Added protected constructor.
987 * java/awt/geom/AffineTransform.java: Made all constants public.
988 (concatenate): Fixed typo in name.
989 * java/awt/event/WindowAdapter.java: Class now abstract.
990 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
991 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
994 * java/awt/AWTError.java: Extend Error, not
995 IllegalStateException.
997 * Makefile.in: Rebuilt.
998 * Makefile.am (awt_java_source_files): Added new file.
999 * java/awt/geom/RoundRectangle2D.java: New file.
1001 * Makefile.in: Rebuilt.
1002 * Makefile.am (awt_java_source_files): Added new file.
1003 * java/awt/FlowLayout.java: New file.
1005 * Makefile.in: Rebuilt.
1006 * Makefile.am (awt_java_source_files): Added new file.
1007 * java/awt/GridLayout.java: New file.
1009 2000-12-02 Tom Tromey <tromey@redhat.com>
1011 * Makefile.in: Rebuilt.
1012 * Makefile.am (awt_java_source_files): Added new files.
1013 * java/awt/CardLayout.java: New file.
1014 * java/awt/AWTPermission.java: New file.
1016 2000-12-01 Tom Tromey <tromey@redhat.com>
1018 * java/util/Vector.java (insertElementAt): Unconditionally
1019 increment elementCount.
1020 (removeRange): Clear unused slots in vector.
1022 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1024 * java/lang/natMath.cc: Declare fabsf() function.
1025 * java/lang/mprec.h: Don't include math.h.
1026 * java/lang/dtoa.c: Include string.h.
1027 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1030 From Adam Welc <welc@cs.purdue.edu>:
1031 * java/util/LinkedList.java (removeFirst): Update `first' field.
1032 Handle the last == first case.
1033 (removeLast): Update `last' field. Handle the last == first case.
1035 2000-12-01 Warren Levy <warrenl@cygnus.com>
1037 * Makefile.am: Added entries for new java.sql modules.
1038 * Makefile.in: Rebuilt.
1040 2000-12-01 Warren Levy <warrenl@cygnus.com>
1042 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1043 that aren't quite 1.2 compatible yet.
1045 2000-11-30 Warren Levy <warrenl@cygnus.com>
1047 * java/sql/Array.java: New file from classpath.
1048 * java/sql/BatchUpdateException.java: Ditto.
1049 * java/sql/Blob.java: Ditto.
1050 * java/sql/Clob.java: Ditto.
1051 * java/sql/Ref.java: Ditto.
1052 * java/sql/SQLData.java: Ditto.
1053 * java/sql/SQLInput.java: Ditto.
1054 * java/sql/SQLOutput.java: Ditto.
1055 * java/sql/Struct.java: Ditto.
1056 * java/sql/CallableStatement.java: Merged file from claspath.
1057 * java/sql/Connection.java: Ditto.
1058 * java/sql/DataTruncation.java: Ditto.
1059 * java/sql/DatabaseMetaData.java: Ditto.
1060 * java/sql/DriverManager.java: Ditto.
1061 * java/sql/PreparedStatement.java: Ditto.
1062 * java/sql/ResultSet.java: Ditto.
1063 * java/sql/ResultSetMetaData.java: Ditto.
1064 * java/sql/SQLException.java: Ditto.
1065 * java/sql/SQLWarning.java: Ditto.
1066 * java/sql/Statement.java: Ditto.
1067 * java/sql/Types.java: Ditto.
1069 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1071 * java/lang/natSystem.cc (init_properties): Set user.language and
1073 * configure.in: Check for setlocale.
1074 * configure: Rebuilt.
1075 * include/config.h.in: Rebuilt.
1077 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1078 the infate() call didn't deliver any output. Throw a ZipException if
1079 the needsDictionary() call returns true.
1080 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1081 * java/io/InputStreamReader: Use the default buffer size for the
1082 contained BufferedInputStream.
1084 2000-11-28 Warren Levy <warrenl@cygnus.com>
1086 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1087 more time zone entries.
1088 * java/text/SimpleDateFormat.java (format): Added case for
1091 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1093 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1094 directly rather than read() in all cases. Make primitive read
1095 implementations more efficient, as defined in JDK online docs.
1096 (skipBytes): Behave like the JDK's implementation.
1097 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1098 closed stream with checkStatus() whenever an IOException can be
1100 (checkStatus): New private method.
1102 2000-11-27 Warren Levy <warrenl@cygnus.com>
1104 * Makefile.am: Added natTimeZone.cc.
1105 * Makefile.in: Rebuilt.
1106 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1107 * java/text/DateFormatSymbols.java (ampms): Made package private.
1108 (eras): Made package private.
1109 (months): Made package private.
1110 (shortMonths): Made package private.
1111 (shortWeekdays): Made package private.
1112 (weekdays): Made package private.
1113 (formatPrefixes): New private field.
1114 (localPatternCharsDefault): Made private.
1115 (dateFormats): New package private field.
1116 (timeFormats): New package private field.
1117 (formatsForKey): New private method.
1118 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1119 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1120 * java/text/SimpleDateFormat.java: Merged with Classpath.
1121 * java/util/TimeZone.java: Merged with Classpath.
1122 * java/util/natTimeZone.cc: New file.
1124 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1126 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1127 (addElement): Don't increment elementCount twice. Doh.
1128 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1129 array needs to be expanded.
1131 * java/util/Collections.java (UnmodifiableCollection): Implement
1133 (UnmodifiableList): Throw UnsupportedOperationException from
1134 modification methods. Set `l' from the one-parameter constructor.
1135 (UnmodifiableMap): Implement toString().
1136 (SynchronizedCollection): Ditto.
1137 (SynchronizedList): Set `l' from the one-parameter constructor.
1138 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1139 (SynchronizedMap): Implement toString().
1141 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1143 * javax/naming/NameParser.java,
1144 javax/naming/directory/AttributeInUseException.java,
1145 javax/naming/directory/AttributeModificationException.java,
1146 javax/naming/directory/InvalidAttributeIdentifierException.java,
1147 javax/naming/directory/InvalidAttributesException.java,
1148 javax/naming/directory/InvalidAttributeValueException.java,
1149 javax/naming/directory/InvalidSearchControlsException.java,
1150 javax/naming/directory/InvalidSearchFilterException.java,
1151 javax/naming/directory/NoSuchAttributeException.java,
1152 javax/naming/directory/SchemaViolationException.java: New files.
1154 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1156 * javax/naming/InitialContext.java (rebind): Implement.
1157 (unbind): Implement.
1158 (rename): Implement.
1160 (listBindings): Implement.
1161 (destroySubcontext): Implement.
1162 (createSubcontext): Implement.
1163 (lookupLink): Implement.
1164 (getNameParser): Implement.
1165 (composeName): Implement.
1166 (addToEnvironment): Implement.
1168 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1170 * javax/naming/AuthenticationException.java,
1171 javax/naming/AuthenticationNotSupportedException.java,
1172 javax/naming/CannotProceedException.java,
1173 javax/naming/CommunicationException.java,
1174 javax/naming/ConfigurationException.java,
1175 javax/naming/ContextNotEmptyException.java,
1176 javax/naming/InsufficientResourcesException.java,
1177 javax/naming/InterruptedNamingException.java,
1178 javax/naming/InvalidNameException.java,
1179 javax/naming/LimitExceededException.java,
1180 javax/naming/LinkException.java,
1181 javax/naming/LinkLoopException.java,
1182 javax/naming/MalformedLinkException.java,
1183 javax/naming/NameAlreadyBoundException.java,
1184 javax/naming/NameNotFoundException.java,
1185 javax/naming/NamingSecurityException.java,
1186 javax/naming/NoPermissionException.java,
1187 javax/naming/NotContextException.java,
1188 javax/naming/PartialResultException.java,
1189 javax/naming/ReferralException.java,
1190 javax/naming/ServiceUnavailableException.java,
1191 javax/naming/SizeLimitExceededException.java,
1192 javax/naming/TimeLimitExceededException.java: New files.
1194 * javax/naming/Name.java (clone): New method.
1195 (compareTo): New method.
1196 (isEmpty): New method.
1197 (getAll): New method.
1198 (getPrefix): New method.
1199 (getSuffix): New method.
1200 (startsWith): New method.
1201 (endsWith): New method.
1202 (addAll): New method.
1203 (addAll): New method.
1206 (remove): New method.
1208 * javax/naming/Context.java (lookup): New method.
1209 (rebind): New method.
1210 (unbind): New method.
1211 (rename): New method.
1213 (listBindings): New method.
1214 (destroySubcontext): New method.
1215 (createSubcontext): New method.
1216 (lookupLink): New method.
1217 (getNameParser): New method.
1218 (composeName): New method.
1219 (addToEnvironment): New method.
1220 (removeFromEnvironment): New method.
1221 (getEnvironment): New method.
1222 (close): New method.
1223 (getNameInNamespace): New method.
1225 * javax/naming/InitialContext.java (lookup): New method.
1226 (rebind): New method.
1227 (unbind): New method.
1228 (rename): New method.
1230 (listBindings): New method.
1231 (destroySubcontext): New method.
1232 (createSubcontext): New method.
1233 (lookupLink): New method.
1234 (getNameParser): New method.
1235 (composeName): New method.
1236 (addToEnvironment): New method.
1237 (removeFromEnvironment): New method.
1238 (getEnvironment): New method.
1239 (close): New method.
1240 (getNameInNamespace): New method.
1242 2000-11-26 Tom Tromey <tromey@cygnus.com>
1244 * Makefile.in: Rebuilt.
1245 * Makefile.am (core_java_source_files): Added
1246 RuntimePermission.java.
1247 * java/lang/RuntimePermission.java: Imported from Classpath.
1248 * java/lang/Thread.java (getContextClassLoader): Now
1249 synchronized. Added security code.
1250 (setContextClassLoader): Likewise.
1252 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1253 length field of array.
1254 (_Jv_NewPrimArray): Likewise.
1255 * gcj/array.h (__JArray): `length' field now const. Added
1258 2000-11-26 Anthony Green <green@redhat.com>
1260 * javax/naming/spi/NamingManager.java,
1261 javax/naming/spi/ObjectFactory.java,
1262 javax/naming/spi/InitialContextFactory.java,
1263 javax/naming/spi/InitialContextFactoryBuilder.java,
1264 javax/naming/RefAddr.java, javax/naming/Reference.java,
1265 javax/naming/NamingException.java, javax/naming/Context.java,
1266 javax/naming/Referenceable.java,
1267 javax/naming/directory/InitialDirContext.java,
1268 javax/naming/directory/DirContext.java,
1269 javax/naming/directory/Attributes.java,
1270 javax/naming/directory/Attribute.java,
1271 javax/naming/StringRefAddr.java,
1272 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1273 javax/naming/InitialContext.java,
1274 javax/naming/NoInitialContextException.java: New files.
1276 2000-11-25 Anthony Green <green@redhat.com>
1278 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1279 (_Jv_NewPrimArray): Likewise.
1280 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1281 (class JArray): Removed constructor.
1283 * java/lang/Thread.java (context_class_loader): New private data.
1284 (getContextClassLoader): New method.
1285 (setContextClassLoader): New method.
1286 (Thread): Initialize context_class_loader.
1288 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1289 (getResource): Rename to findResource.
1290 (findResource): New method. Used to be getResource.
1291 (getResourceAsStream): Deleted.
1292 (jarFileize): Extracted logic from URLClassLoader constructor into
1293 this new private method.
1294 (addURL): New protected method.
1295 (URLClassLoader): Call jarFileize. Use addElement instead of
1297 (findResources): New method.
1299 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1300 (getResource): Implement correct logic.
1301 (findResource): New method.
1302 (getResources): New method.
1303 (findClass): Create a ClassNotFoundException with the name of the
1304 class rather than nothing at all.
1305 (defineClass) Only throw ClassFormatError.
1307 * java/lang/Class.java (forName): New method.
1308 * java/lang/Class.h (forName): New method.
1309 * java/lang/natClass.cc (forName): New method.
1311 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1313 * java/lang/System.java (setProperties): Only call init_properties()
1314 if properties is null.
1315 (getProperties): Ditto.
1316 (getProperty): Ditto.
1317 (setProperty): Call init_properties if properties are null.
1318 (prop_init): Remove field.
1319 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1320 method. Check for null properties after synchronizing instead of
1321 prop_init flag. Set the properties field last for thread safety.
1323 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1324 test for gcj.dumpobjects property and enable object stream dumping
1326 (dumpElement): No longer native.
1327 (dumpElementln): Ditto.
1328 (setDump): Do not define.
1329 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1330 (dumpElementln): Removed.
1333 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1335 * configure: Rebuilt.
1336 * Makefile.in: Rebuilt.
1337 * Makefile.am (built_java_source_files): Add Configuration.java.
1338 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1339 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1340 Create `gnu' directory in the build tree.
1341 * gnu/classpath/Configuration.java.in: New file.
1343 2000-11-24 Tom Tromey <tromey@cygnus.com>
1345 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1347 (_Jv_NewPrimArray): Likewise.
1349 * gcj/array.h (__JArray): `length' field now const. Added
1351 (class JArray): Added constructor.
1353 2000-11-23 Mark Wielaard <mark@klomp.org>
1355 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1358 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1360 * java/util/Vector.java: Improve exception messages.
1361 (Vector): Check initialCapacity for IllegalArgumentException.
1362 (tromToSize): Don't check for elementCount == elementData.length
1364 (toArray): Don't try to set null marker if target array is the same
1365 length as the vector.
1367 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1369 * Makefile.in: Rebuilt.
1370 * Makefile.am (core_java_source_files): Added Collections.java.
1371 * java/util/List.java: Merged from classpath.
1372 * java/util/Vector.java: Ditto.
1373 * java/util/Collections.java: From classpath.
1374 * java/util/ArrayList.java (addAll(Collection)): Call
1375 addAll(int,Collection) instead of duplicating code.
1376 (indexOf): Clean up int initialization.
1377 (clear): Set cleared array entries to null, to allow garbage
1379 * java/util/List.java: Minor formatting fixes.
1380 * java/util/SimpleTimeZone.java: ditto.
1382 2000-11-18 Tom Tromey <tromey@cygnus.com>
1384 * Makefile.in: Rebuilt.
1385 * Makefile.am (core_java_source_files): Added new files.
1386 * java/lang/reflect/ReflectPermission.java: New class.
1387 * java/io/FileFilter.java: From Classpath
1388 * java/io/FilePermission.java: From Classpath.
1390 2000-11-17 Tom Tromey <tromey@cygnus.com>
1392 * java/lang/reflect/AccessibleObject.java (isAccessible,
1393 setAccessible): Now public.
1395 * java/lang/natString.cc: Include Locale.h.
1396 (toUpperCase): Added `locale' argument. Handle locale
1398 (toLowerCase): Added `locale' argument. Handle locale
1400 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1401 CAPITAL_I): New defines.
1402 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1405 (toUpperCase, toLowerCase): New methods. Variants which accept
1408 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1411 * java/util/PropertyPermission.java: Re-merged from Classpath.
1413 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1415 * java/text/StringCharacterIterator.java: Reindented.
1416 (setText): New method.
1418 2000-11-17 Mark Wielaard <mark@klomp.org>
1420 Merge with Classpath (changes by Bryce McKinlay)
1421 * java/util/jar/*.java: Reformat all to unofficial standard coding
1422 style. No changes of substance.
1424 2000-11-17 Mark Wielaard <mark@klomp.org>
1426 * java/util/zip/*.java: Javadoc updates.
1428 2000-11-17 Tom Tromey <tromey@cygnus.com>
1430 * java/text/CollationKey.java: Implement Comparable.
1431 (compareTo(Object)): New method.
1432 * java/text/Collator.java (compare(Object,Object)): New method.
1433 Implement Comparator.
1435 * java/util/zip/InflaterInputStream.java (available): New method.
1436 (close): New method.
1437 (read, available, skip, fill): Throw exception if stream closed.
1438 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1439 getNextEntry): Throw exception if closed.
1441 2000-11-16 Tom Tromey <tromey@cygnus.com>
1443 * java/io/PushbackReader.java: Merged with Classpath.
1444 * java/util/Arrays.java: Updated from Classpath.
1446 * scripts/blocks.pl: New file.
1447 * java/lang/Character.java (Subset): New class.
1448 (UnicodeBlock): New class.
1450 * java/lang/Math.java (toDegrees, toRadians): New methods.
1452 * java/lang/Float.java: Implement Comparable.
1453 (compareTo): New methods.
1454 * java/lang/Double.java: Implement Comparable.
1455 (compareTo): New methods.
1457 2000-11-16 Warren Levy <warrenl@cygnus.com>
1459 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1461 (listeners): Made transient.
1462 (source): Renamed from 'bean'.
1463 (children): New field for serialization.
1464 (propertyChangeSupportSerializedDataVersion): Ditto.
1465 (serialVersionUID): Ditto.
1466 (writeObject): New serialization method.
1467 (readObject): New serialization method.
1468 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1470 (listeners): Made transient.
1471 (source): Renamed from 'bean'.
1472 (children): New field for serialization.
1473 (vetoableChangeSupportSerializedDataVersion): Ditto.
1474 (serialVersionUID): Ditto.
1475 (writeObject): New serialization method.
1476 (readObject): New serialization method.
1477 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1478 to allow constructor to have a return type (i.e. the class that the
1479 constructor constructs).
1481 2000-11-14 Tom Tromey <tromey@cygnus.com>
1483 * Makefile.in: Rebuilt.
1484 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1487 2000-11-02 Warren Levy <warrenl@cygnus.com>
1489 * java/io/ObjectInputStream.java (readObject): Added code to
1490 conditionally dump out the serialized data.
1491 Handle ENDBLOCKDATA case a bit more gracefully since the current
1492 behavior doesn't seem to work as expected.
1493 (readStreamHeader): Added code for serialized data dumper.
1494 (readNextBlock): Ditto.
1495 (readFields): Ditto.
1496 (dump): New private static field for turning on/off dumper.
1497 (setDump): New native method.
1498 (dumpElement): New native method.
1499 (dumpElementln): New native method.
1500 * java/io/natObjectInputStream.cc (setDump): New method.
1501 (dumpElement): New method.
1502 (dumpElementln): New method.
1504 2000-11-02 Warren Levy <warrenl@cygnus.com>
1506 * java/net/InetAddress.java (addr): Renamed from 'address'.
1507 (address): New field to match Serialized Form doc.
1508 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1509 (family): New serialization field.
1510 (serialVersionUID): New field.
1511 (readObject): New method.
1512 (writeObject): New method.
1513 (getFamily): New native method.
1514 (InetAddress): Set family.
1515 * java/net/natInetAddress.cc (getFamily): New method.
1516 (addr): Renamed from 'address'.
1517 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1518 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1519 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1521 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1523 * java/util/AbstractList.java (SubList): Make it a top-level private
1525 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1527 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1528 * Makefile.in: Rebuilt.
1530 2000-11-02 Tom Tromey <tromey@cygnus.com>
1532 * Makefile.in: Rebuilt.
1533 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1536 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1538 * java/util/AbstractList.java (remove): Comment out modCount increment
1539 to work around compiler bug.
1542 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1544 * java/util/AbstractList.java: Throw messages with
1545 IndexOutOfBoundsExceptions.
1546 (listIterator()): Call listIterator(0).
1547 (size): New field. Initialize to size().
1548 (hasNext): Test position against size, not size().
1549 (remove): Increment knownMod by one instead of resetting it from
1552 (SubList.upMod): Removed.
1553 (SubList.set): Don't call upMod() or update knownMod.
1554 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1555 (SubList.remove): Ditto.
1556 (SubList.addAll): Don't call backingList.size(). Increment size from
1558 (SubList.iterator): New method. Call listIterator(0).
1559 (SubList.listIterator): New method. Restore code to return an anonymous
1560 listIterator implementation (with some changes).
1561 * java/util/AbstractSequentialList.java: Throw messages with
1562 IndexOutOfBoundsExceptions.
1563 (addAll): Add a specnote.
1564 * java/util/ArrayList.java (removeRange): Get the math right.
1565 (addAll): Increment modCount _before_ creating iterator.
1566 * java/util/LinkedList.java: Rewritten, mostly.
1568 2000-11-01 Tom Tromey <tromey@cygnus.com>
1570 * scripts/encodings.pl: Added `ASCII' alias.
1571 * Makefile.in: Rebuilt.
1572 * Makefile.am (convert_source_files): Added new files.
1573 * gnu/gcj/convert/Input_ASCII.java: New file.
1574 * gnu/gcj/convert/Output_ASCII.java: New file.
1575 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1576 out-of-range characters.
1577 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1578 (read): Swap bytes if required. Treat `count' as character count,
1580 (write): Likewise. Also, handle case where iconv fails on a given
1582 (init): Put encoding into exception.
1583 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1584 (static): Call iconv_init. Rebuilt alias list.
1585 (iconv_init): New private method.
1587 2000-11-01 Tom Tromey <tromey@cygnus.com>
1589 * Makefile.in: Rebuilt.
1590 * Makefile.am (install-exec-hook): Only make a single symlink, and
1591 remove the destination before making the link.
1592 * configure: Rebuilt.
1593 * configure.in: Call AC_PROG_LN_S.
1595 2000-10-31 Warren Levy <warrenl@cygnus.com>
1597 * jni.cc: Added include of java/lang/ThreadGroup.h.
1598 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1599 per change of 2000-10-05.
1601 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1603 * java/util/BitSet.java: Updated @specnote.
1605 * java/io/Reader.java: Merge docs from classpath.
1606 (skip): Synchronize on `lock'.
1607 * java/io/FileReader.java: Import correct implementation from
1609 * java/io/StringReader.java: Merge docs from classpath.
1610 (ready): Throw IOException if stream is closed.
1612 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1614 * java/util/AbstractCollection.java (addAll): Use size() instead of
1615 hasNext() in iterator loop.
1617 (contains): Ditto. Simplify loop.
1618 (containsAll): Ditto.
1623 (toString): Ditto. Use string concatenation operators, not
1625 * java/util/AbstractList.java (addAll): Use size() instead of
1626 hasNext() in iterator loop.
1629 (indexOf): Ditto. Don't take null check outside of the loop.
1630 (iterator): Return an AbstractListItr instead of anonymous class.
1631 (lastIndexOf): Use a for loop bounded by size() instead of
1632 hasPrevious() in iterator loop.
1633 (listIterator): Return an AbstractListItr.
1634 (removeRange): Remove bounds checking code and docs.
1635 (AbstractListItr): New inner class. Code moved here from
1637 (SubList.iterator): Removed. Use default implementation from
1638 AbstractList instead.
1639 (SubList.listIterator): As above.
1640 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1641 instead of hasNext() in iterator loop.
1642 (containsValue): Ditto.
1648 (toString): Ditto. Use string concatenation operators, not
1650 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1651 bounded by size() instead of hasNext() in iterator loop.
1652 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1653 part of normal execution flow. Do an explicit null check instead.
1654 * java/util/ArrayList.java (_iSize): Rename to `size'.
1655 (_arData): Rename to `data'.
1656 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1659 (removeRange): Make protected. Don't check bounds.
1660 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1662 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1664 (addAll (int, Collection)): Check lower bounds. Simplify exception
1666 (clone): Clone the data array too.
1667 (indexOf): Inline doesEqual().
1668 (lastIndexOf): Ditto.
1669 (clear): Don't set array data to null.
1670 (set): Check lower bounds. Simplify exception string.
1671 (toArray): Correct comment.
1672 (trimToSize): Don't update modCount, this is not a structural change.
1675 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1677 (toString): Declare `bit' as long, not int.
1678 (data): Made package-private, not private.
1680 2000-10-27 Warren Levy <warrenl@cygnus.com>
1682 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1683 array elements to true.
1685 2000-10-27 Warren Levy <warrenl@cygnus.com>
1687 * Makefile.am: Added locale files from Classpath.
1688 * Makefile.in: Rebuilt.
1689 * gnu/java/locale/Calendar.java: New file.
1690 * gnu/java/locale/Calendar_de.java: New file.
1691 * gnu/java/locale/Calendar_en.java: New file.
1692 * gnu/java/locale/Calendar_nl.java: New file.
1693 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1694 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1695 serialization compatibility.
1696 (scale): Made private.
1697 (serialVersionUID): New field.
1698 * java/math/BigInteger.java (ival): Made transient.
1699 (words): Made transient.
1700 (bitCount): New serialization field.
1702 (firstNonzeroByteNum): Ditto.
1703 (lowestSetBit): Ditto.
1706 (serialVersionUID): New field.
1707 (readObject): New method.
1708 (writeObject): New method.
1709 * java/util/BitSet.java (serialVersionUID): New field.
1710 * java/util/Calendar.java: Replaced with Classpath file.
1711 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1712 of getDefault() for TimeZone or Locale instead of passing nulls.
1713 * java/util/Locale.java (serialVersionUID): New field.
1714 (writeObject): New method.
1715 (readObject): New method.
1716 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1718 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1720 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1721 (core_java_source_files): Put java.lang, java.io, and java.util here.
1722 (ordinary_java_source_files): Order so that core_java_source_files are
1724 (java_source_files): Reorder so that special_java_source_files are
1726 * configure.in: Don't pass -I flag to gcj.
1727 * Makefile.in: Rebuilt.
1728 * configure: Rebuilt.
1730 2000-10-25 Tom Tromey <tromey@cygnus.com>
1732 * Makefile.in: Rebuilt.
1733 * Makefile.am (install-exec-hook): New target.
1735 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1737 * java/util/EventObject.java: Merged from classpath.
1739 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1742 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1744 * java/util/AbstractSet.java (equals): Re-installed original code.
1746 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1748 * Makefile.am: Added rules for libgcjx library.
1749 * Makefile.in: Rebuilt.
1750 * configure.in: Added check for X.
1751 * configure: Rebuilt.
1752 * gnu/awt/LightweightRedirector.java: New file.
1753 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1754 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1755 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1756 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1757 * gnu/awt/j2d/MappedRaster.java: New file.
1758 * gnu/awt/xlib/XCanvasPeer.java: New file.
1759 * gnu/awt/xlib/XEventLoop.java: New file.
1760 * gnu/awt/xlib/XEventQueue.java: New file.
1761 * gnu/awt/xlib/XFontMetrics.java: New file.
1762 * gnu/awt/xlib/XFramePeer.java: New file.
1763 * gnu/awt/xlib/XGraphics.java: New file.
1764 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1765 * gnu/awt/xlib/XPanelPeer.java: New file.
1766 * gnu/awt/xlib/XToolkit.java: New file.
1767 * gnu/gcj/xlib/Clip.java: New file.
1768 * gnu/gcj/xlib/Colormap.java: New file.
1769 * gnu/gcj/xlib/Display.java: New file.
1770 * gnu/gcj/xlib/Drawable.java: New file.
1771 * gnu/gcj/xlib/Font.java: New file.
1772 * gnu/gcj/xlib/GC.java: New file.
1773 * gnu/gcj/xlib/Pixmap.java: New file.
1774 * gnu/gcj/xlib/Screen.java: New file.
1775 * gnu/gcj/xlib/Visual.java: New file.
1776 * gnu/gcj/xlib/WMSizeHints.java: New file.
1777 * gnu/gcj/xlib/Window.java: New file.
1778 * gnu/gcj/xlib/WindowAttributes.java: New file.
1779 * gnu/gcj/xlib/XAnyEvent.java: New file.
1780 * gnu/gcj/xlib/XButtonEvent.java: New file.
1781 * gnu/gcj/xlib/XColor.java: New file.
1782 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1783 * gnu/gcj/xlib/XConnectException.java: New file.
1784 * gnu/gcj/xlib/XEvent.java: New file.
1785 * gnu/gcj/xlib/XException.java: New file.
1786 * gnu/gcj/xlib/XExposeEvent.java: New file.
1787 * gnu/gcj/xlib/XID.java: New file.
1788 * gnu/gcj/xlib/XImage.java: New file.
1789 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1790 * gnu/gcj/xlib/natClip.cc: New file.
1791 * gnu/gcj/xlib/natColormap.cc: New file.
1792 * gnu/gcj/xlib/natDisplay.cc: New file.
1793 * gnu/gcj/xlib/natDrawable.cc: New file.
1794 * gnu/gcj/xlib/natFont.cc: New file.
1795 * gnu/gcj/xlib/natGC.cc: New file.
1796 * gnu/gcj/xlib/natPixmap.cc: New file.
1797 * gnu/gcj/xlib/natScreen.cc: New file.
1798 * gnu/gcj/xlib/natVisual.cc: New file.
1799 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1800 * gnu/gcj/xlib/natWindow.cc: New file.
1801 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1802 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1803 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1804 * gnu/gcj/xlib/natXColor.cc: New file.
1805 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1806 * gnu/gcj/xlib/natXException.cc: New file.
1807 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1808 * gnu/gcj/xlib/natXImage.cc: New file.
1809 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1810 * java/awt/EventDispatchThread.java: Start thead on creation.
1812 2000-10-20 Tom Tromey <tromey@cygnus.com>
1814 From Arno J. Klaassen:
1815 * interpret.cc: Include <stdlib.h> for alloca.
1816 * defineclass.cc: Include <stdlib.h> for alloca.
1818 * Makefile.in: Rebuilt.
1819 * Makefile.am: Include deps.mk.
1820 (GCJCOMPILE): Added -MD, -MT, and -MF.
1821 ($(javao_files)): Don't depend on libgcj.zip.
1822 (all-recursive): New target.
1823 (%.lo:%.cc): Do dependency tracking.
1824 ($(nat_headers)): Don't depend on libgcj.zip.
1825 * configure: Rebuilt.
1826 * configure.in: Make .d files and deps.mk.
1828 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1830 * exception.cc: Don't #include "exception".
1831 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1833 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1834 * Makefile.in: Updated.
1836 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1838 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1839 * java/awt/peer/ComponentPeer.java (disable): Removed.
1842 (minimumSize): Removed.
1843 (preferredSize): Removed.
1846 * java/awt/peer/ListPeer.java (addItem): Removed.
1848 (minimumSize): Removed.
1849 (preferredSize): Removed.
1850 (setMultipleSelections): Removed.
1851 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1852 (remove): Renamed from removeMenu.
1853 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1855 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1856 (remove): Renamed from removeItem.
1857 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1858 (getMinimumSize): Removed.
1859 (getPreferredSize): Removed.
1860 (minimumSize): Removed.
1861 (preferredSize): Removed.
1862 (replaceText): Removed.
1863 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1864 (preferredSize): Removed.
1865 (getMinimumSize): Removed.
1866 (getPreferredSize): Removed.
1867 (setEchoCharacter): Removed.
1869 2000-10-10 Warren Levy <warrenl@cygnus.com>
1871 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1872 * java/sql/Date.java (serialVersionUID): New field.
1873 * java/sql/Time.java (serialVersionUID): New field.
1874 * java/sql/Timestamp.java (serialVersionUID): New field.
1875 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1876 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1877 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1878 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1879 (readObject): New serialization method.
1880 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1881 (serialVersionOnStream): New field.
1882 (readObject): New serialization method.
1883 (getMonetaryDecimalSeparator): New method.
1884 (setMonetaryDecimalSeparator): New method.
1885 * java/text/NumberFormat.java (maxFractionDigits): New field.
1886 (maxIntegerDigits): New field.
1887 (minFractionDigits): New field.
1888 (minIntegerDigits): New field.
1889 (serialVersionOnStream): New field.
1890 (serialVersionUID): New field.
1891 (readObject): New serialization method.
1892 (writeObject): New serialization method.
1893 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1894 (serialVersionOnStream): New field.
1895 (serialVersionUID): New field.
1896 (readObject): New serialization method.
1898 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1900 * configure.in (GCJ): Avoid bogus error message when looking for
1901 (and not finding) gcj in the build tree.
1902 * configure: Rebuilt.
1904 2000-10-09 Tom Tromey <tromey@cygnus.com>
1906 * configure: Rebuilt.
1907 * configure.in: Include sys/types.h when checking for socklen_t.
1908 From Arno J. Klaassen.
1910 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1912 * include/jvm.h: Enable __builtin_expect().
1914 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1915 the main program. Fix for PR libgcj/341.
1917 2000-10-07 Tom Tromey <tromey@cygnus.com>
1919 * java/util/Properties.java: Merged with Classpath version.
1921 2000-10-05 Tom Tromey <tromey@cygnus.com>
1923 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1924 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1925 * java/lang/Class.h (Object): Added `class$' field.
1926 * java/lang/Object.h (Object): Added `class$' field.
1927 * defineclass.cc (ClassClass): Use `class$' form.
1928 (ClassObject): Likewise.
1929 * resolve.cc (ClassObject): Use `class$' form.
1930 (ObjectClass): Likewise.
1931 * interpret.cc (ClassError): Removed.
1932 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1934 (IntegerClass): Likewise.
1935 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1937 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1938 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1939 SerializableClass): Likewise.
1940 Include Serializable.h, Cloneable.h.
1941 * java/lang/natSystem.cc (SystemClass): Removed.
1942 (init_properties): Use `class$' form.
1943 * java/lang/natObject.cc (CloneableClass): Removed.
1944 (clone): Use `class$' form.
1945 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1946 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1947 ConstructorClass): Likewise.
1948 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1949 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1950 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1951 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1953 (ClassClass): Likewise.
1954 * include/jvm.h (StringClass): Use `class$' form.
1955 * prims.cc (ObjectClass): Removed.
1956 (_Jv_RunMain): Use `class$' form.
1957 (_Jv_AllocObject): Likewise.
1958 * jni.cc (ClassClass): Use `class$' form.
1959 (ThrowableClass): Likewise.
1960 (ObjectClass): Likewise.
1961 (MethodClass): Likewise.
1962 (ThreadGroupClass): Likewise.
1963 (NativeThreadClass): Likewise.
1964 * boehm.cc (ObjectClass): Removed.
1965 (ClassClass): Removed.
1966 (_Jv_MarkObj): Use `class$' form.
1967 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1970 2000-10-05 Warren Levy <warrenl@cygnus.com>
1972 * Makefile.am: Removed java/io/Replaceable.java and
1973 java/io/Resolvable.java.
1974 * Makefile.in: Rebuilt.
1975 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1977 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1979 (processResolution): Handle readResolve method via reflection with
1980 removal of Resolvable interface.
1981 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1982 method via reflection with removal of Replaceable interface.
1983 * java/io/Replaceable.java: Removed.
1984 * java/io/Resolvable.java: Removed.
1985 * java/security/Key.java (serialVersionUID): New field.
1986 * java/security/Provider.java (serialVersionUID): New field.
1987 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1989 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1991 * java/sql/DataTruncation.java (serialVersionUID): New field.
1992 * java/sql/SQLException.java (serialVersionUID): New field.
1993 * java/sql/SQLWarning.java (serialVersionUID): New field.
1994 * java/util/Date.java (serialVersionUID): New field.
1995 (millis): Made transient.
1996 (readObject): New method.
1997 (writeObject): New method.
1999 2000-10-05 Tom Tromey <tromey@cygnus.com>
2001 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2003 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2005 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2006 (JvRunMain): Set _Jv_argv and _Jv_argc.
2007 * java/awt/Component.java: Minor fixes.
2008 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2009 * java/awt/Toolkit.java (systemEventQueue): Removed.
2010 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2011 * java/awt/Window.java (getToolkit): Don't call super.
2012 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2013 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2014 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2015 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2016 * gnu/awt/gtk/GtkFramePeer.java: New file.
2017 * gnu/awt/gtk/GtkMainThread.java: New file.
2018 * gnu/awt/gtk/GtkToolkit.java: New file.
2019 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2020 * gnu/awt/gtk/gtkcommon.cc: New file.
2021 * gnu/awt/gtk/gtkcommon.h: New file.
2022 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2023 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2024 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2025 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2026 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2027 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2029 2000-09-30 Tom Tromey <tromey@cygnus.com>
2031 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2032 interrupted before modifying the cv's wait set.
2035 2000-09-30 Hans Boehm <boehm@acm.org>
2036 Bryce McKinlay <bryce@albatross.co.nz>
2038 Implement bitmap descriptor based marking for Boehm GC.
2040 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2041 * configure: Rebuilt.
2042 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2043 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2044 method get_finalizer().
2045 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2046 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2047 (_Jv_AllocObj): Add new jclass parameter.
2048 (_Jv_AllocArray): Ditto.
2049 (_Jv_BuildGCDescr): New prototype.
2050 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2051 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2052 get_finalizer() instead of direct finalizer vtable offset.
2053 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2054 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2055 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2056 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2057 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2058 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2059 (_Jv_DetermineVTableIndex): Ditto.
2060 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2061 calculations to account for new gc_descr field.
2062 * boehm.cc: #include gc_gcj.h.
2063 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2064 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2065 New commentary from HB. Mark the classes vtable.
2066 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2067 (GC_DEFAULT_DESCR): New #define.
2068 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2069 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2070 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2071 scan conservativly if size is less than min_heap_addr. Set vtable
2072 pointer of new object before returning.
2073 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2074 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2075 allocation for obj_kind_x.
2076 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2077 (_Jv_AllocObj): Set vtable on returned object.
2078 (_Jv_AllocArray): Ditto.
2079 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2080 (_Jv_NewPrimArray): Ditto.
2081 (_Jv_AllocObj): Declare as a friend.
2082 (_Jv_AllocArray): Ditto.
2083 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2084 from &ObjectClass into new array class. Remove offset-by-one
2085 adjustments from `method' size calculations to account for gc_descr
2088 2000-09-26 Tom Tromey <tromey@cygnus.com>
2090 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2091 `remove', not `add'.
2093 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2095 * java/lang/natSystem.cc (file_encoding): Added return statement.
2097 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2099 * Makefile.am: Re-work shell commands that exceeded command-line
2101 * Makefile.in: Rebuilt.
2103 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2105 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2106 * java/lang/natDouble.cc: Likewise.
2107 * java/lang/reflect/natMethod.cc: Likewise.
2108 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2110 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2112 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2114 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2115 * acinclude.m4: Arrange for automake to not bring in a new
2116 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2117 * Makefile.am: Leave it up to automake to subst GCJ.
2118 * aclocal.m4, configure, Makefile.in: Rebuilt.
2120 2000-09-13 Tom Tromey <tromey@cygnus.com>
2122 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2123 (get): Ensure Boolean class is initialized.
2124 * java/lang/reflect/natField.cc (BooleanClass): New define.
2125 (get): Ensure Boolean class is initialized.
2127 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2129 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2130 Initialize with anonymous class.
2131 (compareToIgnoreCase): New method.
2133 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2134 (uncaughtException): Set had_uncaught_exception.
2135 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2136 exit with error status if set.
2137 (_Jv_RunMain): Ditto.
2139 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2141 * configure: Rebuilt with new ../libtool.m4.
2143 2000-09-11 Tom Tromey <tromey@cygnus.com>
2145 * java/lang/reflect/Field.java (toString): Don't rely on
2148 2000-09-08 Tom Tromey <tromey@cygnus.com>
2150 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2151 default decoder use iconv.
2152 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2153 Let default encoder use iconv.
2154 * configure: Rebuilt.
2155 * configure.in: Check for nl_langinfo and <langinfo.h>.
2156 * java/lang/natSystem.cc (file_encoding): New function.
2157 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2159 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2161 * acinclude.m4: Simplify the tests for CC and CXX.
2162 * aclocal.m4, configure: Rebuilt.
2164 * acinclude.m4: Include libtool macros from the source tree.
2165 * aclocal.m4, configure: Rebuilt.
2167 2000-09-08 Warren Levy <warrenl@cygnus.com>
2169 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2170 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2171 * java/io/File.java (writeObject): Added.
2172 (readObject): Added.
2173 (serialVersionUID): Added.
2174 * java/io/ObjectOutputStream.java (writeObject): Initialized
2175 fieldsAlreadyWritten before recursion rather than after.
2176 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2177 * java/io/OptionalDataException.java (serialVersionUID): Added.
2178 (OptionalDataException): Made package private.
2179 * java/io/SyncFailedException.java (SyncFailedException): Removed
2180 default constructor to match spec.
2181 * java/lang/Boolean.java (serialVersionUID): Added.
2182 * java/lang/Byte.java (serialVersionUID): Added.
2183 * java/lang/Character.java (serialVersionUID): Added.
2184 * java/lang/Double.java (serialVersionUID): Added.
2185 * java/lang/Float.java (serialVersionUID): Added.
2186 * java/lang/Integer.java (serialVersionUID): Added.
2187 * java/lang/Long.java (serialVersionUID): Added.
2188 * java/lang/Number.java (serialVersionUID): Added.
2189 * java/lang/Short.java (serialVersionUID): Added.
2190 * java/lang/String.java (serialVersionUID): Added.
2191 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2193 * java/lang/reflect/InvocationTargetException.java
2194 (serialVersionUID): Added.
2195 * java/net/URL.java (handler): Made transient.
2196 (hashCode): Added field for serialization, per spec. and use
2197 cached value if available.
2198 (serialVersionUID): Added.
2199 (URL): Initialize hashCode.
2200 (set): Adjust hashCode.
2201 (readObject): New Method to initialize the protocol handler when
2203 (writeObject): New method.
2204 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2205 * java/text/Collator.java: Removed 'implements Serializable'.
2206 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2207 * java/util/Properties.java (serialVersionUID): Added.
2208 * java/util/Random.java (serialVersionUID): Added.
2209 (seed): Made private.
2210 (nextNextGaussian): Made private.
2211 (haveNextNextGaussian): Made private.
2212 * java/util/Stack.java (serialVersionUID): Added.
2213 * java/util/TimeZone.java (serialVersionUID): Added.
2214 * java/util/Vector.java (serialVersionUID): Added.
2216 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2218 * Makefile.am (Thread.h): Don't be friends with native threads
2220 * Makefile.in: Rebuilt.
2221 * java/lang/Thread.java (interrupt_flag): Make package-private.
2223 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2225 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2226 to avoid long long division.
2228 2000-09-06 Tom Tromey <tromey@cygnus.com>
2230 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2232 * java/lang/reflect/Method.java (toString): Use `getName' for
2235 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2236 `args' if method takes no parameters.
2238 Fix for PR java.lang/339:
2239 * java/lang/natPosixProcess.cc (fail): New function.
2240 (cleanup): New function.
2241 (startProcess): Use them. Create pipe so child can communicate
2242 exec failure back to parent.
2244 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2246 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2248 (send): Undo last patch. Remove the label only.
2250 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2252 * java/net/natInetAdress.cc: Ditto.
2254 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2256 2000-09-05 Tom Tromey <tromey@cygnus.com>
2258 * doc/cni.sgml: Updated from master copy.
2260 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2262 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2264 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2266 * java/lang/fdlibm.h: #undef __P if previously defined.
2267 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2268 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2272 2000-09-04 Tom Tromey <tromey@cygnus.com>
2274 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2277 2000-09-04 Anthony Green <green@redhat.com>
2279 Fix for PR java.io/203:
2280 * java/io/File.java (createTempFile): Obey directory argument.
2281 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2282 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2283 variable to set java.io.tmpdir on non-WIN32 systems.
2285 2000-09-04 Anthony Green <green@redhat.com>
2287 * java/io/File.java (deleteOnExit): New method.
2288 * gnu/gcj/runtime/FileDeleter.java: New class.
2289 * java/lang/natRuntime.cc (exit): Call
2290 FileDeleter.deleteOnExitNow()
2291 * Makefile.am: Add FileDeleter.java.
2292 * Makefile.in: Rebuilt.
2294 2000-09-02 Tom Tromey <tromey@cygnus.com>
2296 * Makefile.in: Rebuilt.
2297 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2298 environment variable.
2300 2000-09-01 Andrew Haley <aph@redhat.com>
2302 * java/io/StreamTokenizer.java: Don't throw a
2303 NumberFormatException if a field is numeric as far as the
2304 StreamTokenizer is concerned but not as far as Double.valueOf() is
2305 concerned: return a zero instead.
2307 2000-08-30 Tom Tromey <tromey@cygnus.com>
2309 * Makefile.in: Rebuilt.
2310 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2312 2000-08-28 Tom Tromey <tromey@cygnus.com>
2314 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2315 gnu/gcj/awt/ComponentDataBlitOp.java,
2316 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2317 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2318 java/awt/color/ICC_ColorSpace.java,
2319 java/awt/color/ICC_Profile.java,
2320 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2321 java/awt/image/ComponentColorModel.java,
2322 java/awt/image/ComponentSampleModel.java,
2323 java/awt/image/DataBuffer.java,
2324 java/awt/image/DataBufferByte.java,
2325 java/awt/image/DataBufferInt.java,
2326 java/awt/image/DataBufferUShort.java,
2327 java/awt/image/DirectColorModel.java,
2328 java/awt/image/IndexColorModel.java,
2329 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2330 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2331 java/awt/image/SinglePixelPackedSampleModel.java,
2332 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2333 Removed Latin-1 copyright symbols.
2334 * java/util/zip/ZipFile.java: Indentation fixes.
2336 2000-08-27 Mark Wielaard <mark@klomp.org>
2338 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2339 constructor, close can delete the file, finalize calls close.
2340 * java/util/jar/JarFile.java: Constructor that takes mode now
2343 2000-08-27 Anthony Green <green@redhat.com>
2345 * java/util/ArrayList.java, java/util/Timer.java,
2346 java/util/LinkedList.java, java/util/TimerTask.java,
2347 java/util/HashMap.java, java/util/AbstractMap.java,
2348 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2349 java/util/SortedSet.java: Imported from GNU Classpath.
2350 * Makefile.in: Rebuilt.
2351 * Makefile.am: Added new files.
2353 2000-08-26 Anthony Green <green@redhat.com>
2355 * Makefile.in: Rebuilt.
2356 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2359 * prims.cc: Include ClassLoader.h.
2360 (_Jv_RunMain): When executing jar files, classpath must be the jar
2361 file only. Lose our reference to the system ClassLoader in order
2362 to get a new one with the correct classpath.
2363 * java/lang/natSystem.cc (init_properties): When executing a jar
2364 file, only use the jar file for java.class.path.
2366 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2367 for bytecode archives.
2369 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2370 exists, but not Main-Class.
2372 2000-08-23 Mark Wielaard <mark@klomp.org>
2374 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2375 return -1 when fill() has no more data for the Inflater.
2377 2000-08-23 Mark Wielaard <mark@klomp.org>
2379 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2380 write(String) already does.
2382 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2384 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2385 to `alive_flag', call `init'.
2386 (init): New native method.
2387 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2390 2000-08-21 Mark Wielaard <mark@klomp.org>
2392 * Makefile.in: Rebuilt.
2393 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2395 (java/lang/reflect/Field.h): Likewise.
2396 (java/lang/reflect/Method.h): Likewise.
2397 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2400 2000-08-21 Tom Tromey <tromey@cygnus.com>
2402 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2405 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2407 * java/lang/natSystem.cc (init_properties): Change sourceware
2408 reference to sources.redhat.com.
2410 * include/java-props.h: Add _Jv_Jar_Class_Path.
2411 * prims.cc: Ditto. Set it from `gij -jar file' option.
2413 * java/lang/natSystem.cc (init_properties): Set java.class.path
2415 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2417 * java/util/PropertyPermission.java: Import from GNU Classpath.
2418 * Makefile.in: Rebuilt.
2419 * Makefile.am: Add java/util/PropertyPermission.java.
2420 * java/lang/System.java: Add setProperty method.
2422 * gij.cc (main): Add -jar option to execute jar files.
2423 (help): Describe -jar option.
2424 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2425 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2426 * gnu/gcj/runtime/FirstThread.java (main): New method.
2428 * java/util/jar/Attributes.java: Correct comment spelling.
2430 2000-08-20 Mark Wielaard <mark@klomp.org>
2432 * java/util/zip/Adler32.java: Make private variables really private
2433 * java/util/zip/CRC32.java: Make private variables really private
2434 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2436 * java/util/zip/InflaterInputStream.java: skip() could skip to
2438 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2439 * java/util/zip/ZipFile.java: size() new 1.2 method
2440 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2441 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2444 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2446 * java/util/jar/JarFile.java: Don't call
2447 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2450 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2452 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2453 Read the entire contents of the class file, not just what is
2456 * java/net/JarURLConnection.java: getEntry doesn't take any
2457 arguments. Return null if element is null.
2459 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2460 size from the archive, not the inflated size.
2462 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2463 java.util.zip.ZipFile.getEntry.
2465 * gij.cc (help): Change sourceware reference to
2468 2000-08-19 Tom Tromey <tromey@cygnus.com>
2470 * java/util/zip/ZipInputStream.java (createZipEntry):
2473 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2475 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2476 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2477 java/util/jar/JarInputStream.java,
2478 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2479 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2480 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2481 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2482 java/security/cert/Certificate.java,
2483 java/security/cert/CertificateEncodingException.java,
2484 java/security/cert/CertificateException.java,
2485 java/security/cert/CertificateExpiredException.java,
2486 java/security/cert/CertificateFactory.java,
2487 java/security/cert/CertificateFactorySpi.java,
2488 java/security/cert/CertificateNotYetValidException.java,
2489 java/security/cert/CertificateParsingException.java,
2490 java/security/cert/X509CRL.java,
2491 java/security/cert/X509CRLEntry.java,
2492 java/security/cert/X509Certificate.java,
2493 java/security/cert/X509Extension.java: Imported from Classpath.
2494 * java/util/Hashtable.java: Imported from Classpath.
2496 * java/util/zip/ZipInputStream.java: Create stub for
2499 * gcj/javaprims.h: Updated class list.
2501 * Makefile.in, gcj/Makefile.in: Rebuilt.
2502 * Makefile.am (ordinary_java_source_files): Add these new classes.
2504 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2506 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2507 * gnu/gcj/awt/GLightweightPeer.java: New file.
2508 * java/awt/BorderLayout.java: Implemented all methods.
2509 * java/awt/Button.java (actionListener, actionCommand): Renamed
2510 and modifier change.
2511 (addNotify): Call super.
2512 (dispatchEventImpl): New method.
2513 (getListeners): New method.
2514 (label): Made package-private, not private.
2515 * java/awt/Canvas.java: Implemented class body.
2516 * java/awt/Color.java (brighter): New method.
2517 (darker): New method.
2518 (hashCode): New method.
2519 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2520 (getGraphicsConfiguration): Delegate to
2521 getGraphicsConfigurationImpl().
2522 (getGraphicsConfigurationImpl): New method.
2523 (getToolkit): Only return value from peer if not null.
2524 (isDisplayable): Check with parent.
2525 (isShowing): No parent implies not showing.
2526 (getForeground): Check parent property if local is null.
2527 (getBackground): Likewise.
2528 (getFont): Likewise.
2529 (setForeground): Inform peer.
2530 (setBackground): Likewise
2531 (setLocale): Invalidate component.
2532 (getColorModel): Implemented.
2533 (setLocation): Invalidate, or ignore if no change.
2534 (setSize): Invalidate, or ignore if no change.
2535 (setBounds): Invalidate, or ignore if no change.
2536 (isOpaque): By default, heavyweight implies opaque.
2537 (isLightweight): Implemented.
2538 (getMaximumSize): Implemented.
2539 (doLayout): Implemented, NOP.
2540 (validate): Implemented, NOP.
2541 (invalidate): Only propagate to parent if parent was valid.
2542 (getGraphics): Implemented.
2543 (getFontMetrics): Implemented.
2544 (update): Implemented.
2545 (paintAll): Implemented.
2546 (repaint): Implemented all repaint methods.
2547 (print): Implemented.
2548 (printAll): Implemented.
2549 (createImage): Implemented.
2550 (dispatchEvent): Give the peer a chance to handle the event.
2551 (dispatchEventImpl): Dispatch paint events.
2552 (enableEvents): Lightweights enable events on parent component.
2553 (coalesceEvents): Coalesce paint events, and select event type
2555 (coalescePaintEvents): New method.
2556 (processEvent): Fix unfortunate ordering of statements, and call
2557 correct method for MOUSE_CLICKED.
2558 (processPaintEvent): New method.
2559 (addNotify): Allow container to notify children before event
2560 mask is set in peer.
2561 (addNotifyContainerChildren): New method.
2562 (removeNotify): Visibility should not change on removeNotify.
2563 (paramString): Implemented.
2564 (list): Implemented two of the list methods.
2565 * Container (myInsets): Removed, insets are managed by peer.
2566 (getInsets): Query peer.
2567 (addImpl): Fix reparenting, enable events for lightweights,
2568 initialize component array.
2569 (validate): Call doLayout in validateTree() instead.
2570 (validateTree): Do nothing if already valid. Call beginValidate(),
2571 endValidate() on peer. Call validateTree() instead of validate()
2572 for children that are containers. Mark valid after validation of
2574 (setFont): Partial implementation.
2575 (paint): Implemented.
2576 (visitChildren): New method.
2577 (visitChild): New method.
2578 (update): Implemented.
2579 (print): Implemented.
2580 (paintComponents): Implemented.
2581 (printComponents): Consider translation and clipping.
2582 (getComponentAt): Ignore invisible children. Return this if no
2584 (addNotify): Call super.
2585 (addNotifyContainerChildren): New method.
2586 (paramString): Implemented.
2587 (list): Implemented.
2588 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2590 (invokeLater): Likewise.
2591 (isDispatchThread): Likewise.
2592 * java/awt/FontMetrics (getLeading): Formula change.
2593 (getDescent): Consider leading also.
2594 (getMaxAscent): Default to getAscent().
2595 (getMaxDescent): Default to getDescent.
2596 (getMaxAdvance): Return value signifying unknown.
2597 (charWidth): Both methods implemented.
2598 (charsWidth): Implemented.
2599 (bytesWidth): Implemented.
2600 (getWidths): Implemented.
2601 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2603 (Frame): Rearragend constuctor chaining to disallow null being
2604 passed as a graphics configuration.
2605 (getTitle): Return empty string if null.
2607 (getIconImage): New method.
2608 (setIconImage): New method.
2609 (finalize): New method.
2610 (setMenuBar): Notify peer.
2611 (isResizable): New method.
2612 (setResizable): New method.
2613 (getState): New method.
2615 (remove): Implemented.
2616 (removeNotify): New method.
2617 (getFrames): New method.
2618 * java/awt/Graphics.java: Implemented body of class.
2619 * java/awt/Graphics2D.java: New file.
2620 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2621 * java/awt/Image.java: Implemented body of class.
2622 * java/awt/Panel.java (Panel): Call correct super constructor.
2623 (addNotify): Implemented.
2624 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2625 * java/awt/RenderingHints.java: New file.
2626 * java/awt/Toolkit.java (createComponent): Implemented.
2627 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2628 * java/awt/Window.java (Window): Two new constructors. Reordered
2629 constructor chaining.
2630 (getGraphicsConfigurationImpl): New method.
2631 (finalize): Call super.
2632 (addNotify): Call super.
2633 (pack): Do layout stuff.
2634 (show): Ensure that peer exists and that component is valid.
2635 (dispose): Dispose owned children.
2636 (getOwner): Simplify code, casting null pointers is valid.
2637 (getGraphicsConfiguration): Ask peer if local value is null.
2638 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2640 * java/awt/image/BufferedImage.java: New file.
2641 * java/awt/image/RasterOp.java: New file.
2642 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2643 More powerfull replacement for getColorModel().
2644 (getColorModel) Removed.
2645 (setEventMask) New method.
2646 * Makefile.am: Added new files.
2647 * Makefile.in: Rebuilt.
2649 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2651 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2652 (finit_leg_name): New global.
2653 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2654 `$finit$'. This is a backward compatibility hack.
2655 (java::lang::Class::_getMethods): Likewise.
2657 2000-08-15 Andrew Haley <aph@cygnus.com>
2659 * include/jvm.h (_Jv_HashCode): New hash code.
2661 2000-08-15 Tom Tromey <tromey@cygnus.com>
2663 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2665 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2667 * THANKS: More thanks.
2669 2000-08-10 Tom Tromey <tromey@cygnus.com>
2671 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2673 (connect): Likewise.
2675 (getOption): Likewise.
2676 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2677 case when errno not set.
2680 (receive): Likewise.
2681 (mcastGrp): Likewise.
2682 (setOption): Likewise.
2683 (getOption): Likewise.
2685 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2686 John Stracke <francis@ecal.com>
2688 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2689 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2691 (disconnect): Don't unset connected flag.
2692 (getHeaderField (String)): Call connect() if not connected.
2693 (getHeaderField (int)): Ditto.
2694 (getHeaderFieldKey): Ditto.
2695 (getHttpHeaders): Don't call connect().
2696 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2697 gotResponseVals): New fields.
2698 (getResponseCode): Call getResponseVals() conditionally.
2699 (getResponseMessage): Ditto.
2700 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2702 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2704 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2705 * Makefile.in: Rebuilt.
2706 * java/awt/Color.java (getTransparency): New method.
2707 * java/awt/Component.java: Various updates.
2708 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2709 after dealing with children.
2710 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2711 * java/awt/Window.java: Various new methods and updates.
2712 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2714 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2715 * java/awt/event/WindowEvent.java (paramString): Ditto.
2716 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2718 * java/awt/geom/Point2D.java (clone): Ditto.
2719 * java/awt/geom/RectangularShape.java (clone): Ditto.
2720 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2721 isAlphaPremultiplied): Make package-private, not private.
2723 2000-08-08 Tom Tromey <tromey@cygnus.com>
2725 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2726 surrogate characters.
2727 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2729 (write): Correct handling of surrogate characters.
2731 2000-08-07 Tom Tromey <tromey@cygnus.com>
2733 * java/lang/reflect/Method.java (hashCode): Use getName().
2734 (toString): Likewise.
2735 * java/lang/reflect/natMethod.cc (getType): Initialize
2738 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2740 * java/lang/reflect/Field.java (toString): Correct formatting.
2743 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2745 (receive): Streamlined.
2747 2000-08-05 Tom Tromey <tromey@cygnus.com>
2749 * java/io/PrintWriter.java: Merged comments from Classpath.
2750 (printlnUnsynchronized): Removed.
2751 (println()): Print the separator.
2752 (println): Call println(), not printlnUnsynchronized.
2753 (out): Now protected, to match spec.
2755 2000-08-04 Tom Tromey <tromey@cygnus.com>
2757 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2758 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2761 2000-08-03 Warren Levy <warrenl@cygnus.com>
2763 * java/io/ObjectInputStream.java (readFields): Turn off
2764 readDataFromBlock while reading via GetField.
2765 (GetField$1.get(String, Object)): Pass Class of default value to
2767 (getField): Allow for null default values.
2769 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2770 (PutField$1.put): Fixed calls of checkType in most of the put
2771 methods to pass the correct parameter.
2772 (PutField$1.put(String, Object)): Allow for null value arg.
2773 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2776 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2777 typo in spec'ed field name.
2778 (getSerialPersistentFields): Changed spelling of method to match
2779 the correct spelling of the spec'ed field name.
2781 2000-08-03 Tom Tromey <tromey@cygnus.com>
2783 * Makefile.in: Rebuilt.
2784 * Makefile.am (awt_java_source_files): Added new files.
2786 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2788 * Makefile.am: Add new AWT stubs.
2789 * java/awt/Canvas.java: New placeholder class.
2790 * java/awt/Checkbox.java: Ditto.
2791 * java/awt/CheckboxMenuItem.java: Ditto.
2792 * java/awt/Choice.java: Ditto.
2793 * java/awt/Dialog.java: Ditto.
2794 * java/awt/FileDialog.java: Ditto.
2795 * java/awt/List.java: Ditto.
2796 * java/awt/ScrollPane.java: Ditto.
2797 * java/awt/TextField.java: Ditto.
2798 * java/awt/datatransfer/Clipboard.java: Ditto.
2799 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2800 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2801 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2802 Some commented out. Partially implemented.
2803 * java/awt/natToolkit.cc: Removed file.
2805 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2807 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2808 Fixes "make -j" builds.
2809 * Makefile.in: Rebuild.
2811 2000-08-02 Tom Tromey <tromey@cygnus.com>
2813 * Makefile.in: Rebuilt.
2814 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2815 * java/net/natPlainSocketImpl.cc: Include posix.h.
2816 (accept): Use _Jv_select.
2817 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2818 (receive): Use _Jv_select.
2819 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2820 (available): Use _Jv_select.
2821 * java/lang/natSystem.cc: Include posix.h.
2822 (currentTimeMillis): Use _Jv_gettimeofday.
2823 * include/posix.h: New file.
2824 * posix.cc: New file.
2826 * scripts/encodings.pl: New file.
2827 * Makefile.in: Rebuilt.
2828 * Makefile.am (convert_source_files): Added IOConverter.java.
2829 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2831 (getDefaultDecodingClass): Canonicalize default encoding name.
2832 (getEncoder): Likewise.
2833 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2835 (getDefaultDecodingClass): Canonicalize default encoding name.
2836 (getDecoder): Likewise.
2837 * gnu/gcj/convert/IOConverter.java: New file.
2839 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2841 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2842 to match C declaration in ffi.h.
2843 * Makefile.am: Add java/awt/Button.java.
2844 * Makefile.in: Rebuilt.
2846 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2848 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2849 cast of the second argument to `ffi_raw_call' changed to match
2852 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2854 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2855 argument to `ffi_raw_call' changed to match prototype.
2857 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2859 * java/awt/Component.java (toString): Implemented.
2860 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2861 dispatchEvent() to dispatch the event.
2862 (removeImpl): Ditto.
2864 2000-07-30 Anthony Green <green@redhat.com>
2866 * java/awt/Component.java: Add treeLock object.
2867 (getTreeLock): Implement.
2868 (isShowing): Implement.
2870 2000-07-30 Tom Tromey <tromey@cygnus.com>
2872 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2874 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2876 * java/awt/Window.java (addNotify): Wrote.
2877 (addWindowListener): Wrote.
2879 (getWarningString): Wrote.
2880 (processEvent): Wrote.
2881 (processWindowEvent): Wrote.
2882 (removeWindowListener): Wrote.
2883 (show): Call validate(), setVisible().
2887 * java/awt/Toolkit.java (createWindow): Declare.
2889 * java/awt/Frame.java (addNotify): Use getToolkit to find
2892 * java/awt/Component.java (invalidate): Wrote.
2894 (getToolkit): Wrote.
2896 * java/awt/Container.java (addContainerListener): Removed
2898 (removeContainerListener): Likewise.
2900 (add(Component)): Use it.
2901 (add(String,Component)): Likewise.
2902 (add(Component,int)): Likewise.
2903 (add(Component,Object)): Likewise.
2904 (add(Component,Object,int)): Likewise.
2906 (getAlignmentX): Wrote.
2907 (getAlignmentY): Wrote.
2908 (getComponentAt): Wrote.
2909 (getMaximumSize): Wrote.
2910 (invalidate): Wrote.
2911 (list(PrintStream,int)): Wrote.
2912 (list(PrintWriter,int)): Wrote.
2913 (getMinimumSize): Wrote.
2914 (getPreferredSize): Wrote.
2915 (printComponents): Wrote.
2916 (processContainerEvent): Look at containerListener, not
2918 (remove): Added event processing and peer destruction.
2919 (removeAll): Use remove.
2920 (removeNotify): Wrote.
2922 (validateTree): Wrote.
2924 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2925 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2926 * java/awt/Container.java (addNotify): Don't create Container
2928 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2930 2000-07-30 Tom Tromey <tromey@cygnus.com>
2932 * java/awt/Container.java (remove(int)): Wrote.
2933 (remove(Component)): Wrote.
2934 (add(Component)): Wrote.
2935 (add(Component,int)): Wrote.
2937 (addNotify): Set our own peer.
2938 * java/awt/Scrollbar.java (listeners): Changed type.
2939 (Scrollbar): Don't initialize listeners.
2941 (setValue): Call setValues.
2942 (setMinimum): Likewise.
2943 (setMaxPriority): Likewise.
2944 (setVisibleAmount): Likewise.
2946 (setUnitIncrement): Forward to peer.
2947 (setLineIncrement): Call setUnitIncrement.
2948 (setPageIncrement): Call setBlockIncrement.
2949 (setBlockIncrement): Forward to peer.
2950 (addAdjustmentListener): Rewrote.
2951 (removeAdjustmentListener): Rewrote.
2952 (processAdjustmentEvent): Rewrote.
2953 (paramString): Wrote.
2954 * Makefile.in: Rebuilt.
2955 * Makefile.am (awt_java_source_files): Added Button.java.
2956 * java/awt/Button.java: New file.
2957 * java/awt/Toolkit.java (createLabel): Declare.
2958 (createButton): Likewise.
2959 (createScrollbar): Likewise.
2960 (createContainer): Likewise.
2961 * java/awt/Label.java (addNotify): Wrote.
2962 (setAlignment): Call setAlignment in the peer.
2963 (setText): Call setText in the peer.
2965 2000-07-28 Warren Levy <warrenl@cygnus.com>
2967 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2968 NotSerializableException with just the class name.
2970 2000-07-26 Andrew Haley <aph@cygnus.com>
2972 * interpret.cc (continue1): Insert missing break into switch.
2974 2000-07-28 Warren Levy <warrenl@cygnus.com>
2976 * java/io/ObjectStreamException.java: Made constructors protected.
2978 2000-07-27 Tom Tromey <tromey@cygnus.com>
2980 * java/io/OutputStreamWriter.java (close): Only flush if not
2983 2000-07-27 Warren Levy <warrenl@cygnus.com>
2985 * mauve-libgcj: Activated serialization tests.
2986 * gcj/field.h (getModifiers): Mask off unknown flags.
2987 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2988 spurious bits don't cause discrepancies.
2989 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2990 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2991 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2992 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2993 * java/lang/Throwable.java (serialVersionUID): New field.
2994 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2995 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2997 * java/lang/reflect/natMethod.cc: Ditto.
2998 * java/security/Key.java (serialVersionUID): Removed field for now.
2999 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3000 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3002 2000-07-22 Tom Tromey <tromey@cygnus.com>
3004 * java/awt/geom/RectangularShape.java (getPathIterator):
3007 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3009 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3010 stub libjava/java/awt/ColorModel.java which was located in the
3012 * libjava/java/awt/image/ComponentColorModel.java: New file.
3013 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3014 * libjava/java/awt/image/DataBuffer.java: New file.
3015 * libjava/java/awt/image/DataBufferByte.java: New file.
3016 * libjava/java/awt/image/DataBufferInt.java: New file.
3017 * libjava/java/awt/image/DataBufferUShort.java: New file.
3018 * libjava/java/awt/image/DirectColorModel.java: New file.
3019 * libjava/java/awt/image/PackedColorModel.java: New file.
3020 * libjava/java/awt/image/Raster.java: New file.
3021 * libjava/java/awt/image/SampleModel.java: New file.
3022 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3024 * libjava/java/awt/image/IndexColorModel.java: New file.
3025 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3026 java.awt.ColorModel stub.
3028 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3029 * gnu/gcj/util/Buffers.java: New file, utility class.
3031 * libjava/Makefile.am: Updated to include new files.
3032 * libjava/Makefile.in: Rebuilt.
3034 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3036 * java/io/StreamTokenizer.java: Merged with classpath.
3038 2000-07-20 Tom Tromey <tromey@cygnus.com>
3040 * Makefile.in: Rebuilt.
3041 * Makefile.am (awt_java_source_files): Updated for new files.
3042 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3043 * java/awt/Label.java: New file.
3044 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3045 (createIntersection, createUnion, getBounds2D): New methods.
3046 * java/awt/Scrollbar.java: New file.
3047 * java/awt/Shape.java: Updated to 1.2.
3048 * java/awt/geom/AffineTransform.java: New file.
3049 * java/awt/geom/Ellipse2D.java: New file.
3050 * java/awt/geom/NoninvertibleTransformException.java: New file.
3051 * java/awt/geom/PathIterator.java: New file.
3052 * java/awt/geom/Rectangle2D.java: New file.
3053 * java/awt/geom/RectangularShape.java: New file.
3054 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3055 * java/awt/geom/IllegalPathStateException.java: New file.
3057 * scripts/showval.java: New file.
3059 * scripts/classes.pl (scan): Print inner classes properly.
3060 * gcj/javaprims.h: Updated class list.
3062 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3063 initialize String fields for interpreted classes. Fixes bug
3064 reported by Hans Boehm.
3066 * java/io/File.java (getParentFile): New method, from Classpath
3067 via Oskar Liljeblad.
3069 * java/util/Vector.java (remove(Object)): Implemented.
3071 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3073 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3074 zero return from backtrace().
3076 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3078 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3080 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3081 before calling notifyAll().
3083 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3085 Add missing files from last check-in:
3086 * java/awt/image/ImageConsumer.java: New file.
3087 * java/awt/image/ImageProducer.java: New file.
3088 * java/awt/image/ImageObserver.java: New file.
3090 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3092 Merged implementation of java.applet from classpath:
3093 * java/applet/Applet.java: New file.
3094 * java/applet/AppletContext.java: New file.
3095 * java/applet/AppletStub.java: New file.
3096 * java/applet/AudioClip.java: New file.
3098 * Makefile.am: Added new java.applet classes.
3099 * Makefile.in: Rebuilt.
3101 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3104 * java/util/ResourceBundle.java (getLocale): stub.
3105 * Makefile.am: Added new AWT classes.
3106 * Makefile.in: Rebuilt.
3107 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3108 constructors. Fix toString() and paramString().
3109 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3110 * java/awt/CheckboxGroup.java: New class.
3111 * java/awt/ColorModel.java: New class.
3112 * java/awt/Component.java: Added stubs for most methods. Implemented
3114 * java/awt/Container.java: ditto.
3115 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3116 * java/awt/Cursor.java: ditto.
3117 * java/awt/Event.java: Fix paramString().
3118 * java/awt/EventQueue.java: New class. Implemented.
3119 * java/awt/Font.java: Added additional stub methods. Implemented
3121 * java/awt/FontMetrics.java: New class. Stubbed.
3122 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3124 * java/awt/Insets.java: New class. Implemented.
3125 * java/awt/Menu.java: Add new methods. Partially implemented.
3126 * java/awt/MenuItem.java: Add new methods and fields. Partially
3128 * java/awt/MenuShortcut.java: New class. Implemented.
3129 * java/awt/Panel.java: New class. Placeholder.
3130 * java/awt/PopupMenu.java: New class. Stubbed.
3131 * java/awt/Rectangle.java: New class. Implemented.
3132 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3133 * java/awt/event/ActionEvent.java: Implement paramString().
3134 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3135 * java/awt/event/ComponentEvent.java: Implement paramString().
3136 * java/awt/event/ContainerEvent.java: Implement paramString().
3137 * java/awt/event/FocusEvent.java: Implement paramString().
3138 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3139 * java/awt/event/HierarchyBoundsListener.java: New class.
3140 * java/awt/event/HierarchyEvent.java: New class.
3141 * java/awt/event/HierarchyListener.java: New class.
3142 * java/awt/event/InputMethodEvent.java: Implement paramString().
3143 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3144 exception if !catchExceptions.
3145 * java/awt/event/ItemEvent.java: Implement paramString().
3146 * java/awt/event/KeyEvent.java: Implement paramString().
3147 * java/awt/event/MouseEvent.java: Implement paramString().
3148 * java/awt/event/PaintEvent.java: Implement paramString().
3149 * java/awt/event/TextEvent.java: Implement paramString().
3150 * java/awt/event/WindowEvent.java: Implement paramString().
3152 AWT Peer interfaces:
3153 * java/awt/peer/ButtonPeer.java: New file.
3154 * java/awt/peer/ListPeer.java: New file.
3155 * java/awt/peer/CanvasPeer.java: New file.
3156 * java/awt/peer/MenuBarPeer.java: New file.
3157 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3158 * java/awt/peer/MenuComponentPeer.java: New file.
3159 * java/awt/peer/CheckboxPeer.java: New file.
3160 * java/awt/peer/MenuItemPeer.java: New file.
3161 * java/awt/peer/ChoicePeer.java: New file.
3162 * java/awt/peer/MenuPeer.java: New file.
3163 * java/awt/peer/ComponentPeer.java: Implemented.
3164 * java/awt/peer/PanelPeer.java: New file.
3165 * java/awt/peer/ContainerPeer.java: Implemented.
3166 * java/awt/peer/PopupMenuPeer.java: New file.
3167 * java/awt/peer/DialogPeer.java: New file.
3168 * java/awt/peer/ScrollPanePeer.java: New file.
3169 * java/awt/peer/FileDialogPeer.java: New file.
3170 * java/awt/peer/ScrollbarPeer.java: New file.
3171 * java/awt/peer/FontPeer.java: New file.
3172 * java/awt/peer/TextAreaPeer.java: New file.
3173 * java/awt/peer/FramePeer.java: Implemented.
3174 * java/awt/peer/TextComponentPeer.java: New file.
3175 * java/awt/peer/LabelPeer.java: New file.
3176 * java/awt/peer/TextFieldPeer.java: New file.
3177 * java/awt/peer/LightweightPeer.java: New file.
3178 * java/awt/peer/WindowPeer.java: Implemented.
3180 2000-07-06 Tom Tromey <tromey@cygnus.com>
3182 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3183 Initialize static final String fields.
3185 2000-07-03 Tom Tromey <tromey@cygnus.com>
3187 * java/io/PrintWriter.java (print): Call write(String), not
3188 print(String). See PR libgcj/277.
3189 (print(String)): Use write, not out.write.
3191 2000-06-30 Tom Tromey <tromey@cygnus.com>
3193 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3195 2000-06-27 Andrew Haley <aph@cygnus.com>
3197 * java/io/File.java (createTempFile): Close the FileDescriptor
3198 used to create a temp file. Fixes some of PR 203.
3199 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3200 collection if we run out of file handles.
3202 2000-06-28 Warren Levy <warrenl@cygnus.com>
3204 * gnu/java/security/provider/Gnu.java: New file.
3205 * gnu/java/security/provider/SHA.java: New file.
3206 * gnu/java/security/provider/SHA1PRNG.java: New file.
3207 * Makefile.am: Added the above files.
3208 * Makefile.in: Rebuilt.
3210 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3212 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3214 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3215 (destroyed_flag): Removed.
3216 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3217 (activeCount): Added spec note.
3219 2000-06-27 Warren Levy <warrenl@cygnus.com>
3221 * java/security/Principal.java: New file.
3222 * Makefile.am: Added Principal.java.
3223 * Makefile.in: Rebuilt.
3225 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3227 * java/awt/event/MouseEvent.java: Fixed coordinate space
3230 2000-06-27 Tom Tromey <tromey@cygnus.com>
3232 * java/io/PushbackInputStream.java (read): If there are characters
3233 in the buffer, don't also call super.read().
3234 * java/io/PushbackReader.java (read): If there are characters in
3235 the buffer, don't also call super.read().
3237 * java/lang/Double.java (valueOf): Call parseDouble().
3239 2000-06-26 Warren Levy <warrenl@cygnus.com>
3241 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3242 (newVal): Renamed to newValue.
3243 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3244 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3245 (revokeNow): Renamed to invalidateRefs.
3246 * java/io/OptionalDataException.java: Updated FIXME.
3247 (eof): New placeholder field.
3249 * java/io/WriteAbortedException.java (message): Made transient.
3250 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3251 * java/lang/Throwable.java (stackTrace): Made transient.
3252 * java/net/InetAddress.java: Made Serializable.
3253 * java/security/KeyPair.java: Made Serializable.
3254 * java/security/Provider.java: Replaced with Classpath version that
3255 implements serialization and proper methods.
3256 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3257 (limits): Renamed to choiceLimits.
3259 2000-06-24 Tom Tromey <tromey@cygnus.com>
3261 * java/lang/natDouble.cc (parseDouble): Renamed from
3263 * java/lang/Double.java (parseDouble): Renamed from
3264 doubleValueOf. Now public.
3266 2000-06-23 Andrew Haley <aph@cygnus.com>
3268 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3269 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3271 2000-06-23 Tom Tromey <tromey@cygnus.com>
3273 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3274 * java/lang/natDouble.cc: Always include <alloca.h>.
3275 Fix for PR libgcj/267.
3277 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3279 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3280 comply with classpath VM spec.
3281 (add(Group)): Rename to addGroup().
3282 * java/lang/Thread.java (Thread): Use addThread().
3283 * java/lang/natThread.cc (finish_): Use removeThread().
3285 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3287 * java/lang/ThreadGroup.java: Merged with classpath.
3288 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3289 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3291 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3292 ThreadGroup.root if Thread.currentThread is null. Honour the
3293 ThreadGroup's max priority setting.
3295 2000-06-18 Tom Tromey <tromey@cygnus.com>
3297 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3298 returned class. For PR gcj/260.
3300 2000-06-16 Tom Tromey <tromey@cygnus.com>
3302 Fix for PR libgcj/261:
3303 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3305 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3306 argument. (This is a patch from long ago that somehow went
3309 2000-06-15 Tom Tromey <tromey@cygnus.com>
3311 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3315 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3317 Fix for PR java.lang/258:
3318 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3319 JV_STATE_DONE, to prevent accidental initialization.
3320 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3321 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3322 interface or an abstract class. Remove redundant initializeClass calls.
3323 Remove duplicate if_idt test.
3324 (_Jv_InterfaceAssignableFrom): New function.
3325 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3327 2000-05-31 Tom Tromey <tromey@cygnus.com>
3329 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3330 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3331 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3332 (NUM_OBJECT_METHODS): New define.
3333 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3334 `array_vtable' parameter. Added assertion.
3335 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3338 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3340 * gcj/cni.h: Include <string.h>.
3341 * defineclass.cc: Include <alloca.h>.
3342 * interpret.cc: Ditto.
3343 * gij.cc: Include <stdlib.h>.
3345 2000-05-30 Tom Tromey <tromey@cygnus.com>
3347 * include/name-finder.h: Include <sys/wait.h>.
3348 (_Jv_name_finder::pid): Now of type `pid_t'.
3349 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3350 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3353 2000-05-24 Warren Levy <warrenl@cygnus.com>
3355 * java/io/ObjectOutputStream.java (writeObject): Use component type
3356 when writing arrays.
3359 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3361 Fix for PR libgcj/226:
3362 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3363 since this is an installed header.
3365 Fix for PR libgcj/228:
3366 * java/util/zip/ZipFile (getInputStream): Create inflater with
3369 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3370 with DataFormatException.
3372 2000-05-20 Tom Tromey <tromey@cygnus.com>
3374 * Makefile.in: Rebuilt.
3375 * Makefile.am (hack1): Removed.
3376 (awto_files): Likewise.
3377 (libgcjawt_la_SOURCES): Likewise.
3378 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3379 (libgcjawt_la_DEPENDENCIES): Likewise.
3380 (libgcjawt_la_LIBADD): Likewise.
3381 (libgcjawt_la_LDFLAGS): Likewise.
3382 (libgcjawt_la_LINK): Likewise.
3383 ($(awt_java_source_files:.java=.class)): Likewise.
3384 (libgcj.zip): Don't depend on AWT files.
3385 (MOSTLYCLEANFILES): Don't include AWT files.
3386 ($(awto_files)): Removed.
3387 (nat_headers): Removed AWT files.
3388 (cond_awt_java_source_files): Removed.
3389 (ordinary_java_source_files): Added awt_java_source_files.
3390 * libgcj.spec.in (*lib): Removed -lgcjawt.
3391 * configure: Rebuilt.
3392 * configure.in: Removed --enable-java-awt option.
3394 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3396 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3397 (ZipEntry): Copy the `name' field.
3398 (clone): Implement JDK1.2 method.
3399 (setCompressedSize): ditto.
3402 2000-05-19 Tom Tromey <tromey@cygnus.com>
3404 * java/io/BufferedWriter.java: Merged with Classpath.
3405 * java/io/BufferedOutputStream.java: Merged with Classpath.
3407 2000-05-16 Andrew Haley <aph@cygnus.com>
3409 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3410 build_ia64_frame_state.
3411 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3414 2000-05-15 Warren Levy <warrenl@cygnus.com>
3416 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3417 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3418 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3419 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3420 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3421 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3422 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3423 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3424 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3425 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3426 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3427 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3428 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3429 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3430 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3431 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3432 * gnu/gcj/io/NullOutputStream.java: Removed.
3433 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3434 * gnu/gcj/lang/ArrayHelper.java: Removed.
3435 * gnu/gcj/lang/ClassHelper.java: Removed.
3436 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3438 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3439 * gnu/java/beans/EmptyBeanInfo.java: New file.
3440 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3441 * gnu/java/beans/IntrospectionIncubator.java: New file.
3442 * gnu/java/beans/editors/ColorEditor.java: New file.
3443 * gnu/java/beans/editors/FontEditor.java: New file.
3444 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3445 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3446 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3447 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3448 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3449 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3450 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3451 * gnu/java/beans/editors/StringEditor.java: New file.
3452 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3453 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3454 * gnu/java/io/NullOutputStream.java: New file.
3455 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3456 * gnu/java/lang/ArrayHelper.java: New file.
3457 * gnu/java/lang/ClassHelper.java: New file.
3458 * gnu/java/lang/reflect/TypeSignature.java: New file.
3460 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3461 namespace back to the original Classpath gnu/java namespace.
3462 * Makefile.in: Rebuilt.
3464 * java/beans/Beans.java: Namespace change.
3465 * java/beans/EventSetDescriptor.java: Namespace change.
3466 * java/beans/Introspector.java: Namespace change.
3467 * java/beans/PropertyEditorManager.java: Namespace change.
3468 * java/io/ObjectInputStream.java: Namespace change.
3469 * java/io/ObjectOutputStream.java: Namespace change.
3470 * java/io/ObjectStreamClass.java: Namespace change.
3471 * java/io/ObjectStreamField.java: Namespace change.
3473 2000-04-21 Warren Levy <warrenl@cygnus.com>
3475 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3476 now that compiler patch is available.
3477 Removed unneeded System.loadLibrary.
3478 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3479 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3481 2000-04-19 Andrew Haley <aph@cygnus.com>
3483 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3484 and target classes have been initialized.
3486 2000-04-19 Andrew Haley <aph@cygnus.com>
3488 * java/lang/String.java: implement Serializable, Comparable.
3489 (compareTo (Object)): New method.
3491 2000-04-19 Warren Levy <warrenl@cygnus.com>
3493 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3494 instead of getField to retrieve non-public field.
3495 (getSerialPersistantFields): Ditto.
3497 2000-04-18 Warren Levy <warrenl@cygnus.com>
3499 * mauve-libgcj: Turned off object serialization tests temporarily
3500 due to compiler error.
3502 2000-04-17 Warren Levy <warrenl@cygnus.com>
3504 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3505 to avoid build problem.
3507 * mauve-libgcj: Turned on object serialization tests.
3509 2000-04-17 Tom Tromey <tromey@cygnus.com>
3511 * libgcj.spec.in (*lib): Added -lgcjawt.
3513 2000-04-17 Andrew Haley <aph@cygnus.com>
3515 * Makefile.am: Add new files:
3516 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3518 * Makefile.in: Rebuilt.
3520 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3521 interface that has no implementations.
3522 Check for an attempt to assign an abstract class to an interface.
3524 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3525 if we fail to find MessageDigest.getInstance ("SHA").
3527 * gnu/gcj/io/SimpleSHSStream.java: New file.
3528 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3529 * gnu/gcj/io/shs.cc: New file.
3530 * gnu/gcj/io/shs.h: new file.
3532 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3535 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3536 punctuation from the classname of an array element.
3538 * gcj/javaprims.h: Add SimpleDigestStream.
3540 2000-04-17 Andrew Haley <aph@cygnus.com>
3542 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3543 to getPrivateField for superclasses.
3545 2000-04-14 Andrew Haley <aph@cygnus.com>
3547 * Makefile.am: Add new files:
3548 java/io/ObjectOutputStream$PutField.h,
3549 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3550 java/io/natObjectOutputStream.cc
3551 * Makefile.in: Rebuilt.
3552 * gcj/Makefile.in: Rebuilt.
3553 * include/Makefile.in: Rebuilt.
3554 * java/lang/Class.h (getPrivateField): New method.
3555 (getPrivateMethod): Ditto.
3556 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3557 and java::io::ObjectStreamClass our friends.
3558 * java/lang/natClass.cc (getPrivateField): New method.
3559 (getPrivateMethod): Ditto.
3560 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3561 * gcj/javaprims.h: Add serialization classes.
3562 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3563 (setByteField): Ditto.
3564 (setCharField): Ditto.
3565 (setDoubleField): Ditto.
3566 (setFloatField): Ditto.
3567 (setIntField): Ditto.
3568 (setLongField): Ditto.
3569 (setShortField): Ditto.
3570 (setObjectField): Ditto.
3571 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3573 (getByteField): Ditto.
3574 (getCharField): Ditto.
3575 (getDoubleField): Ditto.
3576 (getFloatField): Ditto.
3577 (getIntField): Ditto.
3578 (getLongField): Ditto.
3579 (getShortField): Ditto.
3580 (getObjectField): Ditto.
3581 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3583 (getSerialPersistantFields): Ditto.
3584 (getDefinedSUID): Ditto.
3585 * java/io/natObjectOutputStream.cc: New file.
3586 * java/io/natObjectInputStream.cc: New file.
3588 2000-04-13 Warren Levy <warrenl@cygnus.com>
3590 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3591 problems. Revert to previous version to reproduce and when fixed.
3593 2000-04-13 Warren Levy <warrenl@cygnus.com>
3595 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3596 * gnu/gcj/io/NullOutputStream.java: New file.
3597 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3598 * java/io/BlockDataException.java: New file.
3599 * java/io/Externalizable.java: New file.
3600 * java/io/InvalidClassException.java: New file.
3601 * java/io/InvalidObjectException.java: New file.
3602 * java/io/NotActiveException.java: New file.
3603 * java/io/NotSerializableException.java: New file.
3604 * java/io/ObjectInput.java: New file.
3605 * java/io/ObjectInputStream.java: New file.
3606 * java/io/ObjectInputValidation.java: New file.
3607 * java/io/ObjectOutput.java: New file.
3608 * java/io/ObjectOutputStream.java: New file.
3609 * java/io/ObjectStreamClass.java: New file.
3610 * java/io/ObjectStreamConstants.java: New file.
3611 * java/io/ObjectStreamField.java: New file.
3612 * java/io/Replaceable.java: New file.
3613 * java/io/Resolvable.java: New file.
3614 * java/io/SerializablePermission.java: New file.
3615 * java/io/WriteAbortedException.java: New file.
3616 * java/security/BasicPermission.java: New file.
3617 * java/security/DigestOutputStream.java: New file.
3618 * java/security/Guard.java: New file.
3619 * java/security/Permission.java: New file.
3620 * java/security/PermissionCollection.java: New file.
3621 * Makefile.am: Added above files.
3622 * Makefile.in: Rebuilt.
3624 * java/beans/Beans.java (instantiate): Activated serialization code.
3625 * java/lang/SecurityManager.java (checkPermission): New method.
3627 2000-04-12 Warren Levy <warrenl@cygnus.com>
3629 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3630 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3631 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3632 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3633 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3634 * gnu/gcj/beans/editors/FontEditor.java: New file.
3635 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3636 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3637 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3638 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3639 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3640 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3641 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3642 * gnu/gcj/beans/editors/StringEditor.java: New file.
3643 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3644 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3645 * gnu/gcj/lang/ArrayHelper.java: New file.
3646 * gnu/gcj/lang/ClassHelper.java: New file.
3647 * java/beans/BeanDescriptor.java: New file.
3648 * java/beans/BeanInfo.java: New file.
3649 * java/beans/Beans.java: New file.
3650 * java/beans/Customizer.java: New file.
3651 * java/beans/DesignMode.java: New file.
3652 * java/beans/EventSetDescriptor.java: New file.
3653 * java/beans/FeatureDescriptor.java: New file.
3654 * java/beans/IndexedPropertyDescriptor.java: New file.
3655 * java/beans/IntrospectionException.java: New file.
3656 * java/beans/Introspector.java: New file.
3657 * java/beans/MethodDescriptor.java: New file.
3658 * java/beans/ParameterDescriptor.java: New file.
3659 * java/beans/PropertyChangeEvent.java: New file.
3660 * java/beans/PropertyChangeListener.java: New file.
3661 * java/beans/PropertyChangeSupport.java: New file.
3662 * java/beans/PropertyDescriptor.java: New file.
3663 * java/beans/PropertyEditor.java: New file.
3664 * java/beans/PropertyEditorManager.java: New file.
3665 * java/beans/PropertyEditorSupport.java: New file.
3666 * java/beans/PropertyVetoException.java: New file.
3667 * java/beans/SimpleBeanInfo.java: New file.
3668 * java/beans/VetoableChangeListener.java: New file.
3669 * java/beans/VetoableChangeSupport.java: New file.
3670 * java/beans/Visibility.java: New file.
3671 * java/beans/beancontext/BeanContext.java: New file.
3672 * java/beans/beancontext/BeanContextChild.java: New file.
3673 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3674 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3675 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3676 * java/beans/beancontext/BeanContextEvent.java: New file.
3677 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3678 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3679 * java/beans/beancontext/BeanContextProxy.java: New file.
3680 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3682 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3683 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3685 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3686 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3688 * java/beans/beancontext/BeanContextServices.java: New file.
3689 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3690 * java/util/AbstractCollection.java: New file.
3691 * java/util/AbstractList.java: New file.
3692 * java/util/Arrays.java: New file.
3693 * Makefile.am: Added above files.
3694 * Makefile.in: Rebuilt.
3696 2000-04-11 Warren Levy <warrenl@cygnus.com>
3698 * java/awt/AWTError.java: New file.
3699 * java/awt/AWTEvent.java: New file.
3700 * java/awt/AWTException.java: New file.
3701 * java/awt/ActiveEvent.java: New file.
3702 * java/awt/Adjustable.java: New file.
3703 * java/awt/BorderLayout.java: New file.
3704 * java/awt/Color.java: New file.
3705 * java/awt/Component.java: New file.
3706 * java/awt/Container.java: New file.
3707 * java/awt/Dimension.java: New file.
3708 * java/awt/Event.java: New file.
3709 * java/awt/Font.java: New file.
3710 * java/awt/Frame.java: New file.
3711 * java/awt/Graphics.java: New file.
3712 * java/awt/IllegalComponentStateException.java: New file.
3713 * java/awt/Image.java: New file.
3714 * java/awt/ItemSelectable.java: New file.
3715 * java/awt/LayoutManager.java: New file.
3716 * java/awt/LayoutManager2.java: New file.
3717 * java/awt/Menu.java: New file.
3718 * java/awt/MenuBar.java: New file.
3719 * java/awt/MenuComponent.java: New file.
3720 * java/awt/MenuContainer.java: New file.
3721 * java/awt/MenuItem.java: New file.
3722 * java/awt/Paint.java: New file.
3723 * java/awt/PaintContext.java: New file.
3724 * java/awt/Point.java: New file.
3725 * java/awt/Rectangle.java: New file.
3726 * java/awt/Shape.java: New file.
3727 * java/awt/TextArea.java: New file.
3728 * java/awt/TextComponent.java: New file.
3729 * java/awt/Toolkit.java: New file.
3730 * java/awt/Transparency.java: New file.
3731 * java/awt/Window.java: New file.
3732 * java/awt/natToolkit.cc: New file.
3733 * java/awt/event/AWTEventListener.java: New file.
3734 * java/awt/event/ActionEvent.java: New file.
3735 * java/awt/event/ActionListener.java: New file.
3736 * java/awt/event/AdjustmentEvent.java: New file.
3737 * java/awt/event/AdjustmentListener.java: New file.
3738 * java/awt/event/ComponentAdapter.java: New file.
3739 * java/awt/event/ComponentEvent.java: New file.
3740 * java/awt/event/ComponentListener.java: New file.
3741 * java/awt/event/ContainerAdapter.java: New file.
3742 * java/awt/event/ContainerEvent.java: New file.
3743 * java/awt/event/ContainerListener.java: New file.
3744 * java/awt/event/FocusAdapter.java: New file.
3745 * java/awt/event/FocusEvent.java: New file.
3746 * java/awt/event/FocusListener.java: New file.
3747 * java/awt/event/InputEvent.java: New file.
3748 * java/awt/event/InputMethodEvent.java: New file.
3749 * java/awt/event/InputMethodListener.java: New file.
3750 * java/awt/event/InvocationEvent.java: New file.
3751 * java/awt/event/ItemEvent.java: New file.
3752 * java/awt/event/ItemListener.java: New file.
3753 * java/awt/event/KeyAdapter.java: New file.
3754 * java/awt/event/KeyEvent.java: New file.
3755 * java/awt/event/KeyListener.java: New file.
3756 * java/awt/event/MouseAdapter.java: New file.
3757 * java/awt/event/MouseEvent.java: New file.
3758 * java/awt/event/MouseListener.java: New file.
3759 * java/awt/event/MouseMotionAdapter.java: New file.
3760 * java/awt/event/MouseMotionListener.java: New file.
3761 * java/awt/event/PaintEvent.java: New file.
3762 * java/awt/event/TextEvent.java: New file.
3763 * java/awt/event/TextListener.java: New file.
3764 * java/awt/event/WindowAdapter.java: New file.
3765 * java/awt/event/WindowEvent.java: New file.
3766 * java/awt/event/WindowListener.java: New file.
3767 * java/awt/geom/Dimension2D.java: New file.
3768 * java/awt/geom/Point2D.java: New file.
3769 * java/awt/peer/ComponentPeer.java: New file.
3770 * java/awt/peer/ContainerPeer.java: New file.
3771 * java/awt/peer/FramePeer.java: New file.
3772 * java/awt/peer/WindowPeer.java: New file.
3773 * java/util/Collection.java: New file.
3774 * java/util/Comparator.java: New file.
3775 * java/util/Iterator.java: New file.
3776 * java/util/List.java: New file.
3777 * java/util/ListIterator.java: New file.
3778 * Makefile.am: Added above files.
3779 * Makefile.in: Rebuilt.
3781 2000-04-10 Warren Levy <warrenl@cygnus.com>
3783 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3784 * java/lang/FirstThread.java: Ditto.
3785 * java/lang/StringBuffer.java: Ditto.
3786 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3788 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3789 Special case handled in java.math.BigInteger.
3790 * java/math/BigInteger.java (divide): Handle the special case when
3791 dividing by 1 and the high bit of the dividend is set.
3792 (setShiftRight): Handle case when count == 0.
3794 2000-04-05 Andrew Haley <aph@cygnus.com>
3796 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3799 2000-04-05 Andrew Haley <aph@cygnus.com>
3801 * sysdep/ia64.c (rse_address_add): Delete.
3802 (IS_NaT_COLLECTION_ADDR): Delete.
3803 (ia64_backtrace_helper): check for null unwind_info.
3805 * sysdep/ia64-frame.h: add calc_caller_bsp.
3807 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3810 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3811 (_Jv_remI): Likewise.
3812 (_Jv_divJ): Likewise.
3813 (_Jv_remJ): Likewise.
3815 * interpret.cc (continue1): Use divide subroutines to guarantee
3816 correct Java standard behaviour.
3817 Floating-point division should not abort; make it so.
3819 2000-03-29 Tom Tromey <tromey@cygnus.com>
3821 * configure: Rebuilt.
3822 * configure.in: Test against `libgcj_sjlj', not
3823 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3824 to be set even when using sjlj.
3826 2000-03-24 Andrew Haley <aph@cygnus.com>
3828 * Makefile.am: Add file addr2name.awk.
3829 * Makefile.in: Rebuilt.
3830 * addr2name.awk: New file.
3831 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3833 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3836 2000-03-22 Andrew Haley <aph@cygnus.com>
3838 * configure.host: Add -funwind-tables for IA64.
3839 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3840 * Makefile.in: Rebuilt.
3841 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3842 * sysdep/ia64.c: New file.
3843 * sysdep/ia64-frame.h: New file.
3844 * configure.in: Add sysdep/ia64.c for ia64.
3845 * configure: Rebuilt.
3847 2000-03-17 Andrew Haley <aph@cygnus.com>
3849 * java/lang/natString.cc: Remove `register' keyword.
3850 interpret.cc: ditto.
3852 2000-03-16 Andrew Haley <aph@cygnus.com>
3854 * configure.host (ia64): Enable interpreter.
3856 2000-03-14 Hans Boehm <boehm@acm.org>
3858 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3860 2000-03-14 Andrew Haley <aph@cygnus.com>
3862 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3865 2000-03-10 Andrew Haley <aph@cygnus.com>
3867 * java/lang/ieeefp.h: Import latest version from fdlibm.
3869 2000-03-14 Andrew Haley <aph@cygnus.com>
3871 * prims.cc (_Jv_ThrowSignal): New function.
3872 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3874 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3875 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3876 * include/ppc-signal.h: New file.
3878 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3880 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3881 * java/lang/natThread.java (initialize_native): Cast `data' to
3883 * gnu/gcj/RawData.java: Clarify documentation.
3885 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3886 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3887 `jarFile', not `jarFileURL'.
3889 2000-05-15 Andrew Haley <aph@cygnus.com>
3891 * include/ppc-signal.h: New file.
3893 2000-05-11 Tom Tromey <tromey@cygnus.com>
3895 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3896 file headers, don't include `size' in the skip call.
3898 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3900 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3901 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3903 (replace): Reimplemented. Fix javadoc.
3904 (reverse): Call ensureCapacity_unsynchronized().
3905 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3907 (replace): Calculate length for arraycopy() correctly.
3909 2000-05-09 Tom Tromey <tromey@cygnus.com>
3911 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3913 (insert(int,char[],int,int): New method.
3914 (delete): New method from Classpath.
3915 (deleteCharAt): Likewise.
3916 (substring): Likewise.
3917 (shared): No longer private.
3918 Added JavaDoc comments from Classpath.
3919 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3922 2000-05-07 Tom Tromey <tromey@cygnus.com>
3924 * Makefile.in: Rebuilt.
3925 * Makefile.am (LIBLINK): New macro.
3926 (libgcj_la_LINK): Use it.
3927 (libgcjawt_la_LINK): Likewise.
3929 2000-05-06 Tom Tromey <tromey@cygnus.com>
3931 * Makefile.in: Rebuilt.
3932 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3934 2000-05-05 Tom Tromey <tromey@cygnus.com>
3936 Fix for PR libgcj/220:
3937 * Makefile.in: Rebuilt.
3938 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3939 (jv_convert_LDFLAGS): Likewise.
3940 (libgcj_la_LDFLAGS): Likewise.
3941 (GCJLINK): New macro.
3942 (jv_convert_LINK): Use it.
3943 (gij_LINK): Likewise.
3944 (libgcj_la_LINK): New macro.
3945 (libgcjawt_la_LINK): Likewise.
3947 2000-05-04 Tom Tromey <tromey@cygnus.com>
3949 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3951 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3955 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3957 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3958 (_Jv_IsAssignableFrom): Ditto.
3959 (_Jv_IsInstanceOf): Ditto.
3960 (_Jv_CheckCast): Ditto.
3961 (_Jv_CheckArrayStore): Ditto.
3962 * java/lang/Class.h (_Jv_InitClass): Ditto.
3963 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3968 (_Jv_MonitorExit): Ditto.
3969 * boehm.cc (_Jv_MarkObj): Ditto.
3970 (_Jv_MarkObj): Ditto.
3971 (_Jv_MarkArray): Ditto.
3972 * prims.cc (_Jv_AllocObject): Ditto.
3973 (_Jv_NewObjectArray): Ditto.
3974 (_Jv_NewPrimArray): Ditto.
3975 (_Jv_Malloc): Ditto.
3976 (_Jv_Realloc): Ditto.
3977 (_Jv_MallocUnchecked): Ditto.
3983 2000-05-04 Tom Tromey <tromey@cygnus.com>
3985 * java/util/Locale.java (Locale): Don't explicitly check for
3987 * java/util/Hashtable.java (containsKey): Don't explicitly check
3990 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3992 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3994 * java/text/StringCharacterIterator.java
3995 (StringCharacterIterator): Don't check for null.
3996 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3998 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3999 check for null pointer.
4000 (leaveGroup): Likewise.
4001 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4003 (setData): Likewise.
4004 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4007 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4009 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4010 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4011 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4012 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4013 -rpath for in-gcc builds.
4014 * Makefile.in: Rebuilt.
4016 2000-04-28 Tom Tromey <tromey@cygnus.com>
4018 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4021 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4023 * libjava/java/lang/String.java (toString): Remove `final' hack.
4025 2000-04-05 Tom Tromey <tromey@cygnus.com>
4027 Runtime support for PR gcj/2:
4028 * prims.cc (_Jv_ThrowNullPointerException): New function.
4029 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4031 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4033 * prims.cc (_Jv_NewObjectArray): Fix typo.
4035 2000-04-26 Tom Tromey <tromey@cygnus.com>
4037 * Makefile.in: Rebuilt.
4038 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4040 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4042 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4045 2000-04-22 Anthony Green <green@cygnus.com>
4047 * include/jvm.h (__builtin_expect): Define as unused for now.
4048 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4052 (_Jv_MonitorExit): Ditto.
4053 * boehm.cc (_Jv_MarkObj): Ditto.
4054 (_Jv_MarkObj): Ditto.
4055 (_Jv_MarkArray): Ditto.
4056 (_Jv_AllocBytes): Ditto.
4057 * prims.cc (_Jv_AllocObject): Ditto.
4058 (_Jv_NewObjectArray): Ditto.
4059 (_Jv_NewPrimArray): Ditto.
4060 (_Jv_Malloc): Ditto.
4061 (_Jv_Realloc): Ditto.
4062 (_Jv_MallocUnchecked): Ditto.
4068 * include/Makefile.in: Rebuilt.
4069 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4071 2000-04-21 Tom Tromey <tromey@cygnus.com>
4073 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4074 Yet another new version from Classpath.
4076 Fix for PR libgcj/15:
4077 * java/util/natGregorianCalendar.cc (_REENTRANT,
4078 _POSIX_PTHREAD_SEMANTICS): Don't define.
4079 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4080 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4082 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4084 * configure: Rebuilt.
4085 * configure.in: If using POSIX threads, define _REENTRANT if
4086 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4087 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4089 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4090 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4091 version from Classpath.
4093 Fix for PR libgcj/213:
4094 * Makefile.in: Rebuilt.
4095 * Makefile.am (gij_SOURCES): Added gij.cc.
4096 (EXTRA_gij_SOURCES): Removed.
4097 (gij_LDADD): Removed gij.lo.
4098 (gij_DEPENDENCIES): Likewise.
4099 ($(gij_OBJECTS)): Depend on nat_headers.
4101 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4102 `setURL', not `url.set'.
4104 2000-04-20 Tom Tromey <tromey@cygnus.com>
4106 Fix for PR java.io/204:
4107 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4108 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4111 Fix for PR libgcj/212:
4112 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4113 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4114 * java/lang/Class.h (_Jv_word): Declare.
4116 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4118 2000-04-19 Tom Tromey <tromey@cygnus.com>
4120 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4121 doesn't have a loader.
4123 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4125 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4126 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4128 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4130 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4132 (available): Initialize `where' to prevent bogus compiler warning.
4134 2000-04-12 Tom Tromey <tromey@cygnus.com>
4136 * java/lang/natString.cc (intern): Temporarily disable finalizer
4139 * java/lang/natString.cc (unintern): Added `obj' argument.
4140 (intern): Register finalizer for string.
4141 * java/lang/String.java (unintern): Now static; added obj
4144 2000-04-11 Tom Tromey <tromey@cygnus.com>
4146 * java/util/Vector.java (VectorEnumeration): Now `final'.
4147 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4148 (HashtableEnumeration): Likewise.
4149 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4150 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4152 2000-04-10 Warren Levy <warrenl@cygnus.com>
4154 * java/io/ObjectStreamException.java: New file.
4155 * java/io/OptionalDataException.java: New file.
4156 * java/io/StreamCorruptedException.java: New file.
4157 * java/math/BigDecimal.java: New file.
4158 * java/sql/CallableStatement.java: New file.
4159 * java/sql/Connection.java: New file.
4160 * java/sql/DataTruncation.java: New file.
4161 * java/sql/DatabaseMetaData.java: New file.
4162 * java/sql/Date.java: New file.
4163 * java/sql/Driver.java: New file.
4164 * java/sql/DriverManager.java: New file.
4165 * java/sql/DriverPropertyInfo.java: New file.
4166 * java/sql/PreparedStatement.java: New file.
4167 * java/sql/ResultSet.java: New file.
4168 * java/sql/ResultSetMetaData.java: New file.
4169 * java/sql/SQLException.java: New file.
4170 * java/sql/SQLWarning.java: New file.
4171 * java/sql/Statement.java: New file.
4172 * java/sql/Time.java: New file.
4173 * java/sql/Timestamp.java: New file.
4174 * java/sql/Types.java: New file.
4175 * Makefile.am: Added above new files.
4176 * Makefile.in: Rebuilt.
4178 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4179 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4180 DatagramSocket constructor instead of null.
4182 2000-04-08 Anthony Green <green@cygnus.com>
4184 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4187 2000-04-08 Anthony Green <green@cygnus.com>
4189 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4190 (_Jv_MutexUnlock): Ditto.
4191 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4192 (_Jv_MutexUnlock): Ditto.
4194 2000-04-08 Anthony Green <green@cygnus.com>
4196 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4197 (ensureCapacity_unsynchronized): New private method.
4198 (append): Use ensureCapacity_unsynchronized.
4200 2000-04-08 Tom Tromey <tromey@cygnus.com>
4202 * Makefile.in: Rebuilt.
4203 * Makefile.am (awt_java_source_files): Added new files.
4204 * java/awt/IllegalComponentStateException.java: New file.
4205 * java/awt/ItemSelectable.java: New file.
4206 * java/awt/event/WindowEvent.java: Finished.
4207 * java/awt/event/TextEvent.java: Finished.
4208 * java/awt/event/ContainerEvent.java: New file.
4209 * java/awt/Component.java (getX, getY): New methods.
4210 * java/awt/event/PaintEvent.java: New file.
4211 * java/awt/event/MouseEvent.java: New file.
4212 * java/awt/ActiveEvent.java: New file.
4213 * java/awt/event/KeyEvent.java: Finished.
4214 * java/awt/event/ItemEvent.java: New file.
4215 * java/awt/Adjustable.java: New file.
4216 * java/awt/event/InputMethodEvent.java: New file.
4217 * java/awt/event/InputEvent.java: Finished.
4218 * java/awt/event/FocusEvent.java: New file.
4219 * java/awt/event/MouseMotionAdapter.java: New file.
4220 * java/awt/event/MouseAdapter.java: New file.
4221 * java/awt/event/KeyAdapter.java: New file.
4222 * java/awt/event/FocusAdapter.java: New file.
4223 * java/awt/event/ContainerAdapter.java: New file.
4224 * java/awt/event/ComponentEvent.java: Finished.
4225 * java/awt/event/AdjustmentEvent.java: New file.
4226 * java/awt/event/ComponentAdapter.java: New file.
4227 * java/awt/event/ActionEvent.java: Finished.
4228 * java/awt/event/MouseMotionListener.java: New file.
4229 * java/awt/event/MouseListener.java: New file.
4230 * java/awt/event/ItemListener.java: New file.
4231 * java/awt/event/InputMethodListener.java: New file.
4232 * java/awt/event/ContainerListener.java: New file.
4233 * java/awt/event/FocusListener.java: New file.
4234 * java/awt/event/ComponentListener.java: New file.
4235 * java/awt/event/AWTEventListener.java: New file.
4236 * java/awt/event/AdjustmentListener.java: New file.
4238 2000-04-08 Anthony Green <green@cygnus.com>
4240 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4241 check when we have to.
4243 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4246 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4249 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4250 inline hasMoreElements.
4252 2000-04-05 Tom Tromey <tromey@cygnus.com>
4254 * configure: Rebuilt.
4255 * configure.in: Recognize --enable-java-awt.
4256 (AWT): New conditional.
4257 * Makefile.in: Rebuilt.
4258 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4260 (libgcjawt_la_SOURCES): New macro.
4261 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4262 (libgcjawt_la_DEPENDENCIES): Likewise.
4263 (libgcjawt_la_LIBADD): Likewise.
4264 (libgcjawt_la_LDFLAGS): Likewise.
4265 (libgcj.zip): Depend on cond_java_awt_source_files
4266 (cond_awt_java_source_files): New macro.
4267 (MOSTLYCLEANFILES): Added awto_files.
4268 (awto_files): New macro. Use where javao_files used.
4269 (nat_headers): Use cond_awt_java_source_files.
4271 2000-04-04 Tom Tromey <tromey@cygnus.com>
4273 * Makefile.in: Rebuilt.
4274 * Makefile.am (awt_java_source_files): Added AWTException.java.
4275 * java/awt/AWTException.java: New file.
4277 2000-04-03 Tom Tromey <tromey@cygnus.com>
4279 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4280 commentary from Alex.
4282 * Makefile.in: Rebuilt.
4283 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4286 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4288 * configure: Rebuilt.
4289 * configure.in: Add --disable-jvmpi.
4290 * include/config.h.in: Rebuilt.
4291 * acconfig.h: Add ENABLE_JVMPI.
4293 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4294 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4295 (_Jv_JVMPI_Notify_THREAD_END): New define.
4296 (_Jv_JVMPI_Notify_THREAD_END): New define.
4297 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4298 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4299 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4301 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4304 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4305 (finish_): Generate JVMPI thread end events.
4306 (run_): Generate JVMPI thread start events.
4307 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4308 preloaded JNI library.
4309 Include JVMPI headers if necessary.
4310 (run): Generate JVMPI thread start events.
4312 * boehm.cc: Define GC_disable and GC_enable.
4313 (_Jv_DisableGC): New function.
4314 (_Jv_EnableGC): New function.
4315 (disable_gc_mutex): Declare.
4316 * nogc.cc (_Jv_DisableGC): New function.
4317 (_Jv_EnableGC): New function.
4319 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4320 (_Jv_JVMPI_Interface): Define.
4321 (jvmpiEnableEvent): New function.
4322 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4324 * include/jvmpi.h: New file.
4326 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4328 * Makefile.in: New #defines and friends for Thread.h.
4329 * Makefile.am: Ditto.
4330 * posix-threads.cc: (struct starter): Remove `object'.
4331 (_Jv_CondWait): Use interruptable condition variables and new
4332 recursive mutexes. New return codes on interrupt or non-ownership
4334 (_Jv_CondNotify): Ditto.
4335 (_Jv_CondNotifyAll): Ditto.
4336 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4337 the target thread by signaling its wait condition.
4338 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4339 not the starter struct. Initialize wait_mutex and wait_cond.
4340 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4342 (_Jv_MutexUnlock): Ditto.
4343 (really_start): Set info->data->thread from pthread_self() to work
4344 around a race condition. Destroy wait_mutex and wait_cond when run()
4346 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4347 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4349 startable_flag: New private field.
4350 (Thread): Initialize `startable_flag'.
4351 (toString): Check for null thread group.
4352 * java/lang/natThread.cc: (struct natThread): New fields
4353 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4354 (class locker): Removed.
4355 (initialize_native): Initialize `join_cond' and `join_mutex'.
4356 (interrupt): Now just calls _Jv_ThreadInterrupt().
4357 (join): Simplified. Just wait on the target thread's join condition.
4358 (finish_): Remove join list code. Unset thread group. Signal
4359 potential joiners by notifying the dying threads join_cond.
4360 (start): Check for illegal restarts.
4361 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4363 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4364 #defines and #ifdefs.
4365 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4366 `wait_mutex', `next'.
4367 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4368 directly mapping to pthread_cond_t.
4369 (struct _Jv_Mutex_t): New recursive implementation.
4370 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4371 _Jv_HaveCondDestroy: Never define this for posix-threads.
4372 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4373 (_Jv_CondNotifyAll): Ditto.
4374 (_Jv_MutexLock): Ditto.
4375 (_Jv_MutexUnlock): Ditto.
4376 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4377 (_Jv_MutexDestroy): Ditto.
4378 (_Jv_CondDestroy): Removed.
4379 (_Jv_PthreadGetMutex): Removed.
4380 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4381 error. Add a FIXME about this.
4382 (_Jv_CondNotifyAll): Ditto.
4383 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4384 _JV_NOT_OWNER on other errors. Add FIXME.
4386 2000-03-26 Tom Tromey <tromey@cygnus.com>
4388 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4390 (call): Don't throw exception here.
4392 2000-03-26 Tom Tromey <tromey@cygnus.com>
4394 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4395 * interpret.cc: Use SIZEOF_VOID_P.
4396 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4397 (_Jv_loadLong): Likewise.
4398 (_Jv_storeDouble): Likewise.
4399 * configure: Rebuilt.
4400 * configure.in: Check size of void*.
4402 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4404 2000-03-26 Hans Boehm <boehm@acm.org>
4406 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4407 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4409 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4410 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4411 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4412 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4414 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4415 (FFI_RAW_SIZE): Likewise.
4416 (_Jv_InterpMethod::ncode): Use them.
4417 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4418 STORED): Define differently on a 64 bit machine.
4419 (continue1): Use ffi_java_raw_call when appropriate.
4421 2000-03-24 Warren Levy <warrenl@cygnus.com>
4423 * java/math/BigInteger.java(divide): Handle the special case when
4424 dividing by 1 and the high bit of the dividend is set.
4425 (setShiftRight): Handle case when count == 0.
4427 2000-03-24 Warren Levy <warrenl@cygnus.com>
4429 * java/awt/Font.java(isBold): Fix syntax error.
4431 * java/awt/Frame.java(postEvent): ditto.
4432 * java/awt/Menu.java(postEvent): ditto.
4433 * java/awt/MenuBar.java(postEvent): ditto.
4434 * java/awt/Toolkit.java(init): Included a stub.
4436 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4438 * java/awt/Event.java: Add all the event type constants.
4439 (Event): Implemented constructors.
4440 (controlDown): Implemented.
4441 (metaDown): Implemented.
4442 (paramString): Stubbed.
4443 (shiftDown): Implemented.
4444 (toString): Implemented.
4445 (translate): Implemented.
4447 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4449 * java/lang/natClass.cc (isInstance): Initialize `this'.
4450 (isAssignableFrom): Initialize `this' and `klass'.
4451 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4452 implemented by any loaded class, so return false.
4453 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4454 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4456 2000-03-19 Warren Levy <warrenl@cygnus.com>
4458 * java/awt/Color.java: Specified java.io for Serializable.
4459 * java/awt/Toolkit.java: Imported java.net.URL.
4461 2000-03-19 Warren Levy <warrenl@cygnus.com>
4463 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4465 2000-03-16 Warren Levy <warrenl@cygnus.com>
4467 * java/awt/Color.java: New file.
4468 * java/awt/Graphics.java: New file.
4469 * java/awt/Image.java: New file.
4470 * java/awt/Paint.java: New file.
4471 * java/awt/PaintContext.java: New file.
4472 * java/awt/Transparency.java: New file.
4473 * java/util/Collection.java: New file.
4474 * java/util/Comparator.java: New file.
4475 * java/util/Iterator.java: New file.
4476 * java/util/List.java: New file.
4477 * java/util/ListIterator.java: New file.
4478 * Makefile.am: Added above new files.
4479 * Makefile.in: Rebuilt.
4481 * java/awt/Font.java (PLAIN): New field.
4483 (ITALIC): New field.
4484 (ROMAN_BASELINE): New field.
4485 (CENTER_BASELINE): New field.
4486 (HANGING_BASELINE): New field.
4490 (pointSize): New field.
4491 (Font): Implemented constructor.
4492 (isPlain): Implemented method.
4493 (isBold): Implemented method.
4494 (isItalic): Implemented method.
4495 (getName): Implemented method.
4496 (getStyle): Implemented method.
4497 (getSize): Implemented method.
4498 (getSize2D): Implemented method.
4500 * java/awt/Frame.java (getFont): Stubbed.
4501 (postEvent): Stubbed.
4503 * java/awt/Menu.java (postEvent): Stubbed.
4504 * java/awt/MenuBar.java (getFont): Stubbed.
4505 (postEvent): Stubbed.
4506 * java/awt/Toolkit.java (getImage): Added abstract method.
4508 2000-03-15 Tom Tromey <tromey@cygnus.com>
4510 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4512 * prims.cc (win32_exception_handler): Reformatted.
4514 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4515 (_Jv_HaveMutexDestroy): Likewise.
4517 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4519 * java/io/natFileDescriptorWin32.cc: New file.
4520 * java/io/natFileWin32.cc: New file.
4521 * java/net/natInetAddress.cc: Added conditional inclusion of
4522 Windows / Winsock headers.
4523 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4524 inclusion of Windows / Winsock headers.
4525 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4526 Windows / Winsock headers.
4527 * include/win32-signal.h: New file.
4528 * include/win32-threads.h: New file.
4529 * win32-threads.cc: New file.
4530 * exception.cc (win32_get_restart_frame): New function.
4531 * prims.cc (win32_exception_handler): New function.
4532 (main_init) Performs Winsock initialisation.
4533 (main_init) Installs exeception handler.
4535 2000-03-14 Tom Tromey <tromey@cygnus.com>
4537 * jni.cc (mangled_name): Fixed assertion.
4538 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4539 turned assert into actual failure.
4541 2000-03-09 Warren Levy <warrenl@cygnus.com>
4543 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4544 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4545 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4547 2000-03-09 Warren Levy <warrenl@cygnus.com>
4549 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4550 * java/security/DigestException.java: New file.
4551 * java/security/GeneralSecurityException.java: New file.
4552 * java/security/InvalidAlgorithmParameterException.java: New file.
4553 * java/security/InvalidKeyException.java: New file.
4554 * java/security/InvalidParameterException.java: New file.
4555 * java/security/Key.java: New file.
4556 * java/security/KeyException.java: New file.
4557 * java/security/KeyPair.java: New file.
4558 * java/security/KeyPairGenerator.java: New file.
4559 * java/security/KeyPairGeneratorSpi.java: New file.
4560 * java/security/NoSuchProviderException.java: New file.
4561 * java/security/PrivateKey.java: New file.
4562 * java/security/Provider.java: New file.
4563 * java/security/PublicKey.java: New file.
4564 * java/security/SecureRandom.java: New file.
4565 * java/security/Security.java: New file.
4566 * java/security/Signature.java: New file.
4567 * java/security/SignatureException.java: New file.
4568 * java/security/interfaces/DSAKey.java: New file.
4569 * java/security/interfaces/DSAParams.java: New file.
4570 * java/security/interfaces/DSAPrivateKey.java: New file.
4571 * java/security/interfaces/DSAPublicKey.java: New file.
4572 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4573 * java/security/interfaces/RSAPrivateKey.java: New file.
4574 * java/security/interfaces/RSAPublicKey.java: New file.
4575 * java/security/spec/AlgorithmParameterSpec.java: New file.
4576 * java/security/spec/InvalidKeySpecException.java: New file.
4577 * java/security/spec/InvalidParameterSpecException.java: New file.
4578 * java/security/spec/KeySpec.java: New file.
4579 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4580 * java/security/spec/RSAPrivateKeySpec.java: New file.
4581 * java/security/spec/RSAPublicKeySpec.java: New file.
4582 * Makefile.am: Added above java.security files.
4583 * Makefile.in: Rebuilt.
4585 * java/security/MessageDigest.java: Rewritten.
4586 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4588 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4592 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4594 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4595 _Jv_PrepareConstantTimeTables.
4596 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4597 classes should have an IDT, so don't return if klass is an array
4600 2000-03-08 Tom Tromey <tromey@cygnus.com>
4602 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4603 of `void' to be created.
4605 2000-03-08 Warren Levy <warrenl@cygnus.com>
4607 * java/math/BigInteger.java(signum): Handle zero properly.
4609 2000-03-07 Tom Tromey <tromey@cygnus.com>
4611 * All files: Updated copyright information.
4612 * COPYING: New file.
4613 * COPYING.LIB: Removed.
4614 * LIBGCJ_LICENSE: We now use GPL + special exception.
4616 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4618 * resolve.cc (_Jv_SearchMethodInClass): New function.
4619 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4620 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4622 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4624 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4625 (struct _Jv_ifaces): New declaration.
4626 JV_CLASS: New macro definition.
4627 (getComponentType): Relocate below isArray() for inlining.
4628 (getModifiers): Declare `inline'.
4629 (getSuperclass): Ditto.
4631 (isPrimitive): Ditto.
4632 (_Jv_IsAssignableFrom): New prototype.
4633 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4635 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4636 Check for JV_STATE_DONE before invoking initializeClass().
4637 (_Jv_PrepareConstantTimeTables): New prototype.
4638 (_Jv_GetInterfaces): Ditto.
4639 (_Jv_GenerateITable): Ditto.
4640 (_Jv_GetMethodString): Ditto.
4641 (_Jv_AppendPartialITable): Ditto.
4642 (_Jv_FindIIndex): Ditto.
4643 depth, ancestors, idt: New class fields.
4645 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4646 inline function `_Jv_IsAssignableFrom'. Use that function.
4647 (isInstance): Declare `inline'.
4648 (initializeClass): Get lock on class before checking `state'. Unlock
4649 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4651 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4652 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4653 class->depth and ancestor table.
4654 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4655 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4656 _Jv_IsAssignableFrom.
4657 (_Jv_CheckArrayStore): Ditto.
4658 (_Jv_LookupInterfaceMethodIdx): New function.
4659 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4660 (_Jv_PrepareConstantTimeTables): New function.
4661 (_Jv_IndexOf): Ditto.
4662 (_Jv_GetInterfaces): Ditto.
4663 (_Jv_GenerateITable): Ditto.
4664 (_Jv_GetMethodString): Ditto.
4665 (_Jv_AppendPartialITable): Ditto.
4666 iindex_mutex, iindex_mutex_initialized: New static fields.
4667 (_Jv_FindIIndex): New function.
4669 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4671 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4672 (_Jv_CheckArrayStore): Ditto.
4673 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4674 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4675 Moved to gcj/array.h.
4676 (_Jv_Realloc): New function.
4678 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4680 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4681 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4682 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4683 JvNewDoubleArray): Implementations moved from prims.cc and
4686 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4688 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4690 2000-03-06 Tom Tromey <tromey@cygnus.com>
4692 * jni.cc (MARK_NONE): New define.
4693 (MARK_USER): Likewise.
4694 (MARK_SYSTEM): Likewise.
4695 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4697 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4698 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4699 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4700 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4702 (call): Use MARK_SYSTEM.
4703 (_Jv_GetJNIEnvNewFrame): New function.
4704 (_Jv_LookupJNIMethod): New function.
4705 (_Jv_JNI_PopSystemFrame): New function.
4706 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4708 2000-03-05 Tom Tromey <tromey@cygnus.com>
4710 Fix for PR libgcj/43:
4711 * include/Makefile.in: Rebuilt.
4712 * include/Makefile.am (include_HEADERS): New define.
4714 2000-03-05 Anthony Green <green@redhat.com>
4716 * gcj/javaprims.h ("Java"): Remove FirstThread.
4718 * configure.host: Fix __NO_MATH_INLNES botch.
4720 * Makefile.in: Rebuilt.
4721 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4722 (gnu/gcj/runtime/FirstThread.h): Moved.
4723 (ordinary_java_source_files): Move FirstThread.java.
4724 * prims.cc: Deal with FirstThread movement.
4726 (_Jv_RunMain): Ditto.
4728 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4729 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4731 2000-03-05 Warren Levy <warrenl@cygnus.com>
4733 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4734 Handle null addresses.
4736 2000-03-04 Anthony Green <green@redhat.com>
4738 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4741 2000-03-04 Anthony Green <green@redhat.com>
4743 * configure: Rebuilt.
4744 * configure.in (ZLIBTESTSPEC): New macro.
4745 (GCTESTSPEC): New macro.
4746 (LIBGCJTESTSPEC): New macro.
4747 * libgcj-test.spec.in: New file.
4749 2000-03-02 Tom Tromey <tromey@cygnus.com>
4751 * include/java-interp.h: Don't include MethodInvocation.h.
4752 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4753 * Makefile.in: Rebuilt.
4754 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4755 (ordinary_java_source_files): Don't mention
4756 MethodInvocation.java.
4757 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4758 * interpret.cc (MethodInvocation::continue1): Removed.
4759 (run): Handle exceptions here.
4760 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4762 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4764 (defineClass2): Removed.
4766 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4768 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4770 (hack_call): Removed.
4772 * java/lang/Class.h (Class): Removed hackRunInitializers,
4774 * java/lang/natClass.cc (hackRunInitializers): Removed.
4775 (initializeClass): Catch exceptions here.
4776 Include ExceptionInInitializerError.h.
4777 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4780 * java/lang/Object.h (Object): Don't mention hack12_6.
4781 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4783 * java/lang/Object.java (hack12_6): Removed.
4785 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4786 (start): Use run_, not run__.
4787 * java/lang/Thread.java (run_): Renamed from run__; old run_
4790 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4791 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4792 (_Jv_JNI_DefineClass): Likewise.
4793 (_Jv_JNI_ThrowNew): Likewise.
4794 (_Jv_JNI_AllocObject): Likewise.
4795 (_Jv_JNI_GetAnyMethodID): Likewise.
4796 (_Jv_JNI_CallAnyMethodV): Likewise.
4797 (_Jv_JNI_CallAnyMethodA): Likewise.
4798 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4799 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4800 (_Jv_JNI_GetAnyFieldID): Likewise.
4801 (_Jv_JNI_NewString): Likewise.
4802 (_Jv_JNI_NewStringUTF): Likewise.
4803 (_Jv_JNI_GetStringUTFChars): Likewise.
4804 (_Jv_JNI_NewObjectArray): Likewise.
4805 (_Jv_JNI_NewPrimitiveArray): Likewise.
4806 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4807 (_Jv_JNI_GetStringRegion): Likewise.
4808 (_Jv_JNI_GetStringUTFRegion): Likewise.
4809 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4810 (_Jv_JNI_MonitorEnter): Likewise.
4811 (_Jv_JNI_MonitorExit): Likewise.
4812 (_Jv_JNI_ToReflectedField): Likewise.
4813 (_Jv_JNI_ToReflectedMethod): Likewise.
4814 (_Jv_JNI_RegisterNatives): Likewise.
4815 (_Jv_JNI_AttachCurrentThread): Likewise.
4816 (_Jv_JNI_DestroyJavaVM): Likewise.
4818 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4820 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4821 error caused by the incorrect casting of a long to an int.
4823 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4825 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4826 SIGSEV caused by use of the wrong instance variable.
4828 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4830 * java/io/File.java (File(String, String)): For dirPath, treat an
4831 empty String the same as `null'.
4833 2000-02-26 Anthony Green <green@cygnus.com>
4835 * gnu/gcj/io/MimeTypes.java: Test for null.
4837 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4838 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4840 * java/net/URLConnection.java: Update copyright notice.
4842 2000-02-25 Tom Tromey <tromey@cygnus.com>
4844 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4847 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4849 * java/net/URLConnection.java (initializeDateFormats): New
4851 (getHeaderFieldDate): Call initializeDateFormats if required.
4852 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4854 Fix for PR libgcj/38.
4856 2000-02-24 Warren Levy <warrenl@cygnus.com>
4858 * java/math/BigInteger.java(ival): Made private.
4862 2000-02-20 Anthony Green <green@cygnus.com>
4864 * Makefile.in: Rebuilt.
4865 * Makefile.am (ordinary_java_source_files): Add
4866 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4868 * scripts/MakeDefaultMimeTypes.java: New file.
4869 * scripts/mime.types: New file.
4870 * scripts/classes.pl: Moved from top level.
4871 * classes.pl: Moved to scripts directory.
4873 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4875 * gnu/gcj/io/MimeTypes.java: New file.
4876 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4878 2000-02-20 Tom Tromey <tromey@cygnus.com>
4880 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4882 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4884 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4887 2000-02-18 Tom Tromey <tromey@cygnus.com>
4889 * include/jvm.h (_Jv_GetJavaVM): Declare.
4890 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4891 (_Jv_MethodBase::get_method): New method.
4892 (_Jv_JNIMethod::set_function): New method.
4893 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4894 (_Jv_JNI_RegisterNatives): New function.
4895 (_Jv_JNIFunctions): Updated for new functions.
4896 (_Jv_GetJavaVM): New function.
4897 (_Jv_JNI_GetJavaVM): Use it. Now static.
4898 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4899 is already a Java thread but does not have a JNIEnv yet.
4901 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4904 2000-02-17 Tom Tromey <tromey@cygnus.com>
4906 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4909 2000-02-16 Tom Tromey <tromey@cygnus.com>
4911 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4913 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4914 (_Jv_JNI_NewObject): Likewise.
4915 (_Jv_JNI_NewObjectA): Likewise.
4916 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4917 as "return" type to _Jv_CallAnyMethodA.
4918 (_Jv_JNI_CallAnyMethodA): Likewise.
4919 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4921 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4924 2000-02-15 Tom Tromey <tromey@cygnus.com>
4926 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4928 (init_cif): Added `rtype_p' argument.
4929 * include/java-interp.h (class _Jv_MethodBase): Added
4931 (class _Jv_InterpMethod): Removed args_raw_size.
4932 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4933 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4934 class pointer as well as the ordinary arguments.
4936 * jni.cc (mangled_name): Skip leading `(' in signature.
4938 * jni.cc (add_char): Added missing `else'.
4940 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4943 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4947 * java/lang/natRuntime.cc (_load): Include library path with
4950 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4953 * java/lang/natThread.cc (dumpStack): Removed.
4954 * java/lang/Thread.java (dumpStack): Implemented.
4956 2000-02-15 Tom Tromey <tromey@cygnus.com>
4958 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4959 with `lib' for loadLibrary. Fixes PR gcj/150.
4961 2000-02-14 Warren Levy <warrenl@cygnus.com>
4963 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4965 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4969 (modPow): Rewritten to not use the naive, slow, brute force approach.
4970 (isProbablePrime): Implemented.
4971 (testBit): Implemented.
4972 (flipBit): Implemented.
4973 (getLowestSetBit): Implemented.
4975 2000-02-16 Anthony Green <green@redhat.com>
4977 * configure.host: Use the same options for i386 and i486 as we do
4980 2000-02-12 Tom Tromey <tromey@cygnus.com>
4982 * java/io/File.java (createTempFile): Use low bits from counter,
4985 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4987 * THANKS: More thanks.
4989 2000-02-11 Tom Tromey <tromey@cygnus.com>
4991 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4992 astore instruction. From Hans Boehm.
4994 2000-02-11 Warren Levy <warrenl@cygnus.com>
4996 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4997 (BigInteger(String)): New constructor.
4998 (not): Rewritten using version from Kawa's BitOps class.
4999 (valueOf): New private methods from Kawa's BitOps class.
5006 (andNot): Implemented.
5007 (clearBit): Implemented.
5008 (setBit): Implemented.
5009 (bitCount): Implemented.
5010 (toByteArray): Implemented.
5012 2000-02-11 Tom Tromey <tromey@cygnus.com>
5014 * java/io/File.java (nextValue): Now synchronized.
5016 2000-02-10 Tom Tromey <tromey@cygnus.com>
5018 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5019 * java/io/FileDescriptor.java (EXCL): New static field.
5020 * java/io/File.java (tmpdir): New static field.
5021 (createTempFile): New method.
5022 (nextValue): New method.
5023 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5026 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5027 (jboolean): Declare as an attributed int, not a bool.
5028 (_Jv_func): Declare differently for C.
5030 * gnu/gcj/jni/natNativeThread.cc: New file.
5031 * gnu/gcj/jni/NativeThread.java: New file.
5032 * java/lang/Thread.java (data): Now a RawData.
5033 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5035 * Makefile.in: Rebuilt.
5036 * Makefile.am (java/lang/Thread.h): New target.
5037 (ordinary_java_source_files): Added NativeThread.java.
5038 (nat_source_files): Added natNativeThread.cc.
5039 * java/lang/natThread.cc: Include <jni.h>
5040 (struct natThread): Added `jni_env' field.
5041 (_Jv_GetCurrentJNIEnv): New function.
5042 (_Jv_SetCurrentJNIEnv): Likewise.
5043 (initialize_native): Initialize jni_env.
5045 * jni.cc (ThreadGroupClass): New define.
5046 (_Jv_JNI_InvokeFunctions): New structure.
5047 (JNI_GetCreatedJavaVMs): New function.
5048 (the_vm): New global.
5049 (JNI_GetDefaultJavaVMInitArgs): New function.
5050 Include NativeThread.h.
5051 (NativeThreadClass): New define.
5052 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5053 (_Jv_JNI_DestroyJavaVM): New function.
5054 (_Jv_JNI_AttachCurrentThread): New function.
5055 (_Jv_JNI_DetachCurrentThread): New function.
5056 (_Jv_JNI_GetEnv): New function.
5057 (JNI_CreateJavaVM): New function.
5058 (_Jv_JNI_GetJavaVM): New function.
5059 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5060 * include/jni.h (JavaVMAttachArgs): New structure.
5061 (JNI_EDETACHED): New define.
5062 (JNI_EVERSION): Likewise.
5063 (JavaVM): Define properly.
5064 (struct JNIInvokeInterface): New structure.
5065 (class _Jv_JavaVM): New class.
5066 (JNI_OnLoad, JNI_OnUnload): Declare.
5067 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5068 JNI_GetCreatedJavaVMs): Declare.
5069 (JavaVMInitArgs): New typedef.
5070 (JavaVMOption): Likewise.
5071 (JNI_ERR): New define.
5074 2000-02-10 Andrew Haley <aph@cygnus.com>
5076 * interpret.cc: Don't include fdlibm.h.
5077 Replace #if with #ifdef throughout.
5078 Declare extern __ieee754_fmod.
5079 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5081 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5082 Search class hierarchy for superclass vtable.
5084 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5085 off the end of a pointer list.
5087 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5091 2000-02-09 Tom Tromey <tromey@cygnus.com>
5093 * java/lang/natRuntime.cc (_load): Call add_library.
5094 (loadLibraryInternal): Likewise.
5096 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5097 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5098 (Output_iconv::finalize): Likewise.
5100 2000-02-08 Tom Tromey <tromey@cygnus.com>
5102 * java/util/Properties.java (setProperty): New method.
5103 (store): New method.
5105 2000-02-07 Tom Tromey <tromey@cygnus.com>
5107 * java/lang/Runtime.java (_load): Declare.
5108 (load, loadLibrary): Wrote in terms of _load.
5109 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5111 (loadLibrary): Likewise.
5113 (_load): New method.
5114 (loadLibrary, load): Removed.
5116 * jni.cc (ThrowableClass): New define.
5117 (_Jv_JNI_Throw): Check argument.
5118 (_Jv_JNI_ThrowNew): Likewise.
5119 (wrap_value): Don't wrap object if it is NULL.
5120 (_Jv_JNI_DefineClass): Use wrap_value.
5121 (_Jv_JNI_FindClass): Likewise.
5122 (_Jv_JNI_GetSuperclass): Likewise.
5123 (_Jv_JNI_ExceptionOccurred): Likewise.
5124 (_Jv_JNI_AllocObject): Likewise.
5125 (_Jv_JNI_GetObjectClass): Likewise.
5126 (_Jv_JNI_NewString): Likewise.
5127 (_Jv_JNI_NewStringUTF): Likewise.
5128 (_Jv_JNI_NewObjectArray): Likewise.
5129 (_Jv_JNI_GetObjectArrayElement): Likewise.
5130 (_Jv_JNI_NewPrimitiveArray): Likewise.
5131 (_Jv_JNI_ToReflectedField): Likewise.
5132 (_Jv_JNI_ToReflectedMethod): Likewise.
5133 (_Jv_JNI_AllocObject): Check argument.
5134 (_Jv_JNI_NewObjectV): Likewise.
5135 (_Jv_JNI_NewObject): Likewise.
5136 (_Jv_JNI_NewObjectA): Likewise.
5137 (_Jv_JNI_GetObjectClass): Likewise.
5138 (_Jv_JNI_GetField): Likewise.
5139 (_Jv_JNI_SetField): Likewise.
5141 * interpret.cc (PUSHL): Don't use expression statement.
5146 * jni.cc (add_char): Conditional on INTERPRETER.
5147 (mangled_name): Likewise.
5149 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5151 (class _Jv_JNIMethod): Likewise.
5153 2000-02-04 Warren Levy <warrenl@cygnus.com>
5155 * Makefile.am: Added MPN.java and BigInteger.java.
5156 * Makefile.in: Rebuilt.
5157 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5159 * java/math/BigInteger.java: New file. Based primarily on
5160 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5162 2000-02-04 Tom Tromey <tromey@cygnus.com>
5164 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5166 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5167 if the method is native.
5168 * resolve.cc (ncode): Don't handle native methods.
5169 (_Jv_JNIMethod::ncode): New method.
5170 (_Jv_PrepareClass): Handle native methods.
5171 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5172 Include AbstractMethodError.h.
5173 (add_char): New function.
5174 (mangled_name): Likewise.
5175 * include/java-interp.h (class _Jv_JNIMethod): New class.
5176 (class _Jv_MethodBase): New class.
5177 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5178 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5181 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5182 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5183 libraries): New globals.
5184 (add_library): New function.
5185 (_Jv_FindSymbolInExecutable): New function.
5187 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5190 2000-02-04 Andrew Haley <aph@cygnus.com>
5192 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5193 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5194 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5195 printStackTrace to printRawStackTrace.
5197 2000-02-03 Tom Tromey <tromey@cygnus.com>
5199 * java/util/Calendar.java (toString): New method.
5200 * java/util/SimpleTimeZone.java (clone): New method.
5201 (toString): New method.
5202 * java/util/TimeZone.java (clone): New method.
5203 * java/text/SimpleDateFormat.java (clone): New method.
5204 * java/text/NumberFormat.java (clone): New method.
5205 (equals): New method.
5206 * java/text/Format.java (clone): New method.
5207 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5209 (clone): New method.
5210 * java/text/DateFormat.java (clone): New method.
5211 * java/text/Collator.java (clone): New method.
5213 2000-02-03 Tom Tromey <tromey@cygnus.com>
5215 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5218 2000-02-01 Tom Tromey <tromey@cygnus.com>
5220 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5221 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5222 constructing the closure if the function is native.
5223 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5224 a template function, #if'd out, or static.
5225 Include <java-interp.h>.
5227 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5229 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5231 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5232 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5234 (wrap_value): New function.
5235 (_Jv_JNI_CallAnyMethodV): Use it.
5236 (_Jv_JNI_CallAnyMethodA): Likewise.
5237 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5238 (_Jv_JNI_GetStaticField): Likewise.
5240 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5241 (_Jv_JNI_GetStaticField): Likewise.
5243 2000-01-31 Tom Tromey <tromey@cygnus.com>
5245 * prims.cc (_Jv_MallocUnchecked): New function.
5246 (main_init): Call _Jv_JNI_Init.
5247 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5248 (_Jv_JNI_Init): Declare.
5249 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5251 (_Jv_JNI_NewGlobalRef): New function.
5252 (_Jv_JNI_DeleteGlobalRef): New function.
5253 (_Jv_JNI_DeleteLocalRef): New function.
5254 (_Jv_JNI_conversion_call): Initialize and clear local reference
5256 (_Jv_JNI_NewLocalRef): New function.
5257 (struct _Jv_JNI_LocalFrame): New structure.
5258 (_Jv_JNI_PushLocalFrame): New function.
5259 (_Jv_JNI_EnsureLocalCapacity): New function.
5260 (FRAME_SIZE): New define.
5261 (_Jv_JNI_GetStringChars): Mark string, not characters.
5262 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5263 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5264 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5266 (_Jv_JNI_DefineClass): Make return value a local ref.
5267 (_Jv_JNI_FindClass): Likewise.
5268 (_Jv_JNI_GetSuperclass): Likewise.
5269 (_Jv_JNI_ExceptionOccurred): Likewise.
5270 (_Jv_JNI_AllocObject): Likewise.
5271 (_Jv_JNI_GetObjectClass): Likewise.
5272 (_Jv_JNI_CallAnyMethodV): Likewise.
5273 (_Jv_JNI_NewString): Likewise.
5274 (_Jv_JNI_NewStringUTF): Likewise.
5275 (_Jv_JNI_NewObjectArray): Likewise.
5276 (_Jv_JNI_GetObjectArrayElement): Likewise.
5277 (_Jv_JNI_ToReflectedField): Likewise.
5278 (_Jv_JNI_ToReflectedMethod): Likewise.
5279 (_Jv_JNIFunctions): Updated table for new functions.
5280 (_Jv_JNI_Init): New function.
5281 (mark_for_gc): Wrote.
5282 (unmark_for_gc): Wrote.
5283 * include/jni.h (struct JNINativeInterface): Removed name from
5284 PopLocalFrame parameter.
5285 (class _Jv_JNIEnv): Added `locals' field.
5287 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5289 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5292 2000-01-30 Tom Tromey <tromey@cygnus.com>
5294 * include/config.h.in: Rebuilt.
5295 * acconfig.h (HAVE_ICONV): Define.
5296 * configure: Rebuilt.
5297 * configure.in: Check for `iconv' function.
5298 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5299 no specific encoder exists.
5300 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5301 no specific encoder exists.
5302 * Makefile.in: Rebuilt.
5303 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5305 (nat_source_files): Added natIconv.cc.
5306 * gnu/gcj/convert/natIconv.cc: New file.
5307 * gnu/gcj/convert/Input_iconv.java: New file.
5308 * gnu/gcj/convert/Output_iconv.java: New file.
5310 2000-01-28 Tom Tromey <tromey@cygnus.com>
5312 * Makefile.in: Rebuilt.
5313 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5315 2000-01-26 Tom Tromey <tromey@cygnus.com>
5317 * gcj/method.h (JvNumMethods): Moved from Class.h.
5318 (JvGetFirstMethod): Likewise.
5319 * java/lang/Class.h (Object): Updated decl of
5320 _Jv_JNI_ToReflectedField.
5321 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5322 * Makefile.in: Rebuilt.
5323 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5324 argument of _Jv_JNI_ToReflectedField.
5325 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5327 (java/lang/reflect/Method.h): Likewise.
5328 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5330 (jweak): New typedef.
5331 (struct JNINativeInterface): Correctly declare remaining entries.
5332 * jni.cc: Include Class.h, ClassLoader.h.
5333 (_Jv_JNI_FindClass): New function.
5334 (_Jv_JNI_DefineClass): New function.
5335 (_Jv_JNI_conversion_call): New function.
5336 (_Jv_JNI_FindClass): Use current class loader to find class.
5337 (_Jv_JNI_ExceptionCheck): New function.
5338 (_Jv_JNI_FromReflectedField): Now static.
5339 (MethodClass): New define.
5340 (_Jv_JNI_FromReflectedMethod): New function.
5341 (_Jv_JNI_ToReflectedMethod): Likewise.
5343 (_Jv_JNI_IsAssignableFrom): Renamed.
5344 (_Jv_JNI_GetStringRegion): New function.
5345 Include StringIndexOutOfBoundsException.h.
5346 (_Jv_JNI_GetStringUTFRegion): New function.
5347 (_Jv_JNIFunctions): Updated for new functions.
5348 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5349 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5350 (_Jv_JNI_GetStringCritical): New function.
5351 (_Jv_JNI_ReleaseStringCritical): Likewise.
5352 (get_throwable): Removed.
5353 (GCJ_JV_JNIENV_FRIEND): Removed.
5354 (__GCJ_JNI_IMPL__): Define.
5357 * resolve.cc (get_ffi_type_from_signature): Handle case where
5360 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5362 * interpret.cc (run): Don't call println.
5363 Don't include PrintStream.h.
5365 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5366 nameIndex. Use "jint" as type for boffset.
5367 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5369 (Class): Likewise. Also changed type of method_count,
5370 vtable_method_count, size_in_bytes, field_count,
5371 static_field_count, interface_count.
5372 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5375 2000-01-21 Tom Tromey <tromey@cygnus.com>
5377 * java/lang/reflect/natConstructor.cc (newInstance): Use
5379 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5380 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5381 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5384 (invoke): Use _Jv_CallAnyMethodA.
5386 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5387 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5389 (struct _Jv_Method): Added getNextMethod method.
5390 (JvNumMethods): New function.
5391 (JvGetFirstMethod): Likewise.
5392 * gcj/field.h (JvGetFirstStaticField): New function.
5393 (JvNumStaticFields): Likewise.
5394 (getNextField): Renamed from getNextInstanceField.
5395 (struct _Jv_Field): New method getClass.
5396 * jni.cc: Wrote many new functions.
5397 * include/jni.h (JNI_TRUE): Define.
5398 (JNI_FALSE): Likewise.
5399 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5400 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5401 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5402 (jfieldID, jmethodID): Likewise.
5403 (JNI_COMMIT, JNI_ABORT): New defines.
5404 (JNINativeMethod): New struct.
5405 (struct JNINativeInterface): Correctly declared more entries.
5406 (class _Jv_JNIEnv): Added `ex' member.
5407 (JNI_VERSION_1_1): New define.
5408 (JNI_VERSION_1_2): Likewise.
5410 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5411 getNextInstanceField.
5413 2000-01-20 Tom Tromey <tromey@cygnus.com>
5415 * resolve.cc (StringClass): Removed.
5416 * defineclass.cc (StringClass): Removed.
5418 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5422 2000-01-19 Tom Tromey <tromey@cygnus.com>
5424 * interpret.cc (PC_REGISTER_ASM): Removed.
5426 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5427 From Bryce McKinlay.
5429 * All files: Updated copyright to reflect Cygnus purchase.
5431 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5433 * configure: Rebuilt.
5434 * configure.in: Recognize --disable-interpreter.
5436 2000-01-18 Andrew Haley <aph@cygnus.com>
5438 * name-finder.cc (lookup): Check for dladdr function.
5439 acconfig.h (HAVE_DLADDR): Add.
5440 configure.in: Check for HAVE_DLADDR
5442 include/config.h.in: Rebuilt.
5444 2000-01-17 Andrew Haley <aph@cygnus.com>
5446 * prims.cc (_Jv_RunMain): Set the name of this executable.
5448 2000-01-17 Tom Tromey <tromey@cygnus.com>
5450 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5451 when backtrace can't be computed.
5453 * configure: Rebuilt.
5454 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5456 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5457 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5458 (_Jv_FindClassInCache): Likewise.
5459 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5460 (findSystemClass): Try to load class from compiled module.
5462 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5463 (loadLibrary): Likewise.
5464 (lt_preloaded_symbols): Define.
5465 (loadLibraryInternal): New method.
5466 * include/config.h.in: Rebuilt.
5467 * acconfig.h (USE_LTDL): Added.
5468 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5469 (INCLUDES): Added $(INCLTDL).
5470 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5471 (libgcj_la_LIBADD): Likewise.
5472 * aclocal.m4, configure: Rebuilt.
5473 * configure.in: Added libltdl support.
5475 2000-01-15 Tom Tromey <tromey@cygnus.com>
5477 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5479 2000-01-14 Andrew Haley <aph@cygnus.com>
5481 * java/lang/natThrowable.cc: New file.
5483 * java/lang/Throwable.java (fillInStackTrace): Make native.
5484 (printStackTrace): Call native method to do this.
5485 (Throwable): Call fillInStackTrace.
5486 (stackTrace): New variable.
5488 * include/jvm.h: Add _Jv_ThisExecutable functions.
5490 * prims.cc: (_Jv_execName): New variable.
5491 (catch_segv): Call fillInStackTrace.
5493 (_Jv_ThisExecutable): New functions.
5494 (JvRunMain): Set the name of this executable.
5496 * Makefile.am: Add java/lang/natThrowable.cc.
5498 * Makefile.in: Rebuilt.
5500 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5502 * configure.in: Force link with __frame_state_for in
5503 FORCELIBGCCSPEC. Add new checks for backtrace.
5504 * include/config.h.in: Rebuilt.
5506 * name-finder.cc: New file.
5507 * include/name-finder.h: New file.
5509 2000-01-16 Anthony Green <green@cygnus.com>
5511 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5514 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5516 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5518 2000-01-13 Tom Tromey <tromey@cygnus.com>
5520 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5521 not system loader, as initiating loader.
5523 2000-01-11 Tom Tromey <tromey@cygnus.com>
5525 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5526 HP/UX. From David Scott Urban.
5528 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5530 * java/lang/natMath.cc (pow): Cast args to `double', not
5533 (IEEEremainder): Likewise.
5534 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5535 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5537 2000-01-09 Anthony Green <green@cygnus.com>
5539 * java/lang/natString.cc (init): Test for overflow condition
5540 during out of bounds check.
5541 (getChars): Throw StringIndexOutOfBoundsException, not
5542 ArrayIndexOutOfBoundsException.
5544 (regionMatches): Obey case option during string comparison.
5546 * configure.host (ligcj_interpreter): New variable. Enable
5547 interpreter by default on IA-32.
5548 * configure.in: Examine libgcj_interpreter.
5549 * configure: Rebuilt.
5551 2000-01-07 Tom Tromey <tromey@cygnus.com>
5553 * mauve-libgcj: Don't disable ClassTest.
5555 * java/lang/natClass.cc (getClasses): Wrote.
5557 2000-01-06 Tom Tromey <tromey@cygnus.com>
5559 * java/lang/natClass.cc (_getConstructors): Correctly check
5560 whether method name is the init name.
5561 (getMethod): Look at accflags on method in `klass', not `this'.
5563 2000-01-05 Tom Tromey <tromey@cygnus.com>
5565 * java/lang/natClass.cc (getMethod): Compute offset relative to
5566 `klass's methods table, not `this's table.
5568 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5569 In unwrapping/widening case, check whether `k' is null, not
5570 whether it is primitive. Initialize `num' from `argelts', not
5571 `paramelts'. Correct create and pass arguments to ffi_call.
5572 Don't let presence of `this' argument affect index used to look in
5574 (COPY): Set appropriate element in `values' vector.
5576 * java/lang/natClass.cc: Include <gcj/method.h>.
5578 * java/lang/Class.h (_getMethods): Correctly declare as private,
5581 * java/lang/Class.h (_getMethods): Declare.
5582 * java/lang/Class.java (_getMethods): Declare.
5583 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5584 (getDeclaredClasses): Always return empty array.
5585 (_getMethods): New method.
5586 (getMethods): Wrote.
5587 (getDeclaredMethod): Return `rmethod'.
5588 (finit_name): New global.
5589 (getDeclaredMethods): Check for finit_name.
5590 (_getMethods): Likewise.
5591 (getMethod): Only return public methods.
5593 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5594 jboolean and select correct ffi type on that basis.
5595 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5596 Constructor call always has `void' return type.
5598 2000-01-04 Tom Tromey <tromey@cygnus.com>
5600 * java/lang/Class.h (getSignature): Updated.
5601 * java/lang/Class.java (getSignature): Updated.
5602 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5604 (getConstructor): Ensure constructor is public.
5605 (_getConstructors): Check for public-ness of constructor when
5606 `declared' is false, not when it is true.
5608 2000-01-04 Warren Levy <warrenl@cygnus.com>
5610 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5612 (receive): Set the sender's address in the DatagramPacket.
5614 2000-01-04 Tom Tromey <tromey@cygnus.com>
5616 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5617 declaring class as return_type argument to
5618 _Jv_CallNonvirtualMethodA.
5619 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5620 constructor case, create object and use it as `this' argument.
5621 * java/lang/Class.h (_getConstructors): Declare.
5622 (_getFields): Declare.
5623 * java/lang/Class.java (getConstructors): Wrote.
5624 (_getConstructors): New native method.
5625 (getDeclaredConstructors): Wrote.
5626 (_getFields): Declare new native method.
5627 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5629 (getMethod): Work correctly when class is primitive.
5630 (getDeclaredMethods): Likewise. Compute offset using `method',
5632 (getDeclaredMethod): Likewise.
5633 (getConstructor): Wrote.
5634 (ConstructorClass): New define.
5635 (getDeclaredConstructor): Wrote.
5636 (_getConstructors): New method.
5637 (_getFields): New method.
5640 * Makefile.in: Rebuilt.
5641 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5643 * prims.cc: Remove `#pragma implementation'.
5644 * gcj/array.h: Remove `#pragma interface'.
5646 * prims.cc (_Jv_equaln): New function.
5647 * java/lang/Class.java (getSignature): Declare.
5648 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5649 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5651 (getSignature): New method.
5652 (getDeclaredMethod): Wrote.
5654 Include StringBuffer.h.
5655 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5656 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5658 (getSignature): Declare.
5659 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5660 (_Jv_equaln): Declare.
5661 (_Jv_CallNonvirtualMethodA): Declare.
5662 * Makefile.in: Rebuilt.
5663 * Makefile.am (nat_source_files): Added natConstructor.cc.
5664 (java/lang/reflect/Constructor.h): New target.
5665 * java/lang/reflect/natConstructor.cc: New file.
5666 * java/lang/reflect/Constructor.java (newInstance): Now native.
5667 (declaringClass): Renamed from decl_class.
5668 (offset): Renamed from index.
5669 (getType): New native method.
5670 (getModifiers): Now native.
5671 (getParameterTypes): Call getType if required.
5672 (hashCode): Include hash code from declaring class.
5673 (modifiers): Removed.
5674 (toString): Call getType if required.
5675 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5676 * java/lang/reflect/natMethod.cc (hack_call): New method.
5677 Removed `#if 0' around FFI code.
5678 Include <gnu/gcj/RawData.h>.
5679 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5680 IllegalArgumentException when argument object and class disagree.
5681 (_Jv_GetTypesFromSignature): New function.
5683 (ObjectClass): New define.
5684 (_Jv_CallNonvirtualMethodA): New function.
5685 * java/lang/reflect/Method.java (hack_trampoline): New method.
5686 (hack_call): New native method.