OSDN Git Service

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