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