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