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