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