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