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