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