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