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