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