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