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