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