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