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