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