1 2001-02-17 Mark Wielaard <mark@klomp.org>
4 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
5 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
6 (readByte): Use convertToByte().
7 (readChar): Use convertToChar().
8 (readInt): Use convertToInt().
9 (readLong): Use convertToLong().
10 (readShort): Use convertToShort().
11 (readUnsignedByte): Use convertToUnsignedByte().
12 (readUnsignedShort): Use convertToUnsignedShort().
13 (readUTF): Use convertToUTF().
15 (convertToBoolean): Resurrected.
16 (convertToByte): Ditto.
17 (convertToChar): Ditto.
18 (convertToInt): Ditto.
19 (convertToLong): Ditto.
20 (convertToShort): Ditto.
21 (convertToUnsignedByte): Ditto.
22 (convertToUnsignedShort): Ditto.
23 (convertToUTF): Ditto.
25 2001-02-17 Mark Wielaard <mark@klomp.org>
29 2001-02-17 Mark Wielaard <mark@klomp.org>
31 * java/io/DataInputStream.java: update copyright notice
32 * java/io/PrintWriter.java: idem
33 * java/io/Reader.java: idem
34 * java/io/StreamTokenizer.java: idem
35 * java/io/StringReader.java: idem
36 * java/lang/reflect/ReflectPermission.java: idem
38 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
40 * java/util/TreeSet.java (clone): Made subclass safe, use
41 super.clone(), not new.
42 * java/util/TreeMap.java (clone): Likewise.
44 * java/util/TreeMap.java (nil): Made non-final.
45 (clone): Create new nil node for copy.
47 * java/util/HashSet.java (clone): Made subclass safe, use
48 super.clone(), not new.
50 2001-02-14 Andrew Haley <aph@redhat.com>
52 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
55 2001-02-15 Anthony Green <green@redhat.com>
57 * defineclass.cc: Don't include alloca.h.
58 (prepare_pool_entry): Convert alloca to __builtin_alloca.
59 * interpret.cc (run_normal): Ditto.
61 * java/lang/natDouble.cc (parseDouble): Ditto.
63 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
65 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
67 * java/util/Collections.java (ReverseComparator): New static class.
68 (reverseOrder): Return static instance of ReverseComparator.
70 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
71 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
72 Rectangle.clone(), not Object.clone().
74 * java/util/HashSet.java (clone): Remove try/catch.
76 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
77 * java/util/Collection.java: Likewise.
78 * java/util/Comparator.java: Likewise.
79 * java/util/Dictionary.java: Likewise.
80 * java/util/Iterator.java: Likewise.
81 * java/util/ListIterator.java: Likewise.
82 * java/util/Map.java: Likewise.
83 * java/util/Set.java: Likewise.
85 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
87 * java/util/TreeMap.java: New file.
88 * java/util/TreeSet.java: New file.
89 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
90 * Makefile.in: Rebuilt.
91 * java/util/HashSet.java (clone): Use constructor instead of calling
93 * java/util/SortedSet.java: Sync with classpath.
94 * java/util/HashMap.java (hash): Use if statement instead of ternary,
97 * java/lang/natClass.cc (getSignature): Don't try to dereference
98 param_types if it is null. Instead, take this to mean "no parameters".
99 * java/lang/TreeMap.java (TreeIterator.next): Throw
100 NoSuchElementException in preference to ConcurrentModificationException.
101 (TreeIterator.remove): Throw IllegalStateException in preference to
102 ConcurrentModificationException.
103 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
104 throw a NoSuchElementException.
105 (SubMap.lastKey): Likewise.
107 2001-02-13 Tom Tromey <tromey@redhat.com>
109 * java/io/PipedReader.java (ready): Throw IOException if pipe
111 * java/io/FilterReader.java (close): Don't clear `in'.
112 * java/io/CharArrayReader.java (mark): Throw IOException if stream
114 (read, ready, reset, skip): Added exception message.
115 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
116 Perform checkStatus check inside synchronized block.
118 2001-02-13 Tom Tromey <tromey@redhat.com>
120 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
122 2001-02-13 Tom Tromey <tromey@redhat.com>
124 Fix for PR libgcj/1351:
125 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
127 Include Thread.h and InterruptedIOException.h.
129 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
131 * java/io/BlockDataException.java: Removed.
132 * java/io/ObjectInputStream.java (readObject): Throw
133 StreamCorruptedException, not BlockDataException.
134 * Makefile.am: Remove BlockDataException.
135 * Makefile.in: Rebuild.
137 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
138 Tom Tromey <tromey@redhat.com>
140 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
143 2001-02-09 Tom Tromey <tromey@redhat.com>
145 * java/util/Timer.java: New version from Classpath.
147 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
149 * java/lang/Double.java (doubleToRawLongBits): Now native.
150 * java/lang/Float.java (floatToRawIntBits): Likewise.
151 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
152 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
154 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
156 * java/io/File.java (java.net): Imported.
157 (getAbsoluteFile): Added.
158 (getCanonicalPath): Likewise.
161 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
163 * java/lang/Byte.java: Remove redundant instanceof and null checks.
164 * java/lang/Integer.java: Likewise.
165 * java/lang/Long.java: Likewise.
166 * java/lang/Short.java: Likewise.
167 * java/lang/Double.java: Likewise.
168 (doubleToRawLongBits): New method.
169 * java/lang/Float.java: As above.
170 (floatToRawIntBits): New method.
172 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
173 IOException if stream closed.
175 2001-02-08 Tom Tromey <tromey@redhat.com>
177 * java/lang/Float.java (parseFloat): New method.
179 2001-02-08 Tom Tromey <tromey@redhat.com>
181 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
182 * java/io/InputStreamReader.java (ready, read): Throw IOException
183 if stream has been closed.
185 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
187 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
188 Change sources.redhat.com and sourceware.cygnus.com references to
191 2001-02-07 Tom Tromey <tromey@redhat.com>
193 Fix for PR libgcj/1906:
194 * java/text/MessageFormat.java (setLocale): Use named class
197 (format(Object,StringBuffer,FieldPosition)): Special case if
198 argument is an Object[].
200 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
202 * java/util/Arrays.java: Removed "cmp" methods.
203 (qsort): Don't use "cmp".
206 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
208 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
209 sort. Fix for PR java/1895.
211 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
213 * configure.host: Use sjlj-exceptions for Alpha.
215 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
217 * libgcj.spec.in: Don't force static libgcc into the executable.
218 * configure.in (FORCELIBGCCSPEC): Removed.
219 * configure: Rebuilt.
221 2001-01-31 Tom Tromey <tromey@redhat.com>
223 * Makefile.in: Rebuilt.
224 * Makefile.am (LTCXXCOMPILE): New macro.
226 2001-01-26 Andrew Haley <aph@redhat.com>
228 (INIT_FPE): Use a direct system call to set the handler.
230 2001-01-27 Richard Henderson <rth@redhat.com>
232 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
234 2001-01-27 Tom Tromey <tromey@redhat.com>
236 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
237 native interface structure.
239 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
241 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
243 (read (byte[], int, int)): Only call readNextBlock() if the block
244 buffer would actually be overrun. Increment blockDataPosition.
245 (callReadMethod): Propagate exceptions from invocation target.
246 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
247 exceptions from invocation target.
249 2001-01-26 Tom Tromey <tromey@redhat.com>
251 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
252 to internal representation.
253 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
254 _Jv_FindClassFromSignature.
256 2001-01-26 Warren Levy <warrenl@redhat.com>
258 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
259 and timezone if they are available on the system.
261 2001-01-24 Tom Tromey <tromey@redhat.com>
263 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
265 2001-01-24 Tom Tromey <tromey@redhat.com>
267 * Makefile.in: Rebuilt.
268 * Makefile.am (c_source_files): Added sf_fabs.c.
269 * java/lang/sf_fabs.c: New file.
271 2001-01-19 Warren Levy <warrenl@redhat.com>
273 * java/text/SimpleDateFormat.java (format): Compute hour for cases
274 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
275 correctly. Adjust properly from 0-23 clock hour.
277 2001-01-17 Mark Wielaard <mark@klomp.org>
279 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
281 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
283 * java/lang/Class.h (isInterface): Move implementation from
284 natClass.cc. Declare inline.
285 (Class): Add default constructor.
286 * java/lang/Object.h: Update comments.
287 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
288 initialize superclass, saving a call if super is already initialized.
290 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
292 * prims.cc (init_prim_class): Deleted.
293 (DECLARE_PRIM_TYPE): Rewritten.
294 * java/lang/Class.h (stdio.h): Include removed.
295 (stddef.h): Included.
296 (java/lang/reflect/Modifier.h): Likewise.
297 (Class): Contructor now takes arguments, initializes fields.
298 (initializePrim): Prototype deleted.
299 * java/lang/natClass.cc (initializePrim): Deleted.
301 2001-01-16 Warren Levy <warrenl@redhat.com>
303 * java/math/BigInteger.java: Update Copyright year.
305 2001-01-16 Hans Boehm <hans_boehm@hp.com>
307 * java/math/BigInteger.java (setShiftRight): Only do negative shift
310 2001-01-14 Mark Wielaard <mark@klomp.org>
311 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
312 (decode): Merge comments with Classpath, don't throw Exception
314 2001-01-12 Tom Tromey <tromey@redhat.com>
316 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
320 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
321 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
322 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
323 * gnu/awt/gtk/GtkLabelPeer.java: New file.
324 * gnu/awt/gtk/GtkButtonPeer.java: New file.
326 * java/lang/natSystem.cc: Include locale.h if it exists.
327 * configure: Rebuilt.
328 * configure.in: Check for locale.h.
330 2001-01-11 Tom Tromey <tromey@redhat.com>
332 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
333 (Cursor(int), getPredefinedCursor): Throw exception if argument
336 2001-01-03 Tom Tromey <tromey@redhat.com>
338 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
339 (getLocationOnScreen): Wrote.
341 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
343 * Makefile.am: Re-enable dependencies.
344 * Makefile.in: Rebuilt.
346 2001-01-10 Warren Levy <warrenl@redhat.com>
348 * java/math/BigDecimal.java (divide): Fixed comment.
350 2001-01-10 Warren Levy <warrenl@redhat.com>
352 Fix for PR libgcj/1596:
353 * java/math/BigDecimal.java (divide): Check newScale for validity.
354 Ensure that BigInteger.pow() is called with a non-negative value.
355 (setScale (int)): New public method.
356 (setScale (int,int)): New public method.
358 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
360 Fix for PR libgcj/1338:
361 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
362 commentChar. Fixed typos in comments.
364 2001-01-08 Warren Levy <warrenl@redhat.com>
366 Fix for PR libgcj/1411:
367 * Makefile.am: Removed java/util/natTimeZone.cc.
368 * Makefile.in: Rebuilt.
369 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
370 missing localized timezone names.
371 * java/lang/System.java (getDefaultTimeZoneId): New private method.
372 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
373 (init_properties): Set user.timezone property.
374 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
375 default timezone names; removed non-standard ones. Use standard
377 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
379 * java/util/TimeZone.java: Add standard ID names per JCL; removed
381 (getDefaultTimeZoneId): Removed.
383 * java/util/natTimeZone.cc: Removed.
385 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
387 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
388 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
389 (_Jv_GetArrayClass): New inline function.
390 (arrayclass): New field.
391 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
392 _Jv_GetArrayElementFromElementType.
393 (_Jv_NewPrimArray): Ditto.
394 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
395 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
396 Set Modifier::ABSTRACT.
397 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
398 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
399 Now synchronized. Array classes are now referenced from
400 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
401 Set array classes' accessibility flags correctly. Optimize so that
402 all array classes share the same IDT.
403 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
404 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
405 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
406 in superclasses from overwriting classes own fields.
407 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
408 Modifier::isAbstract().
409 (null_idt): New static field.
410 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
412 (_Jv_IndexOf): Made inline.
413 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
415 2001-01-08 Tom Tromey <tromey@redhat.com>
417 Fix for PR java/1586:
418 * Makefile.in: Rebuilt.
419 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
421 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
423 * Makefile.am: Use the new "-M -MF" option for generating dependencies
424 from the c++ compiler.
425 * Makefile.in: Rebuilt.
427 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
429 All files with updated copyright.
430 * prims.cc (class _Jv_PrimClass): Removed.
431 (init_prim_class): New function.
432 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
433 `_Jv_PrimClass' in primitive type declarations. Assign to the
434 value returned by `init_prim_class.'
435 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
436 primitive type declarations.
437 (JvPrimClass): Cast to `jclass' removed.
438 * java/lang/Class.h (Class): New constructor.
439 (Class): New copy constructor.
440 (initializePrim): New prototype.
441 (_Jv_PrimClass): Field removed.
442 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
443 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
444 (class java::lang::Object): `finalize' moved up front.
445 * java/lang/natClass.cc
446 (isAssignableFrom): Turned outline.
447 (isInstance): Likewise.
448 (isInterface): Likewise, fixed indentation.
449 (initializePrim): New function.
451 2001-01-07 Anthony Green <green@redhat.com>
453 * Makefile.am (texinfo): Add texinfo target for generating texinfo
455 * Makefile.in: Rebuilt.
457 * scripts/TexinfoDoclet.java: New file.
459 * doc/java-applet.texi, doc/java-lang-reflect.texi,
460 doc/java-awt-color.texi, doc/java-lang.texi,
461 doc/java-awt-datatransfer.texi, doc/java-math.texi,
462 doc/java-awt-event.texi, doc/java-net.texi,
463 doc/java-awt-geom.texi, doc/java-security-spec.texi,
464 doc/java-awt-image.texi, doc/java-security.texi,
465 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
466 doc/java-text.texi, doc/java-beans-beancontext.texi,
467 doc/java-util-jar.texi, doc/java-beans.texi,
468 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
469 doc/java-lang-ref.texi: New files.
471 2001-01-07 Anthony Green <green@redhat.com>
473 * java/net/URLConnection.java (setDoOutput): URLConnection's may
474 be used for both input and output, so don't clear doInput.
476 * java/lang/StringBuffer.java: Fix comments.
478 2001-01-06 Anthony Green <green@redhat.com>
480 * java/beans/PropertyDescriptor.java: Fix comment.
481 * java/io/PushbackReader.java: Fix comment.
482 * java/io/ObjectStreamClass.java: Fix comment.
483 * java/io/DataInputStream.java: Fix comment.
484 * java/io/PipedInputStream.java: Fix comments.
485 * java/io/PipedReader.java: Fix comments.
486 * java/sql/DatabaseMetaData.java: Fix comments.
488 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
490 * java/io/PipedReader: Synchronize on "lock" instead of this.
492 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
494 * java/lang/Thread.java: Update comment.
496 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
497 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
498 * java/io/PipedReader: New implementation based on new
500 * java/io/PipedWriter: Updated to match new PipedReader.
502 2001-01-03 Tom Tromey <tromey@redhat.com>
504 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
505 (getViewportSize): Insets include scrollbar size.
506 (doLayout): Finished.
507 (getScrollPosition): Wrote.
508 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
510 2001-01-02 Tom Tromey <tromey@redhat.com>
512 * java/awt/ScrollPane.java: Wrote.
513 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
516 * java/awt/Panel.java (Panel()): Fixed.
518 * java/awt/Component.java (isShowing): Return false if no peer
519 exists, and true if component is visible and no parent exists.
520 (getLocationOnScreen): Wrote.
521 (getPreferredSize): Removed FIXME comment.
522 (getMinimumSize): Likewise.
523 (getAlignmentX, getAlignmentY): Wrote.
525 (requestFocus): Wrote.
526 (transferFocus): Wrote.
527 (findNextFocusComponent): New method.
530 (enableEvents): Call setEventMask on the peer.
532 * java/awt/Container.java (list): Use super.list() to print self.
533 (findNextFocusComponent): New method.
534 (setLayout): Call invalidate.
535 (findComponentAt): Wrote.
537 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
539 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
540 the correct versions of various linuxthreads functions get linked.
541 * Makefile.in: Rebuilt.
542 * java/lang/natThread.cc (finalize_native): New static function. Call
543 _Jv_ThreadDestroyData.
544 (initialize_native): Register finalizer for "data".
545 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
546 (_Jv_ThreadDestroyData): New prototype.
547 * include/win32-threads.h: Ditto.
548 * include/no-threads.h: Ditto.
549 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
550 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
551 move mutex and condition variable destroy code from:
552 (really_start): ...here.
553 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
554 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
555 (_Jv_ThreadDestroyData): Implemented.
556 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
557 (_Jv_AllocArray): Ditto.
559 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
561 * java/sql/DriverManager.java (getConnection): Don't set user/password
564 2000-12-27 Warren Levy <warrenl@redhat.com>
566 Fix for PR libgcj/1358:
567 * java/lang/System.java: Update Copyright date properly.
568 * java/util/Calendar.java: Fix typo in comment.
569 (set): Set 24-hour clock hour instead of 12-hour clock hour.
570 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
571 initialize times. Spec says to set H:M:S values to zero only if
573 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
574 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
575 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
576 timezones and GMT offsets, being careful to account for units of
577 milliseconds vs. seconds.
579 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
581 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
582 not be assigned to Object.
584 Fix for PR libgcj/1516:
585 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
587 (can_widen): Declared inline. Remove redundant checks for void
588 arguments and char->short conversion. Add special case for boolean
590 (ffi_type): Declared inline.
591 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
593 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
595 * java/sql/SQLWarning.java: Fixed typo in comment.
597 2000-12-26 Tom Tromey <tromey@redhat.com>
599 * java/awt/MenuItem.java (paramString): Now protected.
601 * java/awt/MenuShortcut.java: Implements Serializable.
603 * java/awt/MenuBar.java: Rewrote from scratch.
605 * java/awt/MenuComponent.java (removeNotify): Wrote.
606 Implements Serializable.
608 * java/awt/GridBagConstraints.java (GridBagConstraints): New
611 * java/awt/CheckboxMenuItem.java: Wrote.
613 2000-12-25 Tom Tromey <tromey@redhat.com>
615 * java/awt/MenuContainer.java: Fixed typo.
617 * Makefile.in: Rebuilt.
618 * Makefile.am (awt_java_source_files): Added SystemColor.java.
619 * java/awt/SystemColor.java: New file.
621 * java/awt/Color.java (rgba): Now package-private.
623 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
625 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
628 * java/awt/MenuItem.java (addNotify): New method.
629 (MenuItem(String,MenuShortcut)): New constructor.
630 (setLabel): Notify peer of change.
631 (setEnabled): Likewise.
633 * java/awt/GridLayout.java (toString): New method.
635 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
636 (FlowLayout): Check for LEADING and TRAILING.
637 (setAlignment): Likewise.
638 (layoutContainer): Handle component orientation.
640 * java/awt/Component.java (orientatin): New field.
641 (setComponentOrientation): Wrote.
642 (getComponentOrientation): Wrote.
644 * java/awt/Event.java (Event): Implements Serializable.
645 (consumed): New field for serialization.
646 * java/awt/Dimension.java (Dimension): Implements Serializable.
647 * java/awt/Cursor.java (Cursor): Implements Serializable.
648 * java/awt/Container.java (Container): No longer abstract.
650 * java/awt/Choice.java: Wrote.
651 * java/awt/Checkbox.java: Wrote.
652 * java/awt/ItemSelectable.java: Documented.
653 * java/awt/CheckboxGroup.java: Wrote.
655 * java/awt/CardLayout.java (layoutContainer): Directly use fields
659 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
661 * java/io/FileDescriptor.java: Initialize fd to -1.
662 Remove default constructor.
664 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
666 * java/lang/mprec.h: Change C9X reference to refer to C99.
668 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
670 * java/lang/Throwable.java (trace_enabled): New static field.
671 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
672 trace_enabled not set.
673 * prims.cc (main_init): Turn off trace_enabled while creating
674 default exception objects.
676 2000-12-21 Tom Tromey <tromey@redhat.com>
678 * java/beans/PropertyChangeListener.java: Extends EventListener.
679 * java/beans/VetoableChangeListener.java: Extends EventListener.
681 * java/util/zip/Deflater.java (update, init): Now private.
683 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
685 * java/util/BasicMapEntry.java: Re-added.
686 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
687 (putAll): Test for BasicMapEntry.
688 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
689 (putAll): Test for BasicMapEntry.
690 Change references from `HashMap.Entry' to `Entry' in various places.
691 * Makefile.am: Add BasicMapEntry.java.
692 * Makefile.in: Rebuilt.
694 2000-12-18 Warren Levy <warrenl@redhat.com>
696 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
697 need to set timezone to a valid non-null value. Partial fix for
700 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
702 * java/awt/Window.java (addNotify): Remove peer casting hack now that
704 * java/awt/Button.java (addNotify): Likewise.
705 * java/awt/Label.java (addNotify): Likewise.
706 * java/awt/Panel.java (addNotify): Likewise.
707 * java/awt/Scrollbar.java (addNotify): Likewise.
708 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
709 Remove redundant null checks.
711 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
713 * COPYING: Update to current
714 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
715 to 19yy as example year in copyright notice).
717 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
719 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
720 end-of-stream if avail_in is 0.
722 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
724 * java/util/ArrayList.java (data): Declare transient.
725 (serialPersistantFields): Removed.
726 (readObject): Use defaultReadObject(), not readFields().
727 (writeObject): Use defaultWriteObject(), not writeFields().
729 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
731 * java/util/Hashtable.java (put): Remove `last' variable.
732 Link new entry to head of list.
733 * java/util/HashMap.java (put): Ditto.
735 2000-12-15 Tom Tromey <tromey@redhat.com>
737 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
738 loader to Class.forName.
740 2000-12-14 Tom Tromey <tromey@redhat.com>
742 * java/util/ResourceBundle.java
743 (getBundle(String,Locale,ClassLoader)): New method.
744 (trySomeGetBundle): Added `loader' argument.
745 (partialGetBundle): Likewise.
747 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
748 maximumFractionDigits, maximumIntegerDigits,
749 minimumFractionDigits, minimumIntegerDigits): Now
752 * java/lang/Thread.java (checkAccess): Now final.
754 * java/lang/RuntimePermission.java: Class now final.
756 * java/io/StringWriter.java (StringWriter(int)): Now public.
758 * java/io/SerializablePermission.java (legal_names): Now private.
760 * java/lang/Character.java: Updated UnicodeBlock constants.
761 * scripts/blocks.pl: Special case private use and surrogate
764 2000-12-12 Tom Tromey <tromey@redhat.com>
766 * Makefile.in: Rebuilt.
767 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
769 (GCJCOMPILE): Use it.
772 2000-12-11 Tom Tromey <tromey@redhat.com>
774 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
775 New static final fields.
777 * scripts/classes.pl (scan): Skip lines with leading `*'.
778 Fix for PR libgcj/378.
780 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
782 * configure.in: Remove check for -fuse-divide-subroutine.
783 * configure: Rebuilt.
785 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
787 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
789 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
791 * Makefile.am: Add HashSet.java and java/lang/ref classes.
792 Remove BasicMapEntry.java and Bucket.java.
793 * Makefile.in: Rebuilt.
794 * java/util/HashMap.java: Rewritten.
795 * java/util/HashSet.java: Imported from classpath.
796 * java/util/WeakHashMap.java: Imported from classpath.
797 * java/util/Hashtable.java: Rewritten based on new HashMap code.
798 * java/util/Bucket.java: Deleted.
799 * java/util/BasicMapEntry.java: Deleted.
800 * java/util/Collections.java (search): Use a for-loop, not iterator
802 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
803 of elements in source.
804 (max): Use a for-loop.
806 (reverse): Keep track of positions instead of using Iterator's
807 nextIndex() and previousIndex().
808 (shuffle(List)): Initialize defaultRandom if required using
809 double-check thread safety idiom. Call two-argument shuffle method
811 (defaultRandom): New field.
812 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
813 using previousIndex() and nextIndex().
814 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
815 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
816 * java/util/AbstractMap.java (toString): Use StringBuffer.
817 * java/lang/ref/PhantomReference.java: Imported from classpath.
818 * java/lang/ref/SoftReference.java: Ditto.
819 * java/lang/ref/Reference.java: Ditto.
820 * java/lang/ref/WeakReference.java: Ditto.
821 * java/lang/ref/ReferenceQueue.java: Ditto.
823 2000-12-10 Richard Henderson <rth@redhat.com>
825 * configure.host: Recognize alpha*-*, not alphaev6-*.
827 2000-12-09 Anthony Green <green@redhat.com>
829 * configure.host: Enable interpreter for Alpha.
831 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
833 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
834 (ZIP): Points at fastjar instead of zip.
835 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
836 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
837 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
838 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
839 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
840 ($(x_java_source_files:.java=.class):): Likewise.
841 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
843 (CLEANFILES): libgcj.jar replaces libgcj.zip.
844 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
845 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
846 java/lang/String.h:, java/lang/reflect/Constructor.h:,
847 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
848 gnu/gcj/runtime/VMClassLoader.h:,
849 java/io/ObjectInputStream$$GetField.h:,
850 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
851 (Makefile.in): Rebuilt.
853 2000-12-08 Tom Tromey <tromey@redhat.com>
856 * configure: Rebuilt.
857 * configure.in: Use echo, not `:', to create .d files.
859 2000-12-08 Warren Levy <warrenl@redhat.com>
861 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
862 NullPointerException so proper check of offset can be done.
864 2000-12-08 Warren Levy <warrenl@redhat.com>
866 * java/io/FileInputStream.java (close): Check if the fd is valid.
867 * java/io/RandomAccessFile.java (close): Ditto.
868 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
869 * java/net/PlainSocketImpl.java (close): Ditto.
871 2000-12-06 Tom Tromey <tromey@redhat.com>
873 * java/awt/GridBagConstraints.java: Filled in values for static
876 * java/util/BitSet.java: Updated copyright notice.
878 * Makefile.in: Rebuilt.
879 * Makefile.am (awt_java_source_files): Added new file.
880 * java/awt/GridBagConstraints.java: New file.
882 2000-12-05 Tom Tromey <tromey@redhat.com>
884 * java/text/Collator.java (decomposeCharacter, decmp, strength):
885 Now package-private, not protected.
886 * java/text/DateFormatSymbols.java (equals): Now private.
887 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
888 * java/util/BitSet.java: Class no longer final.
890 2000-12-04 Warren Levy <warrenl@redhat.com>
892 * java/util/TimeZone.java (getAvailableIDs): Activated commented
893 out code dependent on compiler and library changes.
895 2000-12-04 Warren Levy <warrenl@redhat.com>
897 * java/io/FilePermission.java: Made class final per spec.
898 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
899 method name to match spec (fixed typo).
900 * java/util/LinkedList.java: Implements List.
902 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
904 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
905 Edgar Villanueva <edgarvil@home.com>.
907 2000-12-03 Tom Tromey <tromey@redhat.com>
909 * java/awt/geom/Point2D.java: Added protected constructor.
910 (equals): New method.
911 (Float.setLocation(float,float)): New method.
912 * java/awt/geom/Dimension2D.java: Added protected constructor.
913 * java/awt/geom/AffineTransform.java: Made all constants public.
914 (concatenate): Fixed typo in name.
915 * java/awt/event/WindowAdapter.java: Class now abstract.
916 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
917 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
920 * java/awt/AWTError.java: Extend Error, not
921 IllegalStateException.
923 * Makefile.in: Rebuilt.
924 * Makefile.am (awt_java_source_files): Added new file.
925 * java/awt/geom/RoundRectangle2D.java: New file.
927 * Makefile.in: Rebuilt.
928 * Makefile.am (awt_java_source_files): Added new file.
929 * java/awt/FlowLayout.java: New file.
931 * Makefile.in: Rebuilt.
932 * Makefile.am (awt_java_source_files): Added new file.
933 * java/awt/GridLayout.java: New file.
935 2000-12-02 Tom Tromey <tromey@redhat.com>
937 * Makefile.in: Rebuilt.
938 * Makefile.am (awt_java_source_files): Added new files.
939 * java/awt/CardLayout.java: New file.
940 * java/awt/AWTPermission.java: New file.
942 2000-12-01 Tom Tromey <tromey@redhat.com>
944 * java/util/Vector.java (insertElementAt): Unconditionally
945 increment elementCount.
946 (removeRange): Clear unused slots in vector.
948 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
950 * java/lang/natMath.cc: Declare fabsf() function.
951 * java/lang/mprec.h: Don't include math.h.
952 * java/lang/dtoa.c: Include string.h.
953 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
956 From Adam Welc <welc@cs.purdue.edu>:
957 * java/util/LinkedList.java (removeFirst): Update `first' field.
958 Handle the last == first case.
959 (removeLast): Update `last' field. Handle the last == first case.
961 2000-12-01 Warren Levy <warrenl@cygnus.com>
963 * Makefile.am: Added entries for new java.sql modules.
964 * Makefile.in: Rebuilt.
966 2000-12-01 Warren Levy <warrenl@cygnus.com>
968 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
969 that aren't quite 1.2 compatible yet.
971 2000-11-30 Warren Levy <warrenl@cygnus.com>
973 * java/sql/Array.java: New file from classpath.
974 * java/sql/BatchUpdateException.java: Ditto.
975 * java/sql/Blob.java: Ditto.
976 * java/sql/Clob.java: Ditto.
977 * java/sql/Ref.java: Ditto.
978 * java/sql/SQLData.java: Ditto.
979 * java/sql/SQLInput.java: Ditto.
980 * java/sql/SQLOutput.java: Ditto.
981 * java/sql/Struct.java: Ditto.
982 * java/sql/CallableStatement.java: Merged file from claspath.
983 * java/sql/Connection.java: Ditto.
984 * java/sql/DataTruncation.java: Ditto.
985 * java/sql/DatabaseMetaData.java: Ditto.
986 * java/sql/DriverManager.java: Ditto.
987 * java/sql/PreparedStatement.java: Ditto.
988 * java/sql/ResultSet.java: Ditto.
989 * java/sql/ResultSetMetaData.java: Ditto.
990 * java/sql/SQLException.java: Ditto.
991 * java/sql/SQLWarning.java: Ditto.
992 * java/sql/Statement.java: Ditto.
993 * java/sql/Types.java: Ditto.
995 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
997 * java/lang/natSystem.cc (init_properties): Set user.language and
999 * configure.in: Check for setlocale.
1000 * configure: Rebuilt.
1001 * include/config.h.in: Rebuilt.
1003 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1004 the infate() call didn't deliver any output. Throw a ZipException if
1005 the needsDictionary() call returns true.
1006 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1007 * java/io/InputStreamReader: Use the default buffer size for the
1008 contained BufferedInputStream.
1010 2000-11-28 Warren Levy <warrenl@cygnus.com>
1012 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1013 more time zone entries.
1014 * java/text/SimpleDateFormat.java (format): Added case for
1017 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1019 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1020 directly rather than read() in all cases. Make primitive read
1021 implementations more efficient, as defined in JDK online docs.
1022 (skipBytes): Behave like the JDK's implementation.
1023 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1024 closed stream with checkStatus() whenever an IOException can be
1026 (checkStatus): New private method.
1028 2000-11-27 Warren Levy <warrenl@cygnus.com>
1030 * Makefile.am: Added natTimeZone.cc.
1031 * Makefile.in: Rebuilt.
1032 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1033 * java/text/DateFormatSymbols.java (ampms): Made package private.
1034 (eras): Made package private.
1035 (months): Made package private.
1036 (shortMonths): Made package private.
1037 (shortWeekdays): Made package private.
1038 (weekdays): Made package private.
1039 (formatPrefixes): New private field.
1040 (localPatternCharsDefault): Made private.
1041 (dateFormats): New package private field.
1042 (timeFormats): New package private field.
1043 (formatsForKey): New private method.
1044 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1045 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1046 * java/text/SimpleDateFormat.java: Merged with Classpath.
1047 * java/util/TimeZone.java: Merged with Classpath.
1048 * java/util/natTimeZone.cc: New file.
1050 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1052 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1053 (addElement): Don't increment elementCount twice. Doh.
1054 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1055 array needs to be expanded.
1057 * java/util/Collections.java (UnmodifiableCollection): Implement
1059 (UnmodifiableList): Throw UnsupportedOperationException from
1060 modification methods. Set `l' from the one-parameter constructor.
1061 (UnmodifiableMap): Implement toString().
1062 (SynchronizedCollection): Ditto.
1063 (SynchronizedList): Set `l' from the one-parameter constructor.
1064 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1065 (SynchronizedMap): Implement toString().
1067 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1069 * javax/naming/NameParser.java,
1070 javax/naming/directory/AttributeInUseException.java,
1071 javax/naming/directory/AttributeModificationException.java,
1072 javax/naming/directory/InvalidAttributeIdentifierException.java,
1073 javax/naming/directory/InvalidAttributesException.java,
1074 javax/naming/directory/InvalidAttributeValueException.java,
1075 javax/naming/directory/InvalidSearchControlsException.java,
1076 javax/naming/directory/InvalidSearchFilterException.java,
1077 javax/naming/directory/NoSuchAttributeException.java,
1078 javax/naming/directory/SchemaViolationException.java: New files.
1080 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1082 * javax/naming/InitialContext.java (rebind): Implement.
1083 (unbind): Implement.
1084 (rename): Implement.
1086 (listBindings): Implement.
1087 (destroySubcontext): Implement.
1088 (createSubcontext): Implement.
1089 (lookupLink): Implement.
1090 (getNameParser): Implement.
1091 (composeName): Implement.
1092 (addToEnvironment): Implement.
1094 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1096 * javax/naming/AuthenticationException.java,
1097 javax/naming/AuthenticationNotSupportedException.java,
1098 javax/naming/CannotProceedException.java,
1099 javax/naming/CommunicationException.java,
1100 javax/naming/ConfigurationException.java,
1101 javax/naming/ContextNotEmptyException.java,
1102 javax/naming/InsufficientResourcesException.java,
1103 javax/naming/InterruptedNamingException.java,
1104 javax/naming/InvalidNameException.java,
1105 javax/naming/LimitExceededException.java,
1106 javax/naming/LinkException.java,
1107 javax/naming/LinkLoopException.java,
1108 javax/naming/MalformedLinkException.java,
1109 javax/naming/NameAlreadyBoundException.java,
1110 javax/naming/NameNotFoundException.java,
1111 javax/naming/NamingSecurityException.java,
1112 javax/naming/NoPermissionException.java,
1113 javax/naming/NotContextException.java,
1114 javax/naming/PartialResultException.java,
1115 javax/naming/ReferralException.java,
1116 javax/naming/ServiceUnavailableException.java,
1117 javax/naming/SizeLimitExceededException.java,
1118 javax/naming/TimeLimitExceededException.java: New files.
1120 * javax/naming/Name.java (clone): New method.
1121 (compareTo): New method.
1122 (isEmpty): New method.
1123 (getAll): New method.
1124 (getPrefix): New method.
1125 (getSuffix): New method.
1126 (startsWith): New method.
1127 (endsWith): New method.
1128 (addAll): New method.
1129 (addAll): New method.
1132 (remove): New method.
1134 * javax/naming/Context.java (lookup): New method.
1135 (rebind): New method.
1136 (unbind): New method.
1137 (rename): New method.
1139 (listBindings): New method.
1140 (destroySubcontext): New method.
1141 (createSubcontext): New method.
1142 (lookupLink): New method.
1143 (getNameParser): New method.
1144 (composeName): New method.
1145 (addToEnvironment): New method.
1146 (removeFromEnvironment): New method.
1147 (getEnvironment): New method.
1148 (close): New method.
1149 (getNameInNamespace): New method.
1151 * javax/naming/InitialContext.java (lookup): New method.
1152 (rebind): New method.
1153 (unbind): New method.
1154 (rename): New method.
1156 (listBindings): New method.
1157 (destroySubcontext): New method.
1158 (createSubcontext): New method.
1159 (lookupLink): New method.
1160 (getNameParser): New method.
1161 (composeName): New method.
1162 (addToEnvironment): New method.
1163 (removeFromEnvironment): New method.
1164 (getEnvironment): New method.
1165 (close): New method.
1166 (getNameInNamespace): New method.
1168 2000-11-26 Tom Tromey <tromey@cygnus.com>
1170 * Makefile.in: Rebuilt.
1171 * Makefile.am (core_java_source_files): Added
1172 RuntimePermission.java.
1173 * java/lang/RuntimePermission.java: Imported from Classpath.
1174 * java/lang/Thread.java (getContextClassLoader): Now
1175 synchronized. Added security code.
1176 (setContextClassLoader): Likewise.
1178 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1179 length field of array.
1180 (_Jv_NewPrimArray): Likewise.
1181 * gcj/array.h (__JArray): `length' field now const. Added
1184 2000-11-26 Anthony Green <green@redhat.com>
1186 * javax/naming/spi/NamingManager.java,
1187 javax/naming/spi/ObjectFactory.java,
1188 javax/naming/spi/InitialContextFactory.java,
1189 javax/naming/spi/InitialContextFactoryBuilder.java,
1190 javax/naming/RefAddr.java, javax/naming/Reference.java,
1191 javax/naming/NamingException.java, javax/naming/Context.java,
1192 javax/naming/Referenceable.java,
1193 javax/naming/directory/InitialDirContext.java,
1194 javax/naming/directory/DirContext.java,
1195 javax/naming/directory/Attributes.java,
1196 javax/naming/directory/Attribute.java,
1197 javax/naming/StringRefAddr.java,
1198 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1199 javax/naming/InitialContext.java,
1200 javax/naming/NoInitialContextException.java: New files.
1202 2000-11-25 Anthony Green <green@redhat.com>
1204 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1205 (_Jv_NewPrimArray): Likewise.
1206 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1207 (class JArray): Removed constructor.
1209 * java/lang/Thread.java (context_class_loader): New private data.
1210 (getContextClassLoader): New method.
1211 (setContextClassLoader): New method.
1212 (Thread): Initialize context_class_loader.
1214 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1215 (getResource): Rename to findResource.
1216 (findResource): New method. Used to be getResource.
1217 (getResourceAsStream): Deleted.
1218 (jarFileize): Extracted logic from URLClassLoader constructor into
1219 this new private method.
1220 (addURL): New protected method.
1221 (URLClassLoader): Call jarFileize. Use addElement instead of
1223 (findResources): New method.
1225 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1226 (getResource): Implement correct logic.
1227 (findResource): New method.
1228 (getResources): New method.
1229 (findClass): Create a ClassNotFoundException with the name of the
1230 class rather than nothing at all.
1231 (defineClass) Only throw ClassFormatError.
1233 * java/lang/Class.java (forName): New method.
1234 * java/lang/Class.h (forName): New method.
1235 * java/lang/natClass.cc (forName): New method.
1237 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1239 * java/lang/System.java (setProperties): Only call init_properties()
1240 if properties is null.
1241 (getProperties): Ditto.
1242 (getProperty): Ditto.
1243 (setProperty): Call init_properties if properties are null.
1244 (prop_init): Remove field.
1245 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1246 method. Check for null properties after synchronizing instead of
1247 prop_init flag. Set the properties field last for thread safety.
1249 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1250 test for gcj.dumpobjects property and enable object stream dumping
1252 (dumpElement): No longer native.
1253 (dumpElementln): Ditto.
1254 (setDump): Do not define.
1255 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1256 (dumpElementln): Removed.
1259 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1261 * configure: Rebuilt.
1262 * Makefile.in: Rebuilt.
1263 * Makefile.am (built_java_source_files): Add Configuration.java.
1264 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1265 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1266 Create `gnu' directory in the build tree.
1267 * gnu/classpath/Configuration.java.in: New file.
1269 2000-11-24 Tom Tromey <tromey@cygnus.com>
1271 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1273 (_Jv_NewPrimArray): Likewise.
1275 * gcj/array.h (__JArray): `length' field now const. Added
1277 (class JArray): Added constructor.
1279 2000-11-23 Mark Wielaard <mark@klomp.org>
1281 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1284 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1286 * java/util/Vector.java: Improve exception messages.
1287 (Vector): Check initialCapacity for IllegalArgumentException.
1288 (tromToSize): Don't check for elementCount == elementData.length
1290 (toArray): Don't try to set null marker if target array is the same
1291 length as the vector.
1293 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1295 * Makefile.in: Rebuilt.
1296 * Makefile.am (core_java_source_files): Added Collections.java.
1297 * java/util/List.java: Merged from classpath.
1298 * java/util/Vector.java: Ditto.
1299 * java/util/Collections.java: From classpath.
1300 * java/util/ArrayList.java (addAll(Collection)): Call
1301 addAll(int,Collection) instead of duplicating code.
1302 (indexOf): Clean up int initialization.
1303 (clear): Set cleared array entries to null, to allow garbage
1305 * java/util/List.java: Minor formatting fixes.
1306 * java/util/SimpleTimeZone.java: ditto.
1308 2000-11-18 Tom Tromey <tromey@cygnus.com>
1310 * Makefile.in: Rebuilt.
1311 * Makefile.am (core_java_source_files): Added new files.
1312 * java/lang/reflect/ReflectPermission.java: New class.
1313 * java/io/FileFilter.java: From Classpath
1314 * java/io/FilePermission.java: From Classpath.
1316 2000-11-17 Tom Tromey <tromey@cygnus.com>
1318 * java/lang/reflect/AccessibleObject.java (isAccessible,
1319 setAccessible): Now public.
1321 * java/lang/natString.cc: Include Locale.h.
1322 (toUpperCase): Added `locale' argument. Handle locale
1324 (toLowerCase): Added `locale' argument. Handle locale
1326 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1327 CAPITAL_I): New defines.
1328 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1331 (toUpperCase, toLowerCase): New methods. Variants which accept
1334 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1337 * java/util/PropertyPermission.java: Re-merged from Classpath.
1339 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1341 * java/text/StringCharacterIterator.java: Reindented.
1342 (setText): New method.
1344 2000-11-17 Mark Wielaard <mark@klomp.org>
1346 Merge with Classpath (changes by Bryce McKinlay)
1347 * java/util/jar/*.java: Reformat all to unofficial standard coding
1348 style. No changes of substance.
1350 2000-11-17 Mark Wielaard <mark@klomp.org>
1352 * java/util/zip/*.java: Javadoc updates.
1354 2000-11-17 Tom Tromey <tromey@cygnus.com>
1356 * java/text/CollationKey.java: Implement Comparable.
1357 (compareTo(Object)): New method.
1358 * java/text/Collator.java (compare(Object,Object)): New method.
1359 Implement Comparator.
1361 * java/util/zip/InflaterInputStream.java (available): New method.
1362 (close): New method.
1363 (read, available, skip, fill): Throw exception if stream closed.
1364 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1365 getNextEntry): Throw exception if closed.
1367 2000-11-16 Tom Tromey <tromey@cygnus.com>
1369 * java/io/PushbackReader.java: Merged with Classpath.
1370 * java/util/Arrays.java: Updated from Classpath.
1372 * scripts/blocks.pl: New file.
1373 * java/lang/Character.java (Subset): New class.
1374 (UnicodeBlock): New class.
1376 * java/lang/Math.java (toDegrees, toRadians): New methods.
1378 * java/lang/Float.java: Implement Comparable.
1379 (compareTo): New methods.
1380 * java/lang/Double.java: Implement Comparable.
1381 (compareTo): New methods.
1383 2000-11-16 Warren Levy <warrenl@cygnus.com>
1385 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1387 (listeners): Made transient.
1388 (source): Renamed from 'bean'.
1389 (children): New field for serialization.
1390 (propertyChangeSupportSerializedDataVersion): Ditto.
1391 (serialVersionUID): Ditto.
1392 (writeObject): New serialization method.
1393 (readObject): New serialization method.
1394 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1396 (listeners): Made transient.
1397 (source): Renamed from 'bean'.
1398 (children): New field for serialization.
1399 (vetoableChangeSupportSerializedDataVersion): Ditto.
1400 (serialVersionUID): Ditto.
1401 (writeObject): New serialization method.
1402 (readObject): New serialization method.
1403 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1404 to allow constructor to have a return type (i.e. the class that the
1405 constructor constructs).
1407 2000-11-14 Tom Tromey <tromey@cygnus.com>
1409 * Makefile.in: Rebuilt.
1410 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1413 2000-11-02 Warren Levy <warrenl@cygnus.com>
1415 * java/io/ObjectInputStream.java (readObject): Added code to
1416 conditionally dump out the serialized data.
1417 Handle ENDBLOCKDATA case a bit more gracefully since the current
1418 behavior doesn't seem to work as expected.
1419 (readStreamHeader): Added code for serialized data dumper.
1420 (readNextBlock): Ditto.
1421 (readFields): Ditto.
1422 (dump): New private static field for turning on/off dumper.
1423 (setDump): New native method.
1424 (dumpElement): New native method.
1425 (dumpElementln): New native method.
1426 * java/io/natObjectInputStream.cc (setDump): New method.
1427 (dumpElement): New method.
1428 (dumpElementln): New method.
1430 2000-11-02 Warren Levy <warrenl@cygnus.com>
1432 * java/net/InetAddress.java (addr): Renamed from 'address'.
1433 (address): New field to match Serialized Form doc.
1434 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1435 (family): New serialization field.
1436 (serialVersionUID): New field.
1437 (readObject): New method.
1438 (writeObject): New method.
1439 (getFamily): New native method.
1440 (InetAddress): Set family.
1441 * java/net/natInetAddress.cc (getFamily): New method.
1442 (addr): Renamed from 'address'.
1443 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1444 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1445 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1447 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1449 * java/util/AbstractList.java (SubList): Make it a top-level private
1451 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1453 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1454 * Makefile.in: Rebuilt.
1456 2000-11-02 Tom Tromey <tromey@cygnus.com>
1458 * Makefile.in: Rebuilt.
1459 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1462 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1464 * java/util/AbstractList.java (remove): Comment out modCount increment
1465 to work around compiler bug.
1468 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1470 * java/util/AbstractList.java: Throw messages with
1471 IndexOutOfBoundsExceptions.
1472 (listIterator()): Call listIterator(0).
1473 (size): New field. Initialize to size().
1474 (hasNext): Test position against size, not size().
1475 (remove): Increment knownMod by one instead of resetting it from
1478 (SubList.upMod): Removed.
1479 (SubList.set): Don't call upMod() or update knownMod.
1480 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1481 (SubList.remove): Ditto.
1482 (SubList.addAll): Don't call backingList.size(). Increment size from
1484 (SubList.iterator): New method. Call listIterator(0).
1485 (SubList.listIterator): New method. Restore code to return an anonymous
1486 listIterator implementation (with some changes).
1487 * java/util/AbstractSequentialList.java: Throw messages with
1488 IndexOutOfBoundsExceptions.
1489 (addAll): Add a specnote.
1490 * java/util/ArrayList.java (removeRange): Get the math right.
1491 (addAll): Increment modCount _before_ creating iterator.
1492 * java/util/LinkedList.java: Rewritten, mostly.
1494 2000-11-01 Tom Tromey <tromey@cygnus.com>
1496 * scripts/encodings.pl: Added `ASCII' alias.
1497 * Makefile.in: Rebuilt.
1498 * Makefile.am (convert_source_files): Added new files.
1499 * gnu/gcj/convert/Input_ASCII.java: New file.
1500 * gnu/gcj/convert/Output_ASCII.java: New file.
1501 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1502 out-of-range characters.
1503 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1504 (read): Swap bytes if required. Treat `count' as character count,
1506 (write): Likewise. Also, handle case where iconv fails on a given
1508 (init): Put encoding into exception.
1509 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1510 (static): Call iconv_init. Rebuilt alias list.
1511 (iconv_init): New private method.
1513 2000-11-01 Tom Tromey <tromey@cygnus.com>
1515 * Makefile.in: Rebuilt.
1516 * Makefile.am (install-exec-hook): Only make a single symlink, and
1517 remove the destination before making the link.
1518 * configure: Rebuilt.
1519 * configure.in: Call AC_PROG_LN_S.
1521 2000-10-31 Warren Levy <warrenl@cygnus.com>
1523 * jni.cc: Added include of java/lang/ThreadGroup.h.
1524 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1525 per change of 2000-10-05.
1527 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1529 * java/util/BitSet.java: Updated @specnote.
1531 * java/io/Reader.java: Merge docs from classpath.
1532 (skip): Synchronize on `lock'.
1533 * java/io/FileReader.java: Import correct implementation from
1535 * java/io/StringReader.java: Merge docs from classpath.
1536 (ready): Throw IOException if stream is closed.
1538 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1540 * java/util/AbstractCollection.java (addAll): Use size() instead of
1541 hasNext() in iterator loop.
1543 (contains): Ditto. Simplify loop.
1544 (containsAll): Ditto.
1549 (toString): Ditto. Use string concatenation operators, not
1551 * java/util/AbstractList.java (addAll): Use size() instead of
1552 hasNext() in iterator loop.
1555 (indexOf): Ditto. Don't take null check outside of the loop.
1556 (iterator): Return an AbstractListItr instead of anonymous class.
1557 (lastIndexOf): Use a for loop bounded by size() instead of
1558 hasPrevious() in iterator loop.
1559 (listIterator): Return an AbstractListItr.
1560 (removeRange): Remove bounds checking code and docs.
1561 (AbstractListItr): New inner class. Code moved here from
1563 (SubList.iterator): Removed. Use default implementation from
1564 AbstractList instead.
1565 (SubList.listIterator): As above.
1566 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1567 instead of hasNext() in iterator loop.
1568 (containsValue): Ditto.
1574 (toString): Ditto. Use string concatenation operators, not
1576 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1577 bounded by size() instead of hasNext() in iterator loop.
1578 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1579 part of normal execution flow. Do an explicit null check instead.
1580 * java/util/ArrayList.java (_iSize): Rename to `size'.
1581 (_arData): Rename to `data'.
1582 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1585 (removeRange): Make protected. Don't check bounds.
1586 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1588 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1590 (addAll (int, Collection)): Check lower bounds. Simplify exception
1592 (clone): Clone the data array too.
1593 (indexOf): Inline doesEqual().
1594 (lastIndexOf): Ditto.
1595 (clear): Don't set array data to null.
1596 (set): Check lower bounds. Simplify exception string.
1597 (toArray): Correct comment.
1598 (trimToSize): Don't update modCount, this is not a structural change.
1601 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1603 (toString): Declare `bit' as long, not int.
1604 (data): Made package-private, not private.
1606 2000-10-27 Warren Levy <warrenl@cygnus.com>
1608 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1609 array elements to true.
1611 2000-10-27 Warren Levy <warrenl@cygnus.com>
1613 * Makefile.am: Added locale files from Classpath.
1614 * Makefile.in: Rebuilt.
1615 * gnu/java/locale/Calendar.java: New file.
1616 * gnu/java/locale/Calendar_de.java: New file.
1617 * gnu/java/locale/Calendar_en.java: New file.
1618 * gnu/java/locale/Calendar_nl.java: New file.
1619 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1620 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1621 serialization compatibility.
1622 (scale): Made private.
1623 (serialVersionUID): New field.
1624 * java/math/BigInteger.java (ival): Made transient.
1625 (words): Made transient.
1626 (bitCount): New serialization field.
1628 (firstNonzeroByteNum): Ditto.
1629 (lowestSetBit): Ditto.
1632 (serialVersionUID): New field.
1633 (readObject): New method.
1634 (writeObject): New method.
1635 * java/util/BitSet.java (serialVersionUID): New field.
1636 * java/util/Calendar.java: Replaced with Classpath file.
1637 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1638 of getDefault() for TimeZone or Locale instead of passing nulls.
1639 * java/util/Locale.java (serialVersionUID): New field.
1640 (writeObject): New method.
1641 (readObject): New method.
1642 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1644 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1646 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1647 (core_java_source_files): Put java.lang, java.io, and java.util here.
1648 (ordinary_java_source_files): Order so that core_java_source_files are
1650 (java_source_files): Reorder so that special_java_source_files are
1652 * configure.in: Don't pass -I flag to gcj.
1653 * Makefile.in: Rebuilt.
1654 * configure: Rebuilt.
1656 2000-10-25 Tom Tromey <tromey@cygnus.com>
1658 * Makefile.in: Rebuilt.
1659 * Makefile.am (install-exec-hook): New target.
1661 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1663 * java/util/EventObject.java: Merged from classpath.
1665 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1668 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1670 * java/util/AbstractSet.java (equals): Re-installed original code.
1672 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1674 * Makefile.am: Added rules for libgcjx library.
1675 * Makefile.in: Rebuilt.
1676 * configure.in: Added check for X.
1677 * configure: Rebuilt.
1678 * gnu/awt/LightweightRedirector.java: New file.
1679 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1680 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1681 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1682 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1683 * gnu/awt/j2d/MappedRaster.java: New file.
1684 * gnu/awt/xlib/XCanvasPeer.java: New file.
1685 * gnu/awt/xlib/XEventLoop.java: New file.
1686 * gnu/awt/xlib/XEventQueue.java: New file.
1687 * gnu/awt/xlib/XFontMetrics.java: New file.
1688 * gnu/awt/xlib/XFramePeer.java: New file.
1689 * gnu/awt/xlib/XGraphics.java: New file.
1690 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1691 * gnu/awt/xlib/XPanelPeer.java: New file.
1692 * gnu/awt/xlib/XToolkit.java: New file.
1693 * gnu/gcj/xlib/Clip.java: New file.
1694 * gnu/gcj/xlib/Colormap.java: New file.
1695 * gnu/gcj/xlib/Display.java: New file.
1696 * gnu/gcj/xlib/Drawable.java: New file.
1697 * gnu/gcj/xlib/Font.java: New file.
1698 * gnu/gcj/xlib/GC.java: New file.
1699 * gnu/gcj/xlib/Pixmap.java: New file.
1700 * gnu/gcj/xlib/Screen.java: New file.
1701 * gnu/gcj/xlib/Visual.java: New file.
1702 * gnu/gcj/xlib/WMSizeHints.java: New file.
1703 * gnu/gcj/xlib/Window.java: New file.
1704 * gnu/gcj/xlib/WindowAttributes.java: New file.
1705 * gnu/gcj/xlib/XAnyEvent.java: New file.
1706 * gnu/gcj/xlib/XButtonEvent.java: New file.
1707 * gnu/gcj/xlib/XColor.java: New file.
1708 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1709 * gnu/gcj/xlib/XConnectException.java: New file.
1710 * gnu/gcj/xlib/XEvent.java: New file.
1711 * gnu/gcj/xlib/XException.java: New file.
1712 * gnu/gcj/xlib/XExposeEvent.java: New file.
1713 * gnu/gcj/xlib/XID.java: New file.
1714 * gnu/gcj/xlib/XImage.java: New file.
1715 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1716 * gnu/gcj/xlib/natClip.cc: New file.
1717 * gnu/gcj/xlib/natColormap.cc: New file.
1718 * gnu/gcj/xlib/natDisplay.cc: New file.
1719 * gnu/gcj/xlib/natDrawable.cc: New file.
1720 * gnu/gcj/xlib/natFont.cc: New file.
1721 * gnu/gcj/xlib/natGC.cc: New file.
1722 * gnu/gcj/xlib/natPixmap.cc: New file.
1723 * gnu/gcj/xlib/natScreen.cc: New file.
1724 * gnu/gcj/xlib/natVisual.cc: New file.
1725 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1726 * gnu/gcj/xlib/natWindow.cc: New file.
1727 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1728 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1729 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1730 * gnu/gcj/xlib/natXColor.cc: New file.
1731 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1732 * gnu/gcj/xlib/natXException.cc: New file.
1733 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1734 * gnu/gcj/xlib/natXImage.cc: New file.
1735 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1736 * java/awt/EventDispatchThread.java: Start thead on creation.
1738 2000-10-20 Tom Tromey <tromey@cygnus.com>
1740 From Arno J. Klaassen:
1741 * interpret.cc: Include <stdlib.h> for alloca.
1742 * defineclass.cc: Include <stdlib.h> for alloca.
1744 * Makefile.in: Rebuilt.
1745 * Makefile.am: Include deps.mk.
1746 (GCJCOMPILE): Added -MD, -MT, and -MF.
1747 ($(javao_files)): Don't depend on libgcj.zip.
1748 (all-recursive): New target.
1749 (%.lo:%.cc): Do dependency tracking.
1750 ($(nat_headers)): Don't depend on libgcj.zip.
1751 * configure: Rebuilt.
1752 * configure.in: Make .d files and deps.mk.
1754 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1756 * exception.cc: Don't #include "exception".
1757 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1759 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1760 * Makefile.in: Updated.
1762 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1764 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1765 * java/awt/peer/ComponentPeer.java (disable): Removed.
1768 (minimumSize): Removed.
1769 (preferredSize): Removed.
1772 * java/awt/peer/ListPeer.java (addItem): Removed.
1774 (minimumSize): Removed.
1775 (preferredSize): Removed.
1776 (setMultipleSelections): Removed.
1777 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1778 (remove): Renamed from removeMenu.
1779 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1781 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1782 (remove): Renamed from removeItem.
1783 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1784 (getMinimumSize): Removed.
1785 (getPreferredSize): Removed.
1786 (minimumSize): Removed.
1787 (preferredSize): Removed.
1788 (replaceText): Removed.
1789 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1790 (preferredSize): Removed.
1791 (getMinimumSize): Removed.
1792 (getPreferredSize): Removed.
1793 (setEchoCharacter): Removed.
1795 2000-10-10 Warren Levy <warrenl@cygnus.com>
1797 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1798 * java/sql/Date.java (serialVersionUID): New field.
1799 * java/sql/Time.java (serialVersionUID): New field.
1800 * java/sql/Timestamp.java (serialVersionUID): New field.
1801 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1802 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1803 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1804 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1805 (readObject): New serialization method.
1806 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1807 (serialVersionOnStream): New field.
1808 (readObject): New serialization method.
1809 (getMonetaryDecimalSeparator): New method.
1810 (setMonetaryDecimalSeparator): New method.
1811 * java/text/NumberFormat.java (maxFractionDigits): New field.
1812 (maxIntegerDigits): New field.
1813 (minFractionDigits): New field.
1814 (minIntegerDigits): New field.
1815 (serialVersionOnStream): New field.
1816 (serialVersionUID): New field.
1817 (readObject): New serialization method.
1818 (writeObject): New serialization method.
1819 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1820 (serialVersionOnStream): New field.
1821 (serialVersionUID): New field.
1822 (readObject): New serialization method.
1824 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1826 * configure.in (GCJ): Avoid bogus error message when looking for
1827 (and not finding) gcj in the build tree.
1828 * configure: Rebuilt.
1830 2000-10-09 Tom Tromey <tromey@cygnus.com>
1832 * configure: Rebuilt.
1833 * configure.in: Include sys/types.h when checking for socklen_t.
1834 From Arno J. Klaassen.
1836 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1838 * include/jvm.h: Enable __builtin_expect().
1840 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1841 the main program. Fix for PR libgcj/341.
1843 2000-10-07 Tom Tromey <tromey@cygnus.com>
1845 * java/util/Properties.java: Merged with Classpath version.
1847 2000-10-05 Tom Tromey <tromey@cygnus.com>
1849 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1850 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1851 * java/lang/Class.h (Object): Added `class$' field.
1852 * java/lang/Object.h (Object): Added `class$' field.
1853 * defineclass.cc (ClassClass): Use `class$' form.
1854 (ClassObject): Likewise.
1855 * resolve.cc (ClassObject): Use `class$' form.
1856 (ObjectClass): Likewise.
1857 * interpret.cc (ClassError): Removed.
1858 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1860 (IntegerClass): Likewise.
1861 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1863 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1864 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1865 SerializableClass): Likewise.
1866 Include Serializable.h, Cloneable.h.
1867 * java/lang/natSystem.cc (SystemClass): Removed.
1868 (init_properties): Use `class$' form.
1869 * java/lang/natObject.cc (CloneableClass): Removed.
1870 (clone): Use `class$' form.
1871 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1872 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1873 ConstructorClass): Likewise.
1874 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1875 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1876 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1877 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1879 (ClassClass): Likewise.
1880 * include/jvm.h (StringClass): Use `class$' form.
1881 * prims.cc (ObjectClass): Removed.
1882 (_Jv_RunMain): Use `class$' form.
1883 (_Jv_AllocObject): Likewise.
1884 * jni.cc (ClassClass): Use `class$' form.
1885 (ThrowableClass): Likewise.
1886 (ObjectClass): Likewise.
1887 (MethodClass): Likewise.
1888 (ThreadGroupClass): Likewise.
1889 (NativeThreadClass): Likewise.
1890 * boehm.cc (ObjectClass): Removed.
1891 (ClassClass): Removed.
1892 (_Jv_MarkObj): Use `class$' form.
1893 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1896 2000-10-05 Warren Levy <warrenl@cygnus.com>
1898 * Makefile.am: Removed java/io/Replaceable.java and
1899 java/io/Resolvable.java.
1900 * Makefile.in: Rebuilt.
1901 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1903 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1905 (processResolution): Handle readResolve method via reflection with
1906 removal of Resolvable interface.
1907 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1908 method via reflection with removal of Replaceable interface.
1909 * java/io/Replaceable.java: Removed.
1910 * java/io/Resolvable.java: Removed.
1911 * java/security/Key.java (serialVersionUID): New field.
1912 * java/security/Provider.java (serialVersionUID): New field.
1913 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1915 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1917 * java/sql/DataTruncation.java (serialVersionUID): New field.
1918 * java/sql/SQLException.java (serialVersionUID): New field.
1919 * java/sql/SQLWarning.java (serialVersionUID): New field.
1920 * java/util/Date.java (serialVersionUID): New field.
1921 (millis): Made transient.
1922 (readObject): New method.
1923 (writeObject): New method.
1925 2000-10-05 Tom Tromey <tromey@cygnus.com>
1927 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1929 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1931 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1932 (JvRunMain): Set _Jv_argv and _Jv_argc.
1933 * java/awt/Component.java: Minor fixes.
1934 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1935 * java/awt/Toolkit.java (systemEventQueue): Removed.
1936 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1937 * java/awt/Window.java (getToolkit): Don't call super.
1938 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1939 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1940 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1941 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1942 * gnu/awt/gtk/GtkFramePeer.java: New file.
1943 * gnu/awt/gtk/GtkMainThread.java: New file.
1944 * gnu/awt/gtk/GtkToolkit.java: New file.
1945 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1946 * gnu/awt/gtk/gtkcommon.cc: New file.
1947 * gnu/awt/gtk/gtkcommon.h: New file.
1948 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1949 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1950 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1951 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1952 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1953 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1955 2000-09-30 Tom Tromey <tromey@cygnus.com>
1957 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1958 interrupted before modifying the cv's wait set.
1961 2000-09-30 Hans Boehm <boehm@acm.org>
1962 Bryce McKinlay <bryce@albatross.co.nz>
1964 Implement bitmap descriptor based marking for Boehm GC.
1966 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1967 * configure: Rebuilt.
1968 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1969 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1970 method get_finalizer().
1971 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1972 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1973 (_Jv_AllocObj): Add new jclass parameter.
1974 (_Jv_AllocArray): Ditto.
1975 (_Jv_BuildGCDescr): New prototype.
1976 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1977 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1978 get_finalizer() instead of direct finalizer vtable offset.
1979 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1980 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1981 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1982 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1983 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1984 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1985 (_Jv_DetermineVTableIndex): Ditto.
1986 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1987 calculations to account for new gc_descr field.
1988 * boehm.cc: #include gc_gcj.h.
1989 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1990 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1991 New commentary from HB. Mark the classes vtable.
1992 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1993 (GC_DEFAULT_DESCR): New #define.
1994 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1995 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1996 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1997 scan conservativly if size is less than min_heap_addr. Set vtable
1998 pointer of new object before returning.
1999 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2000 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2001 allocation for obj_kind_x.
2002 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2003 (_Jv_AllocObj): Set vtable on returned object.
2004 (_Jv_AllocArray): Ditto.
2005 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2006 (_Jv_NewPrimArray): Ditto.
2007 (_Jv_AllocObj): Declare as a friend.
2008 (_Jv_AllocArray): Ditto.
2009 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2010 from &ObjectClass into new array class. Remove offset-by-one
2011 adjustments from `method' size calculations to account for gc_descr
2014 2000-09-26 Tom Tromey <tromey@cygnus.com>
2016 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2017 `remove', not `add'.
2019 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2021 * java/lang/natSystem.cc (file_encoding): Added return statement.
2023 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2025 * Makefile.am: Re-work shell commands that exceeded command-line
2027 * Makefile.in: Rebuilt.
2029 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2031 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2032 * java/lang/natDouble.cc: Likewise.
2033 * java/lang/reflect/natMethod.cc: Likewise.
2034 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2036 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2038 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2040 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2041 * acinclude.m4: Arrange for automake to not bring in a new
2042 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2043 * Makefile.am: Leave it up to automake to subst GCJ.
2044 * aclocal.m4, configure, Makefile.in: Rebuilt.
2046 2000-09-13 Tom Tromey <tromey@cygnus.com>
2048 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2049 (get): Ensure Boolean class is initialized.
2050 * java/lang/reflect/natField.cc (BooleanClass): New define.
2051 (get): Ensure Boolean class is initialized.
2053 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2055 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2056 Initialize with anonymous class.
2057 (compareToIgnoreCase): New method.
2059 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2060 (uncaughtException): Set had_uncaught_exception.
2061 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2062 exit with error status if set.
2063 (_Jv_RunMain): Ditto.
2065 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2067 * configure: Rebuilt with new ../libtool.m4.
2069 2000-09-11 Tom Tromey <tromey@cygnus.com>
2071 * java/lang/reflect/Field.java (toString): Don't rely on
2074 2000-09-08 Tom Tromey <tromey@cygnus.com>
2076 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2077 default decoder use iconv.
2078 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2079 Let default encoder use iconv.
2080 * configure: Rebuilt.
2081 * configure.in: Check for nl_langinfo and <langinfo.h>.
2082 * java/lang/natSystem.cc (file_encoding): New function.
2083 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2085 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2087 * acinclude.m4: Simplify the tests for CC and CXX.
2088 * aclocal.m4, configure: Rebuilt.
2090 * acinclude.m4: Include libtool macros from the source tree.
2091 * aclocal.m4, configure: Rebuilt.
2093 2000-09-08 Warren Levy <warrenl@cygnus.com>
2095 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2096 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2097 * java/io/File.java (writeObject): Added.
2098 (readObject): Added.
2099 (serialVersionUID): Added.
2100 * java/io/ObjectOutputStream.java (writeObject): Initialized
2101 fieldsAlreadyWritten before recursion rather than after.
2102 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2103 * java/io/OptionalDataException.java (serialVersionUID): Added.
2104 (OptionalDataException): Made package private.
2105 * java/io/SyncFailedException.java (SyncFailedException): Removed
2106 default constructor to match spec.
2107 * java/lang/Boolean.java (serialVersionUID): Added.
2108 * java/lang/Byte.java (serialVersionUID): Added.
2109 * java/lang/Character.java (serialVersionUID): Added.
2110 * java/lang/Double.java (serialVersionUID): Added.
2111 * java/lang/Float.java (serialVersionUID): Added.
2112 * java/lang/Integer.java (serialVersionUID): Added.
2113 * java/lang/Long.java (serialVersionUID): Added.
2114 * java/lang/Number.java (serialVersionUID): Added.
2115 * java/lang/Short.java (serialVersionUID): Added.
2116 * java/lang/String.java (serialVersionUID): Added.
2117 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2119 * java/lang/reflect/InvocationTargetException.java
2120 (serialVersionUID): Added.
2121 * java/net/URL.java (handler): Made transient.
2122 (hashCode): Added field for serialization, per spec. and use
2123 cached value if available.
2124 (serialVersionUID): Added.
2125 (URL): Initialize hashCode.
2126 (set): Adjust hashCode.
2127 (readObject): New Method to initialize the protocol handler when
2129 (writeObject): New method.
2130 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2131 * java/text/Collator.java: Removed 'implements Serializable'.
2132 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2133 * java/util/Properties.java (serialVersionUID): Added.
2134 * java/util/Random.java (serialVersionUID): Added.
2135 (seed): Made private.
2136 (nextNextGaussian): Made private.
2137 (haveNextNextGaussian): Made private.
2138 * java/util/Stack.java (serialVersionUID): Added.
2139 * java/util/TimeZone.java (serialVersionUID): Added.
2140 * java/util/Vector.java (serialVersionUID): Added.
2142 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2144 * Makefile.am (Thread.h): Don't be friends with native threads
2146 * Makefile.in: Rebuilt.
2147 * java/lang/Thread.java (interrupt_flag): Make package-private.
2149 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2151 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2152 to avoid long long division.
2154 2000-09-06 Tom Tromey <tromey@cygnus.com>
2156 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2158 * java/lang/reflect/Method.java (toString): Use `getName' for
2161 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2162 `args' if method takes no parameters.
2164 Fix for PR java.lang/339:
2165 * java/lang/natPosixProcess.cc (fail): New function.
2166 (cleanup): New function.
2167 (startProcess): Use them. Create pipe so child can communicate
2168 exec failure back to parent.
2170 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2172 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2174 (send): Undo last patch. Remove the label only.
2176 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2178 * java/net/natInetAdress.cc: Ditto.
2180 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2182 2000-09-05 Tom Tromey <tromey@cygnus.com>
2184 * doc/cni.sgml: Updated from master copy.
2186 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2188 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2190 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2192 * java/lang/fdlibm.h: #undef __P if previously defined.
2193 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2194 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2198 2000-09-04 Tom Tromey <tromey@cygnus.com>
2200 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2203 2000-09-04 Anthony Green <green@redhat.com>
2205 Fix for PR java.io/203:
2206 * java/io/File.java (createTempFile): Obey directory argument.
2207 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2208 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2209 variable to set java.io.tmpdir on non-WIN32 systems.
2211 2000-09-04 Anthony Green <green@redhat.com>
2213 * java/io/File.java (deleteOnExit): New method.
2214 * gnu/gcj/runtime/FileDeleter.java: New class.
2215 * java/lang/natRuntime.cc (exit): Call
2216 FileDeleter.deleteOnExitNow()
2217 * Makefile.am: Add FileDeleter.java.
2218 * Makefile.in: Rebuilt.
2220 2000-09-02 Tom Tromey <tromey@cygnus.com>
2222 * Makefile.in: Rebuilt.
2223 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2224 environment variable.
2226 2000-09-01 Andrew Haley <aph@redhat.com>
2228 * java/io/StreamTokenizer.java: Don't throw a
2229 NumberFormatException if a field is numeric as far as the
2230 StreamTokenizer is concerned but not as far as Double.valueOf() is
2231 concerned: return a zero instead.
2233 2000-08-30 Tom Tromey <tromey@cygnus.com>
2235 * Makefile.in: Rebuilt.
2236 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2238 2000-08-28 Tom Tromey <tromey@cygnus.com>
2240 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2241 gnu/gcj/awt/ComponentDataBlitOp.java,
2242 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2243 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2244 java/awt/color/ICC_ColorSpace.java,
2245 java/awt/color/ICC_Profile.java,
2246 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2247 java/awt/image/ComponentColorModel.java,
2248 java/awt/image/ComponentSampleModel.java,
2249 java/awt/image/DataBuffer.java,
2250 java/awt/image/DataBufferByte.java,
2251 java/awt/image/DataBufferInt.java,
2252 java/awt/image/DataBufferUShort.java,
2253 java/awt/image/DirectColorModel.java,
2254 java/awt/image/IndexColorModel.java,
2255 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2256 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2257 java/awt/image/SinglePixelPackedSampleModel.java,
2258 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2259 Removed Latin-1 copyright symbols.
2260 * java/util/zip/ZipFile.java: Indentation fixes.
2262 2000-08-27 Mark Wielaard <mark@klomp.org>
2264 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2265 constructor, close can delete the file, finalize calls close.
2266 * java/util/jar/JarFile.java: Constructor that takes mode now
2269 2000-08-27 Anthony Green <green@redhat.com>
2271 * java/util/ArrayList.java, java/util/Timer.java,
2272 java/util/LinkedList.java, java/util/TimerTask.java,
2273 java/util/HashMap.java, java/util/AbstractMap.java,
2274 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2275 java/util/SortedSet.java: Imported from GNU Classpath.
2276 * Makefile.in: Rebuilt.
2277 * Makefile.am: Added new files.
2279 2000-08-26 Anthony Green <green@redhat.com>
2281 * Makefile.in: Rebuilt.
2282 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2285 * prims.cc: Include ClassLoader.h.
2286 (_Jv_RunMain): When executing jar files, classpath must be the jar
2287 file only. Lose our reference to the system ClassLoader in order
2288 to get a new one with the correct classpath.
2289 * java/lang/natSystem.cc (init_properties): When executing a jar
2290 file, only use the jar file for java.class.path.
2292 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2293 for bytecode archives.
2295 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2296 exists, but not Main-Class.
2298 2000-08-23 Mark Wielaard <mark@klomp.org>
2300 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2301 return -1 when fill() has no more data for the Inflater.
2303 2000-08-23 Mark Wielaard <mark@klomp.org>
2305 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2306 write(String) already does.
2308 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2310 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2311 to `alive_flag', call `init'.
2312 (init): New native method.
2313 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2316 2000-08-21 Mark Wielaard <mark@klomp.org>
2318 * Makefile.in: Rebuilt.
2319 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2321 (java/lang/reflect/Field.h): Likewise.
2322 (java/lang/reflect/Method.h): Likewise.
2323 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2326 2000-08-21 Tom Tromey <tromey@cygnus.com>
2328 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2331 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2333 * java/lang/natSystem.cc (init_properties): Change sourceware
2334 reference to sources.redhat.com.
2336 * include/java-props.h: Add _Jv_Jar_Class_Path.
2337 * prims.cc: Ditto. Set it from `gij -jar file' option.
2339 * java/lang/natSystem.cc (init_properties): Set java.class.path
2341 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2343 * java/util/PropertyPermission.java: Import from GNU Classpath.
2344 * Makefile.in: Rebuilt.
2345 * Makefile.am: Add java/util/PropertyPermission.java.
2346 * java/lang/System.java: Add setProperty method.
2348 * gij.cc (main): Add -jar option to execute jar files.
2349 (help): Describe -jar option.
2350 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2351 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2352 * gnu/gcj/runtime/FirstThread.java (main): New method.
2354 * java/util/jar/Attributes.java: Correct comment spelling.
2356 2000-08-20 Mark Wielaard <mark@klomp.org>
2358 * java/util/zip/Adler32.java: Make private variables really private
2359 * java/util/zip/CRC32.java: Make private variables really private
2360 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2362 * java/util/zip/InflaterInputStream.java: skip() could skip to
2364 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2365 * java/util/zip/ZipFile.java: size() new 1.2 method
2366 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2367 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2370 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2372 * java/util/jar/JarFile.java: Don't call
2373 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2376 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2378 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2379 Read the entire contents of the class file, not just what is
2382 * java/net/JarURLConnection.java: getEntry doesn't take any
2383 arguments. Return null if element is null.
2385 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2386 size from the archive, not the inflated size.
2388 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2389 java.util.zip.ZipFile.getEntry.
2391 * gij.cc (help): Change sourceware reference to
2394 2000-08-19 Tom Tromey <tromey@cygnus.com>
2396 * java/util/zip/ZipInputStream.java (createZipEntry):
2399 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2401 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2402 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2403 java/util/jar/JarInputStream.java,
2404 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2405 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2406 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2407 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2408 java/security/cert/Certificate.java,
2409 java/security/cert/CertificateEncodingException.java,
2410 java/security/cert/CertificateException.java,
2411 java/security/cert/CertificateExpiredException.java,
2412 java/security/cert/CertificateFactory.java,
2413 java/security/cert/CertificateFactorySpi.java,
2414 java/security/cert/CertificateNotYetValidException.java,
2415 java/security/cert/CertificateParsingException.java,
2416 java/security/cert/X509CRL.java,
2417 java/security/cert/X509CRLEntry.java,
2418 java/security/cert/X509Certificate.java,
2419 java/security/cert/X509Extension.java: Imported from Classpath.
2420 * java/util/Hashtable.java: Imported from Classpath.
2422 * java/util/zip/ZipInputStream.java: Create stub for
2425 * gcj/javaprims.h: Updated class list.
2427 * Makefile.in, gcj/Makefile.in: Rebuilt.
2428 * Makefile.am (ordinary_java_source_files): Add these new classes.
2430 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2432 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2433 * gnu/gcj/awt/GLightweightPeer.java: New file.
2434 * java/awt/BorderLayout.java: Implemented all methods.
2435 * java/awt/Button.java (actionListener, actionCommand): Renamed
2436 and modifier change.
2437 (addNotify): Call super.
2438 (dispatchEventImpl): New method.
2439 (getListeners): New method.
2440 (label): Made package-private, not private.
2441 * java/awt/Canvas.java: Implemented class body.
2442 * java/awt/Color.java (brighter): New method.
2443 (darker): New method.
2444 (hashCode): New method.
2445 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2446 (getGraphicsConfiguration): Delegate to
2447 getGraphicsConfigurationImpl().
2448 (getGraphicsConfigurationImpl): New method.
2449 (getToolkit): Only return value from peer if not null.
2450 (isDisplayable): Check with parent.
2451 (isShowing): No parent implies not showing.
2452 (getForeground): Check parent property if local is null.
2453 (getBackground): Likewise.
2454 (getFont): Likewise.
2455 (setForeground): Inform peer.
2456 (setBackground): Likewise
2457 (setLocale): Invalidate component.
2458 (getColorModel): Implemented.
2459 (setLocation): Invalidate, or ignore if no change.
2460 (setSize): Invalidate, or ignore if no change.
2461 (setBounds): Invalidate, or ignore if no change.
2462 (isOpaque): By default, heavyweight implies opaque.
2463 (isLightweight): Implemented.
2464 (getMaximumSize): Implemented.
2465 (doLayout): Implemented, NOP.
2466 (validate): Implemented, NOP.
2467 (invalidate): Only propagate to parent if parent was valid.
2468 (getGraphics): Implemented.
2469 (getFontMetrics): Implemented.
2470 (update): Implemented.
2471 (paintAll): Implemented.
2472 (repaint): Implemented all repaint methods.
2473 (print): Implemented.
2474 (printAll): Implemented.
2475 (createImage): Implemented.
2476 (dispatchEvent): Give the peer a chance to handle the event.
2477 (dispatchEventImpl): Dispatch paint events.
2478 (enableEvents): Lightweights enable events on parent component.
2479 (coalesceEvents): Coalesce paint events, and select event type
2481 (coalescePaintEvents): New method.
2482 (processEvent): Fix unfortunate ordering of statements, and call
2483 correct method for MOUSE_CLICKED.
2484 (processPaintEvent): New method.
2485 (addNotify): Allow container to notify children before event
2486 mask is set in peer.
2487 (addNotifyContainerChildren): New method.
2488 (removeNotify): Visibility should not change on removeNotify.
2489 (paramString): Implemented.
2490 (list): Implemented two of the list methods.
2491 * Container (myInsets): Removed, insets are managed by peer.
2492 (getInsets): Query peer.
2493 (addImpl): Fix reparenting, enable events for lightweights,
2494 initialize component array.
2495 (validate): Call doLayout in validateTree() instead.
2496 (validateTree): Do nothing if already valid. Call beginValidate(),
2497 endValidate() on peer. Call validateTree() instead of validate()
2498 for children that are containers. Mark valid after validation of
2500 (setFont): Partial implementation.
2501 (paint): Implemented.
2502 (visitChildren): New method.
2503 (visitChild): New method.
2504 (update): Implemented.
2505 (print): Implemented.
2506 (paintComponents): Implemented.
2507 (printComponents): Consider translation and clipping.
2508 (getComponentAt): Ignore invisible children. Return this if no
2510 (addNotify): Call super.
2511 (addNotifyContainerChildren): New method.
2512 (paramString): Implemented.
2513 (list): Implemented.
2514 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2516 (invokeLater): Likewise.
2517 (isDispatchThread): Likewise.
2518 * java/awt/FontMetrics (getLeading): Formula change.
2519 (getDescent): Consider leading also.
2520 (getMaxAscent): Default to getAscent().
2521 (getMaxDescent): Default to getDescent.
2522 (getMaxAdvance): Return value signifying unknown.
2523 (charWidth): Both methods implemented.
2524 (charsWidth): Implemented.
2525 (bytesWidth): Implemented.
2526 (getWidths): Implemented.
2527 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2529 (Frame): Rearragend constuctor chaining to disallow null being
2530 passed as a graphics configuration.
2531 (getTitle): Return empty string if null.
2533 (getIconImage): New method.
2534 (setIconImage): New method.
2535 (finalize): New method.
2536 (setMenuBar): Notify peer.
2537 (isResizable): New method.
2538 (setResizable): New method.
2539 (getState): New method.
2541 (remove): Implemented.
2542 (removeNotify): New method.
2543 (getFrames): New method.
2544 * java/awt/Graphics.java: Implemented body of class.
2545 * java/awt/Graphics2D.java: New file.
2546 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2547 * java/awt/Image.java: Implemented body of class.
2548 * java/awt/Panel.java (Panel): Call correct super constructor.
2549 (addNotify): Implemented.
2550 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2551 * java/awt/RenderingHints.java: New file.
2552 * java/awt/Toolkit.java (createComponent): Implemented.
2553 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2554 * java/awt/Window.java (Window): Two new constructors. Reordered
2555 constructor chaining.
2556 (getGraphicsConfigurationImpl): New method.
2557 (finalize): Call super.
2558 (addNotify): Call super.
2559 (pack): Do layout stuff.
2560 (show): Ensure that peer exists and that component is valid.
2561 (dispose): Dispose owned children.
2562 (getOwner): Simplify code, casting null pointers is valid.
2563 (getGraphicsConfiguration): Ask peer if local value is null.
2564 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2566 * java/awt/image/BufferedImage.java: New file.
2567 * java/awt/image/RasterOp.java: New file.
2568 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2569 More powerfull replacement for getColorModel().
2570 (getColorModel) Removed.
2571 (setEventMask) New method.
2572 * Makefile.am: Added new files.
2573 * Makefile.in: Rebuilt.
2575 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2577 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2578 (finit_leg_name): New global.
2579 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2580 `$finit$'. This is a backward compatibility hack.
2581 (java::lang::Class::_getMethods): Likewise.
2583 2000-08-15 Andrew Haley <aph@cygnus.com>
2585 * include/jvm.h (_Jv_HashCode): New hash code.
2587 2000-08-15 Tom Tromey <tromey@cygnus.com>
2589 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2591 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2593 * THANKS: More thanks.
2595 2000-08-10 Tom Tromey <tromey@cygnus.com>
2597 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2599 (connect): Likewise.
2601 (getOption): Likewise.
2602 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2603 case when errno not set.
2606 (receive): Likewise.
2607 (mcastGrp): Likewise.
2608 (setOption): Likewise.
2609 (getOption): Likewise.
2611 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2612 John Stracke <francis@ecal.com>
2614 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2615 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2617 (disconnect): Don't unset connected flag.
2618 (getHeaderField (String)): Call connect() if not connected.
2619 (getHeaderField (int)): Ditto.
2620 (getHeaderFieldKey): Ditto.
2621 (getHttpHeaders): Don't call connect().
2622 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2623 gotResponseVals): New fields.
2624 (getResponseCode): Call getResponseVals() conditionally.
2625 (getResponseMessage): Ditto.
2626 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2628 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2630 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2631 * Makefile.in: Rebuilt.
2632 * java/awt/Color.java (getTransparency): New method.
2633 * java/awt/Component.java: Various updates.
2634 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2635 after dealing with children.
2636 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2637 * java/awt/Window.java: Various new methods and updates.
2638 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2640 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2641 * java/awt/event/WindowEvent.java (paramString): Ditto.
2642 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2644 * java/awt/geom/Point2D.java (clone): Ditto.
2645 * java/awt/geom/RectangularShape.java (clone): Ditto.
2646 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2647 isAlphaPremultiplied): Make package-private, not private.
2649 2000-08-08 Tom Tromey <tromey@cygnus.com>
2651 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2652 surrogate characters.
2653 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2655 (write): Correct handling of surrogate characters.
2657 2000-08-07 Tom Tromey <tromey@cygnus.com>
2659 * java/lang/reflect/Method.java (hashCode): Use getName().
2660 (toString): Likewise.
2661 * java/lang/reflect/natMethod.cc (getType): Initialize
2664 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2666 * java/lang/reflect/Field.java (toString): Correct formatting.
2669 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2671 (receive): Streamlined.
2673 2000-08-05 Tom Tromey <tromey@cygnus.com>
2675 * java/io/PrintWriter.java: Merged comments from Classpath.
2676 (printlnUnsynchronized): Removed.
2677 (println()): Print the separator.
2678 (println): Call println(), not printlnUnsynchronized.
2679 (out): Now protected, to match spec.
2681 2000-08-04 Tom Tromey <tromey@cygnus.com>
2683 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2684 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2687 2000-08-03 Warren Levy <warrenl@cygnus.com>
2689 * java/io/ObjectInputStream.java (readFields): Turn off
2690 readDataFromBlock while reading via GetField.
2691 (GetField$1.get(String, Object)): Pass Class of default value to
2693 (getField): Allow for null default values.
2695 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2696 (PutField$1.put): Fixed calls of checkType in most of the put
2697 methods to pass the correct parameter.
2698 (PutField$1.put(String, Object)): Allow for null value arg.
2699 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2702 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2703 typo in spec'ed field name.
2704 (getSerialPersistentFields): Changed spelling of method to match
2705 the correct spelling of the spec'ed field name.
2707 2000-08-03 Tom Tromey <tromey@cygnus.com>
2709 * Makefile.in: Rebuilt.
2710 * Makefile.am (awt_java_source_files): Added new files.
2712 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2714 * Makefile.am: Add new AWT stubs.
2715 * java/awt/Canvas.java: New placeholder class.
2716 * java/awt/Checkbox.java: Ditto.
2717 * java/awt/CheckboxMenuItem.java: Ditto.
2718 * java/awt/Choice.java: Ditto.
2719 * java/awt/Dialog.java: Ditto.
2720 * java/awt/FileDialog.java: Ditto.
2721 * java/awt/List.java: Ditto.
2722 * java/awt/ScrollPane.java: Ditto.
2723 * java/awt/TextField.java: Ditto.
2724 * java/awt/datatransfer/Clipboard.java: Ditto.
2725 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2726 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2727 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2728 Some commented out. Partially implemented.
2729 * java/awt/natToolkit.cc: Removed file.
2731 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2733 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2734 Fixes "make -j" builds.
2735 * Makefile.in: Rebuild.
2737 2000-08-02 Tom Tromey <tromey@cygnus.com>
2739 * Makefile.in: Rebuilt.
2740 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2741 * java/net/natPlainSocketImpl.cc: Include posix.h.
2742 (accept): Use _Jv_select.
2743 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2744 (receive): Use _Jv_select.
2745 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2746 (available): Use _Jv_select.
2747 * java/lang/natSystem.cc: Include posix.h.
2748 (currentTimeMillis): Use _Jv_gettimeofday.
2749 * include/posix.h: New file.
2750 * posix.cc: New file.
2752 * scripts/encodings.pl: New file.
2753 * Makefile.in: Rebuilt.
2754 * Makefile.am (convert_source_files): Added IOConverter.java.
2755 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2757 (getDefaultDecodingClass): Canonicalize default encoding name.
2758 (getEncoder): Likewise.
2759 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2761 (getDefaultDecodingClass): Canonicalize default encoding name.
2762 (getDecoder): Likewise.
2763 * gnu/gcj/convert/IOConverter.java: New file.
2765 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2767 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2768 to match C declaration in ffi.h.
2769 * Makefile.am: Add java/awt/Button.java.
2770 * Makefile.in: Rebuilt.
2772 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2774 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2775 cast of the second argument to `ffi_raw_call' changed to match
2778 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2780 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2781 argument to `ffi_raw_call' changed to match prototype.
2783 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2785 * java/awt/Component.java (toString): Implemented.
2786 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2787 dispatchEvent() to dispatch the event.
2788 (removeImpl): Ditto.
2790 2000-07-30 Anthony Green <green@redhat.com>
2792 * java/awt/Component.java: Add treeLock object.
2793 (getTreeLock): Implement.
2794 (isShowing): Implement.
2796 2000-07-30 Tom Tromey <tromey@cygnus.com>
2798 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2800 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2802 * java/awt/Window.java (addNotify): Wrote.
2803 (addWindowListener): Wrote.
2805 (getWarningString): Wrote.
2806 (processEvent): Wrote.
2807 (processWindowEvent): Wrote.
2808 (removeWindowListener): Wrote.
2809 (show): Call validate(), setVisible().
2813 * java/awt/Toolkit.java (createWindow): Declare.
2815 * java/awt/Frame.java (addNotify): Use getToolkit to find
2818 * java/awt/Component.java (invalidate): Wrote.
2820 (getToolkit): Wrote.
2822 * java/awt/Container.java (addContainerListener): Removed
2824 (removeContainerListener): Likewise.
2826 (add(Component)): Use it.
2827 (add(String,Component)): Likewise.
2828 (add(Component,int)): Likewise.
2829 (add(Component,Object)): Likewise.
2830 (add(Component,Object,int)): Likewise.
2832 (getAlignmentX): Wrote.
2833 (getAlignmentY): Wrote.
2834 (getComponentAt): Wrote.
2835 (getMaximumSize): Wrote.
2836 (invalidate): Wrote.
2837 (list(PrintStream,int)): Wrote.
2838 (list(PrintWriter,int)): Wrote.
2839 (getMinimumSize): Wrote.
2840 (getPreferredSize): Wrote.
2841 (printComponents): Wrote.
2842 (processContainerEvent): Look at containerListener, not
2844 (remove): Added event processing and peer destruction.
2845 (removeAll): Use remove.
2846 (removeNotify): Wrote.
2848 (validateTree): Wrote.
2850 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2851 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2852 * java/awt/Container.java (addNotify): Don't create Container
2854 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2856 2000-07-30 Tom Tromey <tromey@cygnus.com>
2858 * java/awt/Container.java (remove(int)): Wrote.
2859 (remove(Component)): Wrote.
2860 (add(Component)): Wrote.
2861 (add(Component,int)): Wrote.
2863 (addNotify): Set our own peer.
2864 * java/awt/Scrollbar.java (listeners): Changed type.
2865 (Scrollbar): Don't initialize listeners.
2867 (setValue): Call setValues.
2868 (setMinimum): Likewise.
2869 (setMaxPriority): Likewise.
2870 (setVisibleAmount): Likewise.
2872 (setUnitIncrement): Forward to peer.
2873 (setLineIncrement): Call setUnitIncrement.
2874 (setPageIncrement): Call setBlockIncrement.
2875 (setBlockIncrement): Forward to peer.
2876 (addAdjustmentListener): Rewrote.
2877 (removeAdjustmentListener): Rewrote.
2878 (processAdjustmentEvent): Rewrote.
2879 (paramString): Wrote.
2880 * Makefile.in: Rebuilt.
2881 * Makefile.am (awt_java_source_files): Added Button.java.
2882 * java/awt/Button.java: New file.
2883 * java/awt/Toolkit.java (createLabel): Declare.
2884 (createButton): Likewise.
2885 (createScrollbar): Likewise.
2886 (createContainer): Likewise.
2887 * java/awt/Label.java (addNotify): Wrote.
2888 (setAlignment): Call setAlignment in the peer.
2889 (setText): Call setText in the peer.
2891 2000-07-28 Warren Levy <warrenl@cygnus.com>
2893 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2894 NotSerializableException with just the class name.
2896 2000-07-26 Andrew Haley <aph@cygnus.com>
2898 * interpret.cc (continue1): Insert missing break into switch.
2900 2000-07-28 Warren Levy <warrenl@cygnus.com>
2902 * java/io/ObjectStreamException.java: Made constructors protected.
2904 2000-07-27 Tom Tromey <tromey@cygnus.com>
2906 * java/io/OutputStreamWriter.java (close): Only flush if not
2909 2000-07-27 Warren Levy <warrenl@cygnus.com>
2911 * mauve-libgcj: Activated serialization tests.
2912 * gcj/field.h (getModifiers): Mask off unknown flags.
2913 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2914 spurious bits don't cause discrepancies.
2915 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2916 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2917 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2918 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2919 * java/lang/Throwable.java (serialVersionUID): New field.
2920 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2921 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2923 * java/lang/reflect/natMethod.cc: Ditto.
2924 * java/security/Key.java (serialVersionUID): Removed field for now.
2925 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2926 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2928 2000-07-22 Tom Tromey <tromey@cygnus.com>
2930 * java/awt/geom/RectangularShape.java (getPathIterator):
2933 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2935 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2936 stub libjava/java/awt/ColorModel.java which was located in the
2938 * libjava/java/awt/image/ComponentColorModel.java: New file.
2939 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2940 * libjava/java/awt/image/DataBuffer.java: New file.
2941 * libjava/java/awt/image/DataBufferByte.java: New file.
2942 * libjava/java/awt/image/DataBufferInt.java: New file.
2943 * libjava/java/awt/image/DataBufferUShort.java: New file.
2944 * libjava/java/awt/image/DirectColorModel.java: New file.
2945 * libjava/java/awt/image/PackedColorModel.java: New file.
2946 * libjava/java/awt/image/Raster.java: New file.
2947 * libjava/java/awt/image/SampleModel.java: New file.
2948 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2950 * libjava/java/awt/image/IndexColorModel.java: New file.
2951 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2952 java.awt.ColorModel stub.
2954 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2955 * gnu/gcj/util/Buffers.java: New file, utility class.
2957 * libjava/Makefile.am: Updated to include new files.
2958 * libjava/Makefile.in: Rebuilt.
2960 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2962 * java/io/StreamTokenizer.java: Merged with classpath.
2964 2000-07-20 Tom Tromey <tromey@cygnus.com>
2966 * Makefile.in: Rebuilt.
2967 * Makefile.am (awt_java_source_files): Updated for new files.
2968 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2969 * java/awt/Label.java: New file.
2970 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2971 (createIntersection, createUnion, getBounds2D): New methods.
2972 * java/awt/Scrollbar.java: New file.
2973 * java/awt/Shape.java: Updated to 1.2.
2974 * java/awt/geom/AffineTransform.java: New file.
2975 * java/awt/geom/Ellipse2D.java: New file.
2976 * java/awt/geom/NoninvertibleTransformException.java: New file.
2977 * java/awt/geom/PathIterator.java: New file.
2978 * java/awt/geom/Rectangle2D.java: New file.
2979 * java/awt/geom/RectangularShape.java: New file.
2980 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2981 * java/awt/geom/IllegalPathStateException.java: New file.
2983 * scripts/showval.java: New file.
2985 * scripts/classes.pl (scan): Print inner classes properly.
2986 * gcj/javaprims.h: Updated class list.
2988 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2989 initialize String fields for interpreted classes. Fixes bug
2990 reported by Hans Boehm.
2992 * java/io/File.java (getParentFile): New method, from Classpath
2993 via Oskar Liljeblad.
2995 * java/util/Vector.java (remove(Object)): Implemented.
2997 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2999 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3000 zero return from backtrace().
3002 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3004 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3006 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3007 before calling notifyAll().
3009 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3011 Add missing files from last check-in:
3012 * java/awt/image/ImageConsumer.java: New file.
3013 * java/awt/image/ImageProducer.java: New file.
3014 * java/awt/image/ImageObserver.java: New file.
3016 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3018 Merged implementation of java.applet from classpath:
3019 * java/applet/Applet.java: New file.
3020 * java/applet/AppletContext.java: New file.
3021 * java/applet/AppletStub.java: New file.
3022 * java/applet/AudioClip.java: New file.
3024 * Makefile.am: Added new java.applet classes.
3025 * Makefile.in: Rebuilt.
3027 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3030 * java/util/ResourceBundle.java (getLocale): stub.
3031 * Makefile.am: Added new AWT classes.
3032 * Makefile.in: Rebuilt.
3033 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3034 constructors. Fix toString() and paramString().
3035 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3036 * java/awt/CheckboxGroup.java: New class.
3037 * java/awt/ColorModel.java: New class.
3038 * java/awt/Component.java: Added stubs for most methods. Implemented
3040 * java/awt/Container.java: ditto.
3041 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3042 * java/awt/Cursor.java: ditto.
3043 * java/awt/Event.java: Fix paramString().
3044 * java/awt/EventQueue.java: New class. Implemented.
3045 * java/awt/Font.java: Added additional stub methods. Implemented
3047 * java/awt/FontMetrics.java: New class. Stubbed.
3048 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3050 * java/awt/Insets.java: New class. Implemented.
3051 * java/awt/Menu.java: Add new methods. Partially implemented.
3052 * java/awt/MenuItem.java: Add new methods and fields. Partially
3054 * java/awt/MenuShortcut.java: New class. Implemented.
3055 * java/awt/Panel.java: New class. Placeholder.
3056 * java/awt/PopupMenu.java: New class. Stubbed.
3057 * java/awt/Rectangle.java: New class. Implemented.
3058 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3059 * java/awt/event/ActionEvent.java: Implement paramString().
3060 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3061 * java/awt/event/ComponentEvent.java: Implement paramString().
3062 * java/awt/event/ContainerEvent.java: Implement paramString().
3063 * java/awt/event/FocusEvent.java: Implement paramString().
3064 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3065 * java/awt/event/HierarchyBoundsListener.java: New class.
3066 * java/awt/event/HierarchyEvent.java: New class.
3067 * java/awt/event/HierarchyListener.java: New class.
3068 * java/awt/event/InputMethodEvent.java: Implement paramString().
3069 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3070 exception if !catchExceptions.
3071 * java/awt/event/ItemEvent.java: Implement paramString().
3072 * java/awt/event/KeyEvent.java: Implement paramString().
3073 * java/awt/event/MouseEvent.java: Implement paramString().
3074 * java/awt/event/PaintEvent.java: Implement paramString().
3075 * java/awt/event/TextEvent.java: Implement paramString().
3076 * java/awt/event/WindowEvent.java: Implement paramString().
3078 AWT Peer interfaces:
3079 * java/awt/peer/ButtonPeer.java: New file.
3080 * java/awt/peer/ListPeer.java: New file.
3081 * java/awt/peer/CanvasPeer.java: New file.
3082 * java/awt/peer/MenuBarPeer.java: New file.
3083 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3084 * java/awt/peer/MenuComponentPeer.java: New file.
3085 * java/awt/peer/CheckboxPeer.java: New file.
3086 * java/awt/peer/MenuItemPeer.java: New file.
3087 * java/awt/peer/ChoicePeer.java: New file.
3088 * java/awt/peer/MenuPeer.java: New file.
3089 * java/awt/peer/ComponentPeer.java: Implemented.
3090 * java/awt/peer/PanelPeer.java: New file.
3091 * java/awt/peer/ContainerPeer.java: Implemented.
3092 * java/awt/peer/PopupMenuPeer.java: New file.
3093 * java/awt/peer/DialogPeer.java: New file.
3094 * java/awt/peer/ScrollPanePeer.java: New file.
3095 * java/awt/peer/FileDialogPeer.java: New file.
3096 * java/awt/peer/ScrollbarPeer.java: New file.
3097 * java/awt/peer/FontPeer.java: New file.
3098 * java/awt/peer/TextAreaPeer.java: New file.
3099 * java/awt/peer/FramePeer.java: Implemented.
3100 * java/awt/peer/TextComponentPeer.java: New file.
3101 * java/awt/peer/LabelPeer.java: New file.
3102 * java/awt/peer/TextFieldPeer.java: New file.
3103 * java/awt/peer/LightweightPeer.java: New file.
3104 * java/awt/peer/WindowPeer.java: Implemented.
3106 2000-07-06 Tom Tromey <tromey@cygnus.com>
3108 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3109 Initialize static final String fields.
3111 2000-07-03 Tom Tromey <tromey@cygnus.com>
3113 * java/io/PrintWriter.java (print): Call write(String), not
3114 print(String). See PR libgcj/277.
3115 (print(String)): Use write, not out.write.
3117 2000-06-30 Tom Tromey <tromey@cygnus.com>
3119 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3121 2000-06-27 Andrew Haley <aph@cygnus.com>
3123 * java/io/File.java (createTempFile): Close the FileDescriptor
3124 used to create a temp file. Fixes some of PR 203.
3125 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3126 collection if we run out of file handles.
3128 2000-06-28 Warren Levy <warrenl@cygnus.com>
3130 * gnu/java/security/provider/Gnu.java: New file.
3131 * gnu/java/security/provider/SHA.java: New file.
3132 * gnu/java/security/provider/SHA1PRNG.java: New file.
3133 * Makefile.am: Added the above files.
3134 * Makefile.in: Rebuilt.
3136 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3138 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3140 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3141 (destroyed_flag): Removed.
3142 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3143 (activeCount): Added spec note.
3145 2000-06-27 Warren Levy <warrenl@cygnus.com>
3147 * java/security/Principal.java: New file.
3148 * Makefile.am: Added Principal.java.
3149 * Makefile.in: Rebuilt.
3151 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3153 * java/awt/event/MouseEvent.java: Fixed coordinate space
3156 2000-06-27 Tom Tromey <tromey@cygnus.com>
3158 * java/io/PushbackInputStream.java (read): If there are characters
3159 in the buffer, don't also call super.read().
3160 * java/io/PushbackReader.java (read): If there are characters in
3161 the buffer, don't also call super.read().
3163 * java/lang/Double.java (valueOf): Call parseDouble().
3165 2000-06-26 Warren Levy <warrenl@cygnus.com>
3167 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3168 (newVal): Renamed to newValue.
3169 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3170 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3171 (revokeNow): Renamed to invalidateRefs.
3172 * java/io/OptionalDataException.java: Updated FIXME.
3173 (eof): New placeholder field.
3175 * java/io/WriteAbortedException.java (message): Made transient.
3176 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3177 * java/lang/Throwable.java (stackTrace): Made transient.
3178 * java/net/InetAddress.java: Made Serializable.
3179 * java/security/KeyPair.java: Made Serializable.
3180 * java/security/Provider.java: Replaced with Classpath version that
3181 implements serialization and proper methods.
3182 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3183 (limits): Renamed to choiceLimits.
3185 2000-06-24 Tom Tromey <tromey@cygnus.com>
3187 * java/lang/natDouble.cc (parseDouble): Renamed from
3189 * java/lang/Double.java (parseDouble): Renamed from
3190 doubleValueOf. Now public.
3192 2000-06-23 Andrew Haley <aph@cygnus.com>
3194 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3195 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3197 2000-06-23 Tom Tromey <tromey@cygnus.com>
3199 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3200 * java/lang/natDouble.cc: Always include <alloca.h>.
3201 Fix for PR libgcj/267.
3203 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3205 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3206 comply with classpath VM spec.
3207 (add(Group)): Rename to addGroup().
3208 * java/lang/Thread.java (Thread): Use addThread().
3209 * java/lang/natThread.cc (finish_): Use removeThread().
3211 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3213 * java/lang/ThreadGroup.java: Merged with classpath.
3214 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3215 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3217 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3218 ThreadGroup.root if Thread.currentThread is null. Honour the
3219 ThreadGroup's max priority setting.
3221 2000-06-18 Tom Tromey <tromey@cygnus.com>
3223 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3224 returned class. For PR gcj/260.
3226 2000-06-16 Tom Tromey <tromey@cygnus.com>
3228 Fix for PR libgcj/261:
3229 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3231 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3232 argument. (This is a patch from long ago that somehow went
3235 2000-06-15 Tom Tromey <tromey@cygnus.com>
3237 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3241 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3243 Fix for PR java.lang/258:
3244 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3245 JV_STATE_DONE, to prevent accidental initialization.
3246 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3247 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3248 interface or an abstract class. Remove redundant initializeClass calls.
3249 Remove duplicate if_idt test.
3250 (_Jv_InterfaceAssignableFrom): New function.
3251 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3253 2000-05-31 Tom Tromey <tromey@cygnus.com>
3255 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3256 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3257 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3258 (NUM_OBJECT_METHODS): New define.
3259 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3260 `array_vtable' parameter. Added assertion.
3261 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3264 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3266 * gcj/cni.h: Include <string.h>.
3267 * defineclass.cc: Include <alloca.h>.
3268 * interpret.cc: Ditto.
3269 * gij.cc: Include <stdlib.h>.
3271 2000-05-30 Tom Tromey <tromey@cygnus.com>
3273 * include/name-finder.h: Include <sys/wait.h>.
3274 (_Jv_name_finder::pid): Now of type `pid_t'.
3275 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3276 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3279 2000-05-24 Warren Levy <warrenl@cygnus.com>
3281 * java/io/ObjectOutputStream.java (writeObject): Use component type
3282 when writing arrays.
3285 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3287 Fix for PR libgcj/226:
3288 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3289 since this is an installed header.
3291 Fix for PR libgcj/228:
3292 * java/util/zip/ZipFile (getInputStream): Create inflater with
3295 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3296 with DataFormatException.
3298 2000-05-20 Tom Tromey <tromey@cygnus.com>
3300 * Makefile.in: Rebuilt.
3301 * Makefile.am (hack1): Removed.
3302 (awto_files): Likewise.
3303 (libgcjawt_la_SOURCES): Likewise.
3304 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3305 (libgcjawt_la_DEPENDENCIES): Likewise.
3306 (libgcjawt_la_LIBADD): Likewise.
3307 (libgcjawt_la_LDFLAGS): Likewise.
3308 (libgcjawt_la_LINK): Likewise.
3309 ($(awt_java_source_files:.java=.class)): Likewise.
3310 (libgcj.zip): Don't depend on AWT files.
3311 (MOSTLYCLEANFILES): Don't include AWT files.
3312 ($(awto_files)): Removed.
3313 (nat_headers): Removed AWT files.
3314 (cond_awt_java_source_files): Removed.
3315 (ordinary_java_source_files): Added awt_java_source_files.
3316 * libgcj.spec.in (*lib): Removed -lgcjawt.
3317 * configure: Rebuilt.
3318 * configure.in: Removed --enable-java-awt option.
3320 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3322 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3323 (ZipEntry): Copy the `name' field.
3324 (clone): Implement JDK1.2 method.
3325 (setCompressedSize): ditto.
3328 2000-05-19 Tom Tromey <tromey@cygnus.com>
3330 * java/io/BufferedWriter.java: Merged with Classpath.
3331 * java/io/BufferedOutputStream.java: Merged with Classpath.
3333 2000-05-16 Andrew Haley <aph@cygnus.com>
3335 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3336 build_ia64_frame_state.
3337 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3340 2000-05-15 Warren Levy <warrenl@cygnus.com>
3342 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3343 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3344 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3345 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3346 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3347 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3348 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3349 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3350 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3351 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3352 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3353 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3354 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3355 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3356 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3357 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3358 * gnu/gcj/io/NullOutputStream.java: Removed.
3359 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3360 * gnu/gcj/lang/ArrayHelper.java: Removed.
3361 * gnu/gcj/lang/ClassHelper.java: Removed.
3362 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3364 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3365 * gnu/java/beans/EmptyBeanInfo.java: New file.
3366 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3367 * gnu/java/beans/IntrospectionIncubator.java: New file.
3368 * gnu/java/beans/editors/ColorEditor.java: New file.
3369 * gnu/java/beans/editors/FontEditor.java: New file.
3370 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3371 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3372 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3373 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3374 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3375 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3376 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3377 * gnu/java/beans/editors/StringEditor.java: New file.
3378 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3379 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3380 * gnu/java/io/NullOutputStream.java: New file.
3381 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3382 * gnu/java/lang/ArrayHelper.java: New file.
3383 * gnu/java/lang/ClassHelper.java: New file.
3384 * gnu/java/lang/reflect/TypeSignature.java: New file.
3386 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3387 namespace back to the original Classpath gnu/java namespace.
3388 * Makefile.in: Rebuilt.
3390 * java/beans/Beans.java: Namespace change.
3391 * java/beans/EventSetDescriptor.java: Namespace change.
3392 * java/beans/Introspector.java: Namespace change.
3393 * java/beans/PropertyEditorManager.java: Namespace change.
3394 * java/io/ObjectInputStream.java: Namespace change.
3395 * java/io/ObjectOutputStream.java: Namespace change.
3396 * java/io/ObjectStreamClass.java: Namespace change.
3397 * java/io/ObjectStreamField.java: Namespace change.
3399 2000-04-21 Warren Levy <warrenl@cygnus.com>
3401 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3402 now that compiler patch is available.
3403 Removed unneeded System.loadLibrary.
3404 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3405 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3407 2000-04-19 Andrew Haley <aph@cygnus.com>
3409 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3410 and target classes have been initialized.
3412 2000-04-19 Andrew Haley <aph@cygnus.com>
3414 * java/lang/String.java: implement Serializable, Comparable.
3415 (compareTo (Object)): New method.
3417 2000-04-19 Warren Levy <warrenl@cygnus.com>
3419 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3420 instead of getField to retrieve non-public field.
3421 (getSerialPersistantFields): Ditto.
3423 2000-04-18 Warren Levy <warrenl@cygnus.com>
3425 * mauve-libgcj: Turned off object serialization tests temporarily
3426 due to compiler error.
3428 2000-04-17 Warren Levy <warrenl@cygnus.com>
3430 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3431 to avoid build problem.
3433 * mauve-libgcj: Turned on object serialization tests.
3435 2000-04-17 Tom Tromey <tromey@cygnus.com>
3437 * libgcj.spec.in (*lib): Added -lgcjawt.
3439 2000-04-17 Andrew Haley <aph@cygnus.com>
3441 * Makefile.am: Add new files:
3442 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3444 * Makefile.in: Rebuilt.
3446 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3447 interface that has no implementations.
3448 Check for an attempt to assign an abstract class to an interface.
3450 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3451 if we fail to find MessageDigest.getInstance ("SHA").
3453 * gnu/gcj/io/SimpleSHSStream.java: New file.
3454 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3455 * gnu/gcj/io/shs.cc: New file.
3456 * gnu/gcj/io/shs.h: new file.
3458 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3461 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3462 punctuation from the classname of an array element.
3464 * gcj/javaprims.h: Add SimpleDigestStream.
3466 2000-04-17 Andrew Haley <aph@cygnus.com>
3468 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3469 to getPrivateField for superclasses.
3471 2000-04-14 Andrew Haley <aph@cygnus.com>
3473 * Makefile.am: Add new files:
3474 java/io/ObjectOutputStream$PutField.h,
3475 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3476 java/io/natObjectOutputStream.cc
3477 * Makefile.in: Rebuilt.
3478 * gcj/Makefile.in: Rebuilt.
3479 * include/Makefile.in: Rebuilt.
3480 * java/lang/Class.h (getPrivateField): New method.
3481 (getPrivateMethod): Ditto.
3482 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3483 and java::io::ObjectStreamClass our friends.
3484 * java/lang/natClass.cc (getPrivateField): New method.
3485 (getPrivateMethod): Ditto.
3486 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3487 * gcj/javaprims.h: Add serialization classes.
3488 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3489 (setByteField): Ditto.
3490 (setCharField): Ditto.
3491 (setDoubleField): Ditto.
3492 (setFloatField): Ditto.
3493 (setIntField): Ditto.
3494 (setLongField): Ditto.
3495 (setShortField): Ditto.
3496 (setObjectField): Ditto.
3497 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3499 (getByteField): Ditto.
3500 (getCharField): Ditto.
3501 (getDoubleField): Ditto.
3502 (getFloatField): Ditto.
3503 (getIntField): Ditto.
3504 (getLongField): Ditto.
3505 (getShortField): Ditto.
3506 (getObjectField): Ditto.
3507 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3509 (getSerialPersistantFields): Ditto.
3510 (getDefinedSUID): Ditto.
3511 * java/io/natObjectOutputStream.cc: New file.
3512 * java/io/natObjectInputStream.cc: New file.
3514 2000-04-13 Warren Levy <warrenl@cygnus.com>
3516 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3517 problems. Revert to previous version to reproduce and when fixed.
3519 2000-04-13 Warren Levy <warrenl@cygnus.com>
3521 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3522 * gnu/gcj/io/NullOutputStream.java: New file.
3523 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3524 * java/io/BlockDataException.java: New file.
3525 * java/io/Externalizable.java: New file.
3526 * java/io/InvalidClassException.java: New file.
3527 * java/io/InvalidObjectException.java: New file.
3528 * java/io/NotActiveException.java: New file.
3529 * java/io/NotSerializableException.java: New file.
3530 * java/io/ObjectInput.java: New file.
3531 * java/io/ObjectInputStream.java: New file.
3532 * java/io/ObjectInputValidation.java: New file.
3533 * java/io/ObjectOutput.java: New file.
3534 * java/io/ObjectOutputStream.java: New file.
3535 * java/io/ObjectStreamClass.java: New file.
3536 * java/io/ObjectStreamConstants.java: New file.
3537 * java/io/ObjectStreamField.java: New file.
3538 * java/io/Replaceable.java: New file.
3539 * java/io/Resolvable.java: New file.
3540 * java/io/SerializablePermission.java: New file.
3541 * java/io/WriteAbortedException.java: New file.
3542 * java/security/BasicPermission.java: New file.
3543 * java/security/DigestOutputStream.java: New file.
3544 * java/security/Guard.java: New file.
3545 * java/security/Permission.java: New file.
3546 * java/security/PermissionCollection.java: New file.
3547 * Makefile.am: Added above files.
3548 * Makefile.in: Rebuilt.
3550 * java/beans/Beans.java (instantiate): Activated serialization code.
3551 * java/lang/SecurityManager.java (checkPermission): New method.
3553 2000-04-12 Warren Levy <warrenl@cygnus.com>
3555 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3556 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3557 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3558 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3559 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3560 * gnu/gcj/beans/editors/FontEditor.java: New file.
3561 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3562 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3563 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3564 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3565 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3566 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3567 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3568 * gnu/gcj/beans/editors/StringEditor.java: New file.
3569 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3570 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3571 * gnu/gcj/lang/ArrayHelper.java: New file.
3572 * gnu/gcj/lang/ClassHelper.java: New file.
3573 * java/beans/BeanDescriptor.java: New file.
3574 * java/beans/BeanInfo.java: New file.
3575 * java/beans/Beans.java: New file.
3576 * java/beans/Customizer.java: New file.
3577 * java/beans/DesignMode.java: New file.
3578 * java/beans/EventSetDescriptor.java: New file.
3579 * java/beans/FeatureDescriptor.java: New file.
3580 * java/beans/IndexedPropertyDescriptor.java: New file.
3581 * java/beans/IntrospectionException.java: New file.
3582 * java/beans/Introspector.java: New file.
3583 * java/beans/MethodDescriptor.java: New file.
3584 * java/beans/ParameterDescriptor.java: New file.
3585 * java/beans/PropertyChangeEvent.java: New file.
3586 * java/beans/PropertyChangeListener.java: New file.
3587 * java/beans/PropertyChangeSupport.java: New file.
3588 * java/beans/PropertyDescriptor.java: New file.
3589 * java/beans/PropertyEditor.java: New file.
3590 * java/beans/PropertyEditorManager.java: New file.
3591 * java/beans/PropertyEditorSupport.java: New file.
3592 * java/beans/PropertyVetoException.java: New file.
3593 * java/beans/SimpleBeanInfo.java: New file.
3594 * java/beans/VetoableChangeListener.java: New file.
3595 * java/beans/VetoableChangeSupport.java: New file.
3596 * java/beans/Visibility.java: New file.
3597 * java/beans/beancontext/BeanContext.java: New file.
3598 * java/beans/beancontext/BeanContextChild.java: New file.
3599 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3600 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3601 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3602 * java/beans/beancontext/BeanContextEvent.java: New file.
3603 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3604 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3605 * java/beans/beancontext/BeanContextProxy.java: New file.
3606 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3608 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3609 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3611 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3612 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3614 * java/beans/beancontext/BeanContextServices.java: New file.
3615 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3616 * java/util/AbstractCollection.java: New file.
3617 * java/util/AbstractList.java: New file.
3618 * java/util/Arrays.java: New file.
3619 * Makefile.am: Added above files.
3620 * Makefile.in: Rebuilt.
3622 2000-04-11 Warren Levy <warrenl@cygnus.com>
3624 * java/awt/AWTError.java: New file.
3625 * java/awt/AWTEvent.java: New file.
3626 * java/awt/AWTException.java: New file.
3627 * java/awt/ActiveEvent.java: New file.
3628 * java/awt/Adjustable.java: New file.
3629 * java/awt/BorderLayout.java: New file.
3630 * java/awt/Color.java: New file.
3631 * java/awt/Component.java: New file.
3632 * java/awt/Container.java: New file.
3633 * java/awt/Dimension.java: New file.
3634 * java/awt/Event.java: New file.
3635 * java/awt/Font.java: New file.
3636 * java/awt/Frame.java: New file.
3637 * java/awt/Graphics.java: New file.
3638 * java/awt/IllegalComponentStateException.java: New file.
3639 * java/awt/Image.java: New file.
3640 * java/awt/ItemSelectable.java: New file.
3641 * java/awt/LayoutManager.java: New file.
3642 * java/awt/LayoutManager2.java: New file.
3643 * java/awt/Menu.java: New file.
3644 * java/awt/MenuBar.java: New file.
3645 * java/awt/MenuComponent.java: New file.
3646 * java/awt/MenuContainer.java: New file.
3647 * java/awt/MenuItem.java: New file.
3648 * java/awt/Paint.java: New file.
3649 * java/awt/PaintContext.java: New file.
3650 * java/awt/Point.java: New file.
3651 * java/awt/Rectangle.java: New file.
3652 * java/awt/Shape.java: New file.
3653 * java/awt/TextArea.java: New file.
3654 * java/awt/TextComponent.java: New file.
3655 * java/awt/Toolkit.java: New file.
3656 * java/awt/Transparency.java: New file.
3657 * java/awt/Window.java: New file.
3658 * java/awt/natToolkit.cc: New file.
3659 * java/awt/event/AWTEventListener.java: New file.
3660 * java/awt/event/ActionEvent.java: New file.
3661 * java/awt/event/ActionListener.java: New file.
3662 * java/awt/event/AdjustmentEvent.java: New file.
3663 * java/awt/event/AdjustmentListener.java: New file.
3664 * java/awt/event/ComponentAdapter.java: New file.
3665 * java/awt/event/ComponentEvent.java: New file.
3666 * java/awt/event/ComponentListener.java: New file.
3667 * java/awt/event/ContainerAdapter.java: New file.
3668 * java/awt/event/ContainerEvent.java: New file.
3669 * java/awt/event/ContainerListener.java: New file.
3670 * java/awt/event/FocusAdapter.java: New file.
3671 * java/awt/event/FocusEvent.java: New file.
3672 * java/awt/event/FocusListener.java: New file.
3673 * java/awt/event/InputEvent.java: New file.
3674 * java/awt/event/InputMethodEvent.java: New file.
3675 * java/awt/event/InputMethodListener.java: New file.
3676 * java/awt/event/InvocationEvent.java: New file.
3677 * java/awt/event/ItemEvent.java: New file.
3678 * java/awt/event/ItemListener.java: New file.
3679 * java/awt/event/KeyAdapter.java: New file.
3680 * java/awt/event/KeyEvent.java: New file.
3681 * java/awt/event/KeyListener.java: New file.
3682 * java/awt/event/MouseAdapter.java: New file.
3683 * java/awt/event/MouseEvent.java: New file.
3684 * java/awt/event/MouseListener.java: New file.
3685 * java/awt/event/MouseMotionAdapter.java: New file.
3686 * java/awt/event/MouseMotionListener.java: New file.
3687 * java/awt/event/PaintEvent.java: New file.
3688 * java/awt/event/TextEvent.java: New file.
3689 * java/awt/event/TextListener.java: New file.
3690 * java/awt/event/WindowAdapter.java: New file.
3691 * java/awt/event/WindowEvent.java: New file.
3692 * java/awt/event/WindowListener.java: New file.
3693 * java/awt/geom/Dimension2D.java: New file.
3694 * java/awt/geom/Point2D.java: New file.
3695 * java/awt/peer/ComponentPeer.java: New file.
3696 * java/awt/peer/ContainerPeer.java: New file.
3697 * java/awt/peer/FramePeer.java: New file.
3698 * java/awt/peer/WindowPeer.java: New file.
3699 * java/util/Collection.java: New file.
3700 * java/util/Comparator.java: New file.
3701 * java/util/Iterator.java: New file.
3702 * java/util/List.java: New file.
3703 * java/util/ListIterator.java: New file.
3704 * Makefile.am: Added above files.
3705 * Makefile.in: Rebuilt.
3707 2000-04-10 Warren Levy <warrenl@cygnus.com>
3709 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3710 * java/lang/FirstThread.java: Ditto.
3711 * java/lang/StringBuffer.java: Ditto.
3712 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3714 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3715 Special case handled in java.math.BigInteger.
3716 * java/math/BigInteger.java (divide): Handle the special case when
3717 dividing by 1 and the high bit of the dividend is set.
3718 (setShiftRight): Handle case when count == 0.
3720 2000-04-05 Andrew Haley <aph@cygnus.com>
3722 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3725 2000-04-05 Andrew Haley <aph@cygnus.com>
3727 * sysdep/ia64.c (rse_address_add): Delete.
3728 (IS_NaT_COLLECTION_ADDR): Delete.
3729 (ia64_backtrace_helper): check for null unwind_info.
3731 * sysdep/ia64-frame.h: add calc_caller_bsp.
3733 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3736 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3737 (_Jv_remI): Likewise.
3738 (_Jv_divJ): Likewise.
3739 (_Jv_remJ): Likewise.
3741 * interpret.cc (continue1): Use divide subroutines to guarantee
3742 correct Java standard behaviour.
3743 Floating-point division should not abort; make it so.
3745 2000-03-29 Tom Tromey <tromey@cygnus.com>
3747 * configure: Rebuilt.
3748 * configure.in: Test against `libgcj_sjlj', not
3749 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3750 to be set even when using sjlj.
3752 2000-03-24 Andrew Haley <aph@cygnus.com>
3754 * Makefile.am: Add file addr2name.awk.
3755 * Makefile.in: Rebuilt.
3756 * addr2name.awk: New file.
3757 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3759 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3762 2000-03-22 Andrew Haley <aph@cygnus.com>
3764 * configure.host: Add -funwind-tables for IA64.
3765 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3766 * Makefile.in: Rebuilt.
3767 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3768 * sysdep/ia64.c: New file.
3769 * sysdep/ia64-frame.h: New file.
3770 * configure.in: Add sysdep/ia64.c for ia64.
3771 * configure: Rebuilt.
3773 2000-03-17 Andrew Haley <aph@cygnus.com>
3775 * java/lang/natString.cc: Remove `register' keyword.
3776 interpret.cc: ditto.
3778 2000-03-16 Andrew Haley <aph@cygnus.com>
3780 * configure.host (ia64): Enable interpreter.
3782 2000-03-14 Hans Boehm <boehm@acm.org>
3784 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3786 2000-03-14 Andrew Haley <aph@cygnus.com>
3788 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3791 2000-03-10 Andrew Haley <aph@cygnus.com>
3793 * java/lang/ieeefp.h: Import latest version from fdlibm.
3795 2000-03-14 Andrew Haley <aph@cygnus.com>
3797 * prims.cc (_Jv_ThrowSignal): New function.
3798 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3800 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3801 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3802 * include/ppc-signal.h: New file.
3804 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3806 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3807 * java/lang/natThread.java (initialize_native): Cast `data' to
3809 * gnu/gcj/RawData.java: Clarify documentation.
3811 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3812 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3813 `jarFile', not `jarFileURL'.
3815 2000-05-15 Andrew Haley <aph@cygnus.com>
3817 * include/ppc-signal.h: New file.
3819 2000-05-11 Tom Tromey <tromey@cygnus.com>
3821 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3822 file headers, don't include `size' in the skip call.
3824 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3826 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3827 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3829 (replace): Reimplemented. Fix javadoc.
3830 (reverse): Call ensureCapacity_unsynchronized().
3831 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3833 (replace): Calculate length for arraycopy() correctly.
3835 2000-05-09 Tom Tromey <tromey@cygnus.com>
3837 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3839 (insert(int,char[],int,int): New method.
3840 (delete): New method from Classpath.
3841 (deleteCharAt): Likewise.
3842 (substring): Likewise.
3843 (shared): No longer private.
3844 Added JavaDoc comments from Classpath.
3845 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3848 2000-05-07 Tom Tromey <tromey@cygnus.com>
3850 * Makefile.in: Rebuilt.
3851 * Makefile.am (LIBLINK): New macro.
3852 (libgcj_la_LINK): Use it.
3853 (libgcjawt_la_LINK): Likewise.
3855 2000-05-06 Tom Tromey <tromey@cygnus.com>
3857 * Makefile.in: Rebuilt.
3858 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3860 2000-05-05 Tom Tromey <tromey@cygnus.com>
3862 Fix for PR libgcj/220:
3863 * Makefile.in: Rebuilt.
3864 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3865 (jv_convert_LDFLAGS): Likewise.
3866 (libgcj_la_LDFLAGS): Likewise.
3867 (GCJLINK): New macro.
3868 (jv_convert_LINK): Use it.
3869 (gij_LINK): Likewise.
3870 (libgcj_la_LINK): New macro.
3871 (libgcjawt_la_LINK): Likewise.
3873 2000-05-04 Tom Tromey <tromey@cygnus.com>
3875 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3877 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3881 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3883 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3884 (_Jv_IsAssignableFrom): Ditto.
3885 (_Jv_IsInstanceOf): Ditto.
3886 (_Jv_CheckCast): Ditto.
3887 (_Jv_CheckArrayStore): Ditto.
3888 * java/lang/Class.h (_Jv_InitClass): Ditto.
3889 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3894 (_Jv_MonitorExit): Ditto.
3895 * boehm.cc (_Jv_MarkObj): Ditto.
3896 (_Jv_MarkObj): Ditto.
3897 (_Jv_MarkArray): Ditto.
3898 * prims.cc (_Jv_AllocObject): Ditto.
3899 (_Jv_NewObjectArray): Ditto.
3900 (_Jv_NewPrimArray): Ditto.
3901 (_Jv_Malloc): Ditto.
3902 (_Jv_Realloc): Ditto.
3903 (_Jv_MallocUnchecked): Ditto.
3909 2000-05-04 Tom Tromey <tromey@cygnus.com>
3911 * java/util/Locale.java (Locale): Don't explicitly check for
3913 * java/util/Hashtable.java (containsKey): Don't explicitly check
3916 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3918 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3920 * java/text/StringCharacterIterator.java
3921 (StringCharacterIterator): Don't check for null.
3922 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3924 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3925 check for null pointer.
3926 (leaveGroup): Likewise.
3927 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3929 (setData): Likewise.
3930 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3933 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3935 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3936 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3937 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3938 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3939 -rpath for in-gcc builds.
3940 * Makefile.in: Rebuilt.
3942 2000-04-28 Tom Tromey <tromey@cygnus.com>
3944 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3947 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3949 * libjava/java/lang/String.java (toString): Remove `final' hack.
3951 2000-04-05 Tom Tromey <tromey@cygnus.com>
3953 Runtime support for PR gcj/2:
3954 * prims.cc (_Jv_ThrowNullPointerException): New function.
3955 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3957 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3959 * prims.cc (_Jv_NewObjectArray): Fix typo.
3961 2000-04-26 Tom Tromey <tromey@cygnus.com>
3963 * Makefile.in: Rebuilt.
3964 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3966 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3968 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3971 2000-04-22 Anthony Green <green@cygnus.com>
3973 * include/jvm.h (__builtin_expect): Define as unused for now.
3974 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3978 (_Jv_MonitorExit): Ditto.
3979 * boehm.cc (_Jv_MarkObj): Ditto.
3980 (_Jv_MarkObj): Ditto.
3981 (_Jv_MarkArray): Ditto.
3982 (_Jv_AllocBytes): Ditto.
3983 * prims.cc (_Jv_AllocObject): Ditto.
3984 (_Jv_NewObjectArray): Ditto.
3985 (_Jv_NewPrimArray): Ditto.
3986 (_Jv_Malloc): Ditto.
3987 (_Jv_Realloc): Ditto.
3988 (_Jv_MallocUnchecked): Ditto.
3994 * include/Makefile.in: Rebuilt.
3995 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3997 2000-04-21 Tom Tromey <tromey@cygnus.com>
3999 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4000 Yet another new version from Classpath.
4002 Fix for PR libgcj/15:
4003 * java/util/natGregorianCalendar.cc (_REENTRANT,
4004 _POSIX_PTHREAD_SEMANTICS): Don't define.
4005 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4006 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4008 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4010 * configure: Rebuilt.
4011 * configure.in: If using POSIX threads, define _REENTRANT if
4012 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4013 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4015 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4016 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4017 version from Classpath.
4019 Fix for PR libgcj/213:
4020 * Makefile.in: Rebuilt.
4021 * Makefile.am (gij_SOURCES): Added gij.cc.
4022 (EXTRA_gij_SOURCES): Removed.
4023 (gij_LDADD): Removed gij.lo.
4024 (gij_DEPENDENCIES): Likewise.
4025 ($(gij_OBJECTS)): Depend on nat_headers.
4027 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4028 `setURL', not `url.set'.
4030 2000-04-20 Tom Tromey <tromey@cygnus.com>
4032 Fix for PR java.io/204:
4033 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4034 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4037 Fix for PR libgcj/212:
4038 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4039 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4040 * java/lang/Class.h (_Jv_word): Declare.
4042 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4044 2000-04-19 Tom Tromey <tromey@cygnus.com>
4046 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4047 doesn't have a loader.
4049 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4051 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4052 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4054 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4056 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4058 (available): Initialize `where' to prevent bogus compiler warning.
4060 2000-04-12 Tom Tromey <tromey@cygnus.com>
4062 * java/lang/natString.cc (intern): Temporarily disable finalizer
4065 * java/lang/natString.cc (unintern): Added `obj' argument.
4066 (intern): Register finalizer for string.
4067 * java/lang/String.java (unintern): Now static; added obj
4070 2000-04-11 Tom Tromey <tromey@cygnus.com>
4072 * java/util/Vector.java (VectorEnumeration): Now `final'.
4073 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4074 (HashtableEnumeration): Likewise.
4075 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4076 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4078 2000-04-10 Warren Levy <warrenl@cygnus.com>
4080 * java/io/ObjectStreamException.java: New file.
4081 * java/io/OptionalDataException.java: New file.
4082 * java/io/StreamCorruptedException.java: New file.
4083 * java/math/BigDecimal.java: New file.
4084 * java/sql/CallableStatement.java: New file.
4085 * java/sql/Connection.java: New file.
4086 * java/sql/DataTruncation.java: New file.
4087 * java/sql/DatabaseMetaData.java: New file.
4088 * java/sql/Date.java: New file.
4089 * java/sql/Driver.java: New file.
4090 * java/sql/DriverManager.java: New file.
4091 * java/sql/DriverPropertyInfo.java: New file.
4092 * java/sql/PreparedStatement.java: New file.
4093 * java/sql/ResultSet.java: New file.
4094 * java/sql/ResultSetMetaData.java: New file.
4095 * java/sql/SQLException.java: New file.
4096 * java/sql/SQLWarning.java: New file.
4097 * java/sql/Statement.java: New file.
4098 * java/sql/Time.java: New file.
4099 * java/sql/Timestamp.java: New file.
4100 * java/sql/Types.java: New file.
4101 * Makefile.am: Added above new files.
4102 * Makefile.in: Rebuilt.
4104 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4105 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4106 DatagramSocket constructor instead of null.
4108 2000-04-08 Anthony Green <green@cygnus.com>
4110 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4113 2000-04-08 Anthony Green <green@cygnus.com>
4115 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4116 (_Jv_MutexUnlock): Ditto.
4117 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4118 (_Jv_MutexUnlock): Ditto.
4120 2000-04-08 Anthony Green <green@cygnus.com>
4122 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4123 (ensureCapacity_unsynchronized): New private method.
4124 (append): Use ensureCapacity_unsynchronized.
4126 2000-04-08 Tom Tromey <tromey@cygnus.com>
4128 * Makefile.in: Rebuilt.
4129 * Makefile.am (awt_java_source_files): Added new files.
4130 * java/awt/IllegalComponentStateException.java: New file.
4131 * java/awt/ItemSelectable.java: New file.
4132 * java/awt/event/WindowEvent.java: Finished.
4133 * java/awt/event/TextEvent.java: Finished.
4134 * java/awt/event/ContainerEvent.java: New file.
4135 * java/awt/Component.java (getX, getY): New methods.
4136 * java/awt/event/PaintEvent.java: New file.
4137 * java/awt/event/MouseEvent.java: New file.
4138 * java/awt/ActiveEvent.java: New file.
4139 * java/awt/event/KeyEvent.java: Finished.
4140 * java/awt/event/ItemEvent.java: New file.
4141 * java/awt/Adjustable.java: New file.
4142 * java/awt/event/InputMethodEvent.java: New file.
4143 * java/awt/event/InputEvent.java: Finished.
4144 * java/awt/event/FocusEvent.java: New file.
4145 * java/awt/event/MouseMotionAdapter.java: New file.
4146 * java/awt/event/MouseAdapter.java: New file.
4147 * java/awt/event/KeyAdapter.java: New file.
4148 * java/awt/event/FocusAdapter.java: New file.
4149 * java/awt/event/ContainerAdapter.java: New file.
4150 * java/awt/event/ComponentEvent.java: Finished.
4151 * java/awt/event/AdjustmentEvent.java: New file.
4152 * java/awt/event/ComponentAdapter.java: New file.
4153 * java/awt/event/ActionEvent.java: Finished.
4154 * java/awt/event/MouseMotionListener.java: New file.
4155 * java/awt/event/MouseListener.java: New file.
4156 * java/awt/event/ItemListener.java: New file.
4157 * java/awt/event/InputMethodListener.java: New file.
4158 * java/awt/event/ContainerListener.java: New file.
4159 * java/awt/event/FocusListener.java: New file.
4160 * java/awt/event/ComponentListener.java: New file.
4161 * java/awt/event/AWTEventListener.java: New file.
4162 * java/awt/event/AdjustmentListener.java: New file.
4164 2000-04-08 Anthony Green <green@cygnus.com>
4166 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4167 check when we have to.
4169 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4172 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4175 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4176 inline hasMoreElements.
4178 2000-04-05 Tom Tromey <tromey@cygnus.com>
4180 * configure: Rebuilt.
4181 * configure.in: Recognize --enable-java-awt.
4182 (AWT): New conditional.
4183 * Makefile.in: Rebuilt.
4184 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4186 (libgcjawt_la_SOURCES): New macro.
4187 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4188 (libgcjawt_la_DEPENDENCIES): Likewise.
4189 (libgcjawt_la_LIBADD): Likewise.
4190 (libgcjawt_la_LDFLAGS): Likewise.
4191 (libgcj.zip): Depend on cond_java_awt_source_files
4192 (cond_awt_java_source_files): New macro.
4193 (MOSTLYCLEANFILES): Added awto_files.
4194 (awto_files): New macro. Use where javao_files used.
4195 (nat_headers): Use cond_awt_java_source_files.
4197 2000-04-04 Tom Tromey <tromey@cygnus.com>
4199 * Makefile.in: Rebuilt.
4200 * Makefile.am (awt_java_source_files): Added AWTException.java.
4201 * java/awt/AWTException.java: New file.
4203 2000-04-03 Tom Tromey <tromey@cygnus.com>
4205 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4206 commentary from Alex.
4208 * Makefile.in: Rebuilt.
4209 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4212 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4214 * configure: Rebuilt.
4215 * configure.in: Add --disable-jvmpi.
4216 * include/config.h.in: Rebuilt.
4217 * acconfig.h: Add ENABLE_JVMPI.
4219 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4220 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4221 (_Jv_JVMPI_Notify_THREAD_END): New define.
4222 (_Jv_JVMPI_Notify_THREAD_END): New define.
4223 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4224 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4225 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4227 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4230 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4231 (finish_): Generate JVMPI thread end events.
4232 (run_): Generate JVMPI thread start events.
4233 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4234 preloaded JNI library.
4235 Include JVMPI headers if necessary.
4236 (run): Generate JVMPI thread start events.
4238 * boehm.cc: Define GC_disable and GC_enable.
4239 (_Jv_DisableGC): New function.
4240 (_Jv_EnableGC): New function.
4241 (disable_gc_mutex): Declare.
4242 * nogc.cc (_Jv_DisableGC): New function.
4243 (_Jv_EnableGC): New function.
4245 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4246 (_Jv_JVMPI_Interface): Define.
4247 (jvmpiEnableEvent): New function.
4248 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4250 * include/jvmpi.h: New file.
4252 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4254 * Makefile.in: New #defines and friends for Thread.h.
4255 * Makefile.am: Ditto.
4256 * posix-threads.cc: (struct starter): Remove `object'.
4257 (_Jv_CondWait): Use interruptable condition variables and new
4258 recursive mutexes. New return codes on interrupt or non-ownership
4260 (_Jv_CondNotify): Ditto.
4261 (_Jv_CondNotifyAll): Ditto.
4262 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4263 the target thread by signaling its wait condition.
4264 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4265 not the starter struct. Initialize wait_mutex and wait_cond.
4266 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4268 (_Jv_MutexUnlock): Ditto.
4269 (really_start): Set info->data->thread from pthread_self() to work
4270 around a race condition. Destroy wait_mutex and wait_cond when run()
4272 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4273 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4275 startable_flag: New private field.
4276 (Thread): Initialize `startable_flag'.
4277 (toString): Check for null thread group.
4278 * java/lang/natThread.cc: (struct natThread): New fields
4279 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4280 (class locker): Removed.
4281 (initialize_native): Initialize `join_cond' and `join_mutex'.
4282 (interrupt): Now just calls _Jv_ThreadInterrupt().
4283 (join): Simplified. Just wait on the target thread's join condition.
4284 (finish_): Remove join list code. Unset thread group. Signal
4285 potential joiners by notifying the dying threads join_cond.
4286 (start): Check for illegal restarts.
4287 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4289 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4290 #defines and #ifdefs.
4291 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4292 `wait_mutex', `next'.
4293 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4294 directly mapping to pthread_cond_t.
4295 (struct _Jv_Mutex_t): New recursive implementation.
4296 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4297 _Jv_HaveCondDestroy: Never define this for posix-threads.
4298 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4299 (_Jv_CondNotifyAll): Ditto.
4300 (_Jv_MutexLock): Ditto.
4301 (_Jv_MutexUnlock): Ditto.
4302 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4303 (_Jv_MutexDestroy): Ditto.
4304 (_Jv_CondDestroy): Removed.
4305 (_Jv_PthreadGetMutex): Removed.
4306 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4307 error. Add a FIXME about this.
4308 (_Jv_CondNotifyAll): Ditto.
4309 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4310 _JV_NOT_OWNER on other errors. Add FIXME.
4312 2000-03-26 Tom Tromey <tromey@cygnus.com>
4314 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4316 (call): Don't throw exception here.
4318 2000-03-26 Tom Tromey <tromey@cygnus.com>
4320 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4321 * interpret.cc: Use SIZEOF_VOID_P.
4322 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4323 (_Jv_loadLong): Likewise.
4324 (_Jv_storeDouble): Likewise.
4325 * configure: Rebuilt.
4326 * configure.in: Check size of void*.
4328 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4330 2000-03-26 Hans Boehm <boehm@acm.org>
4332 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4333 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4335 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4336 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4337 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4338 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4340 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4341 (FFI_RAW_SIZE): Likewise.
4342 (_Jv_InterpMethod::ncode): Use them.
4343 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4344 STORED): Define differently on a 64 bit machine.
4345 (continue1): Use ffi_java_raw_call when appropriate.
4347 2000-03-24 Warren Levy <warrenl@cygnus.com>
4349 * java/math/BigInteger.java(divide): Handle the special case when
4350 dividing by 1 and the high bit of the dividend is set.
4351 (setShiftRight): Handle case when count == 0.
4353 2000-03-24 Warren Levy <warrenl@cygnus.com>
4355 * java/awt/Font.java(isBold): Fix syntax error.
4357 * java/awt/Frame.java(postEvent): ditto.
4358 * java/awt/Menu.java(postEvent): ditto.
4359 * java/awt/MenuBar.java(postEvent): ditto.
4360 * java/awt/Toolkit.java(init): Included a stub.
4362 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4364 * java/awt/Event.java: Add all the event type constants.
4365 (Event): Implemented constructors.
4366 (controlDown): Implemented.
4367 (metaDown): Implemented.
4368 (paramString): Stubbed.
4369 (shiftDown): Implemented.
4370 (toString): Implemented.
4371 (translate): Implemented.
4373 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4375 * java/lang/natClass.cc (isInstance): Initialize `this'.
4376 (isAssignableFrom): Initialize `this' and `klass'.
4377 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4378 implemented by any loaded class, so return false.
4379 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4380 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4382 2000-03-19 Warren Levy <warrenl@cygnus.com>
4384 * java/awt/Color.java: Specified java.io for Serializable.
4385 * java/awt/Toolkit.java: Imported java.net.URL.
4387 2000-03-19 Warren Levy <warrenl@cygnus.com>
4389 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4391 2000-03-16 Warren Levy <warrenl@cygnus.com>
4393 * java/awt/Color.java: New file.
4394 * java/awt/Graphics.java: New file.
4395 * java/awt/Image.java: New file.
4396 * java/awt/Paint.java: New file.
4397 * java/awt/PaintContext.java: New file.
4398 * java/awt/Transparency.java: New file.
4399 * java/util/Collection.java: New file.
4400 * java/util/Comparator.java: New file.
4401 * java/util/Iterator.java: New file.
4402 * java/util/List.java: New file.
4403 * java/util/ListIterator.java: New file.
4404 * Makefile.am: Added above new files.
4405 * Makefile.in: Rebuilt.
4407 * java/awt/Font.java (PLAIN): New field.
4409 (ITALIC): New field.
4410 (ROMAN_BASELINE): New field.
4411 (CENTER_BASELINE): New field.
4412 (HANGING_BASELINE): New field.
4416 (pointSize): New field.
4417 (Font): Implemented constructor.
4418 (isPlain): Implemented method.
4419 (isBold): Implemented method.
4420 (isItalic): Implemented method.
4421 (getName): Implemented method.
4422 (getStyle): Implemented method.
4423 (getSize): Implemented method.
4424 (getSize2D): Implemented method.
4426 * java/awt/Frame.java (getFont): Stubbed.
4427 (postEvent): Stubbed.
4429 * java/awt/Menu.java (postEvent): Stubbed.
4430 * java/awt/MenuBar.java (getFont): Stubbed.
4431 (postEvent): Stubbed.
4432 * java/awt/Toolkit.java (getImage): Added abstract method.
4434 2000-03-15 Tom Tromey <tromey@cygnus.com>
4436 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4438 * prims.cc (win32_exception_handler): Reformatted.
4440 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4441 (_Jv_HaveMutexDestroy): Likewise.
4443 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4445 * java/io/natFileDescriptorWin32.cc: New file.
4446 * java/io/natFileWin32.cc: New file.
4447 * java/net/natInetAddress.cc: Added conditional inclusion of
4448 Windows / Winsock headers.
4449 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4450 inclusion of Windows / Winsock headers.
4451 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4452 Windows / Winsock headers.
4453 * include/win32-signal.h: New file.
4454 * include/win32-threads.h: New file.
4455 * win32-threads.cc: New file.
4456 * exception.cc (win32_get_restart_frame): New function.
4457 * prims.cc (win32_exception_handler): New function.
4458 (main_init) Performs Winsock initialisation.
4459 (main_init) Installs exeception handler.
4461 2000-03-14 Tom Tromey <tromey@cygnus.com>
4463 * jni.cc (mangled_name): Fixed assertion.
4464 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4465 turned assert into actual failure.
4467 2000-03-09 Warren Levy <warrenl@cygnus.com>
4469 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4470 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4471 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4473 2000-03-09 Warren Levy <warrenl@cygnus.com>
4475 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4476 * java/security/DigestException.java: New file.
4477 * java/security/GeneralSecurityException.java: New file.
4478 * java/security/InvalidAlgorithmParameterException.java: New file.
4479 * java/security/InvalidKeyException.java: New file.
4480 * java/security/InvalidParameterException.java: New file.
4481 * java/security/Key.java: New file.
4482 * java/security/KeyException.java: New file.
4483 * java/security/KeyPair.java: New file.
4484 * java/security/KeyPairGenerator.java: New file.
4485 * java/security/KeyPairGeneratorSpi.java: New file.
4486 * java/security/NoSuchProviderException.java: New file.
4487 * java/security/PrivateKey.java: New file.
4488 * java/security/Provider.java: New file.
4489 * java/security/PublicKey.java: New file.
4490 * java/security/SecureRandom.java: New file.
4491 * java/security/Security.java: New file.
4492 * java/security/Signature.java: New file.
4493 * java/security/SignatureException.java: New file.
4494 * java/security/interfaces/DSAKey.java: New file.
4495 * java/security/interfaces/DSAParams.java: New file.
4496 * java/security/interfaces/DSAPrivateKey.java: New file.
4497 * java/security/interfaces/DSAPublicKey.java: New file.
4498 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4499 * java/security/interfaces/RSAPrivateKey.java: New file.
4500 * java/security/interfaces/RSAPublicKey.java: New file.
4501 * java/security/spec/AlgorithmParameterSpec.java: New file.
4502 * java/security/spec/InvalidKeySpecException.java: New file.
4503 * java/security/spec/InvalidParameterSpecException.java: New file.
4504 * java/security/spec/KeySpec.java: New file.
4505 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4506 * java/security/spec/RSAPrivateKeySpec.java: New file.
4507 * java/security/spec/RSAPublicKeySpec.java: New file.
4508 * Makefile.am: Added above java.security files.
4509 * Makefile.in: Rebuilt.
4511 * java/security/MessageDigest.java: Rewritten.
4512 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4514 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4518 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4520 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4521 _Jv_PrepareConstantTimeTables.
4522 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4523 classes should have an IDT, so don't return if klass is an array
4526 2000-03-08 Tom Tromey <tromey@cygnus.com>
4528 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4529 of `void' to be created.
4531 2000-03-08 Warren Levy <warrenl@cygnus.com>
4533 * java/math/BigInteger.java(signum): Handle zero properly.
4535 2000-03-07 Tom Tromey <tromey@cygnus.com>
4537 * All files: Updated copyright information.
4538 * COPYING: New file.
4539 * COPYING.LIB: Removed.
4540 * LIBGCJ_LICENSE: We now use GPL + special exception.
4542 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4544 * resolve.cc (_Jv_SearchMethodInClass): New function.
4545 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4546 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4548 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4550 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4551 (struct _Jv_ifaces): New declaration.
4552 JV_CLASS: New macro definition.
4553 (getComponentType): Relocate below isArray() for inlining.
4554 (getModifiers): Declare `inline'.
4555 (getSuperclass): Ditto.
4557 (isPrimitive): Ditto.
4558 (_Jv_IsAssignableFrom): New prototype.
4559 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4561 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4562 Check for JV_STATE_DONE before invoking initializeClass().
4563 (_Jv_PrepareConstantTimeTables): New prototype.
4564 (_Jv_GetInterfaces): Ditto.
4565 (_Jv_GenerateITable): Ditto.
4566 (_Jv_GetMethodString): Ditto.
4567 (_Jv_AppendPartialITable): Ditto.
4568 (_Jv_FindIIndex): Ditto.
4569 depth, ancestors, idt: New class fields.
4571 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4572 inline function `_Jv_IsAssignableFrom'. Use that function.
4573 (isInstance): Declare `inline'.
4574 (initializeClass): Get lock on class before checking `state'. Unlock
4575 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4577 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4578 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4579 class->depth and ancestor table.
4580 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4581 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4582 _Jv_IsAssignableFrom.
4583 (_Jv_CheckArrayStore): Ditto.
4584 (_Jv_LookupInterfaceMethodIdx): New function.
4585 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4586 (_Jv_PrepareConstantTimeTables): New function.
4587 (_Jv_IndexOf): Ditto.
4588 (_Jv_GetInterfaces): Ditto.
4589 (_Jv_GenerateITable): Ditto.
4590 (_Jv_GetMethodString): Ditto.
4591 (_Jv_AppendPartialITable): Ditto.
4592 iindex_mutex, iindex_mutex_initialized: New static fields.
4593 (_Jv_FindIIndex): New function.
4595 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4597 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4598 (_Jv_CheckArrayStore): Ditto.
4599 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4600 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4601 Moved to gcj/array.h.
4602 (_Jv_Realloc): New function.
4604 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4606 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4607 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4608 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4609 JvNewDoubleArray): Implementations moved from prims.cc and
4612 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4614 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4616 2000-03-06 Tom Tromey <tromey@cygnus.com>
4618 * jni.cc (MARK_NONE): New define.
4619 (MARK_USER): Likewise.
4620 (MARK_SYSTEM): Likewise.
4621 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4623 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4624 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4625 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4626 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4628 (call): Use MARK_SYSTEM.
4629 (_Jv_GetJNIEnvNewFrame): New function.
4630 (_Jv_LookupJNIMethod): New function.
4631 (_Jv_JNI_PopSystemFrame): New function.
4632 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4634 2000-03-05 Tom Tromey <tromey@cygnus.com>
4636 Fix for PR libgcj/43:
4637 * include/Makefile.in: Rebuilt.
4638 * include/Makefile.am (include_HEADERS): New define.
4640 2000-03-05 Anthony Green <green@redhat.com>
4642 * gcj/javaprims.h ("Java"): Remove FirstThread.
4644 * configure.host: Fix __NO_MATH_INLNES botch.
4646 * Makefile.in: Rebuilt.
4647 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4648 (gnu/gcj/runtime/FirstThread.h): Moved.
4649 (ordinary_java_source_files): Move FirstThread.java.
4650 * prims.cc: Deal with FirstThread movement.
4652 (_Jv_RunMain): Ditto.
4654 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4655 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4657 2000-03-05 Warren Levy <warrenl@cygnus.com>
4659 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4660 Handle null addresses.
4662 2000-03-04 Anthony Green <green@redhat.com>
4664 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4667 2000-03-04 Anthony Green <green@redhat.com>
4669 * configure: Rebuilt.
4670 * configure.in (ZLIBTESTSPEC): New macro.
4671 (GCTESTSPEC): New macro.
4672 (LIBGCJTESTSPEC): New macro.
4673 * libgcj-test.spec.in: New file.
4675 2000-03-02 Tom Tromey <tromey@cygnus.com>
4677 * include/java-interp.h: Don't include MethodInvocation.h.
4678 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4679 * Makefile.in: Rebuilt.
4680 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4681 (ordinary_java_source_files): Don't mention
4682 MethodInvocation.java.
4683 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4684 * interpret.cc (MethodInvocation::continue1): Removed.
4685 (run): Handle exceptions here.
4686 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4688 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4690 (defineClass2): Removed.
4692 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4694 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4696 (hack_call): Removed.
4698 * java/lang/Class.h (Class): Removed hackRunInitializers,
4700 * java/lang/natClass.cc (hackRunInitializers): Removed.
4701 (initializeClass): Catch exceptions here.
4702 Include ExceptionInInitializerError.h.
4703 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4706 * java/lang/Object.h (Object): Don't mention hack12_6.
4707 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4709 * java/lang/Object.java (hack12_6): Removed.
4711 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4712 (start): Use run_, not run__.
4713 * java/lang/Thread.java (run_): Renamed from run__; old run_
4716 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4717 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4718 (_Jv_JNI_DefineClass): Likewise.
4719 (_Jv_JNI_ThrowNew): Likewise.
4720 (_Jv_JNI_AllocObject): Likewise.
4721 (_Jv_JNI_GetAnyMethodID): Likewise.
4722 (_Jv_JNI_CallAnyMethodV): Likewise.
4723 (_Jv_JNI_CallAnyMethodA): Likewise.
4724 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4725 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4726 (_Jv_JNI_GetAnyFieldID): Likewise.
4727 (_Jv_JNI_NewString): Likewise.
4728 (_Jv_JNI_NewStringUTF): Likewise.
4729 (_Jv_JNI_GetStringUTFChars): Likewise.
4730 (_Jv_JNI_NewObjectArray): Likewise.
4731 (_Jv_JNI_NewPrimitiveArray): Likewise.
4732 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4733 (_Jv_JNI_GetStringRegion): Likewise.
4734 (_Jv_JNI_GetStringUTFRegion): Likewise.
4735 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4736 (_Jv_JNI_MonitorEnter): Likewise.
4737 (_Jv_JNI_MonitorExit): Likewise.
4738 (_Jv_JNI_ToReflectedField): Likewise.
4739 (_Jv_JNI_ToReflectedMethod): Likewise.
4740 (_Jv_JNI_RegisterNatives): Likewise.
4741 (_Jv_JNI_AttachCurrentThread): Likewise.
4742 (_Jv_JNI_DestroyJavaVM): Likewise.
4744 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4746 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4747 error caused by the incorrect casting of a long to an int.
4749 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4751 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4752 SIGSEV caused by use of the wrong instance variable.
4754 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4756 * java/io/File.java (File(String, String)): For dirPath, treat an
4757 empty String the same as `null'.
4759 2000-02-26 Anthony Green <green@cygnus.com>
4761 * gnu/gcj/io/MimeTypes.java: Test for null.
4763 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4764 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4766 * java/net/URLConnection.java: Update copyright notice.
4768 2000-02-25 Tom Tromey <tromey@cygnus.com>
4770 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4773 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4775 * java/net/URLConnection.java (initializeDateFormats): New
4777 (getHeaderFieldDate): Call initializeDateFormats if required.
4778 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4780 Fix for PR libgcj/38.
4782 2000-02-24 Warren Levy <warrenl@cygnus.com>
4784 * java/math/BigInteger.java(ival): Made private.
4788 2000-02-20 Anthony Green <green@cygnus.com>
4790 * Makefile.in: Rebuilt.
4791 * Makefile.am (ordinary_java_source_files): Add
4792 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4794 * scripts/MakeDefaultMimeTypes.java: New file.
4795 * scripts/mime.types: New file.
4796 * scripts/classes.pl: Moved from top level.
4797 * classes.pl: Moved to scripts directory.
4799 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4801 * gnu/gcj/io/MimeTypes.java: New file.
4802 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4804 2000-02-20 Tom Tromey <tromey@cygnus.com>
4806 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4808 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4810 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4813 2000-02-18 Tom Tromey <tromey@cygnus.com>
4815 * include/jvm.h (_Jv_GetJavaVM): Declare.
4816 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4817 (_Jv_MethodBase::get_method): New method.
4818 (_Jv_JNIMethod::set_function): New method.
4819 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4820 (_Jv_JNI_RegisterNatives): New function.
4821 (_Jv_JNIFunctions): Updated for new functions.
4822 (_Jv_GetJavaVM): New function.
4823 (_Jv_JNI_GetJavaVM): Use it. Now static.
4824 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4825 is already a Java thread but does not have a JNIEnv yet.
4827 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4830 2000-02-17 Tom Tromey <tromey@cygnus.com>
4832 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4835 2000-02-16 Tom Tromey <tromey@cygnus.com>
4837 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4839 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4840 (_Jv_JNI_NewObject): Likewise.
4841 (_Jv_JNI_NewObjectA): Likewise.
4842 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4843 as "return" type to _Jv_CallAnyMethodA.
4844 (_Jv_JNI_CallAnyMethodA): Likewise.
4845 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4847 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4850 2000-02-15 Tom Tromey <tromey@cygnus.com>
4852 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4854 (init_cif): Added `rtype_p' argument.
4855 * include/java-interp.h (class _Jv_MethodBase): Added
4857 (class _Jv_InterpMethod): Removed args_raw_size.
4858 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4859 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4860 class pointer as well as the ordinary arguments.
4862 * jni.cc (mangled_name): Skip leading `(' in signature.
4864 * jni.cc (add_char): Added missing `else'.
4866 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4869 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4873 * java/lang/natRuntime.cc (_load): Include library path with
4876 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4879 * java/lang/natThread.cc (dumpStack): Removed.
4880 * java/lang/Thread.java (dumpStack): Implemented.
4882 2000-02-15 Tom Tromey <tromey@cygnus.com>
4884 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4885 with `lib' for loadLibrary. Fixes PR gcj/150.
4887 2000-02-14 Warren Levy <warrenl@cygnus.com>
4889 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4891 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4895 (modPow): Rewritten to not use the naive, slow, brute force approach.
4896 (isProbablePrime): Implemented.
4897 (testBit): Implemented.
4898 (flipBit): Implemented.
4899 (getLowestSetBit): Implemented.
4901 2000-02-16 Anthony Green <green@redhat.com>
4903 * configure.host: Use the same options for i386 and i486 as we do
4906 2000-02-12 Tom Tromey <tromey@cygnus.com>
4908 * java/io/File.java (createTempFile): Use low bits from counter,
4911 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4913 * THANKS: More thanks.
4915 2000-02-11 Tom Tromey <tromey@cygnus.com>
4917 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4918 astore instruction. From Hans Boehm.
4920 2000-02-11 Warren Levy <warrenl@cygnus.com>
4922 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4923 (BigInteger(String)): New constructor.
4924 (not): Rewritten using version from Kawa's BitOps class.
4925 (valueOf): New private methods from Kawa's BitOps class.
4932 (andNot): Implemented.
4933 (clearBit): Implemented.
4934 (setBit): Implemented.
4935 (bitCount): Implemented.
4936 (toByteArray): Implemented.
4938 2000-02-11 Tom Tromey <tromey@cygnus.com>
4940 * java/io/File.java (nextValue): Now synchronized.
4942 2000-02-10 Tom Tromey <tromey@cygnus.com>
4944 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4945 * java/io/FileDescriptor.java (EXCL): New static field.
4946 * java/io/File.java (tmpdir): New static field.
4947 (createTempFile): New method.
4948 (nextValue): New method.
4949 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4952 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4953 (jboolean): Declare as an attributed int, not a bool.
4954 (_Jv_func): Declare differently for C.
4956 * gnu/gcj/jni/natNativeThread.cc: New file.
4957 * gnu/gcj/jni/NativeThread.java: New file.
4958 * java/lang/Thread.java (data): Now a RawData.
4959 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4961 * Makefile.in: Rebuilt.
4962 * Makefile.am (java/lang/Thread.h): New target.
4963 (ordinary_java_source_files): Added NativeThread.java.
4964 (nat_source_files): Added natNativeThread.cc.
4965 * java/lang/natThread.cc: Include <jni.h>
4966 (struct natThread): Added `jni_env' field.
4967 (_Jv_GetCurrentJNIEnv): New function.
4968 (_Jv_SetCurrentJNIEnv): Likewise.
4969 (initialize_native): Initialize jni_env.
4971 * jni.cc (ThreadGroupClass): New define.
4972 (_Jv_JNI_InvokeFunctions): New structure.
4973 (JNI_GetCreatedJavaVMs): New function.
4974 (the_vm): New global.
4975 (JNI_GetDefaultJavaVMInitArgs): New function.
4976 Include NativeThread.h.
4977 (NativeThreadClass): New define.
4978 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4979 (_Jv_JNI_DestroyJavaVM): New function.
4980 (_Jv_JNI_AttachCurrentThread): New function.
4981 (_Jv_JNI_DetachCurrentThread): New function.
4982 (_Jv_JNI_GetEnv): New function.
4983 (JNI_CreateJavaVM): New function.
4984 (_Jv_JNI_GetJavaVM): New function.
4985 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4986 * include/jni.h (JavaVMAttachArgs): New structure.
4987 (JNI_EDETACHED): New define.
4988 (JNI_EVERSION): Likewise.
4989 (JavaVM): Define properly.
4990 (struct JNIInvokeInterface): New structure.
4991 (class _Jv_JavaVM): New class.
4992 (JNI_OnLoad, JNI_OnUnload): Declare.
4993 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4994 JNI_GetCreatedJavaVMs): Declare.
4995 (JavaVMInitArgs): New typedef.
4996 (JavaVMOption): Likewise.
4997 (JNI_ERR): New define.
5000 2000-02-10 Andrew Haley <aph@cygnus.com>
5002 * interpret.cc: Don't include fdlibm.h.
5003 Replace #if with #ifdef throughout.
5004 Declare extern __ieee754_fmod.
5005 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5007 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5008 Search class hierarchy for superclass vtable.
5010 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5011 off the end of a pointer list.
5013 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5017 2000-02-09 Tom Tromey <tromey@cygnus.com>
5019 * java/lang/natRuntime.cc (_load): Call add_library.
5020 (loadLibraryInternal): Likewise.
5022 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5023 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5024 (Output_iconv::finalize): Likewise.
5026 2000-02-08 Tom Tromey <tromey@cygnus.com>
5028 * java/util/Properties.java (setProperty): New method.
5029 (store): New method.
5031 2000-02-07 Tom Tromey <tromey@cygnus.com>
5033 * java/lang/Runtime.java (_load): Declare.
5034 (load, loadLibrary): Wrote in terms of _load.
5035 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5037 (loadLibrary): Likewise.
5039 (_load): New method.
5040 (loadLibrary, load): Removed.
5042 * jni.cc (ThrowableClass): New define.
5043 (_Jv_JNI_Throw): Check argument.
5044 (_Jv_JNI_ThrowNew): Likewise.
5045 (wrap_value): Don't wrap object if it is NULL.
5046 (_Jv_JNI_DefineClass): Use wrap_value.
5047 (_Jv_JNI_FindClass): Likewise.
5048 (_Jv_JNI_GetSuperclass): Likewise.
5049 (_Jv_JNI_ExceptionOccurred): Likewise.
5050 (_Jv_JNI_AllocObject): Likewise.
5051 (_Jv_JNI_GetObjectClass): Likewise.
5052 (_Jv_JNI_NewString): Likewise.
5053 (_Jv_JNI_NewStringUTF): Likewise.
5054 (_Jv_JNI_NewObjectArray): Likewise.
5055 (_Jv_JNI_GetObjectArrayElement): Likewise.
5056 (_Jv_JNI_NewPrimitiveArray): Likewise.
5057 (_Jv_JNI_ToReflectedField): Likewise.
5058 (_Jv_JNI_ToReflectedMethod): Likewise.
5059 (_Jv_JNI_AllocObject): Check argument.
5060 (_Jv_JNI_NewObjectV): Likewise.
5061 (_Jv_JNI_NewObject): Likewise.
5062 (_Jv_JNI_NewObjectA): Likewise.
5063 (_Jv_JNI_GetObjectClass): Likewise.
5064 (_Jv_JNI_GetField): Likewise.
5065 (_Jv_JNI_SetField): Likewise.
5067 * interpret.cc (PUSHL): Don't use expression statement.
5072 * jni.cc (add_char): Conditional on INTERPRETER.
5073 (mangled_name): Likewise.
5075 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5077 (class _Jv_JNIMethod): Likewise.
5079 2000-02-04 Warren Levy <warrenl@cygnus.com>
5081 * Makefile.am: Added MPN.java and BigInteger.java.
5082 * Makefile.in: Rebuilt.
5083 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5085 * java/math/BigInteger.java: New file. Based primarily on
5086 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5088 2000-02-04 Tom Tromey <tromey@cygnus.com>
5090 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5092 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5093 if the method is native.
5094 * resolve.cc (ncode): Don't handle native methods.
5095 (_Jv_JNIMethod::ncode): New method.
5096 (_Jv_PrepareClass): Handle native methods.
5097 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5098 Include AbstractMethodError.h.
5099 (add_char): New function.
5100 (mangled_name): Likewise.
5101 * include/java-interp.h (class _Jv_JNIMethod): New class.
5102 (class _Jv_MethodBase): New class.
5103 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5104 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5107 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5108 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5109 libraries): New globals.
5110 (add_library): New function.
5111 (_Jv_FindSymbolInExecutable): New function.
5113 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5116 2000-02-04 Andrew Haley <aph@cygnus.com>
5118 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5119 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5120 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5121 printStackTrace to printRawStackTrace.
5123 2000-02-03 Tom Tromey <tromey@cygnus.com>
5125 * java/util/Calendar.java (toString): New method.
5126 * java/util/SimpleTimeZone.java (clone): New method.
5127 (toString): New method.
5128 * java/util/TimeZone.java (clone): New method.
5129 * java/text/SimpleDateFormat.java (clone): New method.
5130 * java/text/NumberFormat.java (clone): New method.
5131 (equals): New method.
5132 * java/text/Format.java (clone): New method.
5133 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5135 (clone): New method.
5136 * java/text/DateFormat.java (clone): New method.
5137 * java/text/Collator.java (clone): New method.
5139 2000-02-03 Tom Tromey <tromey@cygnus.com>
5141 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5144 2000-02-01 Tom Tromey <tromey@cygnus.com>
5146 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5147 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5148 constructing the closure if the function is native.
5149 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5150 a template function, #if'd out, or static.
5151 Include <java-interp.h>.
5153 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5155 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5157 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5158 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5160 (wrap_value): New function.
5161 (_Jv_JNI_CallAnyMethodV): Use it.
5162 (_Jv_JNI_CallAnyMethodA): Likewise.
5163 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5164 (_Jv_JNI_GetStaticField): Likewise.
5166 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5167 (_Jv_JNI_GetStaticField): Likewise.
5169 2000-01-31 Tom Tromey <tromey@cygnus.com>
5171 * prims.cc (_Jv_MallocUnchecked): New function.
5172 (main_init): Call _Jv_JNI_Init.
5173 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5174 (_Jv_JNI_Init): Declare.
5175 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5177 (_Jv_JNI_NewGlobalRef): New function.
5178 (_Jv_JNI_DeleteGlobalRef): New function.
5179 (_Jv_JNI_DeleteLocalRef): New function.
5180 (_Jv_JNI_conversion_call): Initialize and clear local reference
5182 (_Jv_JNI_NewLocalRef): New function.
5183 (struct _Jv_JNI_LocalFrame): New structure.
5184 (_Jv_JNI_PushLocalFrame): New function.
5185 (_Jv_JNI_EnsureLocalCapacity): New function.
5186 (FRAME_SIZE): New define.
5187 (_Jv_JNI_GetStringChars): Mark string, not characters.
5188 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5189 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5190 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5192 (_Jv_JNI_DefineClass): Make return value a local ref.
5193 (_Jv_JNI_FindClass): Likewise.
5194 (_Jv_JNI_GetSuperclass): Likewise.
5195 (_Jv_JNI_ExceptionOccurred): Likewise.
5196 (_Jv_JNI_AllocObject): Likewise.
5197 (_Jv_JNI_GetObjectClass): Likewise.
5198 (_Jv_JNI_CallAnyMethodV): Likewise.
5199 (_Jv_JNI_NewString): Likewise.
5200 (_Jv_JNI_NewStringUTF): Likewise.
5201 (_Jv_JNI_NewObjectArray): Likewise.
5202 (_Jv_JNI_GetObjectArrayElement): Likewise.
5203 (_Jv_JNI_ToReflectedField): Likewise.
5204 (_Jv_JNI_ToReflectedMethod): Likewise.
5205 (_Jv_JNIFunctions): Updated table for new functions.
5206 (_Jv_JNI_Init): New function.
5207 (mark_for_gc): Wrote.
5208 (unmark_for_gc): Wrote.
5209 * include/jni.h (struct JNINativeInterface): Removed name from
5210 PopLocalFrame parameter.
5211 (class _Jv_JNIEnv): Added `locals' field.
5213 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5215 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5218 2000-01-30 Tom Tromey <tromey@cygnus.com>
5220 * include/config.h.in: Rebuilt.
5221 * acconfig.h (HAVE_ICONV): Define.
5222 * configure: Rebuilt.
5223 * configure.in: Check for `iconv' function.
5224 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5225 no specific encoder exists.
5226 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5227 no specific encoder exists.
5228 * Makefile.in: Rebuilt.
5229 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5231 (nat_source_files): Added natIconv.cc.
5232 * gnu/gcj/convert/natIconv.cc: New file.
5233 * gnu/gcj/convert/Input_iconv.java: New file.
5234 * gnu/gcj/convert/Output_iconv.java: New file.
5236 2000-01-28 Tom Tromey <tromey@cygnus.com>
5238 * Makefile.in: Rebuilt.
5239 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5241 2000-01-26 Tom Tromey <tromey@cygnus.com>
5243 * gcj/method.h (JvNumMethods): Moved from Class.h.
5244 (JvGetFirstMethod): Likewise.
5245 * java/lang/Class.h (Object): Updated decl of
5246 _Jv_JNI_ToReflectedField.
5247 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5248 * Makefile.in: Rebuilt.
5249 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5250 argument of _Jv_JNI_ToReflectedField.
5251 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5253 (java/lang/reflect/Method.h): Likewise.
5254 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5256 (jweak): New typedef.
5257 (struct JNINativeInterface): Correctly declare remaining entries.
5258 * jni.cc: Include Class.h, ClassLoader.h.
5259 (_Jv_JNI_FindClass): New function.
5260 (_Jv_JNI_DefineClass): New function.
5261 (_Jv_JNI_conversion_call): New function.
5262 (_Jv_JNI_FindClass): Use current class loader to find class.
5263 (_Jv_JNI_ExceptionCheck): New function.
5264 (_Jv_JNI_FromReflectedField): Now static.
5265 (MethodClass): New define.
5266 (_Jv_JNI_FromReflectedMethod): New function.
5267 (_Jv_JNI_ToReflectedMethod): Likewise.
5269 (_Jv_JNI_IsAssignableFrom): Renamed.
5270 (_Jv_JNI_GetStringRegion): New function.
5271 Include StringIndexOutOfBoundsException.h.
5272 (_Jv_JNI_GetStringUTFRegion): New function.
5273 (_Jv_JNIFunctions): Updated for new functions.
5274 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5275 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5276 (_Jv_JNI_GetStringCritical): New function.
5277 (_Jv_JNI_ReleaseStringCritical): Likewise.
5278 (get_throwable): Removed.
5279 (GCJ_JV_JNIENV_FRIEND): Removed.
5280 (__GCJ_JNI_IMPL__): Define.
5283 * resolve.cc (get_ffi_type_from_signature): Handle case where
5286 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5288 * interpret.cc (run): Don't call println.
5289 Don't include PrintStream.h.
5291 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5292 nameIndex. Use "jint" as type for boffset.
5293 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5295 (Class): Likewise. Also changed type of method_count,
5296 vtable_method_count, size_in_bytes, field_count,
5297 static_field_count, interface_count.
5298 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5301 2000-01-21 Tom Tromey <tromey@cygnus.com>
5303 * java/lang/reflect/natConstructor.cc (newInstance): Use
5305 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5306 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5307 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5310 (invoke): Use _Jv_CallAnyMethodA.
5312 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5313 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5315 (struct _Jv_Method): Added getNextMethod method.
5316 (JvNumMethods): New function.
5317 (JvGetFirstMethod): Likewise.
5318 * gcj/field.h (JvGetFirstStaticField): New function.
5319 (JvNumStaticFields): Likewise.
5320 (getNextField): Renamed from getNextInstanceField.
5321 (struct _Jv_Field): New method getClass.
5322 * jni.cc: Wrote many new functions.
5323 * include/jni.h (JNI_TRUE): Define.
5324 (JNI_FALSE): Likewise.
5325 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5326 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5327 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5328 (jfieldID, jmethodID): Likewise.
5329 (JNI_COMMIT, JNI_ABORT): New defines.
5330 (JNINativeMethod): New struct.
5331 (struct JNINativeInterface): Correctly declared more entries.
5332 (class _Jv_JNIEnv): Added `ex' member.
5333 (JNI_VERSION_1_1): New define.
5334 (JNI_VERSION_1_2): Likewise.
5336 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5337 getNextInstanceField.
5339 2000-01-20 Tom Tromey <tromey@cygnus.com>
5341 * resolve.cc (StringClass): Removed.
5342 * defineclass.cc (StringClass): Removed.
5344 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5348 2000-01-19 Tom Tromey <tromey@cygnus.com>
5350 * interpret.cc (PC_REGISTER_ASM): Removed.
5352 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5353 From Bryce McKinlay.
5355 * All files: Updated copyright to reflect Cygnus purchase.
5357 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5359 * configure: Rebuilt.
5360 * configure.in: Recognize --disable-interpreter.
5362 2000-01-18 Andrew Haley <aph@cygnus.com>
5364 * name-finder.cc (lookup): Check for dladdr function.
5365 acconfig.h (HAVE_DLADDR): Add.
5366 configure.in: Check for HAVE_DLADDR
5368 include/config.h.in: Rebuilt.
5370 2000-01-17 Andrew Haley <aph@cygnus.com>
5372 * prims.cc (_Jv_RunMain): Set the name of this executable.
5374 2000-01-17 Tom Tromey <tromey@cygnus.com>
5376 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5377 when backtrace can't be computed.
5379 * configure: Rebuilt.
5380 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5382 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5383 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5384 (_Jv_FindClassInCache): Likewise.
5385 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5386 (findSystemClass): Try to load class from compiled module.
5388 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5389 (loadLibrary): Likewise.
5390 (lt_preloaded_symbols): Define.
5391 (loadLibraryInternal): New method.
5392 * include/config.h.in: Rebuilt.
5393 * acconfig.h (USE_LTDL): Added.
5394 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5395 (INCLUDES): Added $(INCLTDL).
5396 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5397 (libgcj_la_LIBADD): Likewise.
5398 * aclocal.m4, configure: Rebuilt.
5399 * configure.in: Added libltdl support.
5401 2000-01-15 Tom Tromey <tromey@cygnus.com>
5403 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5405 2000-01-14 Andrew Haley <aph@cygnus.com>
5407 * java/lang/natThrowable.cc: New file.
5409 * java/lang/Throwable.java (fillInStackTrace): Make native.
5410 (printStackTrace): Call native method to do this.
5411 (Throwable): Call fillInStackTrace.
5412 (stackTrace): New variable.
5414 * include/jvm.h: Add _Jv_ThisExecutable functions.
5416 * prims.cc: (_Jv_execName): New variable.
5417 (catch_segv): Call fillInStackTrace.
5419 (_Jv_ThisExecutable): New functions.
5420 (JvRunMain): Set the name of this executable.
5422 * Makefile.am: Add java/lang/natThrowable.cc.
5424 * Makefile.in: Rebuilt.
5426 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5428 * configure.in: Force link with __frame_state_for in
5429 FORCELIBGCCSPEC. Add new checks for backtrace.
5430 * include/config.h.in: Rebuilt.
5432 * name-finder.cc: New file.
5433 * include/name-finder.h: New file.
5435 2000-01-16 Anthony Green <green@cygnus.com>
5437 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5440 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5442 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5444 2000-01-13 Tom Tromey <tromey@cygnus.com>
5446 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5447 not system loader, as initiating loader.
5449 2000-01-11 Tom Tromey <tromey@cygnus.com>
5451 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5452 HP/UX. From David Scott Urban.
5454 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5456 * java/lang/natMath.cc (pow): Cast args to `double', not
5459 (IEEEremainder): Likewise.
5460 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5461 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5463 2000-01-09 Anthony Green <green@cygnus.com>
5465 * java/lang/natString.cc (init): Test for overflow condition
5466 during out of bounds check.
5467 (getChars): Throw StringIndexOutOfBoundsException, not
5468 ArrayIndexOutOfBoundsException.
5470 (regionMatches): Obey case option during string comparison.
5472 * configure.host (ligcj_interpreter): New variable. Enable
5473 interpreter by default on IA-32.
5474 * configure.in: Examine libgcj_interpreter.
5475 * configure: Rebuilt.
5477 2000-01-07 Tom Tromey <tromey@cygnus.com>
5479 * mauve-libgcj: Don't disable ClassTest.
5481 * java/lang/natClass.cc (getClasses): Wrote.
5483 2000-01-06 Tom Tromey <tromey@cygnus.com>
5485 * java/lang/natClass.cc (_getConstructors): Correctly check
5486 whether method name is the init name.
5487 (getMethod): Look at accflags on method in `klass', not `this'.
5489 2000-01-05 Tom Tromey <tromey@cygnus.com>
5491 * java/lang/natClass.cc (getMethod): Compute offset relative to
5492 `klass's methods table, not `this's table.
5494 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5495 In unwrapping/widening case, check whether `k' is null, not
5496 whether it is primitive. Initialize `num' from `argelts', not
5497 `paramelts'. Correct create and pass arguments to ffi_call.
5498 Don't let presence of `this' argument affect index used to look in
5500 (COPY): Set appropriate element in `values' vector.
5502 * java/lang/natClass.cc: Include <gcj/method.h>.
5504 * java/lang/Class.h (_getMethods): Correctly declare as private,
5507 * java/lang/Class.h (_getMethods): Declare.
5508 * java/lang/Class.java (_getMethods): Declare.
5509 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5510 (getDeclaredClasses): Always return empty array.
5511 (_getMethods): New method.
5512 (getMethods): Wrote.
5513 (getDeclaredMethod): Return `rmethod'.
5514 (finit_name): New global.
5515 (getDeclaredMethods): Check for finit_name.
5516 (_getMethods): Likewise.
5517 (getMethod): Only return public methods.
5519 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5520 jboolean and select correct ffi type on that basis.
5521 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5522 Constructor call always has `void' return type.
5524 2000-01-04 Tom Tromey <tromey@cygnus.com>
5526 * java/lang/Class.h (getSignature): Updated.
5527 * java/lang/Class.java (getSignature): Updated.
5528 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5530 (getConstructor): Ensure constructor is public.
5531 (_getConstructors): Check for public-ness of constructor when
5532 `declared' is false, not when it is true.
5534 2000-01-04 Warren Levy <warrenl@cygnus.com>
5536 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5538 (receive): Set the sender's address in the DatagramPacket.
5540 2000-01-04 Tom Tromey <tromey@cygnus.com>
5542 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5543 declaring class as return_type argument to
5544 _Jv_CallNonvirtualMethodA.
5545 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5546 constructor case, create object and use it as `this' argument.
5547 * java/lang/Class.h (_getConstructors): Declare.
5548 (_getFields): Declare.
5549 * java/lang/Class.java (getConstructors): Wrote.
5550 (_getConstructors): New native method.
5551 (getDeclaredConstructors): Wrote.
5552 (_getFields): Declare new native method.
5553 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5555 (getMethod): Work correctly when class is primitive.
5556 (getDeclaredMethods): Likewise. Compute offset using `method',
5558 (getDeclaredMethod): Likewise.
5559 (getConstructor): Wrote.
5560 (ConstructorClass): New define.
5561 (getDeclaredConstructor): Wrote.
5562 (_getConstructors): New method.
5563 (_getFields): New method.
5566 * Makefile.in: Rebuilt.
5567 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5569 * prims.cc: Remove `#pragma implementation'.
5570 * gcj/array.h: Remove `#pragma interface'.
5572 * prims.cc (_Jv_equaln): New function.
5573 * java/lang/Class.java (getSignature): Declare.
5574 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5575 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5577 (getSignature): New method.
5578 (getDeclaredMethod): Wrote.
5580 Include StringBuffer.h.
5581 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5582 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5584 (getSignature): Declare.
5585 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5586 (_Jv_equaln): Declare.
5587 (_Jv_CallNonvirtualMethodA): Declare.
5588 * Makefile.in: Rebuilt.
5589 * Makefile.am (nat_source_files): Added natConstructor.cc.
5590 (java/lang/reflect/Constructor.h): New target.
5591 * java/lang/reflect/natConstructor.cc: New file.
5592 * java/lang/reflect/Constructor.java (newInstance): Now native.
5593 (declaringClass): Renamed from decl_class.
5594 (offset): Renamed from index.
5595 (getType): New native method.
5596 (getModifiers): Now native.
5597 (getParameterTypes): Call getType if required.
5598 (hashCode): Include hash code from declaring class.
5599 (modifiers): Removed.
5600 (toString): Call getType if required.
5601 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5602 * java/lang/reflect/natMethod.cc (hack_call): New method.
5603 Removed `#if 0' around FFI code.
5604 Include <gnu/gcj/RawData.h>.
5605 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5606 IllegalArgumentException when argument object and class disagree.
5607 (_Jv_GetTypesFromSignature): New function.
5609 (ObjectClass): New define.
5610 (_Jv_CallNonvirtualMethodA): New function.
5611 * java/lang/reflect/Method.java (hack_trampoline): New method.
5612 (hack_call): New native method.