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