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