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