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