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