1 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
3 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
5 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
6 to a temporary file, then invoke libtool with the -objectlist
8 (libgcjx.la): Likewise.
9 * Makefile.in: Rebuilt.
11 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
13 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
15 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
17 * jni.cc (add_char): Handle `.' like `/'.
19 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
21 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
22 initialize if exception_types is null.
23 * java/lang/reflect/Constructor.java: Likewise.
24 * java/lang/reflect/natConstructor.cc (getType): Initialize
25 exception_types to an empty Object array.
27 2001-03-21 Tom Tromey <tromey@redhat.com>
30 * configure.in (GCJFLAGS): Subst.
31 * Makefile.in: Rebuilt.
32 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
33 (gij_LDFLAGS): Likewise.
34 (JC1FLAGS): Added GCJFLAGS and removed -g.
36 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
37 read/write case. Fixes PR libgcj/2338.
39 2001-03-20 Warren Levy <warrenl@redhat.com>
41 * java/util/TimeZone.java: Sync up with Classpath. Includes new
42 and corrected SimpleTimeZone's for the timezones hash table.
44 2001-03-19 Per Bothner <per@bothner.com>
46 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
47 "canonicalize" "../../xxx" to "/xxx".
49 2001-03-19 Mark Wielaard <mark@klomp.org>
51 * java/util/ArrayList.java: Remove RCS keywords from comments
52 * java/util/BasicMapEntry.java: idem
53 * java/util/Dictionary.java: idem
54 * java/util/HashSet.java: idem
56 * java/util/EventObject.java: reindent
57 * java/util/Properties.java: idem
58 * java/util/SortedMap.java: idem
60 * java/util/Enumeration.java: Merge with Classpath
61 * java/util/EventListener.java: idem
62 * java/util/Observable.java: idem
63 * java/util/Observer.java: idem
64 * java/util/Stack.java: idem
66 2001-03-17 Tom Tromey <tromey@redhat.com>
68 * java/lang/natString.cc (rehash): Don't bother with memset;
69 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
71 (UNMASK_PTR): New macro.
72 (intern): Unmask pointer before returning it. Register finalizer
74 (unintern): Handle case where
75 (MASK_PTR): New macro.
76 (PTR_MAKSED): Likewise.
77 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
79 2001-03-01 Andrew Haley <aph@redhat.com>
81 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
82 stackTrace buffer to a correctly aligned pointer array.
84 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
86 * java/lang/Runtime.java (_exit): Declare new package-private native.
87 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
88 without a security manager check.
89 (exit): Call _exit after security check.
90 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
92 * java/lang/System.java (setSecurityManager): If a security manager
93 is already in place, call checkPermission.
94 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
95 throws an exception, try to deal with it gracefully.
96 * java/lang/ExceptionInInitializerError.java (printStackTrace):
97 Only try to print the subordinate stack trace if "exception" is set.
98 Print our class name first.
100 2001-03-08 Tom Tromey <tromey@redhat.com>
102 * java/io/ObjectStreamClass.java (setUID): Don't write interface
103 info for array classes.
104 Fixes PR libgcj/1971.
106 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
108 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
111 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
113 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
114 instead of the new JDK1.2 API. This is simpler and makes
115 back-porting the classes to JDK1.1 trivial.
116 (readObject): likewise.
118 2001-03-01 Per Bothner <per@bothner.com>
120 Changes merged from Kawa's gnu.math.
121 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
122 (rshift(int[],int[],int,int): Removed - not needed.
123 (gcd): Use rshift0 rather than rshift.
124 * java/math/BigInteger.java (setShiftRight): Likewise.
125 (divide): Simplify by using rshift0.
126 (divide): Zero-extend results if high-order bit set.
128 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
130 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
133 2001-02-23 Per Bothner <per@bothner.com>
135 Change to sometimes include class name in ClassFormatError message.
136 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
137 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
138 boolean instead of throwing ClassFormatError on failure.
139 (throw_class_format_error): Change static function to method.
140 (_Jv_ClassReader): New inline methods verify_identifier,
141 two overloads of verify_classname, verify_field_signature, and
142 verify_method_signature
143 * include/java-interp.h: Update declarations to return bool.
144 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
145 ClassFormatError since _Jv_VerifyClassName now returns bool.
147 2001-02-23 Per Bothner <per@bothner.com>
149 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
150 c++filt to select java-style output.
152 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
154 Fix for PR java/2040:
155 * java/util/HashMap.java (HashMap): Don't throw exception for
156 loadFactor > 1. Add exception messages.
157 * java/util/Hashtable.java (Hashtable): Likewise.
159 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
161 Disable libgcjx by default.
162 * configure.in: Add support for --enable-java-awt configure option.
163 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
164 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
165 * Makefile.in: Rebuilt.
166 * configure: Rebuilt.
168 2001-02-20 Tom Tromey <tromey@redhat.com>
170 * java/io/PipedWriter.java (flush): Throw exception if stream
172 * java/io/OutputStreamWriter.java (write): Throw exception if
174 (writeChars): Don't throw exception if stream closed.
175 * java/io/CharArrayWriter.java (closed): New field.
177 (flush): Throw exception if stream closed.
178 (reset): Synchronize on correct lock. Allow stream to be
180 (toCharArray, toString, writeTo): Synchronize.
181 (write): Throwe exception if stream closed.
182 * java/io/BufferedWriter.java (close): Clear `buffer'.
183 (flush): Throw IOException if stream is closed.
186 2001-02-16 Tom Tromey <tromey@cygnus.com>
188 * java/lang/ThreadGroup.java (activeCount): Only include threads
190 (enumerate): Likewise.
192 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
194 * java/lang/Integer.java (getInteger): Return default argument if
195 property is not set. Don't call decode with null argument.
196 * java/lang/Long.java (getLong): Likewise.
198 * java/io/CharArrayReader.java (CharArrayReader): Throw
199 IllegalArgumentException if constructor arguments are illegal.
200 (ready): Return false if no more characters can be read.
201 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
203 2001-02-17 Mark Wielaard <mark@klomp.org>
205 * java/util/TimerTask.java: New version from Classpath.
207 2001-02-17 Mark Wielaard <mark@klomp.org>
209 Remerge with Classpath
210 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
211 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
212 (readByte): Use convertToByte().
213 (readChar): Use convertToChar().
214 (readInt): Use convertToInt().
215 (readLong): Use convertToLong().
216 (readShort): Use convertToShort().
217 (readUnsignedByte): Use convertToUnsignedByte().
218 (readUnsignedShort): Use convertToUnsignedShort().
219 (readUTF): Use convertToUTF().
221 (convertToBoolean): Resurrected.
222 (convertToByte): Ditto.
223 (convertToChar): Ditto.
224 (convertToInt): Ditto.
225 (convertToLong): Ditto.
226 (convertToShort): Ditto.
227 (convertToUnsignedByte): Ditto.
228 (convertToUnsignedShort): Ditto.
229 (convertToUTF): Ditto.
231 2001-02-17 Mark Wielaard <mark@klomp.org>
235 2001-02-17 Mark Wielaard <mark@klomp.org>
237 * java/io/DataInputStream.java: update copyright notice
238 * java/io/PrintWriter.java: idem
239 * java/io/Reader.java: idem
240 * java/io/StreamTokenizer.java: idem
241 * java/io/StringReader.java: idem
242 * java/lang/reflect/ReflectPermission.java: idem
244 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
246 * java/util/TreeSet.java (clone): Made subclass safe, use
247 super.clone(), not new.
248 * java/util/TreeMap.java (clone): Likewise.
250 * java/util/TreeMap.java (nil): Made non-final.
251 (clone): Create new nil node for copy.
253 * java/util/HashSet.java (clone): Made subclass safe, use
254 super.clone(), not new.
256 2001-02-14 Andrew Haley <aph@redhat.com>
258 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
261 2001-02-15 Anthony Green <green@redhat.com>
263 * defineclass.cc: Don't include alloca.h.
264 (prepare_pool_entry): Convert alloca to __builtin_alloca.
265 * interpret.cc (run_normal): Ditto.
267 * java/lang/natDouble.cc (parseDouble): Ditto.
269 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
271 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
273 * java/util/Collections.java (ReverseComparator): New static class.
274 (reverseOrder): Return static instance of ReverseComparator.
276 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
277 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
278 Rectangle.clone(), not Object.clone().
280 * java/util/HashSet.java (clone): Remove try/catch.
282 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
283 * java/util/Collection.java: Likewise.
284 * java/util/Comparator.java: Likewise.
285 * java/util/Dictionary.java: Likewise.
286 * java/util/Iterator.java: Likewise.
287 * java/util/ListIterator.java: Likewise.
288 * java/util/Map.java: Likewise.
289 * java/util/Set.java: Likewise.
291 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
293 * java/util/TreeMap.java: New file.
294 * java/util/TreeSet.java: New file.
295 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
296 * Makefile.in: Rebuilt.
297 * java/util/HashSet.java (clone): Use constructor instead of calling
299 * java/util/SortedSet.java: Sync with classpath.
300 * java/util/HashMap.java (hash): Use if statement instead of ternary,
303 * java/lang/natClass.cc (getSignature): Don't try to dereference
304 param_types if it is null. Instead, take this to mean "no parameters".
305 * java/lang/TreeMap.java (TreeIterator.next): Throw
306 NoSuchElementException in preference to ConcurrentModificationException.
307 (TreeIterator.remove): Throw IllegalStateException in preference to
308 ConcurrentModificationException.
309 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
310 throw a NoSuchElementException.
311 (SubMap.lastKey): Likewise.
313 2001-02-13 Tom Tromey <tromey@redhat.com>
315 * java/io/PipedReader.java (ready): Throw IOException if pipe
317 * java/io/FilterReader.java (close): Don't clear `in'.
318 * java/io/CharArrayReader.java (mark): Throw IOException if stream
320 (read, ready, reset, skip): Added exception message.
321 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
322 Perform checkStatus check inside synchronized block.
324 2001-02-13 Tom Tromey <tromey@redhat.com>
326 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
328 2001-02-13 Tom Tromey <tromey@redhat.com>
330 Fix for PR libgcj/1351:
331 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
333 Include Thread.h and InterruptedIOException.h.
335 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
337 * java/io/BlockDataException.java: Removed.
338 * java/io/ObjectInputStream.java (readObject): Throw
339 StreamCorruptedException, not BlockDataException.
340 * Makefile.am: Remove BlockDataException.
341 * Makefile.in: Rebuild.
343 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
344 Tom Tromey <tromey@redhat.com>
346 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
349 2001-02-09 Tom Tromey <tromey@redhat.com>
351 * java/util/Timer.java: New version from Classpath.
353 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
355 * java/lang/Double.java (doubleToRawLongBits): Now native.
356 * java/lang/Float.java (floatToRawIntBits): Likewise.
357 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
358 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
360 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
362 * java/io/File.java (java.net): Imported.
363 (getAbsoluteFile): Added.
364 (getCanonicalPath): Likewise.
367 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
369 * java/lang/Byte.java: Remove redundant instanceof and null checks.
370 * java/lang/Integer.java: Likewise.
371 * java/lang/Long.java: Likewise.
372 * java/lang/Short.java: Likewise.
373 * java/lang/Double.java: Likewise.
374 (doubleToRawLongBits): New method.
375 * java/lang/Float.java: As above.
376 (floatToRawIntBits): New method.
378 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
379 IOException if stream closed.
381 2001-02-08 Tom Tromey <tromey@redhat.com>
383 * java/lang/Float.java (parseFloat): New method.
385 2001-02-08 Tom Tromey <tromey@redhat.com>
387 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
388 * java/io/InputStreamReader.java (ready, read): Throw IOException
389 if stream has been closed.
391 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
393 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
394 Change sources.redhat.com and sourceware.cygnus.com references to
397 2001-02-07 Tom Tromey <tromey@redhat.com>
399 Fix for PR libgcj/1906:
400 * java/text/MessageFormat.java (setLocale): Use named class
403 (format(Object,StringBuffer,FieldPosition)): Special case if
404 argument is an Object[].
406 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
408 * java/util/Arrays.java: Removed "cmp" methods.
409 (qsort): Don't use "cmp".
412 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
414 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
415 sort. Fix for PR java/1895.
417 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
419 * configure.host: Use sjlj-exceptions for Alpha.
421 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
423 * libgcj.spec.in: Don't force static libgcc into the executable.
424 * configure.in (FORCELIBGCCSPEC): Removed.
425 * configure: Rebuilt.
427 2001-01-31 Tom Tromey <tromey@redhat.com>
429 * Makefile.in: Rebuilt.
430 * Makefile.am (LTCXXCOMPILE): New macro.
432 2001-01-26 Andrew Haley <aph@redhat.com>
434 (INIT_FPE): Use a direct system call to set the handler.
436 2001-01-27 Richard Henderson <rth@redhat.com>
438 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
440 2001-01-27 Tom Tromey <tromey@redhat.com>
442 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
443 native interface structure.
445 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
447 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
449 (read (byte[], int, int)): Only call readNextBlock() if the block
450 buffer would actually be overrun. Increment blockDataPosition.
451 (callReadMethod): Propagate exceptions from invocation target.
452 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
453 exceptions from invocation target.
455 2001-01-26 Tom Tromey <tromey@redhat.com>
457 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
458 to internal representation.
459 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
460 _Jv_FindClassFromSignature.
462 2001-01-26 Warren Levy <warrenl@redhat.com>
464 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
465 and timezone if they are available on the system.
467 2001-01-24 Tom Tromey <tromey@redhat.com>
469 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
471 2001-01-24 Tom Tromey <tromey@redhat.com>
473 * Makefile.in: Rebuilt.
474 * Makefile.am (c_source_files): Added sf_fabs.c.
475 * java/lang/sf_fabs.c: New file.
477 2001-01-19 Warren Levy <warrenl@redhat.com>
479 * java/text/SimpleDateFormat.java (format): Compute hour for cases
480 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
481 correctly. Adjust properly from 0-23 clock hour.
483 2001-01-17 Mark Wielaard <mark@klomp.org>
485 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
487 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
489 * java/lang/Class.h (isInterface): Move implementation from
490 natClass.cc. Declare inline.
491 (Class): Add default constructor.
492 * java/lang/Object.h: Update comments.
493 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
494 initialize superclass, saving a call if super is already initialized.
496 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
498 * prims.cc (init_prim_class): Deleted.
499 (DECLARE_PRIM_TYPE): Rewritten.
500 * java/lang/Class.h (stdio.h): Include removed.
501 (stddef.h): Included.
502 (java/lang/reflect/Modifier.h): Likewise.
503 (Class): Contructor now takes arguments, initializes fields.
504 (initializePrim): Prototype deleted.
505 * java/lang/natClass.cc (initializePrim): Deleted.
507 2001-01-16 Warren Levy <warrenl@redhat.com>
509 * java/math/BigInteger.java: Update Copyright year.
511 2001-01-16 Hans Boehm <hans_boehm@hp.com>
513 * java/math/BigInteger.java (setShiftRight): Only do negative shift
516 2001-01-14 Mark Wielaard <mark@klomp.org>
517 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
518 (decode): Merge comments with Classpath, don't throw Exception
520 2001-01-12 Tom Tromey <tromey@redhat.com>
522 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
526 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
527 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
528 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
529 * gnu/awt/gtk/GtkLabelPeer.java: New file.
530 * gnu/awt/gtk/GtkButtonPeer.java: New file.
532 * java/lang/natSystem.cc: Include locale.h if it exists.
533 * configure: Rebuilt.
534 * configure.in: Check for locale.h.
536 2001-01-11 Tom Tromey <tromey@redhat.com>
538 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
539 (Cursor(int), getPredefinedCursor): Throw exception if argument
542 2001-01-03 Tom Tromey <tromey@redhat.com>
544 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
545 (getLocationOnScreen): Wrote.
547 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
549 * Makefile.am: Re-enable dependencies.
550 * Makefile.in: Rebuilt.
552 2001-01-10 Warren Levy <warrenl@redhat.com>
554 * java/math/BigDecimal.java (divide): Fixed comment.
556 2001-01-10 Warren Levy <warrenl@redhat.com>
558 Fix for PR libgcj/1596:
559 * java/math/BigDecimal.java (divide): Check newScale for validity.
560 Ensure that BigInteger.pow() is called with a non-negative value.
561 (setScale (int)): New public method.
562 (setScale (int,int)): New public method.
564 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
566 Fix for PR libgcj/1338:
567 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
568 commentChar. Fixed typos in comments.
570 2001-01-08 Warren Levy <warrenl@redhat.com>
572 Fix for PR libgcj/1411:
573 * Makefile.am: Removed java/util/natTimeZone.cc.
574 * Makefile.in: Rebuilt.
575 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
576 missing localized timezone names.
577 * java/lang/System.java (getDefaultTimeZoneId): New private method.
578 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
579 (init_properties): Set user.timezone property.
580 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
581 default timezone names; removed non-standard ones. Use standard
583 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
585 * java/util/TimeZone.java: Add standard ID names per JCL; removed
587 (getDefaultTimeZoneId): Removed.
589 * java/util/natTimeZone.cc: Removed.
591 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
593 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
594 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
595 (_Jv_GetArrayClass): New inline function.
596 (arrayclass): New field.
597 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
598 _Jv_GetArrayElementFromElementType.
599 (_Jv_NewPrimArray): Ditto.
600 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
601 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
602 Set Modifier::ABSTRACT.
603 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
604 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
605 Now synchronized. Array classes are now referenced from
606 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
607 Set array classes' accessibility flags correctly. Optimize so that
608 all array classes share the same IDT.
609 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
610 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
611 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
612 in superclasses from overwriting classes own fields.
613 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
614 Modifier::isAbstract().
615 (null_idt): New static field.
616 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
618 (_Jv_IndexOf): Made inline.
619 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
621 2001-01-08 Tom Tromey <tromey@redhat.com>
623 Fix for PR java/1586:
624 * Makefile.in: Rebuilt.
625 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
627 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
629 * Makefile.am: Use the new "-M -MF" option for generating dependencies
630 from the c++ compiler.
631 * Makefile.in: Rebuilt.
633 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
635 All files with updated copyright.
636 * prims.cc (class _Jv_PrimClass): Removed.
637 (init_prim_class): New function.
638 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
639 `_Jv_PrimClass' in primitive type declarations. Assign to the
640 value returned by `init_prim_class.'
641 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
642 primitive type declarations.
643 (JvPrimClass): Cast to `jclass' removed.
644 * java/lang/Class.h (Class): New constructor.
645 (Class): New copy constructor.
646 (initializePrim): New prototype.
647 (_Jv_PrimClass): Field removed.
648 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
649 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
650 (class java::lang::Object): `finalize' moved up front.
651 * java/lang/natClass.cc
652 (isAssignableFrom): Turned outline.
653 (isInstance): Likewise.
654 (isInterface): Likewise, fixed indentation.
655 (initializePrim): New function.
657 2001-01-07 Anthony Green <green@redhat.com>
659 * Makefile.am (texinfo): Add texinfo target for generating texinfo
661 * Makefile.in: Rebuilt.
663 * scripts/TexinfoDoclet.java: New file.
665 * doc/java-applet.texi, doc/java-lang-reflect.texi,
666 doc/java-awt-color.texi, doc/java-lang.texi,
667 doc/java-awt-datatransfer.texi, doc/java-math.texi,
668 doc/java-awt-event.texi, doc/java-net.texi,
669 doc/java-awt-geom.texi, doc/java-security-spec.texi,
670 doc/java-awt-image.texi, doc/java-security.texi,
671 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
672 doc/java-text.texi, doc/java-beans-beancontext.texi,
673 doc/java-util-jar.texi, doc/java-beans.texi,
674 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
675 doc/java-lang-ref.texi: New files.
677 2001-01-07 Anthony Green <green@redhat.com>
679 * java/net/URLConnection.java (setDoOutput): URLConnection's may
680 be used for both input and output, so don't clear doInput.
682 * java/lang/StringBuffer.java: Fix comments.
684 2001-01-06 Anthony Green <green@redhat.com>
686 * java/beans/PropertyDescriptor.java: Fix comment.
687 * java/io/PushbackReader.java: Fix comment.
688 * java/io/ObjectStreamClass.java: Fix comment.
689 * java/io/DataInputStream.java: Fix comment.
690 * java/io/PipedInputStream.java: Fix comments.
691 * java/io/PipedReader.java: Fix comments.
692 * java/sql/DatabaseMetaData.java: Fix comments.
694 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
696 * java/io/PipedReader: Synchronize on "lock" instead of this.
698 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
700 * java/lang/Thread.java: Update comment.
702 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
703 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
704 * java/io/PipedReader: New implementation based on new
706 * java/io/PipedWriter: Updated to match new PipedReader.
708 2001-01-03 Tom Tromey <tromey@redhat.com>
710 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
711 (getViewportSize): Insets include scrollbar size.
712 (doLayout): Finished.
713 (getScrollPosition): Wrote.
714 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
716 2001-01-02 Tom Tromey <tromey@redhat.com>
718 * java/awt/ScrollPane.java: Wrote.
719 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
722 * java/awt/Panel.java (Panel()): Fixed.
724 * java/awt/Component.java (isShowing): Return false if no peer
725 exists, and true if component is visible and no parent exists.
726 (getLocationOnScreen): Wrote.
727 (getPreferredSize): Removed FIXME comment.
728 (getMinimumSize): Likewise.
729 (getAlignmentX, getAlignmentY): Wrote.
731 (requestFocus): Wrote.
732 (transferFocus): Wrote.
733 (findNextFocusComponent): New method.
736 (enableEvents): Call setEventMask on the peer.
738 * java/awt/Container.java (list): Use super.list() to print self.
739 (findNextFocusComponent): New method.
740 (setLayout): Call invalidate.
741 (findComponentAt): Wrote.
743 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
745 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
746 the correct versions of various linuxthreads functions get linked.
747 * Makefile.in: Rebuilt.
748 * java/lang/natThread.cc (finalize_native): New static function. Call
749 _Jv_ThreadDestroyData.
750 (initialize_native): Register finalizer for "data".
751 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
752 (_Jv_ThreadDestroyData): New prototype.
753 * include/win32-threads.h: Ditto.
754 * include/no-threads.h: Ditto.
755 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
756 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
757 move mutex and condition variable destroy code from:
758 (really_start): ...here.
759 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
760 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
761 (_Jv_ThreadDestroyData): Implemented.
762 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
763 (_Jv_AllocArray): Ditto.
765 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
767 * java/sql/DriverManager.java (getConnection): Don't set user/password
770 2000-12-27 Warren Levy <warrenl@redhat.com>
772 Fix for PR libgcj/1358:
773 * java/lang/System.java: Update Copyright date properly.
774 * java/util/Calendar.java: Fix typo in comment.
775 (set): Set 24-hour clock hour instead of 12-hour clock hour.
776 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
777 initialize times. Spec says to set H:M:S values to zero only if
779 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
780 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
781 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
782 timezones and GMT offsets, being careful to account for units of
783 milliseconds vs. seconds.
785 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
787 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
788 not be assigned to Object.
790 Fix for PR libgcj/1516:
791 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
793 (can_widen): Declared inline. Remove redundant checks for void
794 arguments and char->short conversion. Add special case for boolean
796 (ffi_type): Declared inline.
797 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
799 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
801 * java/sql/SQLWarning.java: Fixed typo in comment.
803 2000-12-26 Tom Tromey <tromey@redhat.com>
805 * java/awt/MenuItem.java (paramString): Now protected.
807 * java/awt/MenuShortcut.java: Implements Serializable.
809 * java/awt/MenuBar.java: Rewrote from scratch.
811 * java/awt/MenuComponent.java (removeNotify): Wrote.
812 Implements Serializable.
814 * java/awt/GridBagConstraints.java (GridBagConstraints): New
817 * java/awt/CheckboxMenuItem.java: Wrote.
819 2000-12-25 Tom Tromey <tromey@redhat.com>
821 * java/awt/MenuContainer.java: Fixed typo.
823 * Makefile.in: Rebuilt.
824 * Makefile.am (awt_java_source_files): Added SystemColor.java.
825 * java/awt/SystemColor.java: New file.
827 * java/awt/Color.java (rgba): Now package-private.
829 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
831 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
834 * java/awt/MenuItem.java (addNotify): New method.
835 (MenuItem(String,MenuShortcut)): New constructor.
836 (setLabel): Notify peer of change.
837 (setEnabled): Likewise.
839 * java/awt/GridLayout.java (toString): New method.
841 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
842 (FlowLayout): Check for LEADING and TRAILING.
843 (setAlignment): Likewise.
844 (layoutContainer): Handle component orientation.
846 * java/awt/Component.java (orientatin): New field.
847 (setComponentOrientation): Wrote.
848 (getComponentOrientation): Wrote.
850 * java/awt/Event.java (Event): Implements Serializable.
851 (consumed): New field for serialization.
852 * java/awt/Dimension.java (Dimension): Implements Serializable.
853 * java/awt/Cursor.java (Cursor): Implements Serializable.
854 * java/awt/Container.java (Container): No longer abstract.
856 * java/awt/Choice.java: Wrote.
857 * java/awt/Checkbox.java: Wrote.
858 * java/awt/ItemSelectable.java: Documented.
859 * java/awt/CheckboxGroup.java: Wrote.
861 * java/awt/CardLayout.java (layoutContainer): Directly use fields
865 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
867 * java/io/FileDescriptor.java: Initialize fd to -1.
868 Remove default constructor.
870 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
872 * java/lang/mprec.h: Change C9X reference to refer to C99.
874 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
876 * java/lang/Throwable.java (trace_enabled): New static field.
877 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
878 trace_enabled not set.
879 * prims.cc (main_init): Turn off trace_enabled while creating
880 default exception objects.
882 2000-12-21 Tom Tromey <tromey@redhat.com>
884 * java/beans/PropertyChangeListener.java: Extends EventListener.
885 * java/beans/VetoableChangeListener.java: Extends EventListener.
887 * java/util/zip/Deflater.java (update, init): Now private.
889 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
891 * java/util/BasicMapEntry.java: Re-added.
892 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
893 (putAll): Test for BasicMapEntry.
894 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
895 (putAll): Test for BasicMapEntry.
896 Change references from `HashMap.Entry' to `Entry' in various places.
897 * Makefile.am: Add BasicMapEntry.java.
898 * Makefile.in: Rebuilt.
900 2000-12-18 Warren Levy <warrenl@redhat.com>
902 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
903 need to set timezone to a valid non-null value. Partial fix for
906 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
908 * java/awt/Window.java (addNotify): Remove peer casting hack now that
910 * java/awt/Button.java (addNotify): Likewise.
911 * java/awt/Label.java (addNotify): Likewise.
912 * java/awt/Panel.java (addNotify): Likewise.
913 * java/awt/Scrollbar.java (addNotify): Likewise.
914 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
915 Remove redundant null checks.
917 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
919 * COPYING: Update to current
920 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
921 to 19yy as example year in copyright notice).
923 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
925 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
926 end-of-stream if avail_in is 0.
928 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
930 * java/util/ArrayList.java (data): Declare transient.
931 (serialPersistantFields): Removed.
932 (readObject): Use defaultReadObject(), not readFields().
933 (writeObject): Use defaultWriteObject(), not writeFields().
935 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
937 * java/util/Hashtable.java (put): Remove `last' variable.
938 Link new entry to head of list.
939 * java/util/HashMap.java (put): Ditto.
941 2000-12-15 Tom Tromey <tromey@redhat.com>
943 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
944 loader to Class.forName.
946 2000-12-14 Tom Tromey <tromey@redhat.com>
948 * java/util/ResourceBundle.java
949 (getBundle(String,Locale,ClassLoader)): New method.
950 (trySomeGetBundle): Added `loader' argument.
951 (partialGetBundle): Likewise.
953 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
954 maximumFractionDigits, maximumIntegerDigits,
955 minimumFractionDigits, minimumIntegerDigits): Now
958 * java/lang/Thread.java (checkAccess): Now final.
960 * java/lang/RuntimePermission.java: Class now final.
962 * java/io/StringWriter.java (StringWriter(int)): Now public.
964 * java/io/SerializablePermission.java (legal_names): Now private.
966 * java/lang/Character.java: Updated UnicodeBlock constants.
967 * scripts/blocks.pl: Special case private use and surrogate
970 2000-12-12 Tom Tromey <tromey@redhat.com>
972 * Makefile.in: Rebuilt.
973 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
975 (GCJCOMPILE): Use it.
978 2000-12-11 Tom Tromey <tromey@redhat.com>
980 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
981 New static final fields.
983 * scripts/classes.pl (scan): Skip lines with leading `*'.
984 Fix for PR libgcj/378.
986 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
988 * configure.in: Remove check for -fuse-divide-subroutine.
989 * configure: Rebuilt.
991 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
993 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
995 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
997 * Makefile.am: Add HashSet.java and java/lang/ref classes.
998 Remove BasicMapEntry.java and Bucket.java.
999 * Makefile.in: Rebuilt.
1000 * java/util/HashMap.java: Rewritten.
1001 * java/util/HashSet.java: Imported from classpath.
1002 * java/util/WeakHashMap.java: Imported from classpath.
1003 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1004 * java/util/Bucket.java: Deleted.
1005 * java/util/BasicMapEntry.java: Deleted.
1006 * java/util/Collections.java (search): Use a for-loop, not iterator
1008 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1009 of elements in source.
1010 (max): Use a for-loop.
1012 (reverse): Keep track of positions instead of using Iterator's
1013 nextIndex() and previousIndex().
1014 (shuffle(List)): Initialize defaultRandom if required using
1015 double-check thread safety idiom. Call two-argument shuffle method
1016 using defaultRandom.
1017 (defaultRandom): New field.
1018 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1019 using previousIndex() and nextIndex().
1020 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1021 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1022 * java/util/AbstractMap.java (toString): Use StringBuffer.
1023 * java/lang/ref/PhantomReference.java: Imported from classpath.
1024 * java/lang/ref/SoftReference.java: Ditto.
1025 * java/lang/ref/Reference.java: Ditto.
1026 * java/lang/ref/WeakReference.java: Ditto.
1027 * java/lang/ref/ReferenceQueue.java: Ditto.
1029 2000-12-10 Richard Henderson <rth@redhat.com>
1031 * configure.host: Recognize alpha*-*, not alphaev6-*.
1033 2000-12-09 Anthony Green <green@redhat.com>
1035 * configure.host: Enable interpreter for Alpha.
1037 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1039 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1040 (ZIP): Points at fastjar instead of zip.
1041 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1042 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1043 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1044 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1045 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1046 ($(x_java_source_files:.java=.class):): Likewise.
1047 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1049 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1050 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1051 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1052 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1053 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1054 gnu/gcj/runtime/VMClassLoader.h:,
1055 java/io/ObjectInputStream$$GetField.h:,
1056 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1057 (Makefile.in): Rebuilt.
1059 2000-12-08 Tom Tromey <tromey@redhat.com>
1062 * configure: Rebuilt.
1063 * configure.in: Use echo, not `:', to create .d files.
1065 2000-12-08 Warren Levy <warrenl@redhat.com>
1067 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1068 NullPointerException so proper check of offset can be done.
1070 2000-12-08 Warren Levy <warrenl@redhat.com>
1072 * java/io/FileInputStream.java (close): Check if the fd is valid.
1073 * java/io/RandomAccessFile.java (close): Ditto.
1074 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1075 * java/net/PlainSocketImpl.java (close): Ditto.
1077 2000-12-06 Tom Tromey <tromey@redhat.com>
1079 * java/awt/GridBagConstraints.java: Filled in values for static
1082 * java/util/BitSet.java: Updated copyright notice.
1084 * Makefile.in: Rebuilt.
1085 * Makefile.am (awt_java_source_files): Added new file.
1086 * java/awt/GridBagConstraints.java: New file.
1088 2000-12-05 Tom Tromey <tromey@redhat.com>
1090 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1091 Now package-private, not protected.
1092 * java/text/DateFormatSymbols.java (equals): Now private.
1093 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1094 * java/util/BitSet.java: Class no longer final.
1096 2000-12-04 Warren Levy <warrenl@redhat.com>
1098 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1099 out code dependent on compiler and library changes.
1101 2000-12-04 Warren Levy <warrenl@redhat.com>
1103 * java/io/FilePermission.java: Made class final per spec.
1104 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1105 method name to match spec (fixed typo).
1106 * java/util/LinkedList.java: Implements List.
1108 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1110 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1111 Edgar Villanueva <edgarvil@home.com>.
1113 2000-12-03 Tom Tromey <tromey@redhat.com>
1115 * java/awt/geom/Point2D.java: Added protected constructor.
1116 (equals): New method.
1117 (Float.setLocation(float,float)): New method.
1118 * java/awt/geom/Dimension2D.java: Added protected constructor.
1119 * java/awt/geom/AffineTransform.java: Made all constants public.
1120 (concatenate): Fixed typo in name.
1121 * java/awt/event/WindowAdapter.java: Class now abstract.
1122 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1123 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1126 * java/awt/AWTError.java: Extend Error, not
1127 IllegalStateException.
1129 * Makefile.in: Rebuilt.
1130 * Makefile.am (awt_java_source_files): Added new file.
1131 * java/awt/geom/RoundRectangle2D.java: New file.
1133 * Makefile.in: Rebuilt.
1134 * Makefile.am (awt_java_source_files): Added new file.
1135 * java/awt/FlowLayout.java: New file.
1137 * Makefile.in: Rebuilt.
1138 * Makefile.am (awt_java_source_files): Added new file.
1139 * java/awt/GridLayout.java: New file.
1141 2000-12-02 Tom Tromey <tromey@redhat.com>
1143 * Makefile.in: Rebuilt.
1144 * Makefile.am (awt_java_source_files): Added new files.
1145 * java/awt/CardLayout.java: New file.
1146 * java/awt/AWTPermission.java: New file.
1148 2000-12-01 Tom Tromey <tromey@redhat.com>
1150 * java/util/Vector.java (insertElementAt): Unconditionally
1151 increment elementCount.
1152 (removeRange): Clear unused slots in vector.
1154 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1156 * java/lang/natMath.cc: Declare fabsf() function.
1157 * java/lang/mprec.h: Don't include math.h.
1158 * java/lang/dtoa.c: Include string.h.
1159 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1162 From Adam Welc <welc@cs.purdue.edu>:
1163 * java/util/LinkedList.java (removeFirst): Update `first' field.
1164 Handle the last == first case.
1165 (removeLast): Update `last' field. Handle the last == first case.
1167 2000-12-01 Warren Levy <warrenl@cygnus.com>
1169 * Makefile.am: Added entries for new java.sql modules.
1170 * Makefile.in: Rebuilt.
1172 2000-12-01 Warren Levy <warrenl@cygnus.com>
1174 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1175 that aren't quite 1.2 compatible yet.
1177 2000-11-30 Warren Levy <warrenl@cygnus.com>
1179 * java/sql/Array.java: New file from classpath.
1180 * java/sql/BatchUpdateException.java: Ditto.
1181 * java/sql/Blob.java: Ditto.
1182 * java/sql/Clob.java: Ditto.
1183 * java/sql/Ref.java: Ditto.
1184 * java/sql/SQLData.java: Ditto.
1185 * java/sql/SQLInput.java: Ditto.
1186 * java/sql/SQLOutput.java: Ditto.
1187 * java/sql/Struct.java: Ditto.
1188 * java/sql/CallableStatement.java: Merged file from claspath.
1189 * java/sql/Connection.java: Ditto.
1190 * java/sql/DataTruncation.java: Ditto.
1191 * java/sql/DatabaseMetaData.java: Ditto.
1192 * java/sql/DriverManager.java: Ditto.
1193 * java/sql/PreparedStatement.java: Ditto.
1194 * java/sql/ResultSet.java: Ditto.
1195 * java/sql/ResultSetMetaData.java: Ditto.
1196 * java/sql/SQLException.java: Ditto.
1197 * java/sql/SQLWarning.java: Ditto.
1198 * java/sql/Statement.java: Ditto.
1199 * java/sql/Types.java: Ditto.
1201 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1203 * java/lang/natSystem.cc (init_properties): Set user.language and
1205 * configure.in: Check for setlocale.
1206 * configure: Rebuilt.
1207 * include/config.h.in: Rebuilt.
1209 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1210 the infate() call didn't deliver any output. Throw a ZipException if
1211 the needsDictionary() call returns true.
1212 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1213 * java/io/InputStreamReader: Use the default buffer size for the
1214 contained BufferedInputStream.
1216 2000-11-28 Warren Levy <warrenl@cygnus.com>
1218 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1219 more time zone entries.
1220 * java/text/SimpleDateFormat.java (format): Added case for
1223 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1225 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1226 directly rather than read() in all cases. Make primitive read
1227 implementations more efficient, as defined in JDK online docs.
1228 (skipBytes): Behave like the JDK's implementation.
1229 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1230 closed stream with checkStatus() whenever an IOException can be
1232 (checkStatus): New private method.
1234 2000-11-27 Warren Levy <warrenl@cygnus.com>
1236 * Makefile.am: Added natTimeZone.cc.
1237 * Makefile.in: Rebuilt.
1238 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1239 * java/text/DateFormatSymbols.java (ampms): Made package private.
1240 (eras): Made package private.
1241 (months): Made package private.
1242 (shortMonths): Made package private.
1243 (shortWeekdays): Made package private.
1244 (weekdays): Made package private.
1245 (formatPrefixes): New private field.
1246 (localPatternCharsDefault): Made private.
1247 (dateFormats): New package private field.
1248 (timeFormats): New package private field.
1249 (formatsForKey): New private method.
1250 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1251 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1252 * java/text/SimpleDateFormat.java: Merged with Classpath.
1253 * java/util/TimeZone.java: Merged with Classpath.
1254 * java/util/natTimeZone.cc: New file.
1256 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1258 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1259 (addElement): Don't increment elementCount twice. Doh.
1260 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1261 array needs to be expanded.
1263 * java/util/Collections.java (UnmodifiableCollection): Implement
1265 (UnmodifiableList): Throw UnsupportedOperationException from
1266 modification methods. Set `l' from the one-parameter constructor.
1267 (UnmodifiableMap): Implement toString().
1268 (SynchronizedCollection): Ditto.
1269 (SynchronizedList): Set `l' from the one-parameter constructor.
1270 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1271 (SynchronizedMap): Implement toString().
1273 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1275 * javax/naming/NameParser.java,
1276 javax/naming/directory/AttributeInUseException.java,
1277 javax/naming/directory/AttributeModificationException.java,
1278 javax/naming/directory/InvalidAttributeIdentifierException.java,
1279 javax/naming/directory/InvalidAttributesException.java,
1280 javax/naming/directory/InvalidAttributeValueException.java,
1281 javax/naming/directory/InvalidSearchControlsException.java,
1282 javax/naming/directory/InvalidSearchFilterException.java,
1283 javax/naming/directory/NoSuchAttributeException.java,
1284 javax/naming/directory/SchemaViolationException.java: New files.
1286 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1288 * javax/naming/InitialContext.java (rebind): Implement.
1289 (unbind): Implement.
1290 (rename): Implement.
1292 (listBindings): Implement.
1293 (destroySubcontext): Implement.
1294 (createSubcontext): Implement.
1295 (lookupLink): Implement.
1296 (getNameParser): Implement.
1297 (composeName): Implement.
1298 (addToEnvironment): Implement.
1300 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1302 * javax/naming/AuthenticationException.java,
1303 javax/naming/AuthenticationNotSupportedException.java,
1304 javax/naming/CannotProceedException.java,
1305 javax/naming/CommunicationException.java,
1306 javax/naming/ConfigurationException.java,
1307 javax/naming/ContextNotEmptyException.java,
1308 javax/naming/InsufficientResourcesException.java,
1309 javax/naming/InterruptedNamingException.java,
1310 javax/naming/InvalidNameException.java,
1311 javax/naming/LimitExceededException.java,
1312 javax/naming/LinkException.java,
1313 javax/naming/LinkLoopException.java,
1314 javax/naming/MalformedLinkException.java,
1315 javax/naming/NameAlreadyBoundException.java,
1316 javax/naming/NameNotFoundException.java,
1317 javax/naming/NamingSecurityException.java,
1318 javax/naming/NoPermissionException.java,
1319 javax/naming/NotContextException.java,
1320 javax/naming/PartialResultException.java,
1321 javax/naming/ReferralException.java,
1322 javax/naming/ServiceUnavailableException.java,
1323 javax/naming/SizeLimitExceededException.java,
1324 javax/naming/TimeLimitExceededException.java: New files.
1326 * javax/naming/Name.java (clone): New method.
1327 (compareTo): New method.
1328 (isEmpty): New method.
1329 (getAll): New method.
1330 (getPrefix): New method.
1331 (getSuffix): New method.
1332 (startsWith): New method.
1333 (endsWith): New method.
1334 (addAll): New method.
1335 (addAll): New method.
1338 (remove): New method.
1340 * javax/naming/Context.java (lookup): New method.
1341 (rebind): New method.
1342 (unbind): New method.
1343 (rename): New method.
1345 (listBindings): New method.
1346 (destroySubcontext): New method.
1347 (createSubcontext): New method.
1348 (lookupLink): New method.
1349 (getNameParser): New method.
1350 (composeName): New method.
1351 (addToEnvironment): New method.
1352 (removeFromEnvironment): New method.
1353 (getEnvironment): New method.
1354 (close): New method.
1355 (getNameInNamespace): New method.
1357 * javax/naming/InitialContext.java (lookup): New method.
1358 (rebind): New method.
1359 (unbind): New method.
1360 (rename): New method.
1362 (listBindings): New method.
1363 (destroySubcontext): New method.
1364 (createSubcontext): New method.
1365 (lookupLink): New method.
1366 (getNameParser): New method.
1367 (composeName): New method.
1368 (addToEnvironment): New method.
1369 (removeFromEnvironment): New method.
1370 (getEnvironment): New method.
1371 (close): New method.
1372 (getNameInNamespace): New method.
1374 2000-11-26 Tom Tromey <tromey@cygnus.com>
1376 * Makefile.in: Rebuilt.
1377 * Makefile.am (core_java_source_files): Added
1378 RuntimePermission.java.
1379 * java/lang/RuntimePermission.java: Imported from Classpath.
1380 * java/lang/Thread.java (getContextClassLoader): Now
1381 synchronized. Added security code.
1382 (setContextClassLoader): Likewise.
1384 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1385 length field of array.
1386 (_Jv_NewPrimArray): Likewise.
1387 * gcj/array.h (__JArray): `length' field now const. Added
1390 2000-11-26 Anthony Green <green@redhat.com>
1392 * javax/naming/spi/NamingManager.java,
1393 javax/naming/spi/ObjectFactory.java,
1394 javax/naming/spi/InitialContextFactory.java,
1395 javax/naming/spi/InitialContextFactoryBuilder.java,
1396 javax/naming/RefAddr.java, javax/naming/Reference.java,
1397 javax/naming/NamingException.java, javax/naming/Context.java,
1398 javax/naming/Referenceable.java,
1399 javax/naming/directory/InitialDirContext.java,
1400 javax/naming/directory/DirContext.java,
1401 javax/naming/directory/Attributes.java,
1402 javax/naming/directory/Attribute.java,
1403 javax/naming/StringRefAddr.java,
1404 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1405 javax/naming/InitialContext.java,
1406 javax/naming/NoInitialContextException.java: New files.
1408 2000-11-25 Anthony Green <green@redhat.com>
1410 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1411 (_Jv_NewPrimArray): Likewise.
1412 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1413 (class JArray): Removed constructor.
1415 * java/lang/Thread.java (context_class_loader): New private data.
1416 (getContextClassLoader): New method.
1417 (setContextClassLoader): New method.
1418 (Thread): Initialize context_class_loader.
1420 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1421 (getResource): Rename to findResource.
1422 (findResource): New method. Used to be getResource.
1423 (getResourceAsStream): Deleted.
1424 (jarFileize): Extracted logic from URLClassLoader constructor into
1425 this new private method.
1426 (addURL): New protected method.
1427 (URLClassLoader): Call jarFileize. Use addElement instead of
1429 (findResources): New method.
1431 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1432 (getResource): Implement correct logic.
1433 (findResource): New method.
1434 (getResources): New method.
1435 (findClass): Create a ClassNotFoundException with the name of the
1436 class rather than nothing at all.
1437 (defineClass) Only throw ClassFormatError.
1439 * java/lang/Class.java (forName): New method.
1440 * java/lang/Class.h (forName): New method.
1441 * java/lang/natClass.cc (forName): New method.
1443 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1445 * java/lang/System.java (setProperties): Only call init_properties()
1446 if properties is null.
1447 (getProperties): Ditto.
1448 (getProperty): Ditto.
1449 (setProperty): Call init_properties if properties are null.
1450 (prop_init): Remove field.
1451 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1452 method. Check for null properties after synchronizing instead of
1453 prop_init flag. Set the properties field last for thread safety.
1455 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1456 test for gcj.dumpobjects property and enable object stream dumping
1458 (dumpElement): No longer native.
1459 (dumpElementln): Ditto.
1460 (setDump): Do not define.
1461 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1462 (dumpElementln): Removed.
1465 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1467 * configure: Rebuilt.
1468 * Makefile.in: Rebuilt.
1469 * Makefile.am (built_java_source_files): Add Configuration.java.
1470 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1471 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1472 Create `gnu' directory in the build tree.
1473 * gnu/classpath/Configuration.java.in: New file.
1475 2000-11-24 Tom Tromey <tromey@cygnus.com>
1477 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1479 (_Jv_NewPrimArray): Likewise.
1481 * gcj/array.h (__JArray): `length' field now const. Added
1483 (class JArray): Added constructor.
1485 2000-11-23 Mark Wielaard <mark@klomp.org>
1487 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1490 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1492 * java/util/Vector.java: Improve exception messages.
1493 (Vector): Check initialCapacity for IllegalArgumentException.
1494 (tromToSize): Don't check for elementCount == elementData.length
1496 (toArray): Don't try to set null marker if target array is the same
1497 length as the vector.
1499 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1501 * Makefile.in: Rebuilt.
1502 * Makefile.am (core_java_source_files): Added Collections.java.
1503 * java/util/List.java: Merged from classpath.
1504 * java/util/Vector.java: Ditto.
1505 * java/util/Collections.java: From classpath.
1506 * java/util/ArrayList.java (addAll(Collection)): Call
1507 addAll(int,Collection) instead of duplicating code.
1508 (indexOf): Clean up int initialization.
1509 (clear): Set cleared array entries to null, to allow garbage
1511 * java/util/List.java: Minor formatting fixes.
1512 * java/util/SimpleTimeZone.java: ditto.
1514 2000-11-18 Tom Tromey <tromey@cygnus.com>
1516 * Makefile.in: Rebuilt.
1517 * Makefile.am (core_java_source_files): Added new files.
1518 * java/lang/reflect/ReflectPermission.java: New class.
1519 * java/io/FileFilter.java: From Classpath
1520 * java/io/FilePermission.java: From Classpath.
1522 2000-11-17 Tom Tromey <tromey@cygnus.com>
1524 * java/lang/reflect/AccessibleObject.java (isAccessible,
1525 setAccessible): Now public.
1527 * java/lang/natString.cc: Include Locale.h.
1528 (toUpperCase): Added `locale' argument. Handle locale
1530 (toLowerCase): Added `locale' argument. Handle locale
1532 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1533 CAPITAL_I): New defines.
1534 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1537 (toUpperCase, toLowerCase): New methods. Variants which accept
1540 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1543 * java/util/PropertyPermission.java: Re-merged from Classpath.
1545 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1547 * java/text/StringCharacterIterator.java: Reindented.
1548 (setText): New method.
1550 2000-11-17 Mark Wielaard <mark@klomp.org>
1552 Merge with Classpath (changes by Bryce McKinlay)
1553 * java/util/jar/*.java: Reformat all to unofficial standard coding
1554 style. No changes of substance.
1556 2000-11-17 Mark Wielaard <mark@klomp.org>
1558 * java/util/zip/*.java: Javadoc updates.
1560 2000-11-17 Tom Tromey <tromey@cygnus.com>
1562 * java/text/CollationKey.java: Implement Comparable.
1563 (compareTo(Object)): New method.
1564 * java/text/Collator.java (compare(Object,Object)): New method.
1565 Implement Comparator.
1567 * java/util/zip/InflaterInputStream.java (available): New method.
1568 (close): New method.
1569 (read, available, skip, fill): Throw exception if stream closed.
1570 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1571 getNextEntry): Throw exception if closed.
1573 2000-11-16 Tom Tromey <tromey@cygnus.com>
1575 * java/io/PushbackReader.java: Merged with Classpath.
1576 * java/util/Arrays.java: Updated from Classpath.
1578 * scripts/blocks.pl: New file.
1579 * java/lang/Character.java (Subset): New class.
1580 (UnicodeBlock): New class.
1582 * java/lang/Math.java (toDegrees, toRadians): New methods.
1584 * java/lang/Float.java: Implement Comparable.
1585 (compareTo): New methods.
1586 * java/lang/Double.java: Implement Comparable.
1587 (compareTo): New methods.
1589 2000-11-16 Warren Levy <warrenl@cygnus.com>
1591 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1593 (listeners): Made transient.
1594 (source): Renamed from 'bean'.
1595 (children): New field for serialization.
1596 (propertyChangeSupportSerializedDataVersion): Ditto.
1597 (serialVersionUID): Ditto.
1598 (writeObject): New serialization method.
1599 (readObject): New serialization method.
1600 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1602 (listeners): Made transient.
1603 (source): Renamed from 'bean'.
1604 (children): New field for serialization.
1605 (vetoableChangeSupportSerializedDataVersion): Ditto.
1606 (serialVersionUID): Ditto.
1607 (writeObject): New serialization method.
1608 (readObject): New serialization method.
1609 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1610 to allow constructor to have a return type (i.e. the class that the
1611 constructor constructs).
1613 2000-11-14 Tom Tromey <tromey@cygnus.com>
1615 * Makefile.in: Rebuilt.
1616 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1619 2000-11-02 Warren Levy <warrenl@cygnus.com>
1621 * java/io/ObjectInputStream.java (readObject): Added code to
1622 conditionally dump out the serialized data.
1623 Handle ENDBLOCKDATA case a bit more gracefully since the current
1624 behavior doesn't seem to work as expected.
1625 (readStreamHeader): Added code for serialized data dumper.
1626 (readNextBlock): Ditto.
1627 (readFields): Ditto.
1628 (dump): New private static field for turning on/off dumper.
1629 (setDump): New native method.
1630 (dumpElement): New native method.
1631 (dumpElementln): New native method.
1632 * java/io/natObjectInputStream.cc (setDump): New method.
1633 (dumpElement): New method.
1634 (dumpElementln): New method.
1636 2000-11-02 Warren Levy <warrenl@cygnus.com>
1638 * java/net/InetAddress.java (addr): Renamed from 'address'.
1639 (address): New field to match Serialized Form doc.
1640 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1641 (family): New serialization field.
1642 (serialVersionUID): New field.
1643 (readObject): New method.
1644 (writeObject): New method.
1645 (getFamily): New native method.
1646 (InetAddress): Set family.
1647 * java/net/natInetAddress.cc (getFamily): New method.
1648 (addr): Renamed from 'address'.
1649 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1650 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1651 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1653 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1655 * java/util/AbstractList.java (SubList): Make it a top-level private
1657 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1659 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1660 * Makefile.in: Rebuilt.
1662 2000-11-02 Tom Tromey <tromey@cygnus.com>
1664 * Makefile.in: Rebuilt.
1665 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1668 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1670 * java/util/AbstractList.java (remove): Comment out modCount increment
1671 to work around compiler bug.
1674 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1676 * java/util/AbstractList.java: Throw messages with
1677 IndexOutOfBoundsExceptions.
1678 (listIterator()): Call listIterator(0).
1679 (size): New field. Initialize to size().
1680 (hasNext): Test position against size, not size().
1681 (remove): Increment knownMod by one instead of resetting it from
1684 (SubList.upMod): Removed.
1685 (SubList.set): Don't call upMod() or update knownMod.
1686 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1687 (SubList.remove): Ditto.
1688 (SubList.addAll): Don't call backingList.size(). Increment size from
1690 (SubList.iterator): New method. Call listIterator(0).
1691 (SubList.listIterator): New method. Restore code to return an anonymous
1692 listIterator implementation (with some changes).
1693 * java/util/AbstractSequentialList.java: Throw messages with
1694 IndexOutOfBoundsExceptions.
1695 (addAll): Add a specnote.
1696 * java/util/ArrayList.java (removeRange): Get the math right.
1697 (addAll): Increment modCount _before_ creating iterator.
1698 * java/util/LinkedList.java: Rewritten, mostly.
1700 2000-11-01 Tom Tromey <tromey@cygnus.com>
1702 * scripts/encodings.pl: Added `ASCII' alias.
1703 * Makefile.in: Rebuilt.
1704 * Makefile.am (convert_source_files): Added new files.
1705 * gnu/gcj/convert/Input_ASCII.java: New file.
1706 * gnu/gcj/convert/Output_ASCII.java: New file.
1707 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1708 out-of-range characters.
1709 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1710 (read): Swap bytes if required. Treat `count' as character count,
1712 (write): Likewise. Also, handle case where iconv fails on a given
1714 (init): Put encoding into exception.
1715 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1716 (static): Call iconv_init. Rebuilt alias list.
1717 (iconv_init): New private method.
1719 2000-11-01 Tom Tromey <tromey@cygnus.com>
1721 * Makefile.in: Rebuilt.
1722 * Makefile.am (install-exec-hook): Only make a single symlink, and
1723 remove the destination before making the link.
1724 * configure: Rebuilt.
1725 * configure.in: Call AC_PROG_LN_S.
1727 2000-10-31 Warren Levy <warrenl@cygnus.com>
1729 * jni.cc: Added include of java/lang/ThreadGroup.h.
1730 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1731 per change of 2000-10-05.
1733 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1735 * java/util/BitSet.java: Updated @specnote.
1737 * java/io/Reader.java: Merge docs from classpath.
1738 (skip): Synchronize on `lock'.
1739 * java/io/FileReader.java: Import correct implementation from
1741 * java/io/StringReader.java: Merge docs from classpath.
1742 (ready): Throw IOException if stream is closed.
1744 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1746 * java/util/AbstractCollection.java (addAll): Use size() instead of
1747 hasNext() in iterator loop.
1749 (contains): Ditto. Simplify loop.
1750 (containsAll): Ditto.
1755 (toString): Ditto. Use string concatenation operators, not
1757 * java/util/AbstractList.java (addAll): Use size() instead of
1758 hasNext() in iterator loop.
1761 (indexOf): Ditto. Don't take null check outside of the loop.
1762 (iterator): Return an AbstractListItr instead of anonymous class.
1763 (lastIndexOf): Use a for loop bounded by size() instead of
1764 hasPrevious() in iterator loop.
1765 (listIterator): Return an AbstractListItr.
1766 (removeRange): Remove bounds checking code and docs.
1767 (AbstractListItr): New inner class. Code moved here from
1769 (SubList.iterator): Removed. Use default implementation from
1770 AbstractList instead.
1771 (SubList.listIterator): As above.
1772 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1773 instead of hasNext() in iterator loop.
1774 (containsValue): Ditto.
1780 (toString): Ditto. Use string concatenation operators, not
1782 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1783 bounded by size() instead of hasNext() in iterator loop.
1784 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1785 part of normal execution flow. Do an explicit null check instead.
1786 * java/util/ArrayList.java (_iSize): Rename to `size'.
1787 (_arData): Rename to `data'.
1788 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1791 (removeRange): Make protected. Don't check bounds.
1792 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1794 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1796 (addAll (int, Collection)): Check lower bounds. Simplify exception
1798 (clone): Clone the data array too.
1799 (indexOf): Inline doesEqual().
1800 (lastIndexOf): Ditto.
1801 (clear): Don't set array data to null.
1802 (set): Check lower bounds. Simplify exception string.
1803 (toArray): Correct comment.
1804 (trimToSize): Don't update modCount, this is not a structural change.
1807 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1809 (toString): Declare `bit' as long, not int.
1810 (data): Made package-private, not private.
1812 2000-10-27 Warren Levy <warrenl@cygnus.com>
1814 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1815 array elements to true.
1817 2000-10-27 Warren Levy <warrenl@cygnus.com>
1819 * Makefile.am: Added locale files from Classpath.
1820 * Makefile.in: Rebuilt.
1821 * gnu/java/locale/Calendar.java: New file.
1822 * gnu/java/locale/Calendar_de.java: New file.
1823 * gnu/java/locale/Calendar_en.java: New file.
1824 * gnu/java/locale/Calendar_nl.java: New file.
1825 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1826 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1827 serialization compatibility.
1828 (scale): Made private.
1829 (serialVersionUID): New field.
1830 * java/math/BigInteger.java (ival): Made transient.
1831 (words): Made transient.
1832 (bitCount): New serialization field.
1834 (firstNonzeroByteNum): Ditto.
1835 (lowestSetBit): Ditto.
1838 (serialVersionUID): New field.
1839 (readObject): New method.
1840 (writeObject): New method.
1841 * java/util/BitSet.java (serialVersionUID): New field.
1842 * java/util/Calendar.java: Replaced with Classpath file.
1843 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1844 of getDefault() for TimeZone or Locale instead of passing nulls.
1845 * java/util/Locale.java (serialVersionUID): New field.
1846 (writeObject): New method.
1847 (readObject): New method.
1848 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1850 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1852 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1853 (core_java_source_files): Put java.lang, java.io, and java.util here.
1854 (ordinary_java_source_files): Order so that core_java_source_files are
1856 (java_source_files): Reorder so that special_java_source_files are
1858 * configure.in: Don't pass -I flag to gcj.
1859 * Makefile.in: Rebuilt.
1860 * configure: Rebuilt.
1862 2000-10-25 Tom Tromey <tromey@cygnus.com>
1864 * Makefile.in: Rebuilt.
1865 * Makefile.am (install-exec-hook): New target.
1867 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/util/EventObject.java: Merged from classpath.
1871 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1874 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1876 * java/util/AbstractSet.java (equals): Re-installed original code.
1878 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1880 * Makefile.am: Added rules for libgcjx library.
1881 * Makefile.in: Rebuilt.
1882 * configure.in: Added check for X.
1883 * configure: Rebuilt.
1884 * gnu/awt/LightweightRedirector.java: New file.
1885 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1886 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1887 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1888 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1889 * gnu/awt/j2d/MappedRaster.java: New file.
1890 * gnu/awt/xlib/XCanvasPeer.java: New file.
1891 * gnu/awt/xlib/XEventLoop.java: New file.
1892 * gnu/awt/xlib/XEventQueue.java: New file.
1893 * gnu/awt/xlib/XFontMetrics.java: New file.
1894 * gnu/awt/xlib/XFramePeer.java: New file.
1895 * gnu/awt/xlib/XGraphics.java: New file.
1896 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1897 * gnu/awt/xlib/XPanelPeer.java: New file.
1898 * gnu/awt/xlib/XToolkit.java: New file.
1899 * gnu/gcj/xlib/Clip.java: New file.
1900 * gnu/gcj/xlib/Colormap.java: New file.
1901 * gnu/gcj/xlib/Display.java: New file.
1902 * gnu/gcj/xlib/Drawable.java: New file.
1903 * gnu/gcj/xlib/Font.java: New file.
1904 * gnu/gcj/xlib/GC.java: New file.
1905 * gnu/gcj/xlib/Pixmap.java: New file.
1906 * gnu/gcj/xlib/Screen.java: New file.
1907 * gnu/gcj/xlib/Visual.java: New file.
1908 * gnu/gcj/xlib/WMSizeHints.java: New file.
1909 * gnu/gcj/xlib/Window.java: New file.
1910 * gnu/gcj/xlib/WindowAttributes.java: New file.
1911 * gnu/gcj/xlib/XAnyEvent.java: New file.
1912 * gnu/gcj/xlib/XButtonEvent.java: New file.
1913 * gnu/gcj/xlib/XColor.java: New file.
1914 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1915 * gnu/gcj/xlib/XConnectException.java: New file.
1916 * gnu/gcj/xlib/XEvent.java: New file.
1917 * gnu/gcj/xlib/XException.java: New file.
1918 * gnu/gcj/xlib/XExposeEvent.java: New file.
1919 * gnu/gcj/xlib/XID.java: New file.
1920 * gnu/gcj/xlib/XImage.java: New file.
1921 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1922 * gnu/gcj/xlib/natClip.cc: New file.
1923 * gnu/gcj/xlib/natColormap.cc: New file.
1924 * gnu/gcj/xlib/natDisplay.cc: New file.
1925 * gnu/gcj/xlib/natDrawable.cc: New file.
1926 * gnu/gcj/xlib/natFont.cc: New file.
1927 * gnu/gcj/xlib/natGC.cc: New file.
1928 * gnu/gcj/xlib/natPixmap.cc: New file.
1929 * gnu/gcj/xlib/natScreen.cc: New file.
1930 * gnu/gcj/xlib/natVisual.cc: New file.
1931 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1932 * gnu/gcj/xlib/natWindow.cc: New file.
1933 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1934 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1935 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1936 * gnu/gcj/xlib/natXColor.cc: New file.
1937 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1938 * gnu/gcj/xlib/natXException.cc: New file.
1939 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1940 * gnu/gcj/xlib/natXImage.cc: New file.
1941 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1942 * java/awt/EventDispatchThread.java: Start thead on creation.
1944 2000-10-20 Tom Tromey <tromey@cygnus.com>
1946 From Arno J. Klaassen:
1947 * interpret.cc: Include <stdlib.h> for alloca.
1948 * defineclass.cc: Include <stdlib.h> for alloca.
1950 * Makefile.in: Rebuilt.
1951 * Makefile.am: Include deps.mk.
1952 (GCJCOMPILE): Added -MD, -MT, and -MF.
1953 ($(javao_files)): Don't depend on libgcj.zip.
1954 (all-recursive): New target.
1955 (%.lo:%.cc): Do dependency tracking.
1956 ($(nat_headers)): Don't depend on libgcj.zip.
1957 * configure: Rebuilt.
1958 * configure.in: Make .d files and deps.mk.
1960 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1962 * exception.cc: Don't #include "exception".
1963 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1965 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1966 * Makefile.in: Updated.
1968 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1970 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1971 * java/awt/peer/ComponentPeer.java (disable): Removed.
1974 (minimumSize): Removed.
1975 (preferredSize): Removed.
1978 * java/awt/peer/ListPeer.java (addItem): Removed.
1980 (minimumSize): Removed.
1981 (preferredSize): Removed.
1982 (setMultipleSelections): Removed.
1983 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1984 (remove): Renamed from removeMenu.
1985 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1987 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1988 (remove): Renamed from removeItem.
1989 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1990 (getMinimumSize): Removed.
1991 (getPreferredSize): Removed.
1992 (minimumSize): Removed.
1993 (preferredSize): Removed.
1994 (replaceText): Removed.
1995 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1996 (preferredSize): Removed.
1997 (getMinimumSize): Removed.
1998 (getPreferredSize): Removed.
1999 (setEchoCharacter): Removed.
2001 2000-10-10 Warren Levy <warrenl@cygnus.com>
2003 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2004 * java/sql/Date.java (serialVersionUID): New field.
2005 * java/sql/Time.java (serialVersionUID): New field.
2006 * java/sql/Timestamp.java (serialVersionUID): New field.
2007 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2008 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2009 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2010 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2011 (readObject): New serialization method.
2012 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2013 (serialVersionOnStream): New field.
2014 (readObject): New serialization method.
2015 (getMonetaryDecimalSeparator): New method.
2016 (setMonetaryDecimalSeparator): New method.
2017 * java/text/NumberFormat.java (maxFractionDigits): New field.
2018 (maxIntegerDigits): New field.
2019 (minFractionDigits): New field.
2020 (minIntegerDigits): New field.
2021 (serialVersionOnStream): New field.
2022 (serialVersionUID): New field.
2023 (readObject): New serialization method.
2024 (writeObject): New serialization method.
2025 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2026 (serialVersionOnStream): New field.
2027 (serialVersionUID): New field.
2028 (readObject): New serialization method.
2030 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2032 * configure.in (GCJ): Avoid bogus error message when looking for
2033 (and not finding) gcj in the build tree.
2034 * configure: Rebuilt.
2036 2000-10-09 Tom Tromey <tromey@cygnus.com>
2038 * configure: Rebuilt.
2039 * configure.in: Include sys/types.h when checking for socklen_t.
2040 From Arno J. Klaassen.
2042 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2044 * include/jvm.h: Enable __builtin_expect().
2046 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2047 the main program. Fix for PR libgcj/341.
2049 2000-10-07 Tom Tromey <tromey@cygnus.com>
2051 * java/util/Properties.java: Merged with Classpath version.
2053 2000-10-05 Tom Tromey <tromey@cygnus.com>
2055 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2056 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2057 * java/lang/Class.h (Object): Added `class$' field.
2058 * java/lang/Object.h (Object): Added `class$' field.
2059 * defineclass.cc (ClassClass): Use `class$' form.
2060 (ClassObject): Likewise.
2061 * resolve.cc (ClassObject): Use `class$' form.
2062 (ObjectClass): Likewise.
2063 * interpret.cc (ClassError): Removed.
2064 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2066 (IntegerClass): Likewise.
2067 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2069 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2070 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2071 SerializableClass): Likewise.
2072 Include Serializable.h, Cloneable.h.
2073 * java/lang/natSystem.cc (SystemClass): Removed.
2074 (init_properties): Use `class$' form.
2075 * java/lang/natObject.cc (CloneableClass): Removed.
2076 (clone): Use `class$' form.
2077 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2078 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2079 ConstructorClass): Likewise.
2080 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2081 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2082 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2083 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2085 (ClassClass): Likewise.
2086 * include/jvm.h (StringClass): Use `class$' form.
2087 * prims.cc (ObjectClass): Removed.
2088 (_Jv_RunMain): Use `class$' form.
2089 (_Jv_AllocObject): Likewise.
2090 * jni.cc (ClassClass): Use `class$' form.
2091 (ThrowableClass): Likewise.
2092 (ObjectClass): Likewise.
2093 (MethodClass): Likewise.
2094 (ThreadGroupClass): Likewise.
2095 (NativeThreadClass): Likewise.
2096 * boehm.cc (ObjectClass): Removed.
2097 (ClassClass): Removed.
2098 (_Jv_MarkObj): Use `class$' form.
2099 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2102 2000-10-05 Warren Levy <warrenl@cygnus.com>
2104 * Makefile.am: Removed java/io/Replaceable.java and
2105 java/io/Resolvable.java.
2106 * Makefile.in: Rebuilt.
2107 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2109 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2111 (processResolution): Handle readResolve method via reflection with
2112 removal of Resolvable interface.
2113 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2114 method via reflection with removal of Replaceable interface.
2115 * java/io/Replaceable.java: Removed.
2116 * java/io/Resolvable.java: Removed.
2117 * java/security/Key.java (serialVersionUID): New field.
2118 * java/security/Provider.java (serialVersionUID): New field.
2119 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2121 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2123 * java/sql/DataTruncation.java (serialVersionUID): New field.
2124 * java/sql/SQLException.java (serialVersionUID): New field.
2125 * java/sql/SQLWarning.java (serialVersionUID): New field.
2126 * java/util/Date.java (serialVersionUID): New field.
2127 (millis): Made transient.
2128 (readObject): New method.
2129 (writeObject): New method.
2131 2000-10-05 Tom Tromey <tromey@cygnus.com>
2133 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2135 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2137 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2138 (JvRunMain): Set _Jv_argv and _Jv_argc.
2139 * java/awt/Component.java: Minor fixes.
2140 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2141 * java/awt/Toolkit.java (systemEventQueue): Removed.
2142 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2143 * java/awt/Window.java (getToolkit): Don't call super.
2144 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2145 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2146 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2147 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2148 * gnu/awt/gtk/GtkFramePeer.java: New file.
2149 * gnu/awt/gtk/GtkMainThread.java: New file.
2150 * gnu/awt/gtk/GtkToolkit.java: New file.
2151 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2152 * gnu/awt/gtk/gtkcommon.cc: New file.
2153 * gnu/awt/gtk/gtkcommon.h: New file.
2154 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2155 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2156 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2157 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2158 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2159 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2161 2000-09-30 Tom Tromey <tromey@cygnus.com>
2163 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2164 interrupted before modifying the cv's wait set.
2167 2000-09-30 Hans Boehm <boehm@acm.org>
2168 Bryce McKinlay <bryce@albatross.co.nz>
2170 Implement bitmap descriptor based marking for Boehm GC.
2172 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2173 * configure: Rebuilt.
2174 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2175 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2176 method get_finalizer().
2177 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2178 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2179 (_Jv_AllocObj): Add new jclass parameter.
2180 (_Jv_AllocArray): Ditto.
2181 (_Jv_BuildGCDescr): New prototype.
2182 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2183 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2184 get_finalizer() instead of direct finalizer vtable offset.
2185 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2186 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2187 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2188 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2189 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2190 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2191 (_Jv_DetermineVTableIndex): Ditto.
2192 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2193 calculations to account for new gc_descr field.
2194 * boehm.cc: #include gc_gcj.h.
2195 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2196 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2197 New commentary from HB. Mark the classes vtable.
2198 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2199 (GC_DEFAULT_DESCR): New #define.
2200 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2201 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2202 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2203 scan conservativly if size is less than min_heap_addr. Set vtable
2204 pointer of new object before returning.
2205 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2206 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2207 allocation for obj_kind_x.
2208 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2209 (_Jv_AllocObj): Set vtable on returned object.
2210 (_Jv_AllocArray): Ditto.
2211 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2212 (_Jv_NewPrimArray): Ditto.
2213 (_Jv_AllocObj): Declare as a friend.
2214 (_Jv_AllocArray): Ditto.
2215 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2216 from &ObjectClass into new array class. Remove offset-by-one
2217 adjustments from `method' size calculations to account for gc_descr
2220 2000-09-26 Tom Tromey <tromey@cygnus.com>
2222 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2223 `remove', not `add'.
2225 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2227 * java/lang/natSystem.cc (file_encoding): Added return statement.
2229 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2231 * Makefile.am: Re-work shell commands that exceeded command-line
2233 * Makefile.in: Rebuilt.
2235 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2237 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2238 * java/lang/natDouble.cc: Likewise.
2239 * java/lang/reflect/natMethod.cc: Likewise.
2240 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2242 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2244 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2246 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2247 * acinclude.m4: Arrange for automake to not bring in a new
2248 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2249 * Makefile.am: Leave it up to automake to subst GCJ.
2250 * aclocal.m4, configure, Makefile.in: Rebuilt.
2252 2000-09-13 Tom Tromey <tromey@cygnus.com>
2254 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2255 (get): Ensure Boolean class is initialized.
2256 * java/lang/reflect/natField.cc (BooleanClass): New define.
2257 (get): Ensure Boolean class is initialized.
2259 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2261 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2262 Initialize with anonymous class.
2263 (compareToIgnoreCase): New method.
2265 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2266 (uncaughtException): Set had_uncaught_exception.
2267 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2268 exit with error status if set.
2269 (_Jv_RunMain): Ditto.
2271 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2273 * configure: Rebuilt with new ../libtool.m4.
2275 2000-09-11 Tom Tromey <tromey@cygnus.com>
2277 * java/lang/reflect/Field.java (toString): Don't rely on
2280 2000-09-08 Tom Tromey <tromey@cygnus.com>
2282 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2283 default decoder use iconv.
2284 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2285 Let default encoder use iconv.
2286 * configure: Rebuilt.
2287 * configure.in: Check for nl_langinfo and <langinfo.h>.
2288 * java/lang/natSystem.cc (file_encoding): New function.
2289 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2291 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2293 * acinclude.m4: Simplify the tests for CC and CXX.
2294 * aclocal.m4, configure: Rebuilt.
2296 * acinclude.m4: Include libtool macros from the source tree.
2297 * aclocal.m4, configure: Rebuilt.
2299 2000-09-08 Warren Levy <warrenl@cygnus.com>
2301 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2302 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2303 * java/io/File.java (writeObject): Added.
2304 (readObject): Added.
2305 (serialVersionUID): Added.
2306 * java/io/ObjectOutputStream.java (writeObject): Initialized
2307 fieldsAlreadyWritten before recursion rather than after.
2308 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2309 * java/io/OptionalDataException.java (serialVersionUID): Added.
2310 (OptionalDataException): Made package private.
2311 * java/io/SyncFailedException.java (SyncFailedException): Removed
2312 default constructor to match spec.
2313 * java/lang/Boolean.java (serialVersionUID): Added.
2314 * java/lang/Byte.java (serialVersionUID): Added.
2315 * java/lang/Character.java (serialVersionUID): Added.
2316 * java/lang/Double.java (serialVersionUID): Added.
2317 * java/lang/Float.java (serialVersionUID): Added.
2318 * java/lang/Integer.java (serialVersionUID): Added.
2319 * java/lang/Long.java (serialVersionUID): Added.
2320 * java/lang/Number.java (serialVersionUID): Added.
2321 * java/lang/Short.java (serialVersionUID): Added.
2322 * java/lang/String.java (serialVersionUID): Added.
2323 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2325 * java/lang/reflect/InvocationTargetException.java
2326 (serialVersionUID): Added.
2327 * java/net/URL.java (handler): Made transient.
2328 (hashCode): Added field for serialization, per spec. and use
2329 cached value if available.
2330 (serialVersionUID): Added.
2331 (URL): Initialize hashCode.
2332 (set): Adjust hashCode.
2333 (readObject): New Method to initialize the protocol handler when
2335 (writeObject): New method.
2336 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2337 * java/text/Collator.java: Removed 'implements Serializable'.
2338 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2339 * java/util/Properties.java (serialVersionUID): Added.
2340 * java/util/Random.java (serialVersionUID): Added.
2341 (seed): Made private.
2342 (nextNextGaussian): Made private.
2343 (haveNextNextGaussian): Made private.
2344 * java/util/Stack.java (serialVersionUID): Added.
2345 * java/util/TimeZone.java (serialVersionUID): Added.
2346 * java/util/Vector.java (serialVersionUID): Added.
2348 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2350 * Makefile.am (Thread.h): Don't be friends with native threads
2352 * Makefile.in: Rebuilt.
2353 * java/lang/Thread.java (interrupt_flag): Make package-private.
2355 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2357 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2358 to avoid long long division.
2360 2000-09-06 Tom Tromey <tromey@cygnus.com>
2362 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2364 * java/lang/reflect/Method.java (toString): Use `getName' for
2367 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2368 `args' if method takes no parameters.
2370 Fix for PR java.lang/339:
2371 * java/lang/natPosixProcess.cc (fail): New function.
2372 (cleanup): New function.
2373 (startProcess): Use them. Create pipe so child can communicate
2374 exec failure back to parent.
2376 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2378 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2380 (send): Undo last patch. Remove the label only.
2382 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2384 * java/net/natInetAdress.cc: Ditto.
2386 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2388 2000-09-05 Tom Tromey <tromey@cygnus.com>
2390 * doc/cni.sgml: Updated from master copy.
2392 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2394 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2396 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2398 * java/lang/fdlibm.h: #undef __P if previously defined.
2399 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2400 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2404 2000-09-04 Tom Tromey <tromey@cygnus.com>
2406 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2409 2000-09-04 Anthony Green <green@redhat.com>
2411 Fix for PR java.io/203:
2412 * java/io/File.java (createTempFile): Obey directory argument.
2413 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2414 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2415 variable to set java.io.tmpdir on non-WIN32 systems.
2417 2000-09-04 Anthony Green <green@redhat.com>
2419 * java/io/File.java (deleteOnExit): New method.
2420 * gnu/gcj/runtime/FileDeleter.java: New class.
2421 * java/lang/natRuntime.cc (exit): Call
2422 FileDeleter.deleteOnExitNow()
2423 * Makefile.am: Add FileDeleter.java.
2424 * Makefile.in: Rebuilt.
2426 2000-09-02 Tom Tromey <tromey@cygnus.com>
2428 * Makefile.in: Rebuilt.
2429 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2430 environment variable.
2432 2000-09-01 Andrew Haley <aph@redhat.com>
2434 * java/io/StreamTokenizer.java: Don't throw a
2435 NumberFormatException if a field is numeric as far as the
2436 StreamTokenizer is concerned but not as far as Double.valueOf() is
2437 concerned: return a zero instead.
2439 2000-08-30 Tom Tromey <tromey@cygnus.com>
2441 * Makefile.in: Rebuilt.
2442 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2444 2000-08-28 Tom Tromey <tromey@cygnus.com>
2446 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2447 gnu/gcj/awt/ComponentDataBlitOp.java,
2448 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2449 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2450 java/awt/color/ICC_ColorSpace.java,
2451 java/awt/color/ICC_Profile.java,
2452 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2453 java/awt/image/ComponentColorModel.java,
2454 java/awt/image/ComponentSampleModel.java,
2455 java/awt/image/DataBuffer.java,
2456 java/awt/image/DataBufferByte.java,
2457 java/awt/image/DataBufferInt.java,
2458 java/awt/image/DataBufferUShort.java,
2459 java/awt/image/DirectColorModel.java,
2460 java/awt/image/IndexColorModel.java,
2461 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2462 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2463 java/awt/image/SinglePixelPackedSampleModel.java,
2464 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2465 Removed Latin-1 copyright symbols.
2466 * java/util/zip/ZipFile.java: Indentation fixes.
2468 2000-08-27 Mark Wielaard <mark@klomp.org>
2470 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2471 constructor, close can delete the file, finalize calls close.
2472 * java/util/jar/JarFile.java: Constructor that takes mode now
2475 2000-08-27 Anthony Green <green@redhat.com>
2477 * java/util/ArrayList.java, java/util/Timer.java,
2478 java/util/LinkedList.java, java/util/TimerTask.java,
2479 java/util/HashMap.java, java/util/AbstractMap.java,
2480 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2481 java/util/SortedSet.java: Imported from GNU Classpath.
2482 * Makefile.in: Rebuilt.
2483 * Makefile.am: Added new files.
2485 2000-08-26 Anthony Green <green@redhat.com>
2487 * Makefile.in: Rebuilt.
2488 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2491 * prims.cc: Include ClassLoader.h.
2492 (_Jv_RunMain): When executing jar files, classpath must be the jar
2493 file only. Lose our reference to the system ClassLoader in order
2494 to get a new one with the correct classpath.
2495 * java/lang/natSystem.cc (init_properties): When executing a jar
2496 file, only use the jar file for java.class.path.
2498 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2499 for bytecode archives.
2501 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2502 exists, but not Main-Class.
2504 2000-08-23 Mark Wielaard <mark@klomp.org>
2506 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2507 return -1 when fill() has no more data for the Inflater.
2509 2000-08-23 Mark Wielaard <mark@klomp.org>
2511 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2512 write(String) already does.
2514 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2516 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2517 to `alive_flag', call `init'.
2518 (init): New native method.
2519 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2522 2000-08-21 Mark Wielaard <mark@klomp.org>
2524 * Makefile.in: Rebuilt.
2525 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2527 (java/lang/reflect/Field.h): Likewise.
2528 (java/lang/reflect/Method.h): Likewise.
2529 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2532 2000-08-21 Tom Tromey <tromey@cygnus.com>
2534 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2537 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2539 * java/lang/natSystem.cc (init_properties): Change sourceware
2540 reference to sources.redhat.com.
2542 * include/java-props.h: Add _Jv_Jar_Class_Path.
2543 * prims.cc: Ditto. Set it from `gij -jar file' option.
2545 * java/lang/natSystem.cc (init_properties): Set java.class.path
2547 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2549 * java/util/PropertyPermission.java: Import from GNU Classpath.
2550 * Makefile.in: Rebuilt.
2551 * Makefile.am: Add java/util/PropertyPermission.java.
2552 * java/lang/System.java: Add setProperty method.
2554 * gij.cc (main): Add -jar option to execute jar files.
2555 (help): Describe -jar option.
2556 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2557 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2558 * gnu/gcj/runtime/FirstThread.java (main): New method.
2560 * java/util/jar/Attributes.java: Correct comment spelling.
2562 2000-08-20 Mark Wielaard <mark@klomp.org>
2564 * java/util/zip/Adler32.java: Make private variables really private
2565 * java/util/zip/CRC32.java: Make private variables really private
2566 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2568 * java/util/zip/InflaterInputStream.java: skip() could skip to
2570 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2571 * java/util/zip/ZipFile.java: size() new 1.2 method
2572 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2573 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2576 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2578 * java/util/jar/JarFile.java: Don't call
2579 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2582 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2584 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2585 Read the entire contents of the class file, not just what is
2588 * java/net/JarURLConnection.java: getEntry doesn't take any
2589 arguments. Return null if element is null.
2591 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2592 size from the archive, not the inflated size.
2594 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2595 java.util.zip.ZipFile.getEntry.
2597 * gij.cc (help): Change sourceware reference to
2600 2000-08-19 Tom Tromey <tromey@cygnus.com>
2602 * java/util/zip/ZipInputStream.java (createZipEntry):
2605 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2607 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2608 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2609 java/util/jar/JarInputStream.java,
2610 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2611 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2612 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2613 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2614 java/security/cert/Certificate.java,
2615 java/security/cert/CertificateEncodingException.java,
2616 java/security/cert/CertificateException.java,
2617 java/security/cert/CertificateExpiredException.java,
2618 java/security/cert/CertificateFactory.java,
2619 java/security/cert/CertificateFactorySpi.java,
2620 java/security/cert/CertificateNotYetValidException.java,
2621 java/security/cert/CertificateParsingException.java,
2622 java/security/cert/X509CRL.java,
2623 java/security/cert/X509CRLEntry.java,
2624 java/security/cert/X509Certificate.java,
2625 java/security/cert/X509Extension.java: Imported from Classpath.
2626 * java/util/Hashtable.java: Imported from Classpath.
2628 * java/util/zip/ZipInputStream.java: Create stub for
2631 * gcj/javaprims.h: Updated class list.
2633 * Makefile.in, gcj/Makefile.in: Rebuilt.
2634 * Makefile.am (ordinary_java_source_files): Add these new classes.
2636 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2638 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2639 * gnu/gcj/awt/GLightweightPeer.java: New file.
2640 * java/awt/BorderLayout.java: Implemented all methods.
2641 * java/awt/Button.java (actionListener, actionCommand): Renamed
2642 and modifier change.
2643 (addNotify): Call super.
2644 (dispatchEventImpl): New method.
2645 (getListeners): New method.
2646 (label): Made package-private, not private.
2647 * java/awt/Canvas.java: Implemented class body.
2648 * java/awt/Color.java (brighter): New method.
2649 (darker): New method.
2650 (hashCode): New method.
2651 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2652 (getGraphicsConfiguration): Delegate to
2653 getGraphicsConfigurationImpl().
2654 (getGraphicsConfigurationImpl): New method.
2655 (getToolkit): Only return value from peer if not null.
2656 (isDisplayable): Check with parent.
2657 (isShowing): No parent implies not showing.
2658 (getForeground): Check parent property if local is null.
2659 (getBackground): Likewise.
2660 (getFont): Likewise.
2661 (setForeground): Inform peer.
2662 (setBackground): Likewise
2663 (setLocale): Invalidate component.
2664 (getColorModel): Implemented.
2665 (setLocation): Invalidate, or ignore if no change.
2666 (setSize): Invalidate, or ignore if no change.
2667 (setBounds): Invalidate, or ignore if no change.
2668 (isOpaque): By default, heavyweight implies opaque.
2669 (isLightweight): Implemented.
2670 (getMaximumSize): Implemented.
2671 (doLayout): Implemented, NOP.
2672 (validate): Implemented, NOP.
2673 (invalidate): Only propagate to parent if parent was valid.
2674 (getGraphics): Implemented.
2675 (getFontMetrics): Implemented.
2676 (update): Implemented.
2677 (paintAll): Implemented.
2678 (repaint): Implemented all repaint methods.
2679 (print): Implemented.
2680 (printAll): Implemented.
2681 (createImage): Implemented.
2682 (dispatchEvent): Give the peer a chance to handle the event.
2683 (dispatchEventImpl): Dispatch paint events.
2684 (enableEvents): Lightweights enable events on parent component.
2685 (coalesceEvents): Coalesce paint events, and select event type
2687 (coalescePaintEvents): New method.
2688 (processEvent): Fix unfortunate ordering of statements, and call
2689 correct method for MOUSE_CLICKED.
2690 (processPaintEvent): New method.
2691 (addNotify): Allow container to notify children before event
2692 mask is set in peer.
2693 (addNotifyContainerChildren): New method.
2694 (removeNotify): Visibility should not change on removeNotify.
2695 (paramString): Implemented.
2696 (list): Implemented two of the list methods.
2697 * Container (myInsets): Removed, insets are managed by peer.
2698 (getInsets): Query peer.
2699 (addImpl): Fix reparenting, enable events for lightweights,
2700 initialize component array.
2701 (validate): Call doLayout in validateTree() instead.
2702 (validateTree): Do nothing if already valid. Call beginValidate(),
2703 endValidate() on peer. Call validateTree() instead of validate()
2704 for children that are containers. Mark valid after validation of
2706 (setFont): Partial implementation.
2707 (paint): Implemented.
2708 (visitChildren): New method.
2709 (visitChild): New method.
2710 (update): Implemented.
2711 (print): Implemented.
2712 (paintComponents): Implemented.
2713 (printComponents): Consider translation and clipping.
2714 (getComponentAt): Ignore invisible children. Return this if no
2716 (addNotify): Call super.
2717 (addNotifyContainerChildren): New method.
2718 (paramString): Implemented.
2719 (list): Implemented.
2720 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2722 (invokeLater): Likewise.
2723 (isDispatchThread): Likewise.
2724 * java/awt/FontMetrics (getLeading): Formula change.
2725 (getDescent): Consider leading also.
2726 (getMaxAscent): Default to getAscent().
2727 (getMaxDescent): Default to getDescent.
2728 (getMaxAdvance): Return value signifying unknown.
2729 (charWidth): Both methods implemented.
2730 (charsWidth): Implemented.
2731 (bytesWidth): Implemented.
2732 (getWidths): Implemented.
2733 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2735 (Frame): Rearragend constuctor chaining to disallow null being
2736 passed as a graphics configuration.
2737 (getTitle): Return empty string if null.
2739 (getIconImage): New method.
2740 (setIconImage): New method.
2741 (finalize): New method.
2742 (setMenuBar): Notify peer.
2743 (isResizable): New method.
2744 (setResizable): New method.
2745 (getState): New method.
2747 (remove): Implemented.
2748 (removeNotify): New method.
2749 (getFrames): New method.
2750 * java/awt/Graphics.java: Implemented body of class.
2751 * java/awt/Graphics2D.java: New file.
2752 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2753 * java/awt/Image.java: Implemented body of class.
2754 * java/awt/Panel.java (Panel): Call correct super constructor.
2755 (addNotify): Implemented.
2756 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2757 * java/awt/RenderingHints.java: New file.
2758 * java/awt/Toolkit.java (createComponent): Implemented.
2759 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2760 * java/awt/Window.java (Window): Two new constructors. Reordered
2761 constructor chaining.
2762 (getGraphicsConfigurationImpl): New method.
2763 (finalize): Call super.
2764 (addNotify): Call super.
2765 (pack): Do layout stuff.
2766 (show): Ensure that peer exists and that component is valid.
2767 (dispose): Dispose owned children.
2768 (getOwner): Simplify code, casting null pointers is valid.
2769 (getGraphicsConfiguration): Ask peer if local value is null.
2770 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2772 * java/awt/image/BufferedImage.java: New file.
2773 * java/awt/image/RasterOp.java: New file.
2774 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2775 More powerfull replacement for getColorModel().
2776 (getColorModel) Removed.
2777 (setEventMask) New method.
2778 * Makefile.am: Added new files.
2779 * Makefile.in: Rebuilt.
2781 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2783 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2784 (finit_leg_name): New global.
2785 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2786 `$finit$'. This is a backward compatibility hack.
2787 (java::lang::Class::_getMethods): Likewise.
2789 2000-08-15 Andrew Haley <aph@cygnus.com>
2791 * include/jvm.h (_Jv_HashCode): New hash code.
2793 2000-08-15 Tom Tromey <tromey@cygnus.com>
2795 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2797 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2799 * THANKS: More thanks.
2801 2000-08-10 Tom Tromey <tromey@cygnus.com>
2803 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2805 (connect): Likewise.
2807 (getOption): Likewise.
2808 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2809 case when errno not set.
2812 (receive): Likewise.
2813 (mcastGrp): Likewise.
2814 (setOption): Likewise.
2815 (getOption): Likewise.
2817 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2818 John Stracke <francis@ecal.com>
2820 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2821 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2823 (disconnect): Don't unset connected flag.
2824 (getHeaderField (String)): Call connect() if not connected.
2825 (getHeaderField (int)): Ditto.
2826 (getHeaderFieldKey): Ditto.
2827 (getHttpHeaders): Don't call connect().
2828 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2829 gotResponseVals): New fields.
2830 (getResponseCode): Call getResponseVals() conditionally.
2831 (getResponseMessage): Ditto.
2832 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2834 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2836 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2837 * Makefile.in: Rebuilt.
2838 * java/awt/Color.java (getTransparency): New method.
2839 * java/awt/Component.java: Various updates.
2840 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2841 after dealing with children.
2842 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2843 * java/awt/Window.java: Various new methods and updates.
2844 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2846 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2847 * java/awt/event/WindowEvent.java (paramString): Ditto.
2848 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2850 * java/awt/geom/Point2D.java (clone): Ditto.
2851 * java/awt/geom/RectangularShape.java (clone): Ditto.
2852 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2853 isAlphaPremultiplied): Make package-private, not private.
2855 2000-08-08 Tom Tromey <tromey@cygnus.com>
2857 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2858 surrogate characters.
2859 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2861 (write): Correct handling of surrogate characters.
2863 2000-08-07 Tom Tromey <tromey@cygnus.com>
2865 * java/lang/reflect/Method.java (hashCode): Use getName().
2866 (toString): Likewise.
2867 * java/lang/reflect/natMethod.cc (getType): Initialize
2870 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2872 * java/lang/reflect/Field.java (toString): Correct formatting.
2875 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2877 (receive): Streamlined.
2879 2000-08-05 Tom Tromey <tromey@cygnus.com>
2881 * java/io/PrintWriter.java: Merged comments from Classpath.
2882 (printlnUnsynchronized): Removed.
2883 (println()): Print the separator.
2884 (println): Call println(), not printlnUnsynchronized.
2885 (out): Now protected, to match spec.
2887 2000-08-04 Tom Tromey <tromey@cygnus.com>
2889 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2890 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2893 2000-08-03 Warren Levy <warrenl@cygnus.com>
2895 * java/io/ObjectInputStream.java (readFields): Turn off
2896 readDataFromBlock while reading via GetField.
2897 (GetField$1.get(String, Object)): Pass Class of default value to
2899 (getField): Allow for null default values.
2901 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2902 (PutField$1.put): Fixed calls of checkType in most of the put
2903 methods to pass the correct parameter.
2904 (PutField$1.put(String, Object)): Allow for null value arg.
2905 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2908 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2909 typo in spec'ed field name.
2910 (getSerialPersistentFields): Changed spelling of method to match
2911 the correct spelling of the spec'ed field name.
2913 2000-08-03 Tom Tromey <tromey@cygnus.com>
2915 * Makefile.in: Rebuilt.
2916 * Makefile.am (awt_java_source_files): Added new files.
2918 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2920 * Makefile.am: Add new AWT stubs.
2921 * java/awt/Canvas.java: New placeholder class.
2922 * java/awt/Checkbox.java: Ditto.
2923 * java/awt/CheckboxMenuItem.java: Ditto.
2924 * java/awt/Choice.java: Ditto.
2925 * java/awt/Dialog.java: Ditto.
2926 * java/awt/FileDialog.java: Ditto.
2927 * java/awt/List.java: Ditto.
2928 * java/awt/ScrollPane.java: Ditto.
2929 * java/awt/TextField.java: Ditto.
2930 * java/awt/datatransfer/Clipboard.java: Ditto.
2931 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2932 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2933 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2934 Some commented out. Partially implemented.
2935 * java/awt/natToolkit.cc: Removed file.
2937 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2939 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2940 Fixes "make -j" builds.
2941 * Makefile.in: Rebuild.
2943 2000-08-02 Tom Tromey <tromey@cygnus.com>
2945 * Makefile.in: Rebuilt.
2946 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2947 * java/net/natPlainSocketImpl.cc: Include posix.h.
2948 (accept): Use _Jv_select.
2949 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2950 (receive): Use _Jv_select.
2951 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2952 (available): Use _Jv_select.
2953 * java/lang/natSystem.cc: Include posix.h.
2954 (currentTimeMillis): Use _Jv_gettimeofday.
2955 * include/posix.h: New file.
2956 * posix.cc: New file.
2958 * scripts/encodings.pl: New file.
2959 * Makefile.in: Rebuilt.
2960 * Makefile.am (convert_source_files): Added IOConverter.java.
2961 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2963 (getDefaultDecodingClass): Canonicalize default encoding name.
2964 (getEncoder): Likewise.
2965 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2967 (getDefaultDecodingClass): Canonicalize default encoding name.
2968 (getDecoder): Likewise.
2969 * gnu/gcj/convert/IOConverter.java: New file.
2971 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2973 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2974 to match C declaration in ffi.h.
2975 * Makefile.am: Add java/awt/Button.java.
2976 * Makefile.in: Rebuilt.
2978 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2980 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2981 cast of the second argument to `ffi_raw_call' changed to match
2984 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2986 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2987 argument to `ffi_raw_call' changed to match prototype.
2989 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2991 * java/awt/Component.java (toString): Implemented.
2992 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2993 dispatchEvent() to dispatch the event.
2994 (removeImpl): Ditto.
2996 2000-07-30 Anthony Green <green@redhat.com>
2998 * java/awt/Component.java: Add treeLock object.
2999 (getTreeLock): Implement.
3000 (isShowing): Implement.
3002 2000-07-30 Tom Tromey <tromey@cygnus.com>
3004 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3006 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3008 * java/awt/Window.java (addNotify): Wrote.
3009 (addWindowListener): Wrote.
3011 (getWarningString): Wrote.
3012 (processEvent): Wrote.
3013 (processWindowEvent): Wrote.
3014 (removeWindowListener): Wrote.
3015 (show): Call validate(), setVisible().
3019 * java/awt/Toolkit.java (createWindow): Declare.
3021 * java/awt/Frame.java (addNotify): Use getToolkit to find
3024 * java/awt/Component.java (invalidate): Wrote.
3026 (getToolkit): Wrote.
3028 * java/awt/Container.java (addContainerListener): Removed
3030 (removeContainerListener): Likewise.
3032 (add(Component)): Use it.
3033 (add(String,Component)): Likewise.
3034 (add(Component,int)): Likewise.
3035 (add(Component,Object)): Likewise.
3036 (add(Component,Object,int)): Likewise.
3038 (getAlignmentX): Wrote.
3039 (getAlignmentY): Wrote.
3040 (getComponentAt): Wrote.
3041 (getMaximumSize): Wrote.
3042 (invalidate): Wrote.
3043 (list(PrintStream,int)): Wrote.
3044 (list(PrintWriter,int)): Wrote.
3045 (getMinimumSize): Wrote.
3046 (getPreferredSize): Wrote.
3047 (printComponents): Wrote.
3048 (processContainerEvent): Look at containerListener, not
3050 (remove): Added event processing and peer destruction.
3051 (removeAll): Use remove.
3052 (removeNotify): Wrote.
3054 (validateTree): Wrote.
3056 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3057 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3058 * java/awt/Container.java (addNotify): Don't create Container
3060 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3062 2000-07-30 Tom Tromey <tromey@cygnus.com>
3064 * java/awt/Container.java (remove(int)): Wrote.
3065 (remove(Component)): Wrote.
3066 (add(Component)): Wrote.
3067 (add(Component,int)): Wrote.
3069 (addNotify): Set our own peer.
3070 * java/awt/Scrollbar.java (listeners): Changed type.
3071 (Scrollbar): Don't initialize listeners.
3073 (setValue): Call setValues.
3074 (setMinimum): Likewise.
3075 (setMaxPriority): Likewise.
3076 (setVisibleAmount): Likewise.
3078 (setUnitIncrement): Forward to peer.
3079 (setLineIncrement): Call setUnitIncrement.
3080 (setPageIncrement): Call setBlockIncrement.
3081 (setBlockIncrement): Forward to peer.
3082 (addAdjustmentListener): Rewrote.
3083 (removeAdjustmentListener): Rewrote.
3084 (processAdjustmentEvent): Rewrote.
3085 (paramString): Wrote.
3086 * Makefile.in: Rebuilt.
3087 * Makefile.am (awt_java_source_files): Added Button.java.
3088 * java/awt/Button.java: New file.
3089 * java/awt/Toolkit.java (createLabel): Declare.
3090 (createButton): Likewise.
3091 (createScrollbar): Likewise.
3092 (createContainer): Likewise.
3093 * java/awt/Label.java (addNotify): Wrote.
3094 (setAlignment): Call setAlignment in the peer.
3095 (setText): Call setText in the peer.
3097 2000-07-28 Warren Levy <warrenl@cygnus.com>
3099 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3100 NotSerializableException with just the class name.
3102 2000-07-26 Andrew Haley <aph@cygnus.com>
3104 * interpret.cc (continue1): Insert missing break into switch.
3106 2000-07-28 Warren Levy <warrenl@cygnus.com>
3108 * java/io/ObjectStreamException.java: Made constructors protected.
3110 2000-07-27 Tom Tromey <tromey@cygnus.com>
3112 * java/io/OutputStreamWriter.java (close): Only flush if not
3115 2000-07-27 Warren Levy <warrenl@cygnus.com>
3117 * mauve-libgcj: Activated serialization tests.
3118 * gcj/field.h (getModifiers): Mask off unknown flags.
3119 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3120 spurious bits don't cause discrepancies.
3121 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3122 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3123 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3124 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3125 * java/lang/Throwable.java (serialVersionUID): New field.
3126 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3127 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3129 * java/lang/reflect/natMethod.cc: Ditto.
3130 * java/security/Key.java (serialVersionUID): Removed field for now.
3131 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3132 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3134 2000-07-22 Tom Tromey <tromey@cygnus.com>
3136 * java/awt/geom/RectangularShape.java (getPathIterator):
3139 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3141 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3142 stub libjava/java/awt/ColorModel.java which was located in the
3144 * libjava/java/awt/image/ComponentColorModel.java: New file.
3145 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3146 * libjava/java/awt/image/DataBuffer.java: New file.
3147 * libjava/java/awt/image/DataBufferByte.java: New file.
3148 * libjava/java/awt/image/DataBufferInt.java: New file.
3149 * libjava/java/awt/image/DataBufferUShort.java: New file.
3150 * libjava/java/awt/image/DirectColorModel.java: New file.
3151 * libjava/java/awt/image/PackedColorModel.java: New file.
3152 * libjava/java/awt/image/Raster.java: New file.
3153 * libjava/java/awt/image/SampleModel.java: New file.
3154 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3156 * libjava/java/awt/image/IndexColorModel.java: New file.
3157 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3158 java.awt.ColorModel stub.
3160 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3161 * gnu/gcj/util/Buffers.java: New file, utility class.
3163 * libjava/Makefile.am: Updated to include new files.
3164 * libjava/Makefile.in: Rebuilt.
3166 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3168 * java/io/StreamTokenizer.java: Merged with classpath.
3170 2000-07-20 Tom Tromey <tromey@cygnus.com>
3172 * Makefile.in: Rebuilt.
3173 * Makefile.am (awt_java_source_files): Updated for new files.
3174 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3175 * java/awt/Label.java: New file.
3176 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3177 (createIntersection, createUnion, getBounds2D): New methods.
3178 * java/awt/Scrollbar.java: New file.
3179 * java/awt/Shape.java: Updated to 1.2.
3180 * java/awt/geom/AffineTransform.java: New file.
3181 * java/awt/geom/Ellipse2D.java: New file.
3182 * java/awt/geom/NoninvertibleTransformException.java: New file.
3183 * java/awt/geom/PathIterator.java: New file.
3184 * java/awt/geom/Rectangle2D.java: New file.
3185 * java/awt/geom/RectangularShape.java: New file.
3186 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3187 * java/awt/geom/IllegalPathStateException.java: New file.
3189 * scripts/showval.java: New file.
3191 * scripts/classes.pl (scan): Print inner classes properly.
3192 * gcj/javaprims.h: Updated class list.
3194 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3195 initialize String fields for interpreted classes. Fixes bug
3196 reported by Hans Boehm.
3198 * java/io/File.java (getParentFile): New method, from Classpath
3199 via Oskar Liljeblad.
3201 * java/util/Vector.java (remove(Object)): Implemented.
3203 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3205 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3206 zero return from backtrace().
3208 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3210 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3212 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3213 before calling notifyAll().
3215 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3217 Add missing files from last check-in:
3218 * java/awt/image/ImageConsumer.java: New file.
3219 * java/awt/image/ImageProducer.java: New file.
3220 * java/awt/image/ImageObserver.java: New file.
3222 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3224 Merged implementation of java.applet from classpath:
3225 * java/applet/Applet.java: New file.
3226 * java/applet/AppletContext.java: New file.
3227 * java/applet/AppletStub.java: New file.
3228 * java/applet/AudioClip.java: New file.
3230 * Makefile.am: Added new java.applet classes.
3231 * Makefile.in: Rebuilt.
3233 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3236 * java/util/ResourceBundle.java (getLocale): stub.
3237 * Makefile.am: Added new AWT classes.
3238 * Makefile.in: Rebuilt.
3239 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3240 constructors. Fix toString() and paramString().
3241 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3242 * java/awt/CheckboxGroup.java: New class.
3243 * java/awt/ColorModel.java: New class.
3244 * java/awt/Component.java: Added stubs for most methods. Implemented
3246 * java/awt/Container.java: ditto.
3247 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3248 * java/awt/Cursor.java: ditto.
3249 * java/awt/Event.java: Fix paramString().
3250 * java/awt/EventQueue.java: New class. Implemented.
3251 * java/awt/Font.java: Added additional stub methods. Implemented
3253 * java/awt/FontMetrics.java: New class. Stubbed.
3254 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3256 * java/awt/Insets.java: New class. Implemented.
3257 * java/awt/Menu.java: Add new methods. Partially implemented.
3258 * java/awt/MenuItem.java: Add new methods and fields. Partially
3260 * java/awt/MenuShortcut.java: New class. Implemented.
3261 * java/awt/Panel.java: New class. Placeholder.
3262 * java/awt/PopupMenu.java: New class. Stubbed.
3263 * java/awt/Rectangle.java: New class. Implemented.
3264 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3265 * java/awt/event/ActionEvent.java: Implement paramString().
3266 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3267 * java/awt/event/ComponentEvent.java: Implement paramString().
3268 * java/awt/event/ContainerEvent.java: Implement paramString().
3269 * java/awt/event/FocusEvent.java: Implement paramString().
3270 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3271 * java/awt/event/HierarchyBoundsListener.java: New class.
3272 * java/awt/event/HierarchyEvent.java: New class.
3273 * java/awt/event/HierarchyListener.java: New class.
3274 * java/awt/event/InputMethodEvent.java: Implement paramString().
3275 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3276 exception if !catchExceptions.
3277 * java/awt/event/ItemEvent.java: Implement paramString().
3278 * java/awt/event/KeyEvent.java: Implement paramString().
3279 * java/awt/event/MouseEvent.java: Implement paramString().
3280 * java/awt/event/PaintEvent.java: Implement paramString().
3281 * java/awt/event/TextEvent.java: Implement paramString().
3282 * java/awt/event/WindowEvent.java: Implement paramString().
3284 AWT Peer interfaces:
3285 * java/awt/peer/ButtonPeer.java: New file.
3286 * java/awt/peer/ListPeer.java: New file.
3287 * java/awt/peer/CanvasPeer.java: New file.
3288 * java/awt/peer/MenuBarPeer.java: New file.
3289 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3290 * java/awt/peer/MenuComponentPeer.java: New file.
3291 * java/awt/peer/CheckboxPeer.java: New file.
3292 * java/awt/peer/MenuItemPeer.java: New file.
3293 * java/awt/peer/ChoicePeer.java: New file.
3294 * java/awt/peer/MenuPeer.java: New file.
3295 * java/awt/peer/ComponentPeer.java: Implemented.
3296 * java/awt/peer/PanelPeer.java: New file.
3297 * java/awt/peer/ContainerPeer.java: Implemented.
3298 * java/awt/peer/PopupMenuPeer.java: New file.
3299 * java/awt/peer/DialogPeer.java: New file.
3300 * java/awt/peer/ScrollPanePeer.java: New file.
3301 * java/awt/peer/FileDialogPeer.java: New file.
3302 * java/awt/peer/ScrollbarPeer.java: New file.
3303 * java/awt/peer/FontPeer.java: New file.
3304 * java/awt/peer/TextAreaPeer.java: New file.
3305 * java/awt/peer/FramePeer.java: Implemented.
3306 * java/awt/peer/TextComponentPeer.java: New file.
3307 * java/awt/peer/LabelPeer.java: New file.
3308 * java/awt/peer/TextFieldPeer.java: New file.
3309 * java/awt/peer/LightweightPeer.java: New file.
3310 * java/awt/peer/WindowPeer.java: Implemented.
3312 2000-07-06 Tom Tromey <tromey@cygnus.com>
3314 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3315 Initialize static final String fields.
3317 2000-07-03 Tom Tromey <tromey@cygnus.com>
3319 * java/io/PrintWriter.java (print): Call write(String), not
3320 print(String). See PR libgcj/277.
3321 (print(String)): Use write, not out.write.
3323 2000-06-30 Tom Tromey <tromey@cygnus.com>
3325 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3327 2000-06-27 Andrew Haley <aph@cygnus.com>
3329 * java/io/File.java (createTempFile): Close the FileDescriptor
3330 used to create a temp file. Fixes some of PR 203.
3331 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3332 collection if we run out of file handles.
3334 2000-06-28 Warren Levy <warrenl@cygnus.com>
3336 * gnu/java/security/provider/Gnu.java: New file.
3337 * gnu/java/security/provider/SHA.java: New file.
3338 * gnu/java/security/provider/SHA1PRNG.java: New file.
3339 * Makefile.am: Added the above files.
3340 * Makefile.in: Rebuilt.
3342 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3344 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3346 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3347 (destroyed_flag): Removed.
3348 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3349 (activeCount): Added spec note.
3351 2000-06-27 Warren Levy <warrenl@cygnus.com>
3353 * java/security/Principal.java: New file.
3354 * Makefile.am: Added Principal.java.
3355 * Makefile.in: Rebuilt.
3357 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3359 * java/awt/event/MouseEvent.java: Fixed coordinate space
3362 2000-06-27 Tom Tromey <tromey@cygnus.com>
3364 * java/io/PushbackInputStream.java (read): If there are characters
3365 in the buffer, don't also call super.read().
3366 * java/io/PushbackReader.java (read): If there are characters in
3367 the buffer, don't also call super.read().
3369 * java/lang/Double.java (valueOf): Call parseDouble().
3371 2000-06-26 Warren Levy <warrenl@cygnus.com>
3373 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3374 (newVal): Renamed to newValue.
3375 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3376 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3377 (revokeNow): Renamed to invalidateRefs.
3378 * java/io/OptionalDataException.java: Updated FIXME.
3379 (eof): New placeholder field.
3381 * java/io/WriteAbortedException.java (message): Made transient.
3382 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3383 * java/lang/Throwable.java (stackTrace): Made transient.
3384 * java/net/InetAddress.java: Made Serializable.
3385 * java/security/KeyPair.java: Made Serializable.
3386 * java/security/Provider.java: Replaced with Classpath version that
3387 implements serialization and proper methods.
3388 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3389 (limits): Renamed to choiceLimits.
3391 2000-06-24 Tom Tromey <tromey@cygnus.com>
3393 * java/lang/natDouble.cc (parseDouble): Renamed from
3395 * java/lang/Double.java (parseDouble): Renamed from
3396 doubleValueOf. Now public.
3398 2000-06-23 Andrew Haley <aph@cygnus.com>
3400 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3401 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3403 2000-06-23 Tom Tromey <tromey@cygnus.com>
3405 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3406 * java/lang/natDouble.cc: Always include <alloca.h>.
3407 Fix for PR libgcj/267.
3409 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3411 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3412 comply with classpath VM spec.
3413 (add(Group)): Rename to addGroup().
3414 * java/lang/Thread.java (Thread): Use addThread().
3415 * java/lang/natThread.cc (finish_): Use removeThread().
3417 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3419 * java/lang/ThreadGroup.java: Merged with classpath.
3420 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3421 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3423 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3424 ThreadGroup.root if Thread.currentThread is null. Honour the
3425 ThreadGroup's max priority setting.
3427 2000-06-18 Tom Tromey <tromey@cygnus.com>
3429 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3430 returned class. For PR gcj/260.
3432 2000-06-16 Tom Tromey <tromey@cygnus.com>
3434 Fix for PR libgcj/261:
3435 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3437 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3438 argument. (This is a patch from long ago that somehow went
3441 2000-06-15 Tom Tromey <tromey@cygnus.com>
3443 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3447 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3449 Fix for PR java.lang/258:
3450 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3451 JV_STATE_DONE, to prevent accidental initialization.
3452 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3453 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3454 interface or an abstract class. Remove redundant initializeClass calls.
3455 Remove duplicate if_idt test.
3456 (_Jv_InterfaceAssignableFrom): New function.
3457 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3459 2000-05-31 Tom Tromey <tromey@cygnus.com>
3461 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3462 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3463 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3464 (NUM_OBJECT_METHODS): New define.
3465 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3466 `array_vtable' parameter. Added assertion.
3467 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3470 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3472 * gcj/cni.h: Include <string.h>.
3473 * defineclass.cc: Include <alloca.h>.
3474 * interpret.cc: Ditto.
3475 * gij.cc: Include <stdlib.h>.
3477 2000-05-30 Tom Tromey <tromey@cygnus.com>
3479 * include/name-finder.h: Include <sys/wait.h>.
3480 (_Jv_name_finder::pid): Now of type `pid_t'.
3481 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3482 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3485 2000-05-24 Warren Levy <warrenl@cygnus.com>
3487 * java/io/ObjectOutputStream.java (writeObject): Use component type
3488 when writing arrays.
3491 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3493 Fix for PR libgcj/226:
3494 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3495 since this is an installed header.
3497 Fix for PR libgcj/228:
3498 * java/util/zip/ZipFile (getInputStream): Create inflater with
3501 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3502 with DataFormatException.
3504 2000-05-20 Tom Tromey <tromey@cygnus.com>
3506 * Makefile.in: Rebuilt.
3507 * Makefile.am (hack1): Removed.
3508 (awto_files): Likewise.
3509 (libgcjawt_la_SOURCES): Likewise.
3510 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3511 (libgcjawt_la_DEPENDENCIES): Likewise.
3512 (libgcjawt_la_LIBADD): Likewise.
3513 (libgcjawt_la_LDFLAGS): Likewise.
3514 (libgcjawt_la_LINK): Likewise.
3515 ($(awt_java_source_files:.java=.class)): Likewise.
3516 (libgcj.zip): Don't depend on AWT files.
3517 (MOSTLYCLEANFILES): Don't include AWT files.
3518 ($(awto_files)): Removed.
3519 (nat_headers): Removed AWT files.
3520 (cond_awt_java_source_files): Removed.
3521 (ordinary_java_source_files): Added awt_java_source_files.
3522 * libgcj.spec.in (*lib): Removed -lgcjawt.
3523 * configure: Rebuilt.
3524 * configure.in: Removed --enable-java-awt option.
3526 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3528 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3529 (ZipEntry): Copy the `name' field.
3530 (clone): Implement JDK1.2 method.
3531 (setCompressedSize): ditto.
3534 2000-05-19 Tom Tromey <tromey@cygnus.com>
3536 * java/io/BufferedWriter.java: Merged with Classpath.
3537 * java/io/BufferedOutputStream.java: Merged with Classpath.
3539 2000-05-16 Andrew Haley <aph@cygnus.com>
3541 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3542 build_ia64_frame_state.
3543 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3546 2000-05-15 Warren Levy <warrenl@cygnus.com>
3548 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3549 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3550 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3551 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3552 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3553 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3554 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3555 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3556 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3557 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3558 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3559 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3560 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3561 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3562 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3563 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3564 * gnu/gcj/io/NullOutputStream.java: Removed.
3565 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3566 * gnu/gcj/lang/ArrayHelper.java: Removed.
3567 * gnu/gcj/lang/ClassHelper.java: Removed.
3568 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3570 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3571 * gnu/java/beans/EmptyBeanInfo.java: New file.
3572 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3573 * gnu/java/beans/IntrospectionIncubator.java: New file.
3574 * gnu/java/beans/editors/ColorEditor.java: New file.
3575 * gnu/java/beans/editors/FontEditor.java: New file.
3576 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3577 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3578 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3579 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3580 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3581 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3582 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3583 * gnu/java/beans/editors/StringEditor.java: New file.
3584 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3585 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3586 * gnu/java/io/NullOutputStream.java: New file.
3587 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3588 * gnu/java/lang/ArrayHelper.java: New file.
3589 * gnu/java/lang/ClassHelper.java: New file.
3590 * gnu/java/lang/reflect/TypeSignature.java: New file.
3592 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3593 namespace back to the original Classpath gnu/java namespace.
3594 * Makefile.in: Rebuilt.
3596 * java/beans/Beans.java: Namespace change.
3597 * java/beans/EventSetDescriptor.java: Namespace change.
3598 * java/beans/Introspector.java: Namespace change.
3599 * java/beans/PropertyEditorManager.java: Namespace change.
3600 * java/io/ObjectInputStream.java: Namespace change.
3601 * java/io/ObjectOutputStream.java: Namespace change.
3602 * java/io/ObjectStreamClass.java: Namespace change.
3603 * java/io/ObjectStreamField.java: Namespace change.
3605 2000-04-21 Warren Levy <warrenl@cygnus.com>
3607 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3608 now that compiler patch is available.
3609 Removed unneeded System.loadLibrary.
3610 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3611 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3613 2000-04-19 Andrew Haley <aph@cygnus.com>
3615 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3616 and target classes have been initialized.
3618 2000-04-19 Andrew Haley <aph@cygnus.com>
3620 * java/lang/String.java: implement Serializable, Comparable.
3621 (compareTo (Object)): New method.
3623 2000-04-19 Warren Levy <warrenl@cygnus.com>
3625 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3626 instead of getField to retrieve non-public field.
3627 (getSerialPersistantFields): Ditto.
3629 2000-04-18 Warren Levy <warrenl@cygnus.com>
3631 * mauve-libgcj: Turned off object serialization tests temporarily
3632 due to compiler error.
3634 2000-04-17 Warren Levy <warrenl@cygnus.com>
3636 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3637 to avoid build problem.
3639 * mauve-libgcj: Turned on object serialization tests.
3641 2000-04-17 Tom Tromey <tromey@cygnus.com>
3643 * libgcj.spec.in (*lib): Added -lgcjawt.
3645 2000-04-17 Andrew Haley <aph@cygnus.com>
3647 * Makefile.am: Add new files:
3648 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3650 * Makefile.in: Rebuilt.
3652 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3653 interface that has no implementations.
3654 Check for an attempt to assign an abstract class to an interface.
3656 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3657 if we fail to find MessageDigest.getInstance ("SHA").
3659 * gnu/gcj/io/SimpleSHSStream.java: New file.
3660 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3661 * gnu/gcj/io/shs.cc: New file.
3662 * gnu/gcj/io/shs.h: new file.
3664 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3667 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3668 punctuation from the classname of an array element.
3670 * gcj/javaprims.h: Add SimpleDigestStream.
3672 2000-04-17 Andrew Haley <aph@cygnus.com>
3674 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3675 to getPrivateField for superclasses.
3677 2000-04-14 Andrew Haley <aph@cygnus.com>
3679 * Makefile.am: Add new files:
3680 java/io/ObjectOutputStream$PutField.h,
3681 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3682 java/io/natObjectOutputStream.cc
3683 * Makefile.in: Rebuilt.
3684 * gcj/Makefile.in: Rebuilt.
3685 * include/Makefile.in: Rebuilt.
3686 * java/lang/Class.h (getPrivateField): New method.
3687 (getPrivateMethod): Ditto.
3688 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3689 and java::io::ObjectStreamClass our friends.
3690 * java/lang/natClass.cc (getPrivateField): New method.
3691 (getPrivateMethod): Ditto.
3692 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3693 * gcj/javaprims.h: Add serialization classes.
3694 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3695 (setByteField): Ditto.
3696 (setCharField): Ditto.
3697 (setDoubleField): Ditto.
3698 (setFloatField): Ditto.
3699 (setIntField): Ditto.
3700 (setLongField): Ditto.
3701 (setShortField): Ditto.
3702 (setObjectField): Ditto.
3703 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3705 (getByteField): Ditto.
3706 (getCharField): Ditto.
3707 (getDoubleField): Ditto.
3708 (getFloatField): Ditto.
3709 (getIntField): Ditto.
3710 (getLongField): Ditto.
3711 (getShortField): Ditto.
3712 (getObjectField): Ditto.
3713 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3715 (getSerialPersistantFields): Ditto.
3716 (getDefinedSUID): Ditto.
3717 * java/io/natObjectOutputStream.cc: New file.
3718 * java/io/natObjectInputStream.cc: New file.
3720 2000-04-13 Warren Levy <warrenl@cygnus.com>
3722 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3723 problems. Revert to previous version to reproduce and when fixed.
3725 2000-04-13 Warren Levy <warrenl@cygnus.com>
3727 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3728 * gnu/gcj/io/NullOutputStream.java: New file.
3729 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3730 * java/io/BlockDataException.java: New file.
3731 * java/io/Externalizable.java: New file.
3732 * java/io/InvalidClassException.java: New file.
3733 * java/io/InvalidObjectException.java: New file.
3734 * java/io/NotActiveException.java: New file.
3735 * java/io/NotSerializableException.java: New file.
3736 * java/io/ObjectInput.java: New file.
3737 * java/io/ObjectInputStream.java: New file.
3738 * java/io/ObjectInputValidation.java: New file.
3739 * java/io/ObjectOutput.java: New file.
3740 * java/io/ObjectOutputStream.java: New file.
3741 * java/io/ObjectStreamClass.java: New file.
3742 * java/io/ObjectStreamConstants.java: New file.
3743 * java/io/ObjectStreamField.java: New file.
3744 * java/io/Replaceable.java: New file.
3745 * java/io/Resolvable.java: New file.
3746 * java/io/SerializablePermission.java: New file.
3747 * java/io/WriteAbortedException.java: New file.
3748 * java/security/BasicPermission.java: New file.
3749 * java/security/DigestOutputStream.java: New file.
3750 * java/security/Guard.java: New file.
3751 * java/security/Permission.java: New file.
3752 * java/security/PermissionCollection.java: New file.
3753 * Makefile.am: Added above files.
3754 * Makefile.in: Rebuilt.
3756 * java/beans/Beans.java (instantiate): Activated serialization code.
3757 * java/lang/SecurityManager.java (checkPermission): New method.
3759 2000-04-12 Warren Levy <warrenl@cygnus.com>
3761 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3762 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3763 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3764 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3765 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3766 * gnu/gcj/beans/editors/FontEditor.java: New file.
3767 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3768 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3769 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3770 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3771 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3772 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3773 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3774 * gnu/gcj/beans/editors/StringEditor.java: New file.
3775 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3776 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3777 * gnu/gcj/lang/ArrayHelper.java: New file.
3778 * gnu/gcj/lang/ClassHelper.java: New file.
3779 * java/beans/BeanDescriptor.java: New file.
3780 * java/beans/BeanInfo.java: New file.
3781 * java/beans/Beans.java: New file.
3782 * java/beans/Customizer.java: New file.
3783 * java/beans/DesignMode.java: New file.
3784 * java/beans/EventSetDescriptor.java: New file.
3785 * java/beans/FeatureDescriptor.java: New file.
3786 * java/beans/IndexedPropertyDescriptor.java: New file.
3787 * java/beans/IntrospectionException.java: New file.
3788 * java/beans/Introspector.java: New file.
3789 * java/beans/MethodDescriptor.java: New file.
3790 * java/beans/ParameterDescriptor.java: New file.
3791 * java/beans/PropertyChangeEvent.java: New file.
3792 * java/beans/PropertyChangeListener.java: New file.
3793 * java/beans/PropertyChangeSupport.java: New file.
3794 * java/beans/PropertyDescriptor.java: New file.
3795 * java/beans/PropertyEditor.java: New file.
3796 * java/beans/PropertyEditorManager.java: New file.
3797 * java/beans/PropertyEditorSupport.java: New file.
3798 * java/beans/PropertyVetoException.java: New file.
3799 * java/beans/SimpleBeanInfo.java: New file.
3800 * java/beans/VetoableChangeListener.java: New file.
3801 * java/beans/VetoableChangeSupport.java: New file.
3802 * java/beans/Visibility.java: New file.
3803 * java/beans/beancontext/BeanContext.java: New file.
3804 * java/beans/beancontext/BeanContextChild.java: New file.
3805 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3806 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3807 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3808 * java/beans/beancontext/BeanContextEvent.java: New file.
3809 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3810 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3811 * java/beans/beancontext/BeanContextProxy.java: New file.
3812 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3814 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3815 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3817 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3818 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3820 * java/beans/beancontext/BeanContextServices.java: New file.
3821 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3822 * java/util/AbstractCollection.java: New file.
3823 * java/util/AbstractList.java: New file.
3824 * java/util/Arrays.java: New file.
3825 * Makefile.am: Added above files.
3826 * Makefile.in: Rebuilt.
3828 2000-04-11 Warren Levy <warrenl@cygnus.com>
3830 * java/awt/AWTError.java: New file.
3831 * java/awt/AWTEvent.java: New file.
3832 * java/awt/AWTException.java: New file.
3833 * java/awt/ActiveEvent.java: New file.
3834 * java/awt/Adjustable.java: New file.
3835 * java/awt/BorderLayout.java: New file.
3836 * java/awt/Color.java: New file.
3837 * java/awt/Component.java: New file.
3838 * java/awt/Container.java: New file.
3839 * java/awt/Dimension.java: New file.
3840 * java/awt/Event.java: New file.
3841 * java/awt/Font.java: New file.
3842 * java/awt/Frame.java: New file.
3843 * java/awt/Graphics.java: New file.
3844 * java/awt/IllegalComponentStateException.java: New file.
3845 * java/awt/Image.java: New file.
3846 * java/awt/ItemSelectable.java: New file.
3847 * java/awt/LayoutManager.java: New file.
3848 * java/awt/LayoutManager2.java: New file.
3849 * java/awt/Menu.java: New file.
3850 * java/awt/MenuBar.java: New file.
3851 * java/awt/MenuComponent.java: New file.
3852 * java/awt/MenuContainer.java: New file.
3853 * java/awt/MenuItem.java: New file.
3854 * java/awt/Paint.java: New file.
3855 * java/awt/PaintContext.java: New file.
3856 * java/awt/Point.java: New file.
3857 * java/awt/Rectangle.java: New file.
3858 * java/awt/Shape.java: New file.
3859 * java/awt/TextArea.java: New file.
3860 * java/awt/TextComponent.java: New file.
3861 * java/awt/Toolkit.java: New file.
3862 * java/awt/Transparency.java: New file.
3863 * java/awt/Window.java: New file.
3864 * java/awt/natToolkit.cc: New file.
3865 * java/awt/event/AWTEventListener.java: New file.
3866 * java/awt/event/ActionEvent.java: New file.
3867 * java/awt/event/ActionListener.java: New file.
3868 * java/awt/event/AdjustmentEvent.java: New file.
3869 * java/awt/event/AdjustmentListener.java: New file.
3870 * java/awt/event/ComponentAdapter.java: New file.
3871 * java/awt/event/ComponentEvent.java: New file.
3872 * java/awt/event/ComponentListener.java: New file.
3873 * java/awt/event/ContainerAdapter.java: New file.
3874 * java/awt/event/ContainerEvent.java: New file.
3875 * java/awt/event/ContainerListener.java: New file.
3876 * java/awt/event/FocusAdapter.java: New file.
3877 * java/awt/event/FocusEvent.java: New file.
3878 * java/awt/event/FocusListener.java: New file.
3879 * java/awt/event/InputEvent.java: New file.
3880 * java/awt/event/InputMethodEvent.java: New file.
3881 * java/awt/event/InputMethodListener.java: New file.
3882 * java/awt/event/InvocationEvent.java: New file.
3883 * java/awt/event/ItemEvent.java: New file.
3884 * java/awt/event/ItemListener.java: New file.
3885 * java/awt/event/KeyAdapter.java: New file.
3886 * java/awt/event/KeyEvent.java: New file.
3887 * java/awt/event/KeyListener.java: New file.
3888 * java/awt/event/MouseAdapter.java: New file.
3889 * java/awt/event/MouseEvent.java: New file.
3890 * java/awt/event/MouseListener.java: New file.
3891 * java/awt/event/MouseMotionAdapter.java: New file.
3892 * java/awt/event/MouseMotionListener.java: New file.
3893 * java/awt/event/PaintEvent.java: New file.
3894 * java/awt/event/TextEvent.java: New file.
3895 * java/awt/event/TextListener.java: New file.
3896 * java/awt/event/WindowAdapter.java: New file.
3897 * java/awt/event/WindowEvent.java: New file.
3898 * java/awt/event/WindowListener.java: New file.
3899 * java/awt/geom/Dimension2D.java: New file.
3900 * java/awt/geom/Point2D.java: New file.
3901 * java/awt/peer/ComponentPeer.java: New file.
3902 * java/awt/peer/ContainerPeer.java: New file.
3903 * java/awt/peer/FramePeer.java: New file.
3904 * java/awt/peer/WindowPeer.java: New file.
3905 * java/util/Collection.java: New file.
3906 * java/util/Comparator.java: New file.
3907 * java/util/Iterator.java: New file.
3908 * java/util/List.java: New file.
3909 * java/util/ListIterator.java: New file.
3910 * Makefile.am: Added above files.
3911 * Makefile.in: Rebuilt.
3913 2000-04-10 Warren Levy <warrenl@cygnus.com>
3915 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3916 * java/lang/FirstThread.java: Ditto.
3917 * java/lang/StringBuffer.java: Ditto.
3918 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3920 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3921 Special case handled in java.math.BigInteger.
3922 * java/math/BigInteger.java (divide): Handle the special case when
3923 dividing by 1 and the high bit of the dividend is set.
3924 (setShiftRight): Handle case when count == 0.
3926 2000-04-05 Andrew Haley <aph@cygnus.com>
3928 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3931 2000-04-05 Andrew Haley <aph@cygnus.com>
3933 * sysdep/ia64.c (rse_address_add): Delete.
3934 (IS_NaT_COLLECTION_ADDR): Delete.
3935 (ia64_backtrace_helper): check for null unwind_info.
3937 * sysdep/ia64-frame.h: add calc_caller_bsp.
3939 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3942 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3943 (_Jv_remI): Likewise.
3944 (_Jv_divJ): Likewise.
3945 (_Jv_remJ): Likewise.
3947 * interpret.cc (continue1): Use divide subroutines to guarantee
3948 correct Java standard behaviour.
3949 Floating-point division should not abort; make it so.
3951 2000-03-29 Tom Tromey <tromey@cygnus.com>
3953 * configure: Rebuilt.
3954 * configure.in: Test against `libgcj_sjlj', not
3955 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3956 to be set even when using sjlj.
3958 2000-03-24 Andrew Haley <aph@cygnus.com>
3960 * Makefile.am: Add file addr2name.awk.
3961 * Makefile.in: Rebuilt.
3962 * addr2name.awk: New file.
3963 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3965 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3968 2000-03-22 Andrew Haley <aph@cygnus.com>
3970 * configure.host: Add -funwind-tables for IA64.
3971 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3972 * Makefile.in: Rebuilt.
3973 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3974 * sysdep/ia64.c: New file.
3975 * sysdep/ia64-frame.h: New file.
3976 * configure.in: Add sysdep/ia64.c for ia64.
3977 * configure: Rebuilt.
3979 2000-03-17 Andrew Haley <aph@cygnus.com>
3981 * java/lang/natString.cc: Remove `register' keyword.
3982 interpret.cc: ditto.
3984 2000-03-16 Andrew Haley <aph@cygnus.com>
3986 * configure.host (ia64): Enable interpreter.
3988 2000-03-14 Hans Boehm <boehm@acm.org>
3990 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3992 2000-03-14 Andrew Haley <aph@cygnus.com>
3994 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3997 2000-03-10 Andrew Haley <aph@cygnus.com>
3999 * java/lang/ieeefp.h: Import latest version from fdlibm.
4001 2000-03-14 Andrew Haley <aph@cygnus.com>
4003 * prims.cc (_Jv_ThrowSignal): New function.
4004 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4006 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4007 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4008 * include/ppc-signal.h: New file.
4010 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4012 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4013 * java/lang/natThread.java (initialize_native): Cast `data' to
4015 * gnu/gcj/RawData.java: Clarify documentation.
4017 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4018 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4019 `jarFile', not `jarFileURL'.
4021 2000-05-15 Andrew Haley <aph@cygnus.com>
4023 * include/ppc-signal.h: New file.
4025 2000-05-11 Tom Tromey <tromey@cygnus.com>
4027 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4028 file headers, don't include `size' in the skip call.
4030 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4032 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4033 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4035 (replace): Reimplemented. Fix javadoc.
4036 (reverse): Call ensureCapacity_unsynchronized().
4037 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4039 (replace): Calculate length for arraycopy() correctly.
4041 2000-05-09 Tom Tromey <tromey@cygnus.com>
4043 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4045 (insert(int,char[],int,int): New method.
4046 (delete): New method from Classpath.
4047 (deleteCharAt): Likewise.
4048 (substring): Likewise.
4049 (shared): No longer private.
4050 Added JavaDoc comments from Classpath.
4051 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4054 2000-05-07 Tom Tromey <tromey@cygnus.com>
4056 * Makefile.in: Rebuilt.
4057 * Makefile.am (LIBLINK): New macro.
4058 (libgcj_la_LINK): Use it.
4059 (libgcjawt_la_LINK): Likewise.
4061 2000-05-06 Tom Tromey <tromey@cygnus.com>
4063 * Makefile.in: Rebuilt.
4064 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4066 2000-05-05 Tom Tromey <tromey@cygnus.com>
4068 Fix for PR libgcj/220:
4069 * Makefile.in: Rebuilt.
4070 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4071 (jv_convert_LDFLAGS): Likewise.
4072 (libgcj_la_LDFLAGS): Likewise.
4073 (GCJLINK): New macro.
4074 (jv_convert_LINK): Use it.
4075 (gij_LINK): Likewise.
4076 (libgcj_la_LINK): New macro.
4077 (libgcjawt_la_LINK): Likewise.
4079 2000-05-04 Tom Tromey <tromey@cygnus.com>
4081 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4083 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4087 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4089 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4090 (_Jv_IsAssignableFrom): Ditto.
4091 (_Jv_IsInstanceOf): Ditto.
4092 (_Jv_CheckCast): Ditto.
4093 (_Jv_CheckArrayStore): Ditto.
4094 * java/lang/Class.h (_Jv_InitClass): Ditto.
4095 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4100 (_Jv_MonitorExit): Ditto.
4101 * boehm.cc (_Jv_MarkObj): Ditto.
4102 (_Jv_MarkObj): Ditto.
4103 (_Jv_MarkArray): Ditto.
4104 * prims.cc (_Jv_AllocObject): Ditto.
4105 (_Jv_NewObjectArray): Ditto.
4106 (_Jv_NewPrimArray): Ditto.
4107 (_Jv_Malloc): Ditto.
4108 (_Jv_Realloc): Ditto.
4109 (_Jv_MallocUnchecked): Ditto.
4115 2000-05-04 Tom Tromey <tromey@cygnus.com>
4117 * java/util/Locale.java (Locale): Don't explicitly check for
4119 * java/util/Hashtable.java (containsKey): Don't explicitly check
4122 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4124 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4126 * java/text/StringCharacterIterator.java
4127 (StringCharacterIterator): Don't check for null.
4128 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4130 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4131 check for null pointer.
4132 (leaveGroup): Likewise.
4133 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4135 (setData): Likewise.
4136 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4139 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4141 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4142 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4143 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4144 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4145 -rpath for in-gcc builds.
4146 * Makefile.in: Rebuilt.
4148 2000-04-28 Tom Tromey <tromey@cygnus.com>
4150 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4153 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4155 * libjava/java/lang/String.java (toString): Remove `final' hack.
4157 2000-04-05 Tom Tromey <tromey@cygnus.com>
4159 Runtime support for PR gcj/2:
4160 * prims.cc (_Jv_ThrowNullPointerException): New function.
4161 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4163 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4165 * prims.cc (_Jv_NewObjectArray): Fix typo.
4167 2000-04-26 Tom Tromey <tromey@cygnus.com>
4169 * Makefile.in: Rebuilt.
4170 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4172 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4174 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4177 2000-04-22 Anthony Green <green@cygnus.com>
4179 * include/jvm.h (__builtin_expect): Define as unused for now.
4180 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4184 (_Jv_MonitorExit): Ditto.
4185 * boehm.cc (_Jv_MarkObj): Ditto.
4186 (_Jv_MarkObj): Ditto.
4187 (_Jv_MarkArray): Ditto.
4188 (_Jv_AllocBytes): Ditto.
4189 * prims.cc (_Jv_AllocObject): Ditto.
4190 (_Jv_NewObjectArray): Ditto.
4191 (_Jv_NewPrimArray): Ditto.
4192 (_Jv_Malloc): Ditto.
4193 (_Jv_Realloc): Ditto.
4194 (_Jv_MallocUnchecked): Ditto.
4200 * include/Makefile.in: Rebuilt.
4201 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4203 2000-04-21 Tom Tromey <tromey@cygnus.com>
4205 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4206 Yet another new version from Classpath.
4208 Fix for PR libgcj/15:
4209 * java/util/natGregorianCalendar.cc (_REENTRANT,
4210 _POSIX_PTHREAD_SEMANTICS): Don't define.
4211 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4212 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4214 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4216 * configure: Rebuilt.
4217 * configure.in: If using POSIX threads, define _REENTRANT if
4218 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4219 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4221 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4222 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4223 version from Classpath.
4225 Fix for PR libgcj/213:
4226 * Makefile.in: Rebuilt.
4227 * Makefile.am (gij_SOURCES): Added gij.cc.
4228 (EXTRA_gij_SOURCES): Removed.
4229 (gij_LDADD): Removed gij.lo.
4230 (gij_DEPENDENCIES): Likewise.
4231 ($(gij_OBJECTS)): Depend on nat_headers.
4233 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4234 `setURL', not `url.set'.
4236 2000-04-20 Tom Tromey <tromey@cygnus.com>
4238 Fix for PR java.io/204:
4239 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4240 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4243 Fix for PR libgcj/212:
4244 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4245 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4246 * java/lang/Class.h (_Jv_word): Declare.
4248 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4250 2000-04-19 Tom Tromey <tromey@cygnus.com>
4252 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4253 doesn't have a loader.
4255 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4257 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4258 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4260 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4262 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4264 (available): Initialize `where' to prevent bogus compiler warning.
4266 2000-04-12 Tom Tromey <tromey@cygnus.com>
4268 * java/lang/natString.cc (intern): Temporarily disable finalizer
4271 * java/lang/natString.cc (unintern): Added `obj' argument.
4272 (intern): Register finalizer for string.
4273 * java/lang/String.java (unintern): Now static; added obj
4276 2000-04-11 Tom Tromey <tromey@cygnus.com>
4278 * java/util/Vector.java (VectorEnumeration): Now `final'.
4279 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4280 (HashtableEnumeration): Likewise.
4281 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4282 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4284 2000-04-10 Warren Levy <warrenl@cygnus.com>
4286 * java/io/ObjectStreamException.java: New file.
4287 * java/io/OptionalDataException.java: New file.
4288 * java/io/StreamCorruptedException.java: New file.
4289 * java/math/BigDecimal.java: New file.
4290 * java/sql/CallableStatement.java: New file.
4291 * java/sql/Connection.java: New file.
4292 * java/sql/DataTruncation.java: New file.
4293 * java/sql/DatabaseMetaData.java: New file.
4294 * java/sql/Date.java: New file.
4295 * java/sql/Driver.java: New file.
4296 * java/sql/DriverManager.java: New file.
4297 * java/sql/DriverPropertyInfo.java: New file.
4298 * java/sql/PreparedStatement.java: New file.
4299 * java/sql/ResultSet.java: New file.
4300 * java/sql/ResultSetMetaData.java: New file.
4301 * java/sql/SQLException.java: New file.
4302 * java/sql/SQLWarning.java: New file.
4303 * java/sql/Statement.java: New file.
4304 * java/sql/Time.java: New file.
4305 * java/sql/Timestamp.java: New file.
4306 * java/sql/Types.java: New file.
4307 * Makefile.am: Added above new files.
4308 * Makefile.in: Rebuilt.
4310 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4311 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4312 DatagramSocket constructor instead of null.
4314 2000-04-08 Anthony Green <green@cygnus.com>
4316 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4319 2000-04-08 Anthony Green <green@cygnus.com>
4321 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4322 (_Jv_MutexUnlock): Ditto.
4323 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4324 (_Jv_MutexUnlock): Ditto.
4326 2000-04-08 Anthony Green <green@cygnus.com>
4328 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4329 (ensureCapacity_unsynchronized): New private method.
4330 (append): Use ensureCapacity_unsynchronized.
4332 2000-04-08 Tom Tromey <tromey@cygnus.com>
4334 * Makefile.in: Rebuilt.
4335 * Makefile.am (awt_java_source_files): Added new files.
4336 * java/awt/IllegalComponentStateException.java: New file.
4337 * java/awt/ItemSelectable.java: New file.
4338 * java/awt/event/WindowEvent.java: Finished.
4339 * java/awt/event/TextEvent.java: Finished.
4340 * java/awt/event/ContainerEvent.java: New file.
4341 * java/awt/Component.java (getX, getY): New methods.
4342 * java/awt/event/PaintEvent.java: New file.
4343 * java/awt/event/MouseEvent.java: New file.
4344 * java/awt/ActiveEvent.java: New file.
4345 * java/awt/event/KeyEvent.java: Finished.
4346 * java/awt/event/ItemEvent.java: New file.
4347 * java/awt/Adjustable.java: New file.
4348 * java/awt/event/InputMethodEvent.java: New file.
4349 * java/awt/event/InputEvent.java: Finished.
4350 * java/awt/event/FocusEvent.java: New file.
4351 * java/awt/event/MouseMotionAdapter.java: New file.
4352 * java/awt/event/MouseAdapter.java: New file.
4353 * java/awt/event/KeyAdapter.java: New file.
4354 * java/awt/event/FocusAdapter.java: New file.
4355 * java/awt/event/ContainerAdapter.java: New file.
4356 * java/awt/event/ComponentEvent.java: Finished.
4357 * java/awt/event/AdjustmentEvent.java: New file.
4358 * java/awt/event/ComponentAdapter.java: New file.
4359 * java/awt/event/ActionEvent.java: Finished.
4360 * java/awt/event/MouseMotionListener.java: New file.
4361 * java/awt/event/MouseListener.java: New file.
4362 * java/awt/event/ItemListener.java: New file.
4363 * java/awt/event/InputMethodListener.java: New file.
4364 * java/awt/event/ContainerListener.java: New file.
4365 * java/awt/event/FocusListener.java: New file.
4366 * java/awt/event/ComponentListener.java: New file.
4367 * java/awt/event/AWTEventListener.java: New file.
4368 * java/awt/event/AdjustmentListener.java: New file.
4370 2000-04-08 Anthony Green <green@cygnus.com>
4372 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4373 check when we have to.
4375 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4378 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4381 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4382 inline hasMoreElements.
4384 2000-04-05 Tom Tromey <tromey@cygnus.com>
4386 * configure: Rebuilt.
4387 * configure.in: Recognize --enable-java-awt.
4388 (AWT): New conditional.
4389 * Makefile.in: Rebuilt.
4390 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4392 (libgcjawt_la_SOURCES): New macro.
4393 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4394 (libgcjawt_la_DEPENDENCIES): Likewise.
4395 (libgcjawt_la_LIBADD): Likewise.
4396 (libgcjawt_la_LDFLAGS): Likewise.
4397 (libgcj.zip): Depend on cond_java_awt_source_files
4398 (cond_awt_java_source_files): New macro.
4399 (MOSTLYCLEANFILES): Added awto_files.
4400 (awto_files): New macro. Use where javao_files used.
4401 (nat_headers): Use cond_awt_java_source_files.
4403 2000-04-04 Tom Tromey <tromey@cygnus.com>
4405 * Makefile.in: Rebuilt.
4406 * Makefile.am (awt_java_source_files): Added AWTException.java.
4407 * java/awt/AWTException.java: New file.
4409 2000-04-03 Tom Tromey <tromey@cygnus.com>
4411 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4412 commentary from Alex.
4414 * Makefile.in: Rebuilt.
4415 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4418 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4420 * configure: Rebuilt.
4421 * configure.in: Add --disable-jvmpi.
4422 * include/config.h.in: Rebuilt.
4423 * acconfig.h: Add ENABLE_JVMPI.
4425 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4426 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4427 (_Jv_JVMPI_Notify_THREAD_END): New define.
4428 (_Jv_JVMPI_Notify_THREAD_END): New define.
4429 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4430 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4431 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4433 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4436 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4437 (finish_): Generate JVMPI thread end events.
4438 (run_): Generate JVMPI thread start events.
4439 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4440 preloaded JNI library.
4441 Include JVMPI headers if necessary.
4442 (run): Generate JVMPI thread start events.
4444 * boehm.cc: Define GC_disable and GC_enable.
4445 (_Jv_DisableGC): New function.
4446 (_Jv_EnableGC): New function.
4447 (disable_gc_mutex): Declare.
4448 * nogc.cc (_Jv_DisableGC): New function.
4449 (_Jv_EnableGC): New function.
4451 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4452 (_Jv_JVMPI_Interface): Define.
4453 (jvmpiEnableEvent): New function.
4454 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4456 * include/jvmpi.h: New file.
4458 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4460 * Makefile.in: New #defines and friends for Thread.h.
4461 * Makefile.am: Ditto.
4462 * posix-threads.cc: (struct starter): Remove `object'.
4463 (_Jv_CondWait): Use interruptable condition variables and new
4464 recursive mutexes. New return codes on interrupt or non-ownership
4466 (_Jv_CondNotify): Ditto.
4467 (_Jv_CondNotifyAll): Ditto.
4468 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4469 the target thread by signaling its wait condition.
4470 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4471 not the starter struct. Initialize wait_mutex and wait_cond.
4472 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4474 (_Jv_MutexUnlock): Ditto.
4475 (really_start): Set info->data->thread from pthread_self() to work
4476 around a race condition. Destroy wait_mutex and wait_cond when run()
4478 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4479 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4481 startable_flag: New private field.
4482 (Thread): Initialize `startable_flag'.
4483 (toString): Check for null thread group.
4484 * java/lang/natThread.cc: (struct natThread): New fields
4485 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4486 (class locker): Removed.
4487 (initialize_native): Initialize `join_cond' and `join_mutex'.
4488 (interrupt): Now just calls _Jv_ThreadInterrupt().
4489 (join): Simplified. Just wait on the target thread's join condition.
4490 (finish_): Remove join list code. Unset thread group. Signal
4491 potential joiners by notifying the dying threads join_cond.
4492 (start): Check for illegal restarts.
4493 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4495 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4496 #defines and #ifdefs.
4497 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4498 `wait_mutex', `next'.
4499 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4500 directly mapping to pthread_cond_t.
4501 (struct _Jv_Mutex_t): New recursive implementation.
4502 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4503 _Jv_HaveCondDestroy: Never define this for posix-threads.
4504 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4505 (_Jv_CondNotifyAll): Ditto.
4506 (_Jv_MutexLock): Ditto.
4507 (_Jv_MutexUnlock): Ditto.
4508 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4509 (_Jv_MutexDestroy): Ditto.
4510 (_Jv_CondDestroy): Removed.
4511 (_Jv_PthreadGetMutex): Removed.
4512 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4513 error. Add a FIXME about this.
4514 (_Jv_CondNotifyAll): Ditto.
4515 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4516 _JV_NOT_OWNER on other errors. Add FIXME.
4518 2000-03-26 Tom Tromey <tromey@cygnus.com>
4520 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4522 (call): Don't throw exception here.
4524 2000-03-26 Tom Tromey <tromey@cygnus.com>
4526 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4527 * interpret.cc: Use SIZEOF_VOID_P.
4528 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4529 (_Jv_loadLong): Likewise.
4530 (_Jv_storeDouble): Likewise.
4531 * configure: Rebuilt.
4532 * configure.in: Check size of void*.
4534 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4536 2000-03-26 Hans Boehm <boehm@acm.org>
4538 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4539 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4541 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4542 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4543 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4544 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4546 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4547 (FFI_RAW_SIZE): Likewise.
4548 (_Jv_InterpMethod::ncode): Use them.
4549 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4550 STORED): Define differently on a 64 bit machine.
4551 (continue1): Use ffi_java_raw_call when appropriate.
4553 2000-03-24 Warren Levy <warrenl@cygnus.com>
4555 * java/math/BigInteger.java(divide): Handle the special case when
4556 dividing by 1 and the high bit of the dividend is set.
4557 (setShiftRight): Handle case when count == 0.
4559 2000-03-24 Warren Levy <warrenl@cygnus.com>
4561 * java/awt/Font.java(isBold): Fix syntax error.
4563 * java/awt/Frame.java(postEvent): ditto.
4564 * java/awt/Menu.java(postEvent): ditto.
4565 * java/awt/MenuBar.java(postEvent): ditto.
4566 * java/awt/Toolkit.java(init): Included a stub.
4568 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4570 * java/awt/Event.java: Add all the event type constants.
4571 (Event): Implemented constructors.
4572 (controlDown): Implemented.
4573 (metaDown): Implemented.
4574 (paramString): Stubbed.
4575 (shiftDown): Implemented.
4576 (toString): Implemented.
4577 (translate): Implemented.
4579 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4581 * java/lang/natClass.cc (isInstance): Initialize `this'.
4582 (isAssignableFrom): Initialize `this' and `klass'.
4583 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4584 implemented by any loaded class, so return false.
4585 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4586 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4588 2000-03-19 Warren Levy <warrenl@cygnus.com>
4590 * java/awt/Color.java: Specified java.io for Serializable.
4591 * java/awt/Toolkit.java: Imported java.net.URL.
4593 2000-03-19 Warren Levy <warrenl@cygnus.com>
4595 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4597 2000-03-16 Warren Levy <warrenl@cygnus.com>
4599 * java/awt/Color.java: New file.
4600 * java/awt/Graphics.java: New file.
4601 * java/awt/Image.java: New file.
4602 * java/awt/Paint.java: New file.
4603 * java/awt/PaintContext.java: New file.
4604 * java/awt/Transparency.java: New file.
4605 * java/util/Collection.java: New file.
4606 * java/util/Comparator.java: New file.
4607 * java/util/Iterator.java: New file.
4608 * java/util/List.java: New file.
4609 * java/util/ListIterator.java: New file.
4610 * Makefile.am: Added above new files.
4611 * Makefile.in: Rebuilt.
4613 * java/awt/Font.java (PLAIN): New field.
4615 (ITALIC): New field.
4616 (ROMAN_BASELINE): New field.
4617 (CENTER_BASELINE): New field.
4618 (HANGING_BASELINE): New field.
4622 (pointSize): New field.
4623 (Font): Implemented constructor.
4624 (isPlain): Implemented method.
4625 (isBold): Implemented method.
4626 (isItalic): Implemented method.
4627 (getName): Implemented method.
4628 (getStyle): Implemented method.
4629 (getSize): Implemented method.
4630 (getSize2D): Implemented method.
4632 * java/awt/Frame.java (getFont): Stubbed.
4633 (postEvent): Stubbed.
4635 * java/awt/Menu.java (postEvent): Stubbed.
4636 * java/awt/MenuBar.java (getFont): Stubbed.
4637 (postEvent): Stubbed.
4638 * java/awt/Toolkit.java (getImage): Added abstract method.
4640 2000-03-15 Tom Tromey <tromey@cygnus.com>
4642 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4644 * prims.cc (win32_exception_handler): Reformatted.
4646 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4647 (_Jv_HaveMutexDestroy): Likewise.
4649 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4651 * java/io/natFileDescriptorWin32.cc: New file.
4652 * java/io/natFileWin32.cc: New file.
4653 * java/net/natInetAddress.cc: Added conditional inclusion of
4654 Windows / Winsock headers.
4655 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4656 inclusion of Windows / Winsock headers.
4657 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4658 Windows / Winsock headers.
4659 * include/win32-signal.h: New file.
4660 * include/win32-threads.h: New file.
4661 * win32-threads.cc: New file.
4662 * exception.cc (win32_get_restart_frame): New function.
4663 * prims.cc (win32_exception_handler): New function.
4664 (main_init) Performs Winsock initialisation.
4665 (main_init) Installs exeception handler.
4667 2000-03-14 Tom Tromey <tromey@cygnus.com>
4669 * jni.cc (mangled_name): Fixed assertion.
4670 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4671 turned assert into actual failure.
4673 2000-03-09 Warren Levy <warrenl@cygnus.com>
4675 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4676 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4677 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4679 2000-03-09 Warren Levy <warrenl@cygnus.com>
4681 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4682 * java/security/DigestException.java: New file.
4683 * java/security/GeneralSecurityException.java: New file.
4684 * java/security/InvalidAlgorithmParameterException.java: New file.
4685 * java/security/InvalidKeyException.java: New file.
4686 * java/security/InvalidParameterException.java: New file.
4687 * java/security/Key.java: New file.
4688 * java/security/KeyException.java: New file.
4689 * java/security/KeyPair.java: New file.
4690 * java/security/KeyPairGenerator.java: New file.
4691 * java/security/KeyPairGeneratorSpi.java: New file.
4692 * java/security/NoSuchProviderException.java: New file.
4693 * java/security/PrivateKey.java: New file.
4694 * java/security/Provider.java: New file.
4695 * java/security/PublicKey.java: New file.
4696 * java/security/SecureRandom.java: New file.
4697 * java/security/Security.java: New file.
4698 * java/security/Signature.java: New file.
4699 * java/security/SignatureException.java: New file.
4700 * java/security/interfaces/DSAKey.java: New file.
4701 * java/security/interfaces/DSAParams.java: New file.
4702 * java/security/interfaces/DSAPrivateKey.java: New file.
4703 * java/security/interfaces/DSAPublicKey.java: New file.
4704 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4705 * java/security/interfaces/RSAPrivateKey.java: New file.
4706 * java/security/interfaces/RSAPublicKey.java: New file.
4707 * java/security/spec/AlgorithmParameterSpec.java: New file.
4708 * java/security/spec/InvalidKeySpecException.java: New file.
4709 * java/security/spec/InvalidParameterSpecException.java: New file.
4710 * java/security/spec/KeySpec.java: New file.
4711 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4712 * java/security/spec/RSAPrivateKeySpec.java: New file.
4713 * java/security/spec/RSAPublicKeySpec.java: New file.
4714 * Makefile.am: Added above java.security files.
4715 * Makefile.in: Rebuilt.
4717 * java/security/MessageDigest.java: Rewritten.
4718 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4720 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4724 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4726 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4727 _Jv_PrepareConstantTimeTables.
4728 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4729 classes should have an IDT, so don't return if klass is an array
4732 2000-03-08 Tom Tromey <tromey@cygnus.com>
4734 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4735 of `void' to be created.
4737 2000-03-08 Warren Levy <warrenl@cygnus.com>
4739 * java/math/BigInteger.java(signum): Handle zero properly.
4741 2000-03-07 Tom Tromey <tromey@cygnus.com>
4743 * All files: Updated copyright information.
4744 * COPYING: New file.
4745 * COPYING.LIB: Removed.
4746 * LIBGCJ_LICENSE: We now use GPL + special exception.
4748 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4750 * resolve.cc (_Jv_SearchMethodInClass): New function.
4751 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4752 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4754 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4756 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4757 (struct _Jv_ifaces): New declaration.
4758 JV_CLASS: New macro definition.
4759 (getComponentType): Relocate below isArray() for inlining.
4760 (getModifiers): Declare `inline'.
4761 (getSuperclass): Ditto.
4763 (isPrimitive): Ditto.
4764 (_Jv_IsAssignableFrom): New prototype.
4765 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4767 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4768 Check for JV_STATE_DONE before invoking initializeClass().
4769 (_Jv_PrepareConstantTimeTables): New prototype.
4770 (_Jv_GetInterfaces): Ditto.
4771 (_Jv_GenerateITable): Ditto.
4772 (_Jv_GetMethodString): Ditto.
4773 (_Jv_AppendPartialITable): Ditto.
4774 (_Jv_FindIIndex): Ditto.
4775 depth, ancestors, idt: New class fields.
4777 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4778 inline function `_Jv_IsAssignableFrom'. Use that function.
4779 (isInstance): Declare `inline'.
4780 (initializeClass): Get lock on class before checking `state'. Unlock
4781 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4783 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4784 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4785 class->depth and ancestor table.
4786 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4787 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4788 _Jv_IsAssignableFrom.
4789 (_Jv_CheckArrayStore): Ditto.
4790 (_Jv_LookupInterfaceMethodIdx): New function.
4791 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4792 (_Jv_PrepareConstantTimeTables): New function.
4793 (_Jv_IndexOf): Ditto.
4794 (_Jv_GetInterfaces): Ditto.
4795 (_Jv_GenerateITable): Ditto.
4796 (_Jv_GetMethodString): Ditto.
4797 (_Jv_AppendPartialITable): Ditto.
4798 iindex_mutex, iindex_mutex_initialized: New static fields.
4799 (_Jv_FindIIndex): New function.
4801 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4803 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4804 (_Jv_CheckArrayStore): Ditto.
4805 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4806 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4807 Moved to gcj/array.h.
4808 (_Jv_Realloc): New function.
4810 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4812 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4813 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4814 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4815 JvNewDoubleArray): Implementations moved from prims.cc and
4818 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4820 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4822 2000-03-06 Tom Tromey <tromey@cygnus.com>
4824 * jni.cc (MARK_NONE): New define.
4825 (MARK_USER): Likewise.
4826 (MARK_SYSTEM): Likewise.
4827 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4829 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4830 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4831 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4832 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4834 (call): Use MARK_SYSTEM.
4835 (_Jv_GetJNIEnvNewFrame): New function.
4836 (_Jv_LookupJNIMethod): New function.
4837 (_Jv_JNI_PopSystemFrame): New function.
4838 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4840 2000-03-05 Tom Tromey <tromey@cygnus.com>
4842 Fix for PR libgcj/43:
4843 * include/Makefile.in: Rebuilt.
4844 * include/Makefile.am (include_HEADERS): New define.
4846 2000-03-05 Anthony Green <green@redhat.com>
4848 * gcj/javaprims.h ("Java"): Remove FirstThread.
4850 * configure.host: Fix __NO_MATH_INLNES botch.
4852 * Makefile.in: Rebuilt.
4853 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4854 (gnu/gcj/runtime/FirstThread.h): Moved.
4855 (ordinary_java_source_files): Move FirstThread.java.
4856 * prims.cc: Deal with FirstThread movement.
4858 (_Jv_RunMain): Ditto.
4860 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4861 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4863 2000-03-05 Warren Levy <warrenl@cygnus.com>
4865 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4866 Handle null addresses.
4868 2000-03-04 Anthony Green <green@redhat.com>
4870 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4873 2000-03-04 Anthony Green <green@redhat.com>
4875 * configure: Rebuilt.
4876 * configure.in (ZLIBTESTSPEC): New macro.
4877 (GCTESTSPEC): New macro.
4878 (LIBGCJTESTSPEC): New macro.
4879 * libgcj-test.spec.in: New file.
4881 2000-03-02 Tom Tromey <tromey@cygnus.com>
4883 * include/java-interp.h: Don't include MethodInvocation.h.
4884 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4885 * Makefile.in: Rebuilt.
4886 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4887 (ordinary_java_source_files): Don't mention
4888 MethodInvocation.java.
4889 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4890 * interpret.cc (MethodInvocation::continue1): Removed.
4891 (run): Handle exceptions here.
4892 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4894 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4896 (defineClass2): Removed.
4898 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4900 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4902 (hack_call): Removed.
4904 * java/lang/Class.h (Class): Removed hackRunInitializers,
4906 * java/lang/natClass.cc (hackRunInitializers): Removed.
4907 (initializeClass): Catch exceptions here.
4908 Include ExceptionInInitializerError.h.
4909 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4912 * java/lang/Object.h (Object): Don't mention hack12_6.
4913 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4915 * java/lang/Object.java (hack12_6): Removed.
4917 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4918 (start): Use run_, not run__.
4919 * java/lang/Thread.java (run_): Renamed from run__; old run_
4922 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4923 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4924 (_Jv_JNI_DefineClass): Likewise.
4925 (_Jv_JNI_ThrowNew): Likewise.
4926 (_Jv_JNI_AllocObject): Likewise.
4927 (_Jv_JNI_GetAnyMethodID): Likewise.
4928 (_Jv_JNI_CallAnyMethodV): Likewise.
4929 (_Jv_JNI_CallAnyMethodA): Likewise.
4930 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4931 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4932 (_Jv_JNI_GetAnyFieldID): Likewise.
4933 (_Jv_JNI_NewString): Likewise.
4934 (_Jv_JNI_NewStringUTF): Likewise.
4935 (_Jv_JNI_GetStringUTFChars): Likewise.
4936 (_Jv_JNI_NewObjectArray): Likewise.
4937 (_Jv_JNI_NewPrimitiveArray): Likewise.
4938 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4939 (_Jv_JNI_GetStringRegion): Likewise.
4940 (_Jv_JNI_GetStringUTFRegion): Likewise.
4941 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4942 (_Jv_JNI_MonitorEnter): Likewise.
4943 (_Jv_JNI_MonitorExit): Likewise.
4944 (_Jv_JNI_ToReflectedField): Likewise.
4945 (_Jv_JNI_ToReflectedMethod): Likewise.
4946 (_Jv_JNI_RegisterNatives): Likewise.
4947 (_Jv_JNI_AttachCurrentThread): Likewise.
4948 (_Jv_JNI_DestroyJavaVM): Likewise.
4950 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4952 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4953 error caused by the incorrect casting of a long to an int.
4955 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4957 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4958 SIGSEV caused by use of the wrong instance variable.
4960 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4962 * java/io/File.java (File(String, String)): For dirPath, treat an
4963 empty String the same as `null'.
4965 2000-02-26 Anthony Green <green@cygnus.com>
4967 * gnu/gcj/io/MimeTypes.java: Test for null.
4969 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4970 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4972 * java/net/URLConnection.java: Update copyright notice.
4974 2000-02-25 Tom Tromey <tromey@cygnus.com>
4976 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4979 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4981 * java/net/URLConnection.java (initializeDateFormats): New
4983 (getHeaderFieldDate): Call initializeDateFormats if required.
4984 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4986 Fix for PR libgcj/38.
4988 2000-02-24 Warren Levy <warrenl@cygnus.com>
4990 * java/math/BigInteger.java(ival): Made private.
4994 2000-02-20 Anthony Green <green@cygnus.com>
4996 * Makefile.in: Rebuilt.
4997 * Makefile.am (ordinary_java_source_files): Add
4998 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5000 * scripts/MakeDefaultMimeTypes.java: New file.
5001 * scripts/mime.types: New file.
5002 * scripts/classes.pl: Moved from top level.
5003 * classes.pl: Moved to scripts directory.
5005 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5007 * gnu/gcj/io/MimeTypes.java: New file.
5008 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5010 2000-02-20 Tom Tromey <tromey@cygnus.com>
5012 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5014 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5016 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5019 2000-02-18 Tom Tromey <tromey@cygnus.com>
5021 * include/jvm.h (_Jv_GetJavaVM): Declare.
5022 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5023 (_Jv_MethodBase::get_method): New method.
5024 (_Jv_JNIMethod::set_function): New method.
5025 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5026 (_Jv_JNI_RegisterNatives): New function.
5027 (_Jv_JNIFunctions): Updated for new functions.
5028 (_Jv_GetJavaVM): New function.
5029 (_Jv_JNI_GetJavaVM): Use it. Now static.
5030 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5031 is already a Java thread but does not have a JNIEnv yet.
5033 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5036 2000-02-17 Tom Tromey <tromey@cygnus.com>
5038 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5041 2000-02-16 Tom Tromey <tromey@cygnus.com>
5043 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5045 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5046 (_Jv_JNI_NewObject): Likewise.
5047 (_Jv_JNI_NewObjectA): Likewise.
5048 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5049 as "return" type to _Jv_CallAnyMethodA.
5050 (_Jv_JNI_CallAnyMethodA): Likewise.
5051 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5053 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5056 2000-02-15 Tom Tromey <tromey@cygnus.com>
5058 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5060 (init_cif): Added `rtype_p' argument.
5061 * include/java-interp.h (class _Jv_MethodBase): Added
5063 (class _Jv_InterpMethod): Removed args_raw_size.
5064 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5065 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5066 class pointer as well as the ordinary arguments.
5068 * jni.cc (mangled_name): Skip leading `(' in signature.
5070 * jni.cc (add_char): Added missing `else'.
5072 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5075 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5079 * java/lang/natRuntime.cc (_load): Include library path with
5082 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5085 * java/lang/natThread.cc (dumpStack): Removed.
5086 * java/lang/Thread.java (dumpStack): Implemented.
5088 2000-02-15 Tom Tromey <tromey@cygnus.com>
5090 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5091 with `lib' for loadLibrary. Fixes PR gcj/150.
5093 2000-02-14 Warren Levy <warrenl@cygnus.com>
5095 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5097 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5101 (modPow): Rewritten to not use the naive, slow, brute force approach.
5102 (isProbablePrime): Implemented.
5103 (testBit): Implemented.
5104 (flipBit): Implemented.
5105 (getLowestSetBit): Implemented.
5107 2000-02-16 Anthony Green <green@redhat.com>
5109 * configure.host: Use the same options for i386 and i486 as we do
5112 2000-02-12 Tom Tromey <tromey@cygnus.com>
5114 * java/io/File.java (createTempFile): Use low bits from counter,
5117 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5119 * THANKS: More thanks.
5121 2000-02-11 Tom Tromey <tromey@cygnus.com>
5123 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5124 astore instruction. From Hans Boehm.
5126 2000-02-11 Warren Levy <warrenl@cygnus.com>
5128 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5129 (BigInteger(String)): New constructor.
5130 (not): Rewritten using version from Kawa's BitOps class.
5131 (valueOf): New private methods from Kawa's BitOps class.
5138 (andNot): Implemented.
5139 (clearBit): Implemented.
5140 (setBit): Implemented.
5141 (bitCount): Implemented.
5142 (toByteArray): Implemented.
5144 2000-02-11 Tom Tromey <tromey@cygnus.com>
5146 * java/io/File.java (nextValue): Now synchronized.
5148 2000-02-10 Tom Tromey <tromey@cygnus.com>
5150 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5151 * java/io/FileDescriptor.java (EXCL): New static field.
5152 * java/io/File.java (tmpdir): New static field.
5153 (createTempFile): New method.
5154 (nextValue): New method.
5155 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5158 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5159 (jboolean): Declare as an attributed int, not a bool.
5160 (_Jv_func): Declare differently for C.
5162 * gnu/gcj/jni/natNativeThread.cc: New file.
5163 * gnu/gcj/jni/NativeThread.java: New file.
5164 * java/lang/Thread.java (data): Now a RawData.
5165 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5167 * Makefile.in: Rebuilt.
5168 * Makefile.am (java/lang/Thread.h): New target.
5169 (ordinary_java_source_files): Added NativeThread.java.
5170 (nat_source_files): Added natNativeThread.cc.
5171 * java/lang/natThread.cc: Include <jni.h>
5172 (struct natThread): Added `jni_env' field.
5173 (_Jv_GetCurrentJNIEnv): New function.
5174 (_Jv_SetCurrentJNIEnv): Likewise.
5175 (initialize_native): Initialize jni_env.
5177 * jni.cc (ThreadGroupClass): New define.
5178 (_Jv_JNI_InvokeFunctions): New structure.
5179 (JNI_GetCreatedJavaVMs): New function.
5180 (the_vm): New global.
5181 (JNI_GetDefaultJavaVMInitArgs): New function.
5182 Include NativeThread.h.
5183 (NativeThreadClass): New define.
5184 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5185 (_Jv_JNI_DestroyJavaVM): New function.
5186 (_Jv_JNI_AttachCurrentThread): New function.
5187 (_Jv_JNI_DetachCurrentThread): New function.
5188 (_Jv_JNI_GetEnv): New function.
5189 (JNI_CreateJavaVM): New function.
5190 (_Jv_JNI_GetJavaVM): New function.
5191 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5192 * include/jni.h (JavaVMAttachArgs): New structure.
5193 (JNI_EDETACHED): New define.
5194 (JNI_EVERSION): Likewise.
5195 (JavaVM): Define properly.
5196 (struct JNIInvokeInterface): New structure.
5197 (class _Jv_JavaVM): New class.
5198 (JNI_OnLoad, JNI_OnUnload): Declare.
5199 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5200 JNI_GetCreatedJavaVMs): Declare.
5201 (JavaVMInitArgs): New typedef.
5202 (JavaVMOption): Likewise.
5203 (JNI_ERR): New define.
5206 2000-02-10 Andrew Haley <aph@cygnus.com>
5208 * interpret.cc: Don't include fdlibm.h.
5209 Replace #if with #ifdef throughout.
5210 Declare extern __ieee754_fmod.
5211 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5213 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5214 Search class hierarchy for superclass vtable.
5216 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5217 off the end of a pointer list.
5219 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5223 2000-02-09 Tom Tromey <tromey@cygnus.com>
5225 * java/lang/natRuntime.cc (_load): Call add_library.
5226 (loadLibraryInternal): Likewise.
5228 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5229 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5230 (Output_iconv::finalize): Likewise.
5232 2000-02-08 Tom Tromey <tromey@cygnus.com>
5234 * java/util/Properties.java (setProperty): New method.
5235 (store): New method.
5237 2000-02-07 Tom Tromey <tromey@cygnus.com>
5239 * java/lang/Runtime.java (_load): Declare.
5240 (load, loadLibrary): Wrote in terms of _load.
5241 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5243 (loadLibrary): Likewise.
5245 (_load): New method.
5246 (loadLibrary, load): Removed.
5248 * jni.cc (ThrowableClass): New define.
5249 (_Jv_JNI_Throw): Check argument.
5250 (_Jv_JNI_ThrowNew): Likewise.
5251 (wrap_value): Don't wrap object if it is NULL.
5252 (_Jv_JNI_DefineClass): Use wrap_value.
5253 (_Jv_JNI_FindClass): Likewise.
5254 (_Jv_JNI_GetSuperclass): Likewise.
5255 (_Jv_JNI_ExceptionOccurred): Likewise.
5256 (_Jv_JNI_AllocObject): Likewise.
5257 (_Jv_JNI_GetObjectClass): Likewise.
5258 (_Jv_JNI_NewString): Likewise.
5259 (_Jv_JNI_NewStringUTF): Likewise.
5260 (_Jv_JNI_NewObjectArray): Likewise.
5261 (_Jv_JNI_GetObjectArrayElement): Likewise.
5262 (_Jv_JNI_NewPrimitiveArray): Likewise.
5263 (_Jv_JNI_ToReflectedField): Likewise.
5264 (_Jv_JNI_ToReflectedMethod): Likewise.
5265 (_Jv_JNI_AllocObject): Check argument.
5266 (_Jv_JNI_NewObjectV): Likewise.
5267 (_Jv_JNI_NewObject): Likewise.
5268 (_Jv_JNI_NewObjectA): Likewise.
5269 (_Jv_JNI_GetObjectClass): Likewise.
5270 (_Jv_JNI_GetField): Likewise.
5271 (_Jv_JNI_SetField): Likewise.
5273 * interpret.cc (PUSHL): Don't use expression statement.
5278 * jni.cc (add_char): Conditional on INTERPRETER.
5279 (mangled_name): Likewise.
5281 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5283 (class _Jv_JNIMethod): Likewise.
5285 2000-02-04 Warren Levy <warrenl@cygnus.com>
5287 * Makefile.am: Added MPN.java and BigInteger.java.
5288 * Makefile.in: Rebuilt.
5289 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5291 * java/math/BigInteger.java: New file. Based primarily on
5292 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5294 2000-02-04 Tom Tromey <tromey@cygnus.com>
5296 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5298 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5299 if the method is native.
5300 * resolve.cc (ncode): Don't handle native methods.
5301 (_Jv_JNIMethod::ncode): New method.
5302 (_Jv_PrepareClass): Handle native methods.
5303 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5304 Include AbstractMethodError.h.
5305 (add_char): New function.
5306 (mangled_name): Likewise.
5307 * include/java-interp.h (class _Jv_JNIMethod): New class.
5308 (class _Jv_MethodBase): New class.
5309 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5310 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5313 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5314 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5315 libraries): New globals.
5316 (add_library): New function.
5317 (_Jv_FindSymbolInExecutable): New function.
5319 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5322 2000-02-04 Andrew Haley <aph@cygnus.com>
5324 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5325 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5326 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5327 printStackTrace to printRawStackTrace.
5329 2000-02-03 Tom Tromey <tromey@cygnus.com>
5331 * java/util/Calendar.java (toString): New method.
5332 * java/util/SimpleTimeZone.java (clone): New method.
5333 (toString): New method.
5334 * java/util/TimeZone.java (clone): New method.
5335 * java/text/SimpleDateFormat.java (clone): New method.
5336 * java/text/NumberFormat.java (clone): New method.
5337 (equals): New method.
5338 * java/text/Format.java (clone): New method.
5339 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5341 (clone): New method.
5342 * java/text/DateFormat.java (clone): New method.
5343 * java/text/Collator.java (clone): New method.
5345 2000-02-03 Tom Tromey <tromey@cygnus.com>
5347 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5350 2000-02-01 Tom Tromey <tromey@cygnus.com>
5352 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5353 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5354 constructing the closure if the function is native.
5355 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5356 a template function, #if'd out, or static.
5357 Include <java-interp.h>.
5359 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5361 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5363 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5364 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5366 (wrap_value): New function.
5367 (_Jv_JNI_CallAnyMethodV): Use it.
5368 (_Jv_JNI_CallAnyMethodA): Likewise.
5369 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5370 (_Jv_JNI_GetStaticField): Likewise.
5372 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5373 (_Jv_JNI_GetStaticField): Likewise.
5375 2000-01-31 Tom Tromey <tromey@cygnus.com>
5377 * prims.cc (_Jv_MallocUnchecked): New function.
5378 (main_init): Call _Jv_JNI_Init.
5379 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5380 (_Jv_JNI_Init): Declare.
5381 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5383 (_Jv_JNI_NewGlobalRef): New function.
5384 (_Jv_JNI_DeleteGlobalRef): New function.
5385 (_Jv_JNI_DeleteLocalRef): New function.
5386 (_Jv_JNI_conversion_call): Initialize and clear local reference
5388 (_Jv_JNI_NewLocalRef): New function.
5389 (struct _Jv_JNI_LocalFrame): New structure.
5390 (_Jv_JNI_PushLocalFrame): New function.
5391 (_Jv_JNI_EnsureLocalCapacity): New function.
5392 (FRAME_SIZE): New define.
5393 (_Jv_JNI_GetStringChars): Mark string, not characters.
5394 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5395 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5396 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5398 (_Jv_JNI_DefineClass): Make return value a local ref.
5399 (_Jv_JNI_FindClass): Likewise.
5400 (_Jv_JNI_GetSuperclass): Likewise.
5401 (_Jv_JNI_ExceptionOccurred): Likewise.
5402 (_Jv_JNI_AllocObject): Likewise.
5403 (_Jv_JNI_GetObjectClass): Likewise.
5404 (_Jv_JNI_CallAnyMethodV): Likewise.
5405 (_Jv_JNI_NewString): Likewise.
5406 (_Jv_JNI_NewStringUTF): Likewise.
5407 (_Jv_JNI_NewObjectArray): Likewise.
5408 (_Jv_JNI_GetObjectArrayElement): Likewise.
5409 (_Jv_JNI_ToReflectedField): Likewise.
5410 (_Jv_JNI_ToReflectedMethod): Likewise.
5411 (_Jv_JNIFunctions): Updated table for new functions.
5412 (_Jv_JNI_Init): New function.
5413 (mark_for_gc): Wrote.
5414 (unmark_for_gc): Wrote.
5415 * include/jni.h (struct JNINativeInterface): Removed name from
5416 PopLocalFrame parameter.
5417 (class _Jv_JNIEnv): Added `locals' field.
5419 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5421 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5424 2000-01-30 Tom Tromey <tromey@cygnus.com>
5426 * include/config.h.in: Rebuilt.
5427 * acconfig.h (HAVE_ICONV): Define.
5428 * configure: Rebuilt.
5429 * configure.in: Check for `iconv' function.
5430 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5431 no specific encoder exists.
5432 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5433 no specific encoder exists.
5434 * Makefile.in: Rebuilt.
5435 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5437 (nat_source_files): Added natIconv.cc.
5438 * gnu/gcj/convert/natIconv.cc: New file.
5439 * gnu/gcj/convert/Input_iconv.java: New file.
5440 * gnu/gcj/convert/Output_iconv.java: New file.
5442 2000-01-28 Tom Tromey <tromey@cygnus.com>
5444 * Makefile.in: Rebuilt.
5445 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5447 2000-01-26 Tom Tromey <tromey@cygnus.com>
5449 * gcj/method.h (JvNumMethods): Moved from Class.h.
5450 (JvGetFirstMethod): Likewise.
5451 * java/lang/Class.h (Object): Updated decl of
5452 _Jv_JNI_ToReflectedField.
5453 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5454 * Makefile.in: Rebuilt.
5455 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5456 argument of _Jv_JNI_ToReflectedField.
5457 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5459 (java/lang/reflect/Method.h): Likewise.
5460 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5462 (jweak): New typedef.
5463 (struct JNINativeInterface): Correctly declare remaining entries.
5464 * jni.cc: Include Class.h, ClassLoader.h.
5465 (_Jv_JNI_FindClass): New function.
5466 (_Jv_JNI_DefineClass): New function.
5467 (_Jv_JNI_conversion_call): New function.
5468 (_Jv_JNI_FindClass): Use current class loader to find class.
5469 (_Jv_JNI_ExceptionCheck): New function.
5470 (_Jv_JNI_FromReflectedField): Now static.
5471 (MethodClass): New define.
5472 (_Jv_JNI_FromReflectedMethod): New function.
5473 (_Jv_JNI_ToReflectedMethod): Likewise.
5475 (_Jv_JNI_IsAssignableFrom): Renamed.
5476 (_Jv_JNI_GetStringRegion): New function.
5477 Include StringIndexOutOfBoundsException.h.
5478 (_Jv_JNI_GetStringUTFRegion): New function.
5479 (_Jv_JNIFunctions): Updated for new functions.
5480 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5481 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5482 (_Jv_JNI_GetStringCritical): New function.
5483 (_Jv_JNI_ReleaseStringCritical): Likewise.
5484 (get_throwable): Removed.
5485 (GCJ_JV_JNIENV_FRIEND): Removed.
5486 (__GCJ_JNI_IMPL__): Define.
5489 * resolve.cc (get_ffi_type_from_signature): Handle case where
5492 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5494 * interpret.cc (run): Don't call println.
5495 Don't include PrintStream.h.
5497 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5498 nameIndex. Use "jint" as type for boffset.
5499 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5501 (Class): Likewise. Also changed type of method_count,
5502 vtable_method_count, size_in_bytes, field_count,
5503 static_field_count, interface_count.
5504 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5507 2000-01-21 Tom Tromey <tromey@cygnus.com>
5509 * java/lang/reflect/natConstructor.cc (newInstance): Use
5511 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5512 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5513 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5516 (invoke): Use _Jv_CallAnyMethodA.
5518 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5519 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5521 (struct _Jv_Method): Added getNextMethod method.
5522 (JvNumMethods): New function.
5523 (JvGetFirstMethod): Likewise.
5524 * gcj/field.h (JvGetFirstStaticField): New function.
5525 (JvNumStaticFields): Likewise.
5526 (getNextField): Renamed from getNextInstanceField.
5527 (struct _Jv_Field): New method getClass.
5528 * jni.cc: Wrote many new functions.
5529 * include/jni.h (JNI_TRUE): Define.
5530 (JNI_FALSE): Likewise.
5531 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5532 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5533 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5534 (jfieldID, jmethodID): Likewise.
5535 (JNI_COMMIT, JNI_ABORT): New defines.
5536 (JNINativeMethod): New struct.
5537 (struct JNINativeInterface): Correctly declared more entries.
5538 (class _Jv_JNIEnv): Added `ex' member.
5539 (JNI_VERSION_1_1): New define.
5540 (JNI_VERSION_1_2): Likewise.
5542 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5543 getNextInstanceField.
5545 2000-01-20 Tom Tromey <tromey@cygnus.com>
5547 * resolve.cc (StringClass): Removed.
5548 * defineclass.cc (StringClass): Removed.
5550 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5554 2000-01-19 Tom Tromey <tromey@cygnus.com>
5556 * interpret.cc (PC_REGISTER_ASM): Removed.
5558 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5559 From Bryce McKinlay.
5561 * All files: Updated copyright to reflect Cygnus purchase.
5563 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5565 * configure: Rebuilt.
5566 * configure.in: Recognize --disable-interpreter.
5568 2000-01-18 Andrew Haley <aph@cygnus.com>
5570 * name-finder.cc (lookup): Check for dladdr function.
5571 acconfig.h (HAVE_DLADDR): Add.
5572 configure.in: Check for HAVE_DLADDR
5574 include/config.h.in: Rebuilt.
5576 2000-01-17 Andrew Haley <aph@cygnus.com>
5578 * prims.cc (_Jv_RunMain): Set the name of this executable.
5580 2000-01-17 Tom Tromey <tromey@cygnus.com>
5582 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5583 when backtrace can't be computed.
5585 * configure: Rebuilt.
5586 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5588 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5589 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5590 (_Jv_FindClassInCache): Likewise.
5591 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5592 (findSystemClass): Try to load class from compiled module.
5594 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5595 (loadLibrary): Likewise.
5596 (lt_preloaded_symbols): Define.
5597 (loadLibraryInternal): New method.
5598 * include/config.h.in: Rebuilt.
5599 * acconfig.h (USE_LTDL): Added.
5600 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5601 (INCLUDES): Added $(INCLTDL).
5602 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5603 (libgcj_la_LIBADD): Likewise.
5604 * aclocal.m4, configure: Rebuilt.
5605 * configure.in: Added libltdl support.
5607 2000-01-15 Tom Tromey <tromey@cygnus.com>
5609 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5611 2000-01-14 Andrew Haley <aph@cygnus.com>
5613 * java/lang/natThrowable.cc: New file.
5615 * java/lang/Throwable.java (fillInStackTrace): Make native.
5616 (printStackTrace): Call native method to do this.
5617 (Throwable): Call fillInStackTrace.
5618 (stackTrace): New variable.
5620 * include/jvm.h: Add _Jv_ThisExecutable functions.
5622 * prims.cc: (_Jv_execName): New variable.
5623 (catch_segv): Call fillInStackTrace.
5625 (_Jv_ThisExecutable): New functions.
5626 (JvRunMain): Set the name of this executable.
5628 * Makefile.am: Add java/lang/natThrowable.cc.
5630 * Makefile.in: Rebuilt.
5632 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5634 * configure.in: Force link with __frame_state_for in
5635 FORCELIBGCCSPEC. Add new checks for backtrace.
5636 * include/config.h.in: Rebuilt.
5638 * name-finder.cc: New file.
5639 * include/name-finder.h: New file.
5641 2000-01-16 Anthony Green <green@cygnus.com>
5643 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5646 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5648 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5650 2000-01-13 Tom Tromey <tromey@cygnus.com>
5652 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5653 not system loader, as initiating loader.
5655 2000-01-11 Tom Tromey <tromey@cygnus.com>
5657 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5658 HP/UX. From David Scott Urban.
5660 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5662 * java/lang/natMath.cc (pow): Cast args to `double', not
5665 (IEEEremainder): Likewise.
5666 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5667 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5669 2000-01-09 Anthony Green <green@cygnus.com>
5671 * java/lang/natString.cc (init): Test for overflow condition
5672 during out of bounds check.
5673 (getChars): Throw StringIndexOutOfBoundsException, not
5674 ArrayIndexOutOfBoundsException.
5676 (regionMatches): Obey case option during string comparison.
5678 * configure.host (ligcj_interpreter): New variable. Enable
5679 interpreter by default on IA-32.
5680 * configure.in: Examine libgcj_interpreter.
5681 * configure: Rebuilt.
5683 2000-01-07 Tom Tromey <tromey@cygnus.com>
5685 * mauve-libgcj: Don't disable ClassTest.
5687 * java/lang/natClass.cc (getClasses): Wrote.
5689 2000-01-06 Tom Tromey <tromey@cygnus.com>
5691 * java/lang/natClass.cc (_getConstructors): Correctly check
5692 whether method name is the init name.
5693 (getMethod): Look at accflags on method in `klass', not `this'.
5695 2000-01-05 Tom Tromey <tromey@cygnus.com>
5697 * java/lang/natClass.cc (getMethod): Compute offset relative to
5698 `klass's methods table, not `this's table.
5700 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5701 In unwrapping/widening case, check whether `k' is null, not
5702 whether it is primitive. Initialize `num' from `argelts', not
5703 `paramelts'. Correct create and pass arguments to ffi_call.
5704 Don't let presence of `this' argument affect index used to look in
5706 (COPY): Set appropriate element in `values' vector.
5708 * java/lang/natClass.cc: Include <gcj/method.h>.
5710 * java/lang/Class.h (_getMethods): Correctly declare as private,
5713 * java/lang/Class.h (_getMethods): Declare.
5714 * java/lang/Class.java (_getMethods): Declare.
5715 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5716 (getDeclaredClasses): Always return empty array.
5717 (_getMethods): New method.
5718 (getMethods): Wrote.
5719 (getDeclaredMethod): Return `rmethod'.
5720 (finit_name): New global.
5721 (getDeclaredMethods): Check for finit_name.
5722 (_getMethods): Likewise.
5723 (getMethod): Only return public methods.
5725 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5726 jboolean and select correct ffi type on that basis.
5727 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5728 Constructor call always has `void' return type.
5730 2000-01-04 Tom Tromey <tromey@cygnus.com>
5732 * java/lang/Class.h (getSignature): Updated.
5733 * java/lang/Class.java (getSignature): Updated.
5734 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5736 (getConstructor): Ensure constructor is public.
5737 (_getConstructors): Check for public-ness of constructor when
5738 `declared' is false, not when it is true.
5740 2000-01-04 Warren Levy <warrenl@cygnus.com>
5742 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5744 (receive): Set the sender's address in the DatagramPacket.
5746 2000-01-04 Tom Tromey <tromey@cygnus.com>
5748 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5749 declaring class as return_type argument to
5750 _Jv_CallNonvirtualMethodA.
5751 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5752 constructor case, create object and use it as `this' argument.
5753 * java/lang/Class.h (_getConstructors): Declare.
5754 (_getFields): Declare.
5755 * java/lang/Class.java (getConstructors): Wrote.
5756 (_getConstructors): New native method.
5757 (getDeclaredConstructors): Wrote.
5758 (_getFields): Declare new native method.
5759 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5761 (getMethod): Work correctly when class is primitive.
5762 (getDeclaredMethods): Likewise. Compute offset using `method',
5764 (getDeclaredMethod): Likewise.
5765 (getConstructor): Wrote.
5766 (ConstructorClass): New define.
5767 (getDeclaredConstructor): Wrote.
5768 (_getConstructors): New method.
5769 (_getFields): New method.
5772 * Makefile.in: Rebuilt.
5773 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5775 * prims.cc: Remove `#pragma implementation'.
5776 * gcj/array.h: Remove `#pragma interface'.
5778 * prims.cc (_Jv_equaln): New function.
5779 * java/lang/Class.java (getSignature): Declare.
5780 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5781 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5783 (getSignature): New method.
5784 (getDeclaredMethod): Wrote.
5786 Include StringBuffer.h.
5787 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5788 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5790 (getSignature): Declare.
5791 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5792 (_Jv_equaln): Declare.
5793 (_Jv_CallNonvirtualMethodA): Declare.
5794 * Makefile.in: Rebuilt.
5795 * Makefile.am (nat_source_files): Added natConstructor.cc.
5796 (java/lang/reflect/Constructor.h): New target.
5797 * java/lang/reflect/natConstructor.cc: New file.
5798 * java/lang/reflect/Constructor.java (newInstance): Now native.
5799 (declaringClass): Renamed from decl_class.
5800 (offset): Renamed from index.
5801 (getType): New native method.
5802 (getModifiers): Now native.
5803 (getParameterTypes): Call getType if required.
5804 (hashCode): Include hash code from declaring class.
5805 (modifiers): Removed.
5806 (toString): Call getType if required.
5807 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5808 * java/lang/reflect/natMethod.cc (hack_call): New method.
5809 Removed `#if 0' around FFI code.
5810 Include <gnu/gcj/RawData.h>.
5811 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5812 IllegalArgumentException when argument object and class disagree.
5813 (_Jv_GetTypesFromSignature): New function.
5815 (ObjectClass): New define.
5816 (_Jv_CallNonvirtualMethodA): New function.
5817 * java/lang/reflect/Method.java (hack_trampoline): New method.
5818 (hack_call): New native method.