OSDN Git Service

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