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