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