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