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