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