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