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