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