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