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