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