OSDN Git Service

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