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