1 2001-08-31 Tom Tromey <tromey@redhat.com>
3 * java/io/ByteArrayInputStream.java: Merged with Classpath.
5 2001-08-30 Tom Tromey <tromey@redhat.com>
7 * java/io/BufferedReader.java: Re-merged with Classpath.
9 2001-08-28 Per Bothner <per@bothner.com>
11 * java/math/BigInteger.java (init(int,Random)): New method.
12 Move body of constructor <init>(int,Random)) here.
13 Re-write it to avoid constructing unneeded temporaries.
14 (<init>(int,int,Random)): Use new init method to avoid constructing
15 extra temporary BigIntegers.
17 2001-08-27 Tom Tromey <tromey@redhat.com>
19 * java/rmi/activation/Activatable.java,
20 java/rmi/activation/ActivateFailedException.java,
21 java/rmi/activation/ActivationDesc.java,
22 java/rmi/activation/ActivationException.java,
23 java/rmi/activation/ActivationGroup.java,
24 java/rmi/activation/ActivationGroupDesc.java,
25 java/rmi/activation/ActivationGroupID.java,
26 java/rmi/activation/ActivationID.java,
27 java/rmi/activation/ActivationInstantiator.java,
28 java/rmi/activation/ActivationMonitor.java,
29 java/rmi/activation/ActivationSystem.java,
30 java/rmi/activation/Activator.java,
31 java/rmi/activation/UnknownGroupException.java,
32 java/rmi/activation/UnknownObjectException.java,
33 java/rmi/AccessException.java,
34 java/rmi/AlreadyBoundException.java,
35 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
36 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
37 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
38 java/rmi/NotBoundException.java,
39 java/rmi/RMISecurityException.java,
40 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
41 java/rmi/RemoteException.java, java/rmi/ServerError.java,
42 java/rmi/ServerException.java,
43 java/rmi/ServerRuntimeException.java,
44 java/rmi/StubNotFoundException.java,
45 java/rmi/UnexpectedException.java,
46 java/rmi/UnknownHostException.java,
47 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
48 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
49 java/rmi/registry/LocateRegistry.java,
50 java/rmi/registry/Registry.java,
51 java/rmi/registry/RegistryHandler.java,
52 java/rmi/server/ExportException.java,
53 java/rmi/server/LoaderHandler.java,
54 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
55 java/rmi/server/Operation.java,
56 java/rmi/server/RMIClassLoader.java,
57 java/rmi/server/RMIClientSocketFactory.java,
58 java/rmi/server/RMIFailureHandler.java,
59 java/rmi/server/RMIServerSocketFactory.java,
60 java/rmi/server/RMISocketFactory.java,
61 java/rmi/server/RemoteCall.java,
62 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
63 java/rmi/server/RemoteServer.java,
64 java/rmi/server/RemoteStub.java,
65 java/rmi/server/ServerCloneException.java,
66 java/rmi/server/ServerNotActiveException.java,
67 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
68 java/rmi/server/SkeletonMismatchException.java,
69 java/rmi/server/SkeletonNotFoundException.java,
70 java/rmi/server/SocketSecurityException.java,
71 java/rmi/server/UID.java,
72 java/rmi/server/UnicastRemoteObject.java,
73 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
74 gnu/java/rmi/dgc/DGCImpl_Skel.java,
75 gnu/java/rmi/dgc/DGCImpl_Stub.java,
76 gnu/java/rmi/registry/RegistryImpl.java,
77 gnu/java/rmi/registry/RegistryImpl_Skel.java,
78 gnu/java/rmi/registry/RegistryImpl_Stub.java,
79 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
80 gnu/java/rmi/server/ProtocolConstants.java,
81 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
82 gnu/java/rmi/server/RMIHashes.java,
83 gnu/java/rmi/server/RMIObjectInputStream.java,
84 gnu/java/rmi/server/RMIObjectOutputStream.java,
85 gnu/java/rmi/server/UnicastConnection.java,
86 gnu/java/rmi/server/UnicastConnectionManager.java,
87 gnu/java/rmi/server/UnicastRef.java,
88 gnu/java/rmi/server/UnicastRemoteCall.java,
89 gnu/java/rmi/server/UnicastRemoteStub.java,
90 gnu/java/rmi/server/UnicastServer.java,
91 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
92 Kaffe. Relabelled classes to fit into Classpath tree.
93 * Makefile.in: Rebuilt.
94 * Makefile.am (rmi_java_source_files): New macro.
95 (ordinary_java_source_files): Reference it.
96 (bin_PROGRAMS): Added rmic and rmiregistry.
97 (rmic_SOURCES): New macro.
98 (EXTRA_rmic_SOURCES): Likewise.
99 (rmic_LDFLAGS): Likewise.
100 (rmic_LINK): Likewise.
101 (rmic_LDADD): Likewise.
102 (rmic_DEPENDENCIES): Likewise.
103 (rmiregistry_SOURCES): New macro.
104 (EXTRA_rmiregistry_SOURCES): Likewise.
105 (rmiregistry_LDFLAGS): Likewise.
106 (rmiregistry_LINK): Likewise.
107 (rmiregistry_LDADD): Likewise.
108 (rmiregistry_DEPENDENCIES): Likewise.
110 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
112 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
114 * Makefile.am: New friends for java/lang/Thread.h.
115 * prims.cc (runFirst): Removed.
116 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
117 (_Jv_RunMain): Now takes either a klass or class name parameter.
118 Create a gnu.gcj.runtime.FirstThread and attach the native thread
119 to that, then run it using _Jv_ThreadRun. Remove special handling of
120 jar files, instead pass is_jar parameter through to FirstThread.
121 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
122 of _Jv_AttachCurrentThread.
123 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
124 (run): New method. Take care of looking up main class manifest
125 attribute and calling forName if neccessary. Then call call_main.
126 (call_main): New native method.
127 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
128 relocated from prims.cc. Look up and call main method.
129 * java/lang/Thread.java (run_): Removed.
130 * java/lang/natThread.cc (run_): Renamed to...
131 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
132 (_Jv_NotifyThreadStart): here. New function.
133 (countStackFrames, destroy, resume, suspend, stop): Throw
134 UnsupportedOperationExceptions rather than JvFail'ing.
135 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
136 Existing version wraps new variant.
139 2001-08-23 Tom Tromey <tromey@redhat.com>
141 * java/lang/reflect/Field.java (toString): Use
142 Method.appendClassName.
143 * java/lang/reflect/Constructor.java (toString): Use
144 Method.appendClassName.
145 * java/lang/reflect/Method.java: Reindented.
146 (appendClassName): New method.
148 * defineclass.cc (handleMethod ): Initialize `throws' field of
150 (read_one_method_attribute): Handle Exceptions attribute.
151 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
152 (ObjectClass): Removed.
153 (getType): Compute `exception_types'.
154 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
156 2001-08-21 Anthony Green <green@redhat.com>
158 * java/lang/natClassLoader.cc (findClass): Search for
159 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
161 2001-08-21 Jeff Sturm <jsturm@one-point.com>
163 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
166 2001-08-20 Tom Tromey <tromey@redhat.com>
168 * java/awt/GridBagConstraints.java: Removed comment.
170 * jni.cc (nathash, nathash_count, nathash_size): New globals.
171 (DELETED_ENTRY): New define.
172 (hash): New function.
173 (nathash_find_slot): Likewise.
174 (natrehash): Likewise.
175 (nathash_add): Likewise.
176 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
178 (nathash_find): New function.
179 (_Jv_LookupJNIMethod): Use it. Synchronize body.
180 (call): Synchronize around assignment.
182 2001-08-17 Jeff Sturm <jsturm@one-point.com>
184 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
185 starting from zero offset.
187 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
189 * boehm.cc: Include gc_local_alloc.h if appropriate.
190 (GC_GENERIC_MALLOC): Don't define.
191 (MAYBE_MARK): Redefine for GC 6.0.
192 (_Jv_MarkObj): Mark class differently.
193 (_Jv_AllocArray): Use GC_generic_malloc.
195 2001-08-17 Mark J Roberts <mjr@anarcast.net>
197 * java/math/BigInteger.java (randBytes): New method.
198 (BigInteger(int,Random)): Use randBytes.
200 2001-08-17 Tom Tromey <tromey@redhat.com>
202 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
204 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
206 * BigInteger.java: fix right shifts by nonzero multiples of 32.
208 2001-08-15 Tom Tromey <tromey@redhat.com>
210 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
211 (local_ref_table, global_ref_table): Now IdentityHashMap.
212 (_Jv_JNI_Init): Updated for new types.
213 (mark_for_gc): Likewise.
214 (unmark_for_gc): Likewise.
215 * gcj/javaprims.h: Rebuilt class list.
216 * Makefile.in: Rebuilt.
217 * Makefile.am (core_java_source_files): Added new file.
218 * java/util/IdentityHashMap.java: New file.
220 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
223 2001-08-09 Tom Tromey <tromey@redhat.com>
225 * java/awt/image/SampleModel.java (getPixel): Set correct array
226 element. From Chris Meyer.
228 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
230 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
231 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
233 2001-08-06 Tom Tromey <tromey@redhat.com>
235 * java/io/InputStreamReader.java (refill): Only call refill on
236 BufferedInputStream when appropriate constraints are met.
238 2001-08-05 Tom Tromey <tromey@redhat.com>
240 * java/io/StringWriter.java: Merged with Classpath.
241 * java/io/InputStream.java: Merged with Classpath.
242 * java/io/OutputStream.java: Merged with Classpath.
243 * java/io/PushbackInputStream.java: Merged with Classpath.
244 * java/io/CharArrayReader.java: Merged with Classpath.
245 * java/io/CharArrayWriter.java: Merged with Classpath.
247 2001-08-02 Tom Tromey <tromey@redhat.com>
249 * prims.cc (JNI_OnLoad): Don't declare.
250 (_JNI_OnLoad): Don't define.
251 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
253 2001-08-02 Tom Tromey <tromey@redhat.com>
255 * java/io/RandomAccessFile.java (seek): Let seek go past end of
257 (skipBytes): Don't fail if seeking past end of file.
258 * java/io/FileInputStream.java (skip): Don't fail if seeking past
260 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
262 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
264 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
266 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
268 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
270 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
271 to initialize global_ref_table/local_ref_table.
273 2001-08-02 Tom Tromey <tromey@redhat.com>
275 * configure: Rebuilt.
276 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
279 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
281 * include/posix.h (_POSIX_PII_SOCKET): Define.
282 * configure.in (HAVE_SOCKLEN_T): Define.
283 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
285 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
286 (java::net::PlainSocketImpl::accept): Use it.
287 Fixes PRs libgcj/3694, libgcj/3696.
289 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
290 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
291 * configure, include/config.h.in: Regenerate.
292 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
293 (mcastGrp): Likewise.
294 (java::net::PlainDatagramSocketImpl::setOption): Guard against
295 missing IPV6_MULTICAST_IF.
296 Fixes PR libgcj/3694.
298 2001-08-01 Jeff Sturm <jsturm@one-point.com>
300 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
302 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
304 * Makefile.in: Rebuilt.
305 * Makefile.am (GCJLINK): Added --tag=GCJ.
308 2001-07-30 Tom Tromey <tromey@redhat.com>
310 * java/util/Date.java: Re-merged with Classpath.
312 2001-07-30 Jeff Sturm <jsturm@one-point.com>
314 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
315 (_Jv_bind): New static function.
316 (bind): Use _Jv_bind.
317 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
318 (_Jv_bind, _Jv_connect): New static functions.
319 (bind): Use _Jv_bind.
320 (connect): Use _Jv_connect.
322 2001-07-30 Tom Tromey <tromey@redhat.com>
323 Corey Minyard <minyard@acm.org>
325 * gnu/gcj/convert/natIconv.cc (done): New methods.
326 * gnu/gcj/convert/Output_iconv.java (done): New method.
327 * gnu/gcj/convert/Input_iconv.java (done): New method.
328 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
330 (getDefaultEncodingClass): Removed.
331 (getDefaultEncoder): Use getEncoder.
333 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
335 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
337 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
339 (getDefaultDecodingClass): Removed.
340 (getDefaultDecoder): Use getDecoder.
341 (getDecoder): Look up decoder in cache.
343 * java/lang/natString.cc (init): Call `done' on converter.
344 (getBytes): Likewise.
346 2001-07-30 Tom Tromey <tromey@redhat.com>
348 * java/lang/Integer.java: Merged with Classpath.
350 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
352 * java/util/GregorianCalendar.java (GregorianCalendar): Call
353 setTimeInMillis() to set the default/current time.
355 2001-07-29 Mark Wielaard <mark@klomp.org>
357 * HACKING: add description on updating namespace
359 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
361 * java/util/Calendar.java (set): Never recompute fields here. They
362 will already be set if someone set time explicitly, and it can cause
363 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
364 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
365 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
367 * java/text/SimpleDateFormat.java (defaultCentury): New field.
368 (readObject): Call set2DigitYearStart if appropriate so that
369 defaultCentury is calculated.
370 (SimpleDateFormat): Don't bother clearing calendar here. Call
371 computeCenturyStart().
372 (set2DigitYearStart): Calculate and set defaultCentury.
373 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
375 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
376 2 numeric digits, use the 80-20 heuristic to parse the value into a
377 default century based on defaultCenturyStart.
378 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
380 2001-07-25 Tom Tromey <tromey@redhat.com>
382 * Makefile.in: Rebuilt.
383 * Makefile.am (libgcj.jar): Correctly fail when bytecode
386 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
388 * prims.cc (_JNI_OnLoad): New function.
389 (JNI_OnLoad): Use it.
390 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
392 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
394 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
395 Makefile.in: Regenerate.
397 2001-07-24 Tom Tromey <tromey@redhat.com>
399 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
402 2001-07-23 Tom Tromey <tromey@redhat.com>
404 * gcj/javaprims.h: Rebuilt class list.
405 * Makefile.in: Rebuilt.
406 * Makefile.am (core_java_source_files): Added VMClassLoader.
407 * java/lang/VMClassLoader.java: New file.
408 * java/lang/Boolean.java: Merged with Classpath.
409 * java/lang/Byte.java: Merged with Classpath.
410 * java/lang/Integer.java: Merged with Classpath.
411 * java/lang/Long.java: Merged with Classpath.
412 * java/lang/Number.java: Merged with Classpath.
413 * java/lang/Short.java: Merged with Classpath.
415 2001-07-22 Jeff Sturm <jsturm@one-point.com>
417 * configure.host: Enable hash synchronization for alpha*-*.
418 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
420 * java/lang/natObject.cc (compare_and_swap, release_set,
421 compare_and_swap_release): Added inline functions for alpha.
423 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
425 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
426 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
427 back to old RFC 2133 variants if missing.
429 2001-07-18 Tom Tromey <tromey@redhat.com>
431 * java/io/natFileWin32.cc (_access): Renamed.
433 * java/io/natFile.cc (_access): Renamed.
435 * java/io/File.java (access, stat): Add leading `_' to name.
438 2001-07-18 Tom Tromey <tromey@redhat.com>
441 * libgcj.spec.in (*lib): Added LIBICONV.
442 * configure: Rebuilt.
443 * configure.in: Call AM_ICONV. Don't check for iconv function.
444 Add parameters to JV_HASH_SYNCHRONIZATION define.
445 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
447 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
449 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
450 not by setting its size field.
452 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
454 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
457 2001-07-12 Tom Tromey <tromey@redhat.com>
458 David Brownell <david-b@pacbell.net>
460 Fix for PR libgcj/3426:
461 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
463 (read): Throw exception if character conversion fails.
464 * java/io/BufferedInputStream.java (refill): Now package-private.
465 * java/io/InputStreamReader.java (ready): Simplified.
466 (refill): New method.
469 2001-07-12 Tom Tromey <tromey@redhat.com>
471 Report from Henner Zeller:
472 * java/io/FileOutputStream.java (FileOutputStream): Throw
473 FileNotFoundException, not IOException.
475 2001-07-10 Anthony Green <green@redhat.com>
477 * Makefile.in: Rebuilt.
478 * Makefile.am: Add new files.
479 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
480 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
481 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
482 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
483 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
484 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
485 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
486 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
487 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
488 org/w3c/dom/ranges/DocumentRange.java,
489 org/w3c/dom/ranges/Range.java,
490 org/w3c/dom/ranges/RangeException.java,
491 org/w3c/dom/traversal/DocumentTraversal.java,
492 org/w3c/dom/traversal/NodeFilter.java,
493 org/w3c/dom/traversal/NodeIterator.java,
494 org/w3c/dom/traversal/TreeWalker.java,
495 org/xml/sax/ext/DeclHandler.java,
496 org/xml/sax/ext/LexicalHandler.java,
497 org/xml/sax/helpers/AttributeListImpl.java,
498 org/xml/sax/helpers/AttributesImpl.java,
499 org/xml/sax/helpers/DefaultHandler.java,
500 org/xml/sax/helpers/LocatorImpl.java,
501 org/xml/sax/helpers/NamespaceSupport.java,
502 org/xml/sax/helpers/ParserAdapter.java,
503 org/xml/sax/helpers/ParserFactory.java,
504 org/xml/sax/helpers/XMLFilterImpl.java,
505 org/xml/sax/helpers/XMLReaderAdapter.java,
506 org/xml/sax/helpers/XMLReaderFactory.java,
507 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
508 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
509 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
510 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
511 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
512 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
513 org/xml/sax/SAXNotRecognizedException.java,
514 org/xml/sax/SAXNotSupportedException.java,
515 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
516 org/xml/sax/XMLReader.java: New files.
518 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
520 * Makefile.am: Added `java/lang/ThreadLocal.java'.
521 * Makefile.in: Regenerate.
522 * java/lang/ThreadLocal.java: Initial import.
524 2001-07-07 Jeff Sturm <jsturm@one-point.com>
526 * Makefile.am (libgcj.jar): Don't recursively make
527 built_java_source_files. Avoid long command lines.
528 Don't change to $(srcdir) to invoke javac.
529 (libgcj.la, libgcjx.la); Avoid long command lines.
530 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
531 * Makefile.in: Rebuilt.
533 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
535 * include/i386-signal.h: Don't do anything with unsigned divide
536 overflow except throw an exception.
538 2001-07-05 Tom Tromey <tromey@redhat.com>
541 * java/lang/Class.h (Class(void)): Now private. Removed
542 implementation. From dmorsberger@sensysdl.com.
544 2001-07-02 Tom Tromey <tromey@redhat.com>
546 Fix for PR bootstrap/3281:
547 * aclocal.m4, configure: Rebuilt.
548 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
549 Correctly compute libgcj_basedir.
550 (mkinstalldirs): Define and subst.
552 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
555 * java/io/LineNumberReader.java (reset): Pass correct arguments to
558 2001-06-27 Tom Tromey <tromey@redhat.com>
560 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
563 2001-06-25 Tom Tromey <tromey@redhat.com>
565 * scripts/encodings.pl: Generate lower-case names. Updated URL
566 for `character-sets' file.
567 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
569 Rebuilt list of aliases.
571 2001-06-25 Tom Tromey <tromey@redhat.com>
573 * java/io/natFileDescriptorPosix.cc (open): Change error message
574 formatting. From David Brownell.
576 2001-06-21 Tom Tromey <tromey@redhat.com>
578 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
581 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
583 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
584 extraneous/malformed sign word.
586 2001-06-15 Tom Tromey <tromey@redhat.com>
588 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
590 2001-06-15 Tom Tromey <tromey@redhat.com>
592 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
593 NULL if no library on the list has the symbol.
594 (init): Call add_library on the program itself.
595 * prims.cc (JvRunMain): Initialize Runtime before searching for
597 (_Jv_RunMain): Likewise.
599 2001-06-15 Tom Tromey <tromey@redhat.com>
601 * jni.cc (ClassClass): Removed; updated all users.
602 (ObjectClass): Likewise.
603 (ThrowableClass): Likewise.
604 (MethodClass): Likewise.
605 (ThreadGroupClass): Likewise.
606 (local_ref_table): Renamed from `ref_table'.
607 (global_ref_table): New global.
608 (_Jv_JNI_Init): Initialize both ref tables.
609 (mark_for_gc): Added `ref_table' parameter.
610 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
612 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
613 (_Jv_JNI_DeleteGlobalRef): Likewise.
614 (_Jv_JNI_DeleteLocalRef): Likewise.
615 (_Jv_JNI_NewLocalRef): Likewise.
616 (_Jv_JNI_PopLocalFrame): Likewise.
617 (_Jv_JNI_GetStringChars): Likewise.
618 (_Jv_JNI_ReleaseStringChars): Likewise.
619 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
620 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
622 2001-06-14 Tom Tromey <tromey@redhat.com>
624 Fix for PR libgcj/3144:
625 * java/util/Date.java: Merged with Classpath.
627 2001-06-12 Tom Tromey <tromey@redhat.com>
629 * aclocal.m4, configure: Rebuilt.
630 * acinclude.m4: Find configure.host in srcdir.
632 2001-06-07 Tom Tromey <tromey@redhat.com>
634 Fix for PR libgcj/3059:
635 * java/lang/natSystem.cc (init_properties): Define `java.home'.
636 * Makefile.in: Rebuilt.
637 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
639 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
641 * exception.cc (cstdlib): Replaces stdlib.h.
642 (_Jv_Throw): Use std::abort().
643 (PERSONALITY_FUNCTION): Likewise.
645 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
647 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
648 nothing, as in autoconf 2.50.
649 * aclocal.m4, configure: Rebuilt.
651 2001-06-08 Tom Tromey <tromey@redhat.com>
653 * configure: Rebuilt.
654 * configure.in: Compute new aux dir using `pwd'.
656 2001-06-07 Tom Tromey <tromey@redhat.com>
658 For PR bootstrap/3075:
659 * configure, aclocal.m4, Makefile.am: Rebuilt.
660 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
661 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
662 relative to libgcj_basedir.
663 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
664 AC_CANONICAL_SYSTEM here.
665 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
667 ($(extra_headers)): New target.
669 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
670 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
672 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
673 table index is within allowed bounds. Ensure that we dont try to access
674 class itable at a negative offset. Avoid an ancestor table lookup if
675 source is a primitive type class.
676 (isInstance): Remove redundant isPrimitive() check.
678 2001-06-04 Tom Tromey <tromey@redhat.com>
680 * java/security/PublicKey.java: Extend Key.
681 * java/security/PrivateKey.java: Extend Key.
683 2001-06-02 Anthony Green <green@redhat.com>
685 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
686 alternate when USE_LTDL not defined.
688 2001-06-02 Anthony Green <green@redhat.com>
690 * configure: Rebuild.
691 * configure.in: Remove data_start hack.
692 * libgcj.spec.in: Ditto.
693 * Makefile.in: Rebuild.
694 * Makefile.am: Ditto.
695 * libgcjdata.c: Remove.
697 2001-06-02 Anthony Green <green@redhat.com>
699 * configure: Rebuild.
700 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
701 --without-libffi option. Tweak --disable-java-net processing.
702 * Makefile.in: Rebuild.
703 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
704 * include/config.h.in: Rebuild.
705 * acconfig.h (USE_LIBFFI): Define.
706 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
708 2001-06-02 Anthony Green <green@redhat.com>
710 * configure: Rebuilt.
711 * configure.in: Test for sigaction on native builds.
712 * prims.cc: Check HAVE_SIGACTION.
713 * include/config.h.in: Rebuilt.
715 2001-05-31 Jeff Sturm <jsturm@one-point.com>
717 * natFile.cc (get_entry): Removed functions.
718 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
719 Allocate enough storage for d_name if using readdir_r.
721 2001-05-31 Tom Tromey <tromey@redhat.com>
723 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
725 (write): Loop until write completes. From Corey Minyard.
727 2001-05-29 Laurent Guerby <guerby@acm.org>
729 * java/awt/geom/Rectangle2D.java: fix doc typo.
731 2001-05-31 Tom Tromey <tromey@redhat.com>
733 * java/sql/DriverManager.java (getDrivers): Handle case where
734 driver's class loader is null. From Corey Minyard.
736 2001-05-29 Tom Tromey <tromey@redhat.com>
738 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
740 * configure: Rebuilt.
741 * configure.in: Only add multilib support code if we just rebuilt
744 2001-05-29 Andrew Haley <aph@redhat.com>
746 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
747 pointer: the dwarf unwinder in libgcc will do everything that's
749 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
750 more than we absolutely need to.
751 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
752 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
754 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
756 * configure: Rebuilt.
757 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
759 (SIGNAL_HANDLER): Use siginfo style handler.
760 (INIT_SEGV): Likewise.
761 (INIT_FPE): Likewise.
762 * include/ppc-signal.h: Delete whole file.
764 2001-05-24 Tom Tromey <tromey@redhat.com>
766 * java/lang/natString.cc (init): Throw
767 ArrayIndexOutOfBoundsException.
768 (getChars): Likewise.
769 (getBytes): Likewise.
772 * configure.in: Only allow hash synchronization when POSIX threads
774 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
777 2001-05-23 Tom Tromey <tromey@redhat.com>
779 * Makefile.in: Rebuilt.
780 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
782 Revert patch of 2001-05-21:
783 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
784 (libgcj_la_LIBADD): Likewise.
785 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
786 (libgcjx_la_LIBADD): Likewise.
788 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
789 * gcj/Makefile.in: Rebuilt.
790 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
791 * gcj/javaprims.h: Include gcj/libgcj-config.h.
792 * gcj/libgcj-config.h.in: New file.
793 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
794 * configure: Rebuilt.
795 * configure.in: Enable hash synchronization by default on some
797 (HASH_SYNC_SPEC): New subst.
798 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
799 Correctly use `test -z' instead of `test -n' in a couple places.
800 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
802 * configure.host (enable_java_net_default): Initialize.
803 (enable_hash_synchronization_default): New variable.
805 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
807 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
808 synchronization in use.
809 (_Jv_MarkArray): Likewise.
810 (_Jv_AllocBytes): Don't check return result.
811 (handle_out_of_memory): New function.
812 (_Jv_InitGC): Set GC_oom_fn.
813 (trace_one_vtable): New global.
814 (_Jv_AllocTraceOne): New function.
815 * configure.in: Added --enable-hash-synchronization.
816 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
817 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
818 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
819 (_Jv_AllocArray): Likewise.
820 (_Jv_AllocBytes): Likewise.
821 (_Jv_AllocPtrFreeObject): New function.
822 (_Jv_AllocTraceOne): Likewise.
823 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
825 (self_cache): New global.
826 (_Jv_ThreadSelf_out_of_line): New function.
827 * prims.cc (_Jv_AllocBytesChecked): Removed.
828 (_Jv_ThrowNoMemory): New function.
829 (_Jv_AllocObject): Don't check for null return from allocator.
830 (_Jv_NewObjectArray): Likewise.
831 (_Jv_AllocPtrFreeObject): New function.
832 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
833 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
834 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
835 * include/boehm-gc.h (_Jv_AllocObj): Define.
836 (_Jv_AllocPtrFreeObj): Define.
837 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
838 (_Jv_ThrowNoMemory): Declare.
839 (_Jv_AllocTraceOne): Declare.
840 (_Jv_AllocBytesChecked): Removed.
841 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
842 _Jv_MutexUnlock): Handle LOCK_DEBUG.
843 (_Jv_ThreadSelf): Handle case where system pthread_self() is
845 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
847 * java/lang/Object.h (sync_info): Conditional upon presence of
848 hash synchronization.
849 * java/lang/natObject.cc: Much new code to handle thin locks and
850 hash synchronization.
851 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
854 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
856 * gij.cc (version): Update copyright year.
858 2001-05-22 Anthony Green <green@redhat.com>
860 * configure.in: Tweak canadian cross test, and don't redefine GCJ
863 2001-05-21 Per Bothner <per@bothner.com>
865 Implement invocation interface; don't create new thread for main.
866 * java/lang/Thread.java (gen_name): Make native.
867 (<init>(Thread,THreadGroup,Runnable,String)): New private
868 constructor, used by other constructors, and _Jv_AttachCurrentThread.
869 * java/lang/natThread.cc (gen_name): New implementation.
870 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
871 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
872 (_Jv_CreateJavaVM): New runtime initialization procedure.
873 (runFirst): New proecdure - mostly code from old FirstThread::run.
874 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
875 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
876 JvDetachCurrentThread): New inline wrappers.
877 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
878 _Jv_DetachCurrentThread): New declarations.
879 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
880 (getMain): new static method.
881 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
882 by runFirst in prims.cc.
883 (java/lang/Thread.h): Update for new invocation interface.
884 * include/posix-threads.h (_Jv_ThreadRegister,
885 _Jv_ThreadUnRegister): New declarations.
886 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
887 (really_start): Use new _Jv_ThreadRegister.
888 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
889 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
890 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
891 Complain of called when _Jv_OnlyThread already set.
892 (_Jv_ThreadStart): Always JvFail.
893 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
894 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
895 * win32-threads.cc (struct starter): Remove objet field -
896 we use _Jv_Thread_t's new thread_obj field instead.
897 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
898 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
899 (really_start): Use new _Jv_ThreadRegister.
900 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
901 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
902 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
903 Removed - no longer needed with new invocation interface.
904 * Makefile.am: Update for removed/added files.
906 2001-05-21 Per Bothner <per@bothner.com>
908 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
909 (libgcj_la_LIBADD): Likewise.
910 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
912 2001-05-21 Per Bothner <per@bothner.com>
914 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
915 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
916 taken from old Integer.toString code.
917 (Integer::valueOf): Use _Jv_FormatInt.
918 * java/lang/Integer.java (toString): Just use call String.valueOf.
919 * java/lang/Long.java (toString): Fix typo in comment.
920 * java/lang/String.java (valueOf(int)): Make native.
921 * java/lang/StringBuffer.java (append(int)): Make native.
922 * java/lang/natStringBuffer.cc: New file, for append(jint).
923 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
925 2001-05-21 Tom Tromey <tromey@redhat.com>
927 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
929 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
931 * include/dwarf2-signal.h: New file.
932 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
933 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
934 * configure: Rebuilt.
936 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
938 * configure.in: Update boehm-gc include dir for new GC version.
939 * configure: Rebuilt.
940 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
942 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
943 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
944 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
947 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
949 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
950 (_Jv_MutexInit): Likewise.
952 2001-05-18 Tom Tromey <tromey@redhat.com>
954 * Makefile.in: Rebuilt.
955 * Makefile.am (awt_java_source_files): Added Polygon.java.
957 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
959 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
960 * gcj/javaprims.h: ... here.
961 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
963 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
965 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
966 with length of ioffset table.
967 (_Jv_IsAssignableFrom): Likewise.
969 2001-05-17 Per Bothner <per@bothner.com>
971 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
973 2001-05-16 Tom Tromey <tromey@redhat.com>
975 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
978 2001-05-15 Tom Tromey <tromey@redhat.com>
980 * java/util/GregorianCalendar.java (computeTime): Only call
983 2001-05-14 Tom Tromey <tromey@redhat.com>
985 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
986 ZONE_OFFSET just before computing the time.
988 2001-05-12 Zack Weinberg <zackw@stanford.edu>
990 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
991 * Makefile.in: Regenerate (by hand).
992 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
993 * doc/cni.sgml: Document #pragma GCC java_exceptions.
995 2001-05-11 Richard Henderson <rth@redhat.com>
997 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
998 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1000 2001-05-11 Richard Henderson <rth@redhat.com>
1002 * exception.cc: Include unwind-pe.h. Remove all pointer
1005 2001-05-10 Tom Tromey <tromey@redhat.com>
1007 * Makefile.in: Rebuilt.
1008 * Makefile.am (awt_java_source_files): Added Polygon.java.
1009 * java/awt/Polygon.java: New file.
1011 * java/awt/geom/AffineTransform.java
1012 (setToRotation(double,double,double)): New method.
1013 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1014 (setToShear): Likewise.
1016 2001-05-10 Tom Tromey <tromey@redhat.com>
1018 * java/util/GregorianCalendar.java: Imported from Classpath.
1019 * gnu/java/locale/LocaleInformation_nl.java: New file from
1021 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1022 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1023 * gnu/java/locale/LocaleInformation.java: Likewise.
1024 * natGregorianCalendar.cc: Removed.
1025 * Makefile.in: Rebuilt.
1026 * Makefile.am (nat_source_files): Removed
1027 natGregorianCalendar.cc.
1029 2001-05-10 Tom Tromey <tromey@redhat.com>
1031 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1033 (defaultCenturyStart): Use it.
1034 (readObject): Likewise.
1035 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1037 (parse): Copy the calendar before modifying it. Correctly handle
1040 * java/util/Calendar.java (clear): Set field value(s) to 0.
1042 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1044 * Calendar.java (get): Clear areFieldsSet if requested field
1046 (set): Unset fields that depend on new value.
1048 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1050 * java/lang/Class.h (_Jv_Self): New union type.
1051 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1052 Jeff Sturm and Fergus Henderson.
1054 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1056 * java/lang/ClassLoader.java: Remove dead code fragment.
1058 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1060 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1062 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1064 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1066 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1067 * configure.host (EXCEPTIONSPEC): New.
1068 * configure.in (EXCEPTIONSPEC): New.
1069 * configure: Rebuilt.
1071 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1073 * doc/*.texi: Remove generated documentation.
1075 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1077 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1078 (performDelete): Fix #endif placement.
1080 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1082 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1083 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1084 (_Jv_ThreadDestroyData): Use _Jv_Free.
1085 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1088 2001-04-27 Tom Tromey <tromey@redhat.com>
1090 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1092 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1094 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1096 * include/jni.h (struct JNINativeInterface): Fixed types in
1097 Get/Set*ArrayRegion declarations.
1098 (class _Jv_JNIEnv): Likewise.
1100 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1102 * configure.in: Obtain THREADS with `gcc -v'.
1103 * configure: Rebuilt.
1105 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1108 * java/io/ObjectStreamClass.java (setClass): Calculate
1109 serialVersionUID for local class and compare it against the UID
1110 from the Object Stream. Throw InvalidClassException upon mismatch.
1111 (setUID): Renamed to...
1112 (getClassUID): this. Return the calculated class UID rather than
1113 setting uid field directly.
1114 (getDefinedSUID): Removed.
1115 * java/io/ObjectInputStream.java (resolveClass): Use the
1116 three-argument Class.forName().
1117 * java/io/InvalidClassException (toString): Don't include classname in
1118 result if it is null.
1120 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1122 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1123 Wrap use of inet_pton in HAVE_INET6.
1125 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1127 java.security merge and ClassLoader compliance fixes.
1129 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1130 New protectionDomain field.
1131 (forName): Add initialize parameter. Fixes declaration to comply with
1133 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1134 variant. Honour "initialize" flag.
1135 (getProtectionDomain0): New method.
1136 * java/lang/Class.java: Fix forName() declaration.
1137 (getPackage): New method based on Classpath implementation.
1138 (getProtectionDomain0): New native method decl.
1139 (getProtectionDomain): New method.
1140 * java/lang/ClassLoader.java (getParent): Now final.
1141 (definedPackages): New field.
1143 (defineClass): New variant with protectionDomain argument.
1144 (definePackage): New.
1146 (findSystemClass): Now final.
1147 (getSystemResourceAsStream): Remove redundant "final" modifier.
1148 (getSystemResource): Remove redundant "final" modifier.
1149 (getResources): Now final.
1150 (protectionDomainPermission): New static field.
1151 (unknownProtectionDomain): Ditto.
1152 (defaultProtectionDomain): Ditto.
1153 (getSystemClassLoader): Now non-native.
1154 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1155 arguments for Class.forName().
1156 * java/lang/Package.java: New file.
1157 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1158 (instance): Static initialize singleton.
1159 (findClass): Override this, not findSystemClass.
1160 * java/lang/natClassLoader.cc (defineClass0): Set class's
1161 protectionDomain field as specified.
1162 (getSystemClassLoader): Removed.
1163 (findClass): Renamed from findSystemClass. Call the interpreter via
1164 URLClassLoader.findClass if loading class via dlopen fails.
1166 * java/security/*.java: java.security import/merge with Classpath.
1167 * java/security/acl/*.java: Likewise.
1168 * java/security/interfaces/*.java: Likewise.
1169 * java/security/spec/*.java: Likewise.
1170 * java/net/NetPermission.java: Likewise.
1171 * java/net/SocketPermission.java: Likewise.
1172 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1174 * Makefile.am: Add new classes.
1175 * Makefile.in: Rebuilt.
1176 * gcj/javaprims.h: CNI namespace rebuild.
1178 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1180 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1181 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1182 * configure: Rebuilt.
1184 2001-04-21 Tom Tromey <tromey@redhat.com>
1186 * Makefile.in: Rebuilt.
1187 * Makefile.am (awt_java_source_files): Added Line2D.java.
1188 * java/awt/geom/Line2D.java: Wrote.
1190 * java/awt/Menu.java (addNotify): Wrote.
1192 * java/awt/PopupMenu.java (addNotify): Implemented.
1195 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1196 * java/awt/List.java (addNotify): Call super.addNotify.
1197 * java/awt/Label.java (addNotify): Call super.addNotify.
1198 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1199 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1200 * java/awt/Choice.java (addNotify): Call super.addNotify.
1201 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1202 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1204 * java/awt/List.java (replaceItem): Notify peer.
1206 * java/awt/geom/Rectangle2D.java
1207 (Float.setRect(float,float,float,float)): New method.
1209 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1212 * java/awt/RenderingHints.java (Key): Class now public.
1214 * java/awt/Rectangle.java (Rectangle): Now implements
1216 (getPathIterator): Removed.
1218 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1221 * java/awt/FileDialog.java: Wrote.
1223 * java/awt/EventQueue.java (isDispatchThread): Now public.
1224 (invokeLater): Likewise.
1226 * java/awt/Component.java (setCursor): Update peer.
1227 (getFontMetrics): Use peer.
1229 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1232 2001-04-20 Tom Tromey <tromey@redhat.com>
1234 * java/awt/List.java: Wrote.
1235 * java/awt/Dialog.java: Wrote.
1237 2001-04-20 Warren Levy <warrenl@redhat.com>
1239 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1240 * java/text/SimpleDateFormat.java
1241 (indexInArray): Removed private method.
1242 (processYear): Removed private method.
1243 (parseLenient): Removed private method.
1244 (parseLeadingZeros): Removed private method.
1245 (parseStrict): Removed private method.
1246 (expect): Added new private method.
1247 (parse): Reverted to pre-Classpath merge version with minor fixes.
1248 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1251 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1253 * java/io/File.java (normalizePath): New private method.
1254 (File (String)): Use normalizePath().
1255 (File (String, String)): Likewise.
1257 * Makefile.am (libffi_files): Removed.
1258 (libgcj.la): Link libffi as a convenience library instead of
1259 refering to its object files directly.
1260 * Makefile.in: Rebuilt.
1262 2001-04-08 Per Bothner <per@bothner.com>
1264 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1265 Recalculate hash, since Utf8Const's hash is only 16 bits.
1267 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1268 bits of hash to calculate step for chaining.
1270 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1271 when 2/3 full, rather than 3/4 full.
1273 2001-04-06 Tom Tromey <tromey@redhat.com>
1275 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1276 (wrap_value<T*>): New specialization.
1277 (_Jv_JNI_PopLocalFrame): Update env->locals.
1279 2001-04-05 Tom Tromey <tromey@redhat.com>
1281 * libtool-version: Updated current.
1283 2001-04-04 Andreas Jaeger <aj@suse.de>
1285 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1286 * gcj/Makefile.in: Rebuilt.
1287 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1288 * Makefile.in: Rebuilt.
1289 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1290 * testsuite/Makefile.in: Rebuild.
1291 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1292 * include/Makefile.in: Rebuild.
1294 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1296 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1297 compiled test', not 'execution from source compiled test'.
1298 Use UNTESTED, not XFAIL, for tests which are not run because
1299 they depend on a previous test which failed.
1301 2001-04-02 Richard Henderson <rth@redhat.com>
1303 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1304 the same tree as gcc.
1305 * configure: Rebuilt.
1307 * exception.cc (_Jv_Throw): Clarify commentary.
1309 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1311 * jni.cc (wrap_value<jclass>): New specialization.
1313 2001-04-02 Tom Tromey <tromey@redhat.com>
1315 * java/io/PrintStream.java (out): Removed field. Fixes PR
1317 (write): Call flush, not out.flush, per spec.
1318 (close): Flush output stream, per spec. Handle
1319 InterruptedIOException.
1320 (checkError): Likewise.
1321 (flush, print, write): Handle InterruptedIOException per spec.
1322 (PrintStream): Don't create BufferedOutputStream.
1323 (work_bytes): New field.
1324 (writeChars): Use work_bytes. Don't assume `out' is a
1325 BufferedOutputStream.
1327 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1329 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1332 2001-03-30 Tom Tromey <tromey@redhat.com>
1334 * jni.cc (add_char): Correctly encode non-ascii characters.
1335 (add_char): Define even when INTERPRETER not defined.
1336 (mangled_name): Likewise.
1337 (_Jv_GetJNIEnvNewFrame): Likewise.
1338 (_Jv_LookupJNIMethod): Likewise.
1340 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1342 * configure.host: Enable interpreter for PPC.
1344 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1346 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1347 to "file.separator", "path.separator", and "java.io.tmpdir" property
1349 * java/io/File.java: Likewise.
1350 * java/io/natFile.cc (init_native): Likewise.
1351 * java/io/natFileWin32.cc (init_native): Likewise.
1353 2001-04-01 Per Bothner <per@bothner.com>
1355 * java/lang/natString.cc (intern): If string's data does not point to
1356 this String, make a fresh String that does.
1358 * java/lang/natString.cc (unintern): Replace by static function.
1359 * java/lang/String.java (unintern): Remove method.
1361 2001-04-01 Per Bothner <per@bothner.com>
1363 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1364 (finish): def.deflate needs to be called in a loop.
1365 (inbuf, inbufLength): New private fields.
1366 (write(int)): Use inbuf.
1367 (write(byte[],int,int): Check if pending output in inbuf.
1368 * ZipOutputStream.java: Don't use Deflater if stored.
1369 Use a Checksum object directly, not via a CheckedOutputStream.
1370 (uncompressed_size): New field,
1371 (closeEntry): Only write data_directory if needed.
1372 (write): If STORED, write directly.
1373 Always update crc, and uncompressed_size.
1374 (write_entry): Fix lots of protocol erors.
1376 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1378 1.3-Compliant Implementation of java.io.File.
1379 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1380 "path.separator", and "java.io.tmpdir" from the File class, instead
1381 of setting them explicitly.
1382 * java/io/File.java: Do not canonicalize paths for security manager
1383 checks. Call init_native() from static initializer. Do not pass path
1384 argument to native methods. New native method declarations. Some
1385 security manager checks moved to checkWrite().
1386 (equals): Check file system case sensitivity and act appropriatly.
1387 (hashCode): Likewise.
1388 (isHidden): New method implemented.
1389 (performList): Changed prototype. Now takes a class argument specifying
1390 the class of the returned array: Strings or File objects. Also added
1391 FileFilter argument.
1392 (listFiles): New variants with "File" return type implemented.
1393 (createTempFile): Use createNewFile(). Use maxPathLen.
1394 (setReadOnly): New method implemented.
1395 (listRoots): Likewise.
1396 (compareTo): Likewise.
1397 (setLastModified): Likewise.
1398 (checkWrite): New method.
1400 * java/io/natFile.cc: Various functions no longer take canonical path
1402 (stat): Handle ISHIDDEN query.
1403 (isAbsolute): Remove WIN32 cruft.
1404 (performList): New arguments. Handle returning either File[] or String[]
1405 arrays. Check with FileFilter or FilenameFilter arguments as
1406 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1407 (performSetReadOnly): New method implemented.
1408 (performListRoots): Likewise.
1409 (performSetLastModified): Likewise.
1410 (performCreate): Likewise.
1411 (init_native): New initialization function.
1412 * java/io/natFileWin32.cc: Various functions no longer take canonical
1414 (stat): Add FIXME about ISHIDDEN query.
1415 (performList): New arguments. Handle returning either File[] or String[]
1416 arrays. Check with FileFilter or FilenameFilter arguments as
1417 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1418 (performSetReadOnly): New. Stubbed.
1419 (performListRoots): Likewise.
1420 (performSetLastModified): Likewise.
1421 (performCreate): Likewise.
1422 (init_native) New initialization function.
1423 * configure.in: Check for utime() and chmod().
1424 * configure: Rebuilt.
1425 * include/config.h.in: Rebuilt.
1427 Resolves PR libgcj/1759.
1429 2001-03-28 Richard Henderson <rth@redhat.com>
1431 IA-64 ABI Exception Handling:
1432 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1433 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1434 Remove EXCEPTIONSPEC.
1435 * configure.host (libgcj_sjlj): Remove.
1436 * configure.in (EXCEPTIONSPEC): Remove.
1437 (enable-sjlj-exceptions): Detect if not specified.
1438 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1439 what header we're looking for.
1440 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1441 * Makefile.in, configure: Regenerate.
1442 * exception.cc: Don't declare libgcc2 stuff.
1443 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1444 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1445 (win32_get_restart_frame): Remove.
1446 (struct java_exception_header): New.
1447 (__gcj_exception_class): New.
1448 (get_exception_header_from_ue): New.
1449 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1450 (size_of_encoded_value, read_encoded_value): New.
1451 (read_uleb128, read_sleb128, parse_lsda_header): New.
1452 (get_ttype_entry, __gcj_personality_sj0): New.
1453 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1455 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1457 * javax/naming/InitialContext.java (init): Fix typo.
1458 (composeName): Remove unnecessary semicolon.
1459 (addToEnvironment): Remove unnecessary semicolon.
1460 (addToEnvironment): Use put() instead of add().
1462 * javax/naming/InitialContext.java (InitialContext):
1464 (destroySubcontext): Method doesn't return a result.
1465 * javax/naming/Context.java: Import java.util.Hashtable.
1466 * javax/naming/Name.java: Import java.util.Enumeration.
1468 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1470 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1471 objects in subdirectories.
1472 * Makefile.in: Rebuilt.
1474 2001-03-25 Richard Henderson <rth@redhat.com>
1476 * exception.cc (java_eh_info): Make value type jthrowable.
1477 (_Jv_type_matcher): Remove now unneeded cast.
1478 (_Jv_Throw): Make argument type jthrowable. Munge name
1479 for SJLJ_EXCEPTIONS here ...
1480 * gcj/cni.h: ... not here.
1482 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1484 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1485 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1486 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1487 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1488 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1489 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1490 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1491 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1492 java/lang/natDouble.cc, java/lang/natObject.cc,
1493 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1494 java/lang/natString.cc, java/lang/natSystem.cc,
1495 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1496 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1497 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1498 java/util/zip/natInflater.cc:
1499 Use throw, not JvThrow or _Jv_Throw.
1501 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1503 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1504 paramater, bump it to 1.
1505 * java/util/Hashtable.java (Hashtable): Likewise.
1507 2001-03-23 Per Bothner <per@bothner.com>
1509 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1510 check for errors, since we don't want to throw exception on
1511 overflow/underflow. Instead, trim whitespace, and then check that
1512 _strtod_r uses up all the rest of the string.
1514 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1515 ancestors array is invalid for interfaces, so do that *after*
1516 check that the target type is not an interface.
1518 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1520 * prims.cc (_Jv_FindClassFromSignature): Check return of
1521 recursive call. Do not abort on invalid signature; return NULL
1524 2001-03-22 Tom Tromey <tromey@redhat.com>
1526 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1527 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1529 * include/jvm.h (_Jv_ResolveField): Declare.
1530 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1531 * resolve.cc (_Jv_ResolveField): No longer conditional on
1534 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1536 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1537 for libtool hacking.
1538 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1539 to a temporary file, then invoke libtool with the -objectlist
1541 (libgcjx.la): Likewise.
1542 * Makefile.in: Rebuilt.
1544 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1546 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1548 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1550 * jni.cc (add_char): Handle `.' like `/'.
1552 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1554 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1555 initialize if exception_types is null.
1556 * java/lang/reflect/Constructor.java: Likewise.
1557 * java/lang/reflect/natConstructor.cc (getType): Initialize
1558 exception_types to an empty Object array.
1560 2001-03-21 Tom Tromey <tromey@redhat.com>
1562 * configure: Rebuilt.
1563 * configure.in (GCJFLAGS): Subst.
1564 * Makefile.in: Rebuilt.
1565 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1566 (gij_LDFLAGS): Likewise.
1567 (JC1FLAGS): Added GCJFLAGS and removed -g.
1569 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1570 read/write case. Fixes PR libgcj/2338.
1572 2001-03-20 Warren Levy <warrenl@redhat.com>
1574 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1575 and corrected SimpleTimeZone's for the timezones hash table.
1577 2001-03-19 Per Bothner <per@bothner.com>
1579 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1580 "canonicalize" "../../xxx" to "/xxx".
1582 2001-03-19 Mark Wielaard <mark@klomp.org>
1584 * java/util/ArrayList.java: Remove RCS keywords from comments
1585 * java/util/BasicMapEntry.java: idem
1586 * java/util/Dictionary.java: idem
1587 * java/util/HashSet.java: idem
1589 * java/util/EventObject.java: reindent
1590 * java/util/Properties.java: idem
1591 * java/util/SortedMap.java: idem
1593 * java/util/Enumeration.java: Merge with Classpath
1594 * java/util/EventListener.java: idem
1595 * java/util/Observable.java: idem
1596 * java/util/Observer.java: idem
1597 * java/util/Stack.java: idem
1599 2001-03-17 Tom Tromey <tromey@redhat.com>
1601 * java/lang/natString.cc (rehash): Don't bother with memset;
1602 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1604 (UNMASK_PTR): New macro.
1605 (intern): Unmask pointer before returning it. Register finalizer
1607 (unintern): Handle case where
1608 (MASK_PTR): New macro.
1609 (PTR_MAKSED): Likewise.
1610 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1612 2001-03-01 Andrew Haley <aph@redhat.com>
1614 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1615 stackTrace buffer to a correctly aligned pointer array.
1617 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1619 * java/lang/Runtime.java (_exit): Declare new package-private native.
1620 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1621 without a security manager check.
1622 (exit): Call _exit after security check.
1623 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1625 * java/lang/System.java (setSecurityManager): If a security manager
1626 is already in place, call checkPermission.
1627 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1628 throws an exception, try to deal with it gracefully.
1629 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1630 Only try to print the subordinate stack trace if "exception" is set.
1631 Print our class name first.
1633 2001-03-08 Tom Tromey <tromey@redhat.com>
1635 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1636 info for array classes.
1637 Fixes PR libgcj/1971.
1639 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1641 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1644 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1646 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1647 instead of the new JDK1.2 API. This is simpler and makes
1648 back-porting the classes to JDK1.1 trivial.
1649 (readObject): likewise.
1651 2001-03-01 Per Bothner <per@bothner.com>
1653 Changes merged from Kawa's gnu.math.
1654 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1655 (rshift(int[],int[],int,int): Removed - not needed.
1656 (gcd): Use rshift0 rather than rshift.
1657 * java/math/BigInteger.java (setShiftRight): Likewise.
1658 (divide): Simplify by using rshift0.
1659 (divide): Zero-extend results if high-order bit set.
1661 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1663 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1666 2001-02-23 Per Bothner <per@bothner.com>
1668 Change to sometimes include class name in ClassFormatError message.
1669 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1670 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1671 boolean instead of throwing ClassFormatError on failure.
1672 (throw_class_format_error): Change static function to method.
1673 (_Jv_ClassReader): New inline methods verify_identifier,
1674 two overloads of verify_classname, verify_field_signature, and
1675 verify_method_signature
1676 * include/java-interp.h: Update declarations to return bool.
1677 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1678 ClassFormatError since _Jv_VerifyClassName now returns bool.
1680 2001-02-23 Per Bothner <per@bothner.com>
1682 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1683 c++filt to select java-style output.
1685 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1687 Fix for PR java/2040:
1688 * java/util/HashMap.java (HashMap): Don't throw exception for
1689 loadFactor > 1. Add exception messages.
1690 * java/util/Hashtable.java (Hashtable): Likewise.
1692 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1694 Disable libgcjx by default.
1695 * configure.in: Add support for --enable-java-awt configure option.
1696 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1697 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1698 * Makefile.in: Rebuilt.
1699 * configure: Rebuilt.
1701 2001-02-20 Tom Tromey <tromey@redhat.com>
1703 * java/io/PipedWriter.java (flush): Throw exception if stream
1705 * java/io/OutputStreamWriter.java (write): Throw exception if
1707 (writeChars): Don't throw exception if stream closed.
1708 * java/io/CharArrayWriter.java (closed): New field.
1710 (flush): Throw exception if stream closed.
1711 (reset): Synchronize on correct lock. Allow stream to be
1713 (toCharArray, toString, writeTo): Synchronize.
1714 (write): Throwe exception if stream closed.
1715 * java/io/BufferedWriter.java (close): Clear `buffer'.
1716 (flush): Throw IOException if stream is closed.
1719 2001-02-16 Tom Tromey <tromey@cygnus.com>
1721 * java/lang/ThreadGroup.java (activeCount): Only include threads
1723 (enumerate): Likewise.
1725 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1727 * java/lang/Integer.java (getInteger): Return default argument if
1728 property is not set. Don't call decode with null argument.
1729 * java/lang/Long.java (getLong): Likewise.
1731 * java/io/CharArrayReader.java (CharArrayReader): Throw
1732 IllegalArgumentException if constructor arguments are illegal.
1733 (ready): Return false if no more characters can be read.
1734 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1736 2001-02-17 Mark Wielaard <mark@klomp.org>
1738 * java/util/TimerTask.java: New version from Classpath.
1740 2001-02-17 Mark Wielaard <mark@klomp.org>
1742 Remerge with Classpath
1743 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1744 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1745 (readByte): Use convertToByte().
1746 (readChar): Use convertToChar().
1747 (readInt): Use convertToInt().
1748 (readLong): Use convertToLong().
1749 (readShort): Use convertToShort().
1750 (readUnsignedByte): Use convertToUnsignedByte().
1751 (readUnsignedShort): Use convertToUnsignedShort().
1752 (readUTF): Use convertToUTF().
1754 (convertToBoolean): Resurrected.
1755 (convertToByte): Ditto.
1756 (convertToChar): Ditto.
1757 (convertToInt): Ditto.
1758 (convertToLong): Ditto.
1759 (convertToShort): Ditto.
1760 (convertToUnsignedByte): Ditto.
1761 (convertToUnsignedShort): Ditto.
1762 (convertToUTF): Ditto.
1764 2001-02-17 Mark Wielaard <mark@klomp.org>
1768 2001-02-17 Mark Wielaard <mark@klomp.org>
1770 * java/io/DataInputStream.java: update copyright notice
1771 * java/io/PrintWriter.java: idem
1772 * java/io/Reader.java: idem
1773 * java/io/StreamTokenizer.java: idem
1774 * java/io/StringReader.java: idem
1775 * java/lang/reflect/ReflectPermission.java: idem
1777 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1779 * java/util/TreeSet.java (clone): Made subclass safe, use
1780 super.clone(), not new.
1781 * java/util/TreeMap.java (clone): Likewise.
1783 * java/util/TreeMap.java (nil): Made non-final.
1784 (clone): Create new nil node for copy.
1786 * java/util/HashSet.java (clone): Made subclass safe, use
1787 super.clone(), not new.
1789 2001-02-14 Andrew Haley <aph@redhat.com>
1791 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1794 2001-02-15 Anthony Green <green@redhat.com>
1796 * defineclass.cc: Don't include alloca.h.
1797 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1798 * interpret.cc (run_normal): Ditto.
1800 * java/lang/natDouble.cc (parseDouble): Ditto.
1802 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1804 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1806 * java/util/Collections.java (ReverseComparator): New static class.
1807 (reverseOrder): Return static instance of ReverseComparator.
1809 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1810 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1811 Rectangle.clone(), not Object.clone().
1813 * java/util/HashSet.java (clone): Remove try/catch.
1815 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1816 * java/util/Collection.java: Likewise.
1817 * java/util/Comparator.java: Likewise.
1818 * java/util/Dictionary.java: Likewise.
1819 * java/util/Iterator.java: Likewise.
1820 * java/util/ListIterator.java: Likewise.
1821 * java/util/Map.java: Likewise.
1822 * java/util/Set.java: Likewise.
1824 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1826 * java/util/TreeMap.java: New file.
1827 * java/util/TreeSet.java: New file.
1828 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1829 * Makefile.in: Rebuilt.
1830 * java/util/HashSet.java (clone): Use constructor instead of calling
1832 * java/util/SortedSet.java: Sync with classpath.
1833 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1836 * java/lang/natClass.cc (getSignature): Don't try to dereference
1837 param_types if it is null. Instead, take this to mean "no parameters".
1838 * java/lang/TreeMap.java (TreeIterator.next): Throw
1839 NoSuchElementException in preference to ConcurrentModificationException.
1840 (TreeIterator.remove): Throw IllegalStateException in preference to
1841 ConcurrentModificationException.
1842 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1843 throw a NoSuchElementException.
1844 (SubMap.lastKey): Likewise.
1846 2001-02-13 Tom Tromey <tromey@redhat.com>
1848 * java/io/PipedReader.java (ready): Throw IOException if pipe
1850 * java/io/FilterReader.java (close): Don't clear `in'.
1851 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1853 (read, ready, reset, skip): Added exception message.
1854 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1855 Perform checkStatus check inside synchronized block.
1857 2001-02-13 Tom Tromey <tromey@redhat.com>
1859 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1861 2001-02-13 Tom Tromey <tromey@redhat.com>
1863 Fix for PR libgcj/1351:
1864 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1866 Include Thread.h and InterruptedIOException.h.
1868 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1870 * java/io/BlockDataException.java: Removed.
1871 * java/io/ObjectInputStream.java (readObject): Throw
1872 StreamCorruptedException, not BlockDataException.
1873 * Makefile.am: Remove BlockDataException.
1874 * Makefile.in: Rebuild.
1876 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1877 Tom Tromey <tromey@redhat.com>
1879 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1882 2001-02-09 Tom Tromey <tromey@redhat.com>
1884 * java/util/Timer.java: New version from Classpath.
1886 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1888 * java/lang/Double.java (doubleToRawLongBits): Now native.
1889 * java/lang/Float.java (floatToRawIntBits): Likewise.
1890 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1891 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1893 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1895 * java/io/File.java (java.net): Imported.
1896 (getAbsoluteFile): Added.
1897 (getCanonicalPath): Likewise.
1900 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1902 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1903 * java/lang/Integer.java: Likewise.
1904 * java/lang/Long.java: Likewise.
1905 * java/lang/Short.java: Likewise.
1906 * java/lang/Double.java: Likewise.
1907 (doubleToRawLongBits): New method.
1908 * java/lang/Float.java: As above.
1909 (floatToRawIntBits): New method.
1911 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1912 IOException if stream closed.
1914 2001-02-08 Tom Tromey <tromey@redhat.com>
1916 * java/lang/Float.java (parseFloat): New method.
1918 2001-02-08 Tom Tromey <tromey@redhat.com>
1920 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1921 * java/io/InputStreamReader.java (ready, read): Throw IOException
1922 if stream has been closed.
1924 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1926 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1927 Change sources.redhat.com and sourceware.cygnus.com references to
1930 2001-02-07 Tom Tromey <tromey@redhat.com>
1932 Fix for PR libgcj/1906:
1933 * java/text/MessageFormat.java (setLocale): Use named class
1936 (format(Object,StringBuffer,FieldPosition)): Special case if
1937 argument is an Object[].
1939 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1941 * java/util/Arrays.java: Removed "cmp" methods.
1942 (qsort): Don't use "cmp".
1945 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1947 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1948 sort. Fix for PR java/1895.
1950 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1952 * configure.host: Use sjlj-exceptions for Alpha.
1954 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1956 * libgcj.spec.in: Don't force static libgcc into the executable.
1957 * configure.in (FORCELIBGCCSPEC): Removed.
1958 * configure: Rebuilt.
1960 2001-01-31 Tom Tromey <tromey@redhat.com>
1962 * Makefile.in: Rebuilt.
1963 * Makefile.am (LTCXXCOMPILE): New macro.
1965 2001-01-26 Andrew Haley <aph@redhat.com>
1967 (INIT_FPE): Use a direct system call to set the handler.
1969 2001-01-27 Richard Henderson <rth@redhat.com>
1971 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1973 2001-01-27 Tom Tromey <tromey@redhat.com>
1975 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1976 native interface structure.
1978 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1980 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1982 (read (byte[], int, int)): Only call readNextBlock() if the block
1983 buffer would actually be overrun. Increment blockDataPosition.
1984 (callReadMethod): Propagate exceptions from invocation target.
1985 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1986 exceptions from invocation target.
1988 2001-01-26 Tom Tromey <tromey@redhat.com>
1990 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1991 to internal representation.
1992 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1993 _Jv_FindClassFromSignature.
1995 2001-01-26 Warren Levy <warrenl@redhat.com>
1997 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1998 and timezone if they are available on the system.
2000 2001-01-24 Tom Tromey <tromey@redhat.com>
2002 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2004 2001-01-24 Tom Tromey <tromey@redhat.com>
2006 * Makefile.in: Rebuilt.
2007 * Makefile.am (c_source_files): Added sf_fabs.c.
2008 * java/lang/sf_fabs.c: New file.
2010 2001-01-19 Warren Levy <warrenl@redhat.com>
2012 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2013 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2014 correctly. Adjust properly from 0-23 clock hour.
2016 2001-01-17 Mark Wielaard <mark@klomp.org>
2018 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2020 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2022 * java/lang/Class.h (isInterface): Move implementation from
2023 natClass.cc. Declare inline.
2024 (Class): Add default constructor.
2025 * java/lang/Object.h: Update comments.
2026 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2027 initialize superclass, saving a call if super is already initialized.
2029 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2031 * prims.cc (init_prim_class): Deleted.
2032 (DECLARE_PRIM_TYPE): Rewritten.
2033 * java/lang/Class.h (stdio.h): Include removed.
2034 (stddef.h): Included.
2035 (java/lang/reflect/Modifier.h): Likewise.
2036 (Class): Contructor now takes arguments, initializes fields.
2037 (initializePrim): Prototype deleted.
2038 * java/lang/natClass.cc (initializePrim): Deleted.
2040 2001-01-16 Warren Levy <warrenl@redhat.com>
2042 * java/math/BigInteger.java: Update Copyright year.
2044 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2046 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2049 2001-01-14 Mark Wielaard <mark@klomp.org>
2050 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2051 (decode): Merge comments with Classpath, don't throw Exception
2053 2001-01-12 Tom Tromey <tromey@redhat.com>
2055 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2059 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2060 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2061 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2062 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2063 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2065 * java/lang/natSystem.cc: Include locale.h if it exists.
2066 * configure: Rebuilt.
2067 * configure.in: Check for locale.h.
2069 2001-01-11 Tom Tromey <tromey@redhat.com>
2071 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2072 (Cursor(int), getPredefinedCursor): Throw exception if argument
2075 2001-01-03 Tom Tromey <tromey@redhat.com>
2077 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2078 (getLocationOnScreen): Wrote.
2080 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2082 * Makefile.am: Re-enable dependencies.
2083 * Makefile.in: Rebuilt.
2085 2001-01-10 Warren Levy <warrenl@redhat.com>
2087 * java/math/BigDecimal.java (divide): Fixed comment.
2089 2001-01-10 Warren Levy <warrenl@redhat.com>
2091 Fix for PR libgcj/1596:
2092 * java/math/BigDecimal.java (divide): Check newScale for validity.
2093 Ensure that BigInteger.pow() is called with a non-negative value.
2094 (setScale (int)): New public method.
2095 (setScale (int,int)): New public method.
2097 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2099 Fix for PR libgcj/1338:
2100 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2101 commentChar. Fixed typos in comments.
2103 2001-01-08 Warren Levy <warrenl@redhat.com>
2105 Fix for PR libgcj/1411:
2106 * Makefile.am: Removed java/util/natTimeZone.cc.
2107 * Makefile.in: Rebuilt.
2108 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2109 missing localized timezone names.
2110 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2111 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2112 (init_properties): Set user.timezone property.
2113 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2114 default timezone names; removed non-standard ones. Use standard
2116 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2118 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2120 (getDefaultTimeZoneId): Removed.
2122 * java/util/natTimeZone.cc: Removed.
2124 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2126 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2127 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2128 (_Jv_GetArrayClass): New inline function.
2129 (arrayclass): New field.
2130 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2131 _Jv_GetArrayElementFromElementType.
2132 (_Jv_NewPrimArray): Ditto.
2133 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2134 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2135 Set Modifier::ABSTRACT.
2136 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2137 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2138 Now synchronized. Array classes are now referenced from
2139 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2140 Set array classes' accessibility flags correctly. Optimize so that
2141 all array classes share the same IDT.
2142 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2143 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2144 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2145 in superclasses from overwriting classes own fields.
2146 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2147 Modifier::isAbstract().
2148 (null_idt): New static field.
2149 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2151 (_Jv_IndexOf): Made inline.
2152 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2154 2001-01-08 Tom Tromey <tromey@redhat.com>
2156 Fix for PR java/1586:
2157 * Makefile.in: Rebuilt.
2158 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2160 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2162 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2163 from the c++ compiler.
2164 * Makefile.in: Rebuilt.
2166 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2168 All files with updated copyright.
2169 * prims.cc (class _Jv_PrimClass): Removed.
2170 (init_prim_class): New function.
2171 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2172 `_Jv_PrimClass' in primitive type declarations. Assign to the
2173 value returned by `init_prim_class.'
2174 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2175 primitive type declarations.
2176 (JvPrimClass): Cast to `jclass' removed.
2177 * java/lang/Class.h (Class): New constructor.
2178 (Class): New copy constructor.
2179 (initializePrim): New prototype.
2180 (_Jv_PrimClass): Field removed.
2181 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2182 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2183 (class java::lang::Object): `finalize' moved up front.
2184 * java/lang/natClass.cc
2185 (isAssignableFrom): Turned outline.
2186 (isInstance): Likewise.
2187 (isInterface): Likewise, fixed indentation.
2188 (initializePrim): New function.
2190 2001-01-07 Anthony Green <green@redhat.com>
2192 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2194 * Makefile.in: Rebuilt.
2196 * scripts/TexinfoDoclet.java: New file.
2198 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2199 doc/java-awt-color.texi, doc/java-lang.texi,
2200 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2201 doc/java-awt-event.texi, doc/java-net.texi,
2202 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2203 doc/java-awt-image.texi, doc/java-security.texi,
2204 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2205 doc/java-text.texi, doc/java-beans-beancontext.texi,
2206 doc/java-util-jar.texi, doc/java-beans.texi,
2207 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2208 doc/java-lang-ref.texi: New files.
2210 2001-01-07 Anthony Green <green@redhat.com>
2212 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2213 be used for both input and output, so don't clear doInput.
2215 * java/lang/StringBuffer.java: Fix comments.
2217 2001-01-06 Anthony Green <green@redhat.com>
2219 * java/beans/PropertyDescriptor.java: Fix comment.
2220 * java/io/PushbackReader.java: Fix comment.
2221 * java/io/ObjectStreamClass.java: Fix comment.
2222 * java/io/DataInputStream.java: Fix comment.
2223 * java/io/PipedInputStream.java: Fix comments.
2224 * java/io/PipedReader.java: Fix comments.
2225 * java/sql/DatabaseMetaData.java: Fix comments.
2227 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2229 * java/io/PipedReader: Synchronize on "lock" instead of this.
2231 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2233 * java/lang/Thread.java: Update comment.
2235 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2236 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2237 * java/io/PipedReader: New implementation based on new
2239 * java/io/PipedWriter: Updated to match new PipedReader.
2241 2001-01-03 Tom Tromey <tromey@redhat.com>
2243 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2244 (getViewportSize): Insets include scrollbar size.
2245 (doLayout): Finished.
2246 (getScrollPosition): Wrote.
2247 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2249 2001-01-02 Tom Tromey <tromey@redhat.com>
2251 * java/awt/ScrollPane.java: Wrote.
2252 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2255 * java/awt/Panel.java (Panel()): Fixed.
2257 * java/awt/Component.java (isShowing): Return false if no peer
2258 exists, and true if component is visible and no parent exists.
2259 (getLocationOnScreen): Wrote.
2260 (getPreferredSize): Removed FIXME comment.
2261 (getMinimumSize): Likewise.
2262 (getAlignmentX, getAlignmentY): Wrote.
2264 (requestFocus): Wrote.
2265 (transferFocus): Wrote.
2266 (findNextFocusComponent): New method.
2267 (hasFocus()): Wrote.
2268 (checkImage): Wrote.
2269 (enableEvents): Call setEventMask on the peer.
2271 * java/awt/Container.java (list): Use super.list() to print self.
2272 (findNextFocusComponent): New method.
2273 (setLayout): Call invalidate.
2274 (findComponentAt): Wrote.
2276 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2278 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2279 the correct versions of various linuxthreads functions get linked.
2280 * Makefile.in: Rebuilt.
2281 * java/lang/natThread.cc (finalize_native): New static function. Call
2282 _Jv_ThreadDestroyData.
2283 (initialize_native): Register finalizer for "data".
2284 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2285 (_Jv_ThreadDestroyData): New prototype.
2286 * include/win32-threads.h: Ditto.
2287 * include/no-threads.h: Ditto.
2288 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2289 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2290 move mutex and condition variable destroy code from:
2291 (really_start): ...here.
2292 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2293 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2294 (_Jv_ThreadDestroyData): Implemented.
2295 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2296 (_Jv_AllocArray): Ditto.
2298 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2300 * java/sql/DriverManager.java (getConnection): Don't set user/password
2303 2000-12-27 Warren Levy <warrenl@redhat.com>
2305 Fix for PR libgcj/1358:
2306 * java/lang/System.java: Update Copyright date properly.
2307 * java/util/Calendar.java: Fix typo in comment.
2308 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2309 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2310 initialize times. Spec says to set H:M:S values to zero only if
2312 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2313 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2314 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2315 timezones and GMT offsets, being careful to account for units of
2316 milliseconds vs. seconds.
2318 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2320 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2321 not be assigned to Object.
2323 Fix for PR libgcj/1516:
2324 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2326 (can_widen): Declared inline. Remove redundant checks for void
2327 arguments and char->short conversion. Add special case for boolean
2329 (ffi_type): Declared inline.
2330 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2332 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2334 * java/sql/SQLWarning.java: Fixed typo in comment.
2336 2000-12-26 Tom Tromey <tromey@redhat.com>
2338 * java/awt/MenuItem.java (paramString): Now protected.
2340 * java/awt/MenuShortcut.java: Implements Serializable.
2342 * java/awt/MenuBar.java: Rewrote from scratch.
2344 * java/awt/MenuComponent.java (removeNotify): Wrote.
2345 Implements Serializable.
2347 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2350 * java/awt/CheckboxMenuItem.java: Wrote.
2352 2000-12-25 Tom Tromey <tromey@redhat.com>
2354 * java/awt/MenuContainer.java: Fixed typo.
2356 * Makefile.in: Rebuilt.
2357 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2358 * java/awt/SystemColor.java: New file.
2360 * java/awt/Color.java (rgba): Now package-private.
2362 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2364 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2367 * java/awt/MenuItem.java (addNotify): New method.
2368 (MenuItem(String,MenuShortcut)): New constructor.
2369 (setLabel): Notify peer of change.
2370 (setEnabled): Likewise.
2372 * java/awt/GridLayout.java (toString): New method.
2374 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2375 (FlowLayout): Check for LEADING and TRAILING.
2376 (setAlignment): Likewise.
2377 (layoutContainer): Handle component orientation.
2379 * java/awt/Component.java (orientatin): New field.
2380 (setComponentOrientation): Wrote.
2381 (getComponentOrientation): Wrote.
2383 * java/awt/Event.java (Event): Implements Serializable.
2384 (consumed): New field for serialization.
2385 * java/awt/Dimension.java (Dimension): Implements Serializable.
2386 * java/awt/Cursor.java (Cursor): Implements Serializable.
2387 * java/awt/Container.java (Container): No longer abstract.
2389 * java/awt/Choice.java: Wrote.
2390 * java/awt/Checkbox.java: Wrote.
2391 * java/awt/ItemSelectable.java: Documented.
2392 * java/awt/CheckboxGroup.java: Wrote.
2394 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2396 (getSize): Likewise.
2398 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2400 * java/io/FileDescriptor.java: Initialize fd to -1.
2401 Remove default constructor.
2403 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2405 * java/lang/mprec.h: Change C9X reference to refer to C99.
2407 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2409 * java/lang/Throwable.java (trace_enabled): New static field.
2410 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2411 trace_enabled not set.
2412 * prims.cc (main_init): Turn off trace_enabled while creating
2413 default exception objects.
2415 2000-12-21 Tom Tromey <tromey@redhat.com>
2417 * java/beans/PropertyChangeListener.java: Extends EventListener.
2418 * java/beans/VetoableChangeListener.java: Extends EventListener.
2420 * java/util/zip/Deflater.java (update, init): Now private.
2422 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2424 * java/util/BasicMapEntry.java: Re-added.
2425 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2426 (putAll): Test for BasicMapEntry.
2427 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2428 (putAll): Test for BasicMapEntry.
2429 Change references from `HashMap.Entry' to `Entry' in various places.
2430 * Makefile.am: Add BasicMapEntry.java.
2431 * Makefile.in: Rebuilt.
2433 2000-12-18 Warren Levy <warrenl@redhat.com>
2435 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2436 need to set timezone to a valid non-null value. Partial fix for
2439 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2441 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2443 * java/awt/Button.java (addNotify): Likewise.
2444 * java/awt/Label.java (addNotify): Likewise.
2445 * java/awt/Panel.java (addNotify): Likewise.
2446 * java/awt/Scrollbar.java (addNotify): Likewise.
2447 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2448 Remove redundant null checks.
2450 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2452 * COPYING: Update to current
2453 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2454 to 19yy as example year in copyright notice).
2456 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2458 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2459 end-of-stream if avail_in is 0.
2461 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2463 * java/util/ArrayList.java (data): Declare transient.
2464 (serialPersistantFields): Removed.
2465 (readObject): Use defaultReadObject(), not readFields().
2466 (writeObject): Use defaultWriteObject(), not writeFields().
2468 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2470 * java/util/Hashtable.java (put): Remove `last' variable.
2471 Link new entry to head of list.
2472 * java/util/HashMap.java (put): Ditto.
2474 2000-12-15 Tom Tromey <tromey@redhat.com>
2476 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2477 loader to Class.forName.
2479 2000-12-14 Tom Tromey <tromey@redhat.com>
2481 * java/util/ResourceBundle.java
2482 (getBundle(String,Locale,ClassLoader)): New method.
2483 (trySomeGetBundle): Added `loader' argument.
2484 (partialGetBundle): Likewise.
2486 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2487 maximumFractionDigits, maximumIntegerDigits,
2488 minimumFractionDigits, minimumIntegerDigits): Now
2491 * java/lang/Thread.java (checkAccess): Now final.
2493 * java/lang/RuntimePermission.java: Class now final.
2495 * java/io/StringWriter.java (StringWriter(int)): Now public.
2497 * java/io/SerializablePermission.java (legal_names): Now private.
2499 * java/lang/Character.java: Updated UnicodeBlock constants.
2500 * scripts/blocks.pl: Special case private use and surrogate
2503 2000-12-12 Tom Tromey <tromey@redhat.com>
2505 * Makefile.in: Rebuilt.
2506 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2508 (GCJCOMPILE): Use it.
2511 2000-12-11 Tom Tromey <tromey@redhat.com>
2513 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2514 New static final fields.
2516 * scripts/classes.pl (scan): Skip lines with leading `*'.
2517 Fix for PR libgcj/378.
2519 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2521 * configure.in: Remove check for -fuse-divide-subroutine.
2522 * configure: Rebuilt.
2524 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2526 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2528 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2530 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2531 Remove BasicMapEntry.java and Bucket.java.
2532 * Makefile.in: Rebuilt.
2533 * java/util/HashMap.java: Rewritten.
2534 * java/util/HashSet.java: Imported from classpath.
2535 * java/util/WeakHashMap.java: Imported from classpath.
2536 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2537 * java/util/Bucket.java: Deleted.
2538 * java/util/BasicMapEntry.java: Deleted.
2539 * java/util/Collections.java (search): Use a for-loop, not iterator
2541 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2542 of elements in source.
2543 (max): Use a for-loop.
2545 (reverse): Keep track of positions instead of using Iterator's
2546 nextIndex() and previousIndex().
2547 (shuffle(List)): Initialize defaultRandom if required using
2548 double-check thread safety idiom. Call two-argument shuffle method
2549 using defaultRandom.
2550 (defaultRandom): New field.
2551 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2552 using previousIndex() and nextIndex().
2553 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2554 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2555 * java/util/AbstractMap.java (toString): Use StringBuffer.
2556 * java/lang/ref/PhantomReference.java: Imported from classpath.
2557 * java/lang/ref/SoftReference.java: Ditto.
2558 * java/lang/ref/Reference.java: Ditto.
2559 * java/lang/ref/WeakReference.java: Ditto.
2560 * java/lang/ref/ReferenceQueue.java: Ditto.
2562 2000-12-10 Richard Henderson <rth@redhat.com>
2564 * configure.host: Recognize alpha*-*, not alphaev6-*.
2566 2000-12-09 Anthony Green <green@redhat.com>
2568 * configure.host: Enable interpreter for Alpha.
2570 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2572 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2573 (ZIP): Points at fastjar instead of zip.
2574 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2575 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2576 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2577 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2578 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2579 ($(x_java_source_files:.java=.class):): Likewise.
2580 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2582 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2583 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2584 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2585 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2586 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2587 gnu/gcj/runtime/VMClassLoader.h:,
2588 java/io/ObjectInputStream$$GetField.h:,
2589 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2590 (Makefile.in): Rebuilt.
2592 2000-12-08 Tom Tromey <tromey@redhat.com>
2595 * configure: Rebuilt.
2596 * configure.in: Use echo, not `:', to create .d files.
2598 2000-12-08 Warren Levy <warrenl@redhat.com>
2600 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2601 NullPointerException so proper check of offset can be done.
2603 2000-12-08 Warren Levy <warrenl@redhat.com>
2605 * java/io/FileInputStream.java (close): Check if the fd is valid.
2606 * java/io/RandomAccessFile.java (close): Ditto.
2607 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2608 * java/net/PlainSocketImpl.java (close): Ditto.
2610 2000-12-06 Tom Tromey <tromey@redhat.com>
2612 * java/awt/GridBagConstraints.java: Filled in values for static
2615 * java/util/BitSet.java: Updated copyright notice.
2617 * Makefile.in: Rebuilt.
2618 * Makefile.am (awt_java_source_files): Added new file.
2619 * java/awt/GridBagConstraints.java: New file.
2621 2000-12-05 Tom Tromey <tromey@redhat.com>
2623 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2624 Now package-private, not protected.
2625 * java/text/DateFormatSymbols.java (equals): Now private.
2626 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2627 * java/util/BitSet.java: Class no longer final.
2629 2000-12-04 Warren Levy <warrenl@redhat.com>
2631 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2632 out code dependent on compiler and library changes.
2634 2000-12-04 Warren Levy <warrenl@redhat.com>
2636 * java/io/FilePermission.java: Made class final per spec.
2637 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2638 method name to match spec (fixed typo).
2639 * java/util/LinkedList.java: Implements List.
2641 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2643 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2644 Edgar Villanueva <edgarvil@home.com>.
2646 2000-12-03 Tom Tromey <tromey@redhat.com>
2648 * java/awt/geom/Point2D.java: Added protected constructor.
2649 (equals): New method.
2650 (Float.setLocation(float,float)): New method.
2651 * java/awt/geom/Dimension2D.java: Added protected constructor.
2652 * java/awt/geom/AffineTransform.java: Made all constants public.
2653 (concatenate): Fixed typo in name.
2654 * java/awt/event/WindowAdapter.java: Class now abstract.
2655 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2656 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2659 * java/awt/AWTError.java: Extend Error, not
2660 IllegalStateException.
2662 * Makefile.in: Rebuilt.
2663 * Makefile.am (awt_java_source_files): Added new file.
2664 * java/awt/geom/RoundRectangle2D.java: New file.
2666 * Makefile.in: Rebuilt.
2667 * Makefile.am (awt_java_source_files): Added new file.
2668 * java/awt/FlowLayout.java: New file.
2670 * Makefile.in: Rebuilt.
2671 * Makefile.am (awt_java_source_files): Added new file.
2672 * java/awt/GridLayout.java: New file.
2674 2000-12-02 Tom Tromey <tromey@redhat.com>
2676 * Makefile.in: Rebuilt.
2677 * Makefile.am (awt_java_source_files): Added new files.
2678 * java/awt/CardLayout.java: New file.
2679 * java/awt/AWTPermission.java: New file.
2681 2000-12-01 Tom Tromey <tromey@redhat.com>
2683 * java/util/Vector.java (insertElementAt): Unconditionally
2684 increment elementCount.
2685 (removeRange): Clear unused slots in vector.
2687 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2689 * java/lang/natMath.cc: Declare fabsf() function.
2690 * java/lang/mprec.h: Don't include math.h.
2691 * java/lang/dtoa.c: Include string.h.
2692 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2695 From Adam Welc <welc@cs.purdue.edu>:
2696 * java/util/LinkedList.java (removeFirst): Update `first' field.
2697 Handle the last == first case.
2698 (removeLast): Update `last' field. Handle the last == first case.
2700 2000-12-01 Warren Levy <warrenl@cygnus.com>
2702 * Makefile.am: Added entries for new java.sql modules.
2703 * Makefile.in: Rebuilt.
2705 2000-12-01 Warren Levy <warrenl@cygnus.com>
2707 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2708 that aren't quite 1.2 compatible yet.
2710 2000-11-30 Warren Levy <warrenl@cygnus.com>
2712 * java/sql/Array.java: New file from classpath.
2713 * java/sql/BatchUpdateException.java: Ditto.
2714 * java/sql/Blob.java: Ditto.
2715 * java/sql/Clob.java: Ditto.
2716 * java/sql/Ref.java: Ditto.
2717 * java/sql/SQLData.java: Ditto.
2718 * java/sql/SQLInput.java: Ditto.
2719 * java/sql/SQLOutput.java: Ditto.
2720 * java/sql/Struct.java: Ditto.
2721 * java/sql/CallableStatement.java: Merged file from claspath.
2722 * java/sql/Connection.java: Ditto.
2723 * java/sql/DataTruncation.java: Ditto.
2724 * java/sql/DatabaseMetaData.java: Ditto.
2725 * java/sql/DriverManager.java: Ditto.
2726 * java/sql/PreparedStatement.java: Ditto.
2727 * java/sql/ResultSet.java: Ditto.
2728 * java/sql/ResultSetMetaData.java: Ditto.
2729 * java/sql/SQLException.java: Ditto.
2730 * java/sql/SQLWarning.java: Ditto.
2731 * java/sql/Statement.java: Ditto.
2732 * java/sql/Types.java: Ditto.
2734 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2736 * java/lang/natSystem.cc (init_properties): Set user.language and
2738 * configure.in: Check for setlocale.
2739 * configure: Rebuilt.
2740 * include/config.h.in: Rebuilt.
2742 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2743 the infate() call didn't deliver any output. Throw a ZipException if
2744 the needsDictionary() call returns true.
2745 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2746 * java/io/InputStreamReader: Use the default buffer size for the
2747 contained BufferedInputStream.
2749 2000-11-28 Warren Levy <warrenl@cygnus.com>
2751 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2752 more time zone entries.
2753 * java/text/SimpleDateFormat.java (format): Added case for
2756 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2758 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2759 directly rather than read() in all cases. Make primitive read
2760 implementations more efficient, as defined in JDK online docs.
2761 (skipBytes): Behave like the JDK's implementation.
2762 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2763 closed stream with checkStatus() whenever an IOException can be
2765 (checkStatus): New private method.
2767 2000-11-27 Warren Levy <warrenl@cygnus.com>
2769 * Makefile.am: Added natTimeZone.cc.
2770 * Makefile.in: Rebuilt.
2771 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2772 * java/text/DateFormatSymbols.java (ampms): Made package private.
2773 (eras): Made package private.
2774 (months): Made package private.
2775 (shortMonths): Made package private.
2776 (shortWeekdays): Made package private.
2777 (weekdays): Made package private.
2778 (formatPrefixes): New private field.
2779 (localPatternCharsDefault): Made private.
2780 (dateFormats): New package private field.
2781 (timeFormats): New package private field.
2782 (formatsForKey): New private method.
2783 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2784 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2785 * java/text/SimpleDateFormat.java: Merged with Classpath.
2786 * java/util/TimeZone.java: Merged with Classpath.
2787 * java/util/natTimeZone.cc: New file.
2789 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2791 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2792 (addElement): Don't increment elementCount twice. Doh.
2793 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2794 array needs to be expanded.
2796 * java/util/Collections.java (UnmodifiableCollection): Implement
2798 (UnmodifiableList): Throw UnsupportedOperationException from
2799 modification methods. Set `l' from the one-parameter constructor.
2800 (UnmodifiableMap): Implement toString().
2801 (SynchronizedCollection): Ditto.
2802 (SynchronizedList): Set `l' from the one-parameter constructor.
2803 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2804 (SynchronizedMap): Implement toString().
2806 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2808 * javax/naming/NameParser.java,
2809 javax/naming/directory/AttributeInUseException.java,
2810 javax/naming/directory/AttributeModificationException.java,
2811 javax/naming/directory/InvalidAttributeIdentifierException.java,
2812 javax/naming/directory/InvalidAttributesException.java,
2813 javax/naming/directory/InvalidAttributeValueException.java,
2814 javax/naming/directory/InvalidSearchControlsException.java,
2815 javax/naming/directory/InvalidSearchFilterException.java,
2816 javax/naming/directory/NoSuchAttributeException.java,
2817 javax/naming/directory/SchemaViolationException.java: New files.
2819 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2821 * javax/naming/InitialContext.java (rebind): Implement.
2822 (unbind): Implement.
2823 (rename): Implement.
2825 (listBindings): Implement.
2826 (destroySubcontext): Implement.
2827 (createSubcontext): Implement.
2828 (lookupLink): Implement.
2829 (getNameParser): Implement.
2830 (composeName): Implement.
2831 (addToEnvironment): Implement.
2833 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2835 * javax/naming/AuthenticationException.java,
2836 javax/naming/AuthenticationNotSupportedException.java,
2837 javax/naming/CannotProceedException.java,
2838 javax/naming/CommunicationException.java,
2839 javax/naming/ConfigurationException.java,
2840 javax/naming/ContextNotEmptyException.java,
2841 javax/naming/InsufficientResourcesException.java,
2842 javax/naming/InterruptedNamingException.java,
2843 javax/naming/InvalidNameException.java,
2844 javax/naming/LimitExceededException.java,
2845 javax/naming/LinkException.java,
2846 javax/naming/LinkLoopException.java,
2847 javax/naming/MalformedLinkException.java,
2848 javax/naming/NameAlreadyBoundException.java,
2849 javax/naming/NameNotFoundException.java,
2850 javax/naming/NamingSecurityException.java,
2851 javax/naming/NoPermissionException.java,
2852 javax/naming/NotContextException.java,
2853 javax/naming/PartialResultException.java,
2854 javax/naming/ReferralException.java,
2855 javax/naming/ServiceUnavailableException.java,
2856 javax/naming/SizeLimitExceededException.java,
2857 javax/naming/TimeLimitExceededException.java: New files.
2859 * javax/naming/Name.java (clone): New method.
2860 (compareTo): New method.
2861 (isEmpty): New method.
2862 (getAll): New method.
2863 (getPrefix): New method.
2864 (getSuffix): New method.
2865 (startsWith): New method.
2866 (endsWith): New method.
2867 (addAll): New method.
2868 (addAll): New method.
2871 (remove): New method.
2873 * javax/naming/Context.java (lookup): New method.
2874 (rebind): New method.
2875 (unbind): New method.
2876 (rename): New method.
2878 (listBindings): New method.
2879 (destroySubcontext): New method.
2880 (createSubcontext): New method.
2881 (lookupLink): New method.
2882 (getNameParser): New method.
2883 (composeName): New method.
2884 (addToEnvironment): New method.
2885 (removeFromEnvironment): New method.
2886 (getEnvironment): New method.
2887 (close): New method.
2888 (getNameInNamespace): New method.
2890 * javax/naming/InitialContext.java (lookup): New method.
2891 (rebind): New method.
2892 (unbind): New method.
2893 (rename): New method.
2895 (listBindings): New method.
2896 (destroySubcontext): New method.
2897 (createSubcontext): New method.
2898 (lookupLink): New method.
2899 (getNameParser): New method.
2900 (composeName): New method.
2901 (addToEnvironment): New method.
2902 (removeFromEnvironment): New method.
2903 (getEnvironment): New method.
2904 (close): New method.
2905 (getNameInNamespace): New method.
2907 2000-11-26 Tom Tromey <tromey@cygnus.com>
2909 * Makefile.in: Rebuilt.
2910 * Makefile.am (core_java_source_files): Added
2911 RuntimePermission.java.
2912 * java/lang/RuntimePermission.java: Imported from Classpath.
2913 * java/lang/Thread.java (getContextClassLoader): Now
2914 synchronized. Added security code.
2915 (setContextClassLoader): Likewise.
2917 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2918 length field of array.
2919 (_Jv_NewPrimArray): Likewise.
2920 * gcj/array.h (__JArray): `length' field now const. Added
2923 2000-11-26 Anthony Green <green@redhat.com>
2925 * javax/naming/spi/NamingManager.java,
2926 javax/naming/spi/ObjectFactory.java,
2927 javax/naming/spi/InitialContextFactory.java,
2928 javax/naming/spi/InitialContextFactoryBuilder.java,
2929 javax/naming/RefAddr.java, javax/naming/Reference.java,
2930 javax/naming/NamingException.java, javax/naming/Context.java,
2931 javax/naming/Referenceable.java,
2932 javax/naming/directory/InitialDirContext.java,
2933 javax/naming/directory/DirContext.java,
2934 javax/naming/directory/Attributes.java,
2935 javax/naming/directory/Attribute.java,
2936 javax/naming/StringRefAddr.java,
2937 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2938 javax/naming/InitialContext.java,
2939 javax/naming/NoInitialContextException.java: New files.
2941 2000-11-25 Anthony Green <green@redhat.com>
2943 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2944 (_Jv_NewPrimArray): Likewise.
2945 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2946 (class JArray): Removed constructor.
2948 * java/lang/Thread.java (context_class_loader): New private data.
2949 (getContextClassLoader): New method.
2950 (setContextClassLoader): New method.
2951 (Thread): Initialize context_class_loader.
2953 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2954 (getResource): Rename to findResource.
2955 (findResource): New method. Used to be getResource.
2956 (getResourceAsStream): Deleted.
2957 (jarFileize): Extracted logic from URLClassLoader constructor into
2958 this new private method.
2959 (addURL): New protected method.
2960 (URLClassLoader): Call jarFileize. Use addElement instead of
2962 (findResources): New method.
2964 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2965 (getResource): Implement correct logic.
2966 (findResource): New method.
2967 (getResources): New method.
2968 (findClass): Create a ClassNotFoundException with the name of the
2969 class rather than nothing at all.
2970 (defineClass) Only throw ClassFormatError.
2972 * java/lang/Class.java (forName): New method.
2973 * java/lang/Class.h (forName): New method.
2974 * java/lang/natClass.cc (forName): New method.
2976 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2978 * java/lang/System.java (setProperties): Only call init_properties()
2979 if properties is null.
2980 (getProperties): Ditto.
2981 (getProperty): Ditto.
2982 (setProperty): Call init_properties if properties are null.
2983 (prop_init): Remove field.
2984 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2985 method. Check for null properties after synchronizing instead of
2986 prop_init flag. Set the properties field last for thread safety.
2988 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2989 test for gcj.dumpobjects property and enable object stream dumping
2991 (dumpElement): No longer native.
2992 (dumpElementln): Ditto.
2993 (setDump): Do not define.
2994 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2995 (dumpElementln): Removed.
2998 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3000 * configure: Rebuilt.
3001 * Makefile.in: Rebuilt.
3002 * Makefile.am (built_java_source_files): Add Configuration.java.
3003 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3004 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3005 Create `gnu' directory in the build tree.
3006 * gnu/classpath/Configuration.java.in: New file.
3008 2000-11-24 Tom Tromey <tromey@cygnus.com>
3010 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3012 (_Jv_NewPrimArray): Likewise.
3014 * gcj/array.h (__JArray): `length' field now const. Added
3016 (class JArray): Added constructor.
3018 2000-11-23 Mark Wielaard <mark@klomp.org>
3020 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3023 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3025 * java/util/Vector.java: Improve exception messages.
3026 (Vector): Check initialCapacity for IllegalArgumentException.
3027 (tromToSize): Don't check for elementCount == elementData.length
3029 (toArray): Don't try to set null marker if target array is the same
3030 length as the vector.
3032 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3034 * Makefile.in: Rebuilt.
3035 * Makefile.am (core_java_source_files): Added Collections.java.
3036 * java/util/List.java: Merged from classpath.
3037 * java/util/Vector.java: Ditto.
3038 * java/util/Collections.java: From classpath.
3039 * java/util/ArrayList.java (addAll(Collection)): Call
3040 addAll(int,Collection) instead of duplicating code.
3041 (indexOf): Clean up int initialization.
3042 (clear): Set cleared array entries to null, to allow garbage
3044 * java/util/List.java: Minor formatting fixes.
3045 * java/util/SimpleTimeZone.java: ditto.
3047 2000-11-18 Tom Tromey <tromey@cygnus.com>
3049 * Makefile.in: Rebuilt.
3050 * Makefile.am (core_java_source_files): Added new files.
3051 * java/lang/reflect/ReflectPermission.java: New class.
3052 * java/io/FileFilter.java: From Classpath
3053 * java/io/FilePermission.java: From Classpath.
3055 2000-11-17 Tom Tromey <tromey@cygnus.com>
3057 * java/lang/reflect/AccessibleObject.java (isAccessible,
3058 setAccessible): Now public.
3060 * java/lang/natString.cc: Include Locale.h.
3061 (toUpperCase): Added `locale' argument. Handle locale
3063 (toLowerCase): Added `locale' argument. Handle locale
3065 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3066 CAPITAL_I): New defines.
3067 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3070 (toUpperCase, toLowerCase): New methods. Variants which accept
3073 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3076 * java/util/PropertyPermission.java: Re-merged from Classpath.
3078 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3080 * java/text/StringCharacterIterator.java: Reindented.
3081 (setText): New method.
3083 2000-11-17 Mark Wielaard <mark@klomp.org>
3085 Merge with Classpath (changes by Bryce McKinlay)
3086 * java/util/jar/*.java: Reformat all to unofficial standard coding
3087 style. No changes of substance.
3089 2000-11-17 Mark Wielaard <mark@klomp.org>
3091 * java/util/zip/*.java: Javadoc updates.
3093 2000-11-17 Tom Tromey <tromey@cygnus.com>
3095 * java/text/CollationKey.java: Implement Comparable.
3096 (compareTo(Object)): New method.
3097 * java/text/Collator.java (compare(Object,Object)): New method.
3098 Implement Comparator.
3100 * java/util/zip/InflaterInputStream.java (available): New method.
3101 (close): New method.
3102 (read, available, skip, fill): Throw exception if stream closed.
3103 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3104 getNextEntry): Throw exception if closed.
3106 2000-11-16 Tom Tromey <tromey@cygnus.com>
3108 * java/io/PushbackReader.java: Merged with Classpath.
3109 * java/util/Arrays.java: Updated from Classpath.
3111 * scripts/blocks.pl: New file.
3112 * java/lang/Character.java (Subset): New class.
3113 (UnicodeBlock): New class.
3115 * java/lang/Math.java (toDegrees, toRadians): New methods.
3117 * java/lang/Float.java: Implement Comparable.
3118 (compareTo): New methods.
3119 * java/lang/Double.java: Implement Comparable.
3120 (compareTo): New methods.
3122 2000-11-16 Warren Levy <warrenl@cygnus.com>
3124 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3126 (listeners): Made transient.
3127 (source): Renamed from 'bean'.
3128 (children): New field for serialization.
3129 (propertyChangeSupportSerializedDataVersion): Ditto.
3130 (serialVersionUID): Ditto.
3131 (writeObject): New serialization method.
3132 (readObject): New serialization method.
3133 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3135 (listeners): Made transient.
3136 (source): Renamed from 'bean'.
3137 (children): New field for serialization.
3138 (vetoableChangeSupportSerializedDataVersion): Ditto.
3139 (serialVersionUID): Ditto.
3140 (writeObject): New serialization method.
3141 (readObject): New serialization method.
3142 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3143 to allow constructor to have a return type (i.e. the class that the
3144 constructor constructs).
3146 2000-11-14 Tom Tromey <tromey@cygnus.com>
3148 * Makefile.in: Rebuilt.
3149 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3152 2000-11-02 Warren Levy <warrenl@cygnus.com>
3154 * java/io/ObjectInputStream.java (readObject): Added code to
3155 conditionally dump out the serialized data.
3156 Handle ENDBLOCKDATA case a bit more gracefully since the current
3157 behavior doesn't seem to work as expected.
3158 (readStreamHeader): Added code for serialized data dumper.
3159 (readNextBlock): Ditto.
3160 (readFields): Ditto.
3161 (dump): New private static field for turning on/off dumper.
3162 (setDump): New native method.
3163 (dumpElement): New native method.
3164 (dumpElementln): New native method.
3165 * java/io/natObjectInputStream.cc (setDump): New method.
3166 (dumpElement): New method.
3167 (dumpElementln): New method.
3169 2000-11-02 Warren Levy <warrenl@cygnus.com>
3171 * java/net/InetAddress.java (addr): Renamed from 'address'.
3172 (address): New field to match Serialized Form doc.
3173 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3174 (family): New serialization field.
3175 (serialVersionUID): New field.
3176 (readObject): New method.
3177 (writeObject): New method.
3178 (getFamily): New native method.
3179 (InetAddress): Set family.
3180 * java/net/natInetAddress.cc (getFamily): New method.
3181 (addr): Renamed from 'address'.
3182 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3183 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3184 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3186 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3188 * java/util/AbstractList.java (SubList): Make it a top-level private
3190 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3192 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3193 * Makefile.in: Rebuilt.
3195 2000-11-02 Tom Tromey <tromey@cygnus.com>
3197 * Makefile.in: Rebuilt.
3198 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3201 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3203 * java/util/AbstractList.java (remove): Comment out modCount increment
3204 to work around compiler bug.
3207 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3209 * java/util/AbstractList.java: Throw messages with
3210 IndexOutOfBoundsExceptions.
3211 (listIterator()): Call listIterator(0).
3212 (size): New field. Initialize to size().
3213 (hasNext): Test position against size, not size().
3214 (remove): Increment knownMod by one instead of resetting it from
3217 (SubList.upMod): Removed.
3218 (SubList.set): Don't call upMod() or update knownMod.
3219 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3220 (SubList.remove): Ditto.
3221 (SubList.addAll): Don't call backingList.size(). Increment size from
3223 (SubList.iterator): New method. Call listIterator(0).
3224 (SubList.listIterator): New method. Restore code to return an anonymous
3225 listIterator implementation (with some changes).
3226 * java/util/AbstractSequentialList.java: Throw messages with
3227 IndexOutOfBoundsExceptions.
3228 (addAll): Add a specnote.
3229 * java/util/ArrayList.java (removeRange): Get the math right.
3230 (addAll): Increment modCount _before_ creating iterator.
3231 * java/util/LinkedList.java: Rewritten, mostly.
3233 2000-11-01 Tom Tromey <tromey@cygnus.com>
3235 * scripts/encodings.pl: Added `ASCII' alias.
3236 * Makefile.in: Rebuilt.
3237 * Makefile.am (convert_source_files): Added new files.
3238 * gnu/gcj/convert/Input_ASCII.java: New file.
3239 * gnu/gcj/convert/Output_ASCII.java: New file.
3240 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3241 out-of-range characters.
3242 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3243 (read): Swap bytes if required. Treat `count' as character count,
3245 (write): Likewise. Also, handle case where iconv fails on a given
3247 (init): Put encoding into exception.
3248 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3249 (static): Call iconv_init. Rebuilt alias list.
3250 (iconv_init): New private method.
3252 2000-11-01 Tom Tromey <tromey@cygnus.com>
3254 * Makefile.in: Rebuilt.
3255 * Makefile.am (install-exec-hook): Only make a single symlink, and
3256 remove the destination before making the link.
3257 * configure: Rebuilt.
3258 * configure.in: Call AC_PROG_LN_S.
3260 2000-10-31 Warren Levy <warrenl@cygnus.com>
3262 * jni.cc: Added include of java/lang/ThreadGroup.h.
3263 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3264 per change of 2000-10-05.
3266 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3268 * java/util/BitSet.java: Updated @specnote.
3270 * java/io/Reader.java: Merge docs from classpath.
3271 (skip): Synchronize on `lock'.
3272 * java/io/FileReader.java: Import correct implementation from
3274 * java/io/StringReader.java: Merge docs from classpath.
3275 (ready): Throw IOException if stream is closed.
3277 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3279 * java/util/AbstractCollection.java (addAll): Use size() instead of
3280 hasNext() in iterator loop.
3282 (contains): Ditto. Simplify loop.
3283 (containsAll): Ditto.
3288 (toString): Ditto. Use string concatenation operators, not
3290 * java/util/AbstractList.java (addAll): Use size() instead of
3291 hasNext() in iterator loop.
3294 (indexOf): Ditto. Don't take null check outside of the loop.
3295 (iterator): Return an AbstractListItr instead of anonymous class.
3296 (lastIndexOf): Use a for loop bounded by size() instead of
3297 hasPrevious() in iterator loop.
3298 (listIterator): Return an AbstractListItr.
3299 (removeRange): Remove bounds checking code and docs.
3300 (AbstractListItr): New inner class. Code moved here from
3302 (SubList.iterator): Removed. Use default implementation from
3303 AbstractList instead.
3304 (SubList.listIterator): As above.
3305 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3306 instead of hasNext() in iterator loop.
3307 (containsValue): Ditto.
3313 (toString): Ditto. Use string concatenation operators, not
3315 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3316 bounded by size() instead of hasNext() in iterator loop.
3317 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3318 part of normal execution flow. Do an explicit null check instead.
3319 * java/util/ArrayList.java (_iSize): Rename to `size'.
3320 (_arData): Rename to `data'.
3321 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3324 (removeRange): Make protected. Don't check bounds.
3325 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3327 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3329 (addAll (int, Collection)): Check lower bounds. Simplify exception
3331 (clone): Clone the data array too.
3332 (indexOf): Inline doesEqual().
3333 (lastIndexOf): Ditto.
3334 (clear): Don't set array data to null.
3335 (set): Check lower bounds. Simplify exception string.
3336 (toArray): Correct comment.
3337 (trimToSize): Don't update modCount, this is not a structural change.
3340 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3342 (toString): Declare `bit' as long, not int.
3343 (data): Made package-private, not private.
3345 2000-10-27 Warren Levy <warrenl@cygnus.com>
3347 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3348 array elements to true.
3350 2000-10-27 Warren Levy <warrenl@cygnus.com>
3352 * Makefile.am: Added locale files from Classpath.
3353 * Makefile.in: Rebuilt.
3354 * gnu/java/locale/Calendar.java: New file.
3355 * gnu/java/locale/Calendar_de.java: New file.
3356 * gnu/java/locale/Calendar_en.java: New file.
3357 * gnu/java/locale/Calendar_nl.java: New file.
3358 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3359 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3360 serialization compatibility.
3361 (scale): Made private.
3362 (serialVersionUID): New field.
3363 * java/math/BigInteger.java (ival): Made transient.
3364 (words): Made transient.
3365 (bitCount): New serialization field.
3367 (firstNonzeroByteNum): Ditto.
3368 (lowestSetBit): Ditto.
3371 (serialVersionUID): New field.
3372 (readObject): New method.
3373 (writeObject): New method.
3374 * java/util/BitSet.java (serialVersionUID): New field.
3375 * java/util/Calendar.java: Replaced with Classpath file.
3376 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3377 of getDefault() for TimeZone or Locale instead of passing nulls.
3378 * java/util/Locale.java (serialVersionUID): New field.
3379 (writeObject): New method.
3380 (readObject): New method.
3381 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3383 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3385 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3386 (core_java_source_files): Put java.lang, java.io, and java.util here.
3387 (ordinary_java_source_files): Order so that core_java_source_files are
3389 (java_source_files): Reorder so that special_java_source_files are
3391 * configure.in: Don't pass -I flag to gcj.
3392 * Makefile.in: Rebuilt.
3393 * configure: Rebuilt.
3395 2000-10-25 Tom Tromey <tromey@cygnus.com>
3397 * Makefile.in: Rebuilt.
3398 * Makefile.am (install-exec-hook): New target.
3400 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3402 * java/util/EventObject.java: Merged from classpath.
3404 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3407 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3409 * java/util/AbstractSet.java (equals): Re-installed original code.
3411 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3413 * Makefile.am: Added rules for libgcjx library.
3414 * Makefile.in: Rebuilt.
3415 * configure.in: Added check for X.
3416 * configure: Rebuilt.
3417 * gnu/awt/LightweightRedirector.java: New file.
3418 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3419 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3420 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3421 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3422 * gnu/awt/j2d/MappedRaster.java: New file.
3423 * gnu/awt/xlib/XCanvasPeer.java: New file.
3424 * gnu/awt/xlib/XEventLoop.java: New file.
3425 * gnu/awt/xlib/XEventQueue.java: New file.
3426 * gnu/awt/xlib/XFontMetrics.java: New file.
3427 * gnu/awt/xlib/XFramePeer.java: New file.
3428 * gnu/awt/xlib/XGraphics.java: New file.
3429 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3430 * gnu/awt/xlib/XPanelPeer.java: New file.
3431 * gnu/awt/xlib/XToolkit.java: New file.
3432 * gnu/gcj/xlib/Clip.java: New file.
3433 * gnu/gcj/xlib/Colormap.java: New file.
3434 * gnu/gcj/xlib/Display.java: New file.
3435 * gnu/gcj/xlib/Drawable.java: New file.
3436 * gnu/gcj/xlib/Font.java: New file.
3437 * gnu/gcj/xlib/GC.java: New file.
3438 * gnu/gcj/xlib/Pixmap.java: New file.
3439 * gnu/gcj/xlib/Screen.java: New file.
3440 * gnu/gcj/xlib/Visual.java: New file.
3441 * gnu/gcj/xlib/WMSizeHints.java: New file.
3442 * gnu/gcj/xlib/Window.java: New file.
3443 * gnu/gcj/xlib/WindowAttributes.java: New file.
3444 * gnu/gcj/xlib/XAnyEvent.java: New file.
3445 * gnu/gcj/xlib/XButtonEvent.java: New file.
3446 * gnu/gcj/xlib/XColor.java: New file.
3447 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3448 * gnu/gcj/xlib/XConnectException.java: New file.
3449 * gnu/gcj/xlib/XEvent.java: New file.
3450 * gnu/gcj/xlib/XException.java: New file.
3451 * gnu/gcj/xlib/XExposeEvent.java: New file.
3452 * gnu/gcj/xlib/XID.java: New file.
3453 * gnu/gcj/xlib/XImage.java: New file.
3454 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3455 * gnu/gcj/xlib/natClip.cc: New file.
3456 * gnu/gcj/xlib/natColormap.cc: New file.
3457 * gnu/gcj/xlib/natDisplay.cc: New file.
3458 * gnu/gcj/xlib/natDrawable.cc: New file.
3459 * gnu/gcj/xlib/natFont.cc: New file.
3460 * gnu/gcj/xlib/natGC.cc: New file.
3461 * gnu/gcj/xlib/natPixmap.cc: New file.
3462 * gnu/gcj/xlib/natScreen.cc: New file.
3463 * gnu/gcj/xlib/natVisual.cc: New file.
3464 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3465 * gnu/gcj/xlib/natWindow.cc: New file.
3466 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3467 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3468 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3469 * gnu/gcj/xlib/natXColor.cc: New file.
3470 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3471 * gnu/gcj/xlib/natXException.cc: New file.
3472 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3473 * gnu/gcj/xlib/natXImage.cc: New file.
3474 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3475 * java/awt/EventDispatchThread.java: Start thead on creation.
3477 2000-10-20 Tom Tromey <tromey@cygnus.com>
3479 From Arno J. Klaassen:
3480 * interpret.cc: Include <stdlib.h> for alloca.
3481 * defineclass.cc: Include <stdlib.h> for alloca.
3483 * Makefile.in: Rebuilt.
3484 * Makefile.am: Include deps.mk.
3485 (GCJCOMPILE): Added -MD, -MT, and -MF.
3486 ($(javao_files)): Don't depend on libgcj.zip.
3487 (all-recursive): New target.
3488 (%.lo:%.cc): Do dependency tracking.
3489 ($(nat_headers)): Don't depend on libgcj.zip.
3490 * configure: Rebuilt.
3491 * configure.in: Make .d files and deps.mk.
3493 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3495 * exception.cc: Don't #include "exception".
3496 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3498 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3499 * Makefile.in: Updated.
3501 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3503 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3504 * java/awt/peer/ComponentPeer.java (disable): Removed.
3507 (minimumSize): Removed.
3508 (preferredSize): Removed.
3511 * java/awt/peer/ListPeer.java (addItem): Removed.
3513 (minimumSize): Removed.
3514 (preferredSize): Removed.
3515 (setMultipleSelections): Removed.
3516 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3517 (remove): Renamed from removeMenu.
3518 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3520 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3521 (remove): Renamed from removeItem.
3522 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3523 (getMinimumSize): Removed.
3524 (getPreferredSize): Removed.
3525 (minimumSize): Removed.
3526 (preferredSize): Removed.
3527 (replaceText): Removed.
3528 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3529 (preferredSize): Removed.
3530 (getMinimumSize): Removed.
3531 (getPreferredSize): Removed.
3532 (setEchoCharacter): Removed.
3534 2000-10-10 Warren Levy <warrenl@cygnus.com>
3536 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3537 * java/sql/Date.java (serialVersionUID): New field.
3538 * java/sql/Time.java (serialVersionUID): New field.
3539 * java/sql/Timestamp.java (serialVersionUID): New field.
3540 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3541 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3542 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3543 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3544 (readObject): New serialization method.
3545 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3546 (serialVersionOnStream): New field.
3547 (readObject): New serialization method.
3548 (getMonetaryDecimalSeparator): New method.
3549 (setMonetaryDecimalSeparator): New method.
3550 * java/text/NumberFormat.java (maxFractionDigits): New field.
3551 (maxIntegerDigits): New field.
3552 (minFractionDigits): New field.
3553 (minIntegerDigits): New field.
3554 (serialVersionOnStream): New field.
3555 (serialVersionUID): New field.
3556 (readObject): New serialization method.
3557 (writeObject): New serialization method.
3558 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3559 (serialVersionOnStream): New field.
3560 (serialVersionUID): New field.
3561 (readObject): New serialization method.
3563 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3565 * configure.in (GCJ): Avoid bogus error message when looking for
3566 (and not finding) gcj in the build tree.
3567 * configure: Rebuilt.
3569 2000-10-09 Tom Tromey <tromey@cygnus.com>
3571 * configure: Rebuilt.
3572 * configure.in: Include sys/types.h when checking for socklen_t.
3573 From Arno J. Klaassen.
3575 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3577 * include/jvm.h: Enable __builtin_expect().
3579 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3580 the main program. Fix for PR libgcj/341.
3582 2000-10-07 Tom Tromey <tromey@cygnus.com>
3584 * java/util/Properties.java: Merged with Classpath version.
3586 2000-10-05 Tom Tromey <tromey@cygnus.com>
3588 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3589 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3590 * java/lang/Class.h (Object): Added `class$' field.
3591 * java/lang/Object.h (Object): Added `class$' field.
3592 * defineclass.cc (ClassClass): Use `class$' form.
3593 (ClassObject): Likewise.
3594 * resolve.cc (ClassObject): Use `class$' form.
3595 (ObjectClass): Likewise.
3596 * interpret.cc (ClassError): Removed.
3597 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3599 (IntegerClass): Likewise.
3600 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3602 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3603 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3604 SerializableClass): Likewise.
3605 Include Serializable.h, Cloneable.h.
3606 * java/lang/natSystem.cc (SystemClass): Removed.
3607 (init_properties): Use `class$' form.
3608 * java/lang/natObject.cc (CloneableClass): Removed.
3609 (clone): Use `class$' form.
3610 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3611 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3612 ConstructorClass): Likewise.
3613 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3614 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3615 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3616 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3618 (ClassClass): Likewise.
3619 * include/jvm.h (StringClass): Use `class$' form.
3620 * prims.cc (ObjectClass): Removed.
3621 (_Jv_RunMain): Use `class$' form.
3622 (_Jv_AllocObject): Likewise.
3623 * jni.cc (ClassClass): Use `class$' form.
3624 (ThrowableClass): Likewise.
3625 (ObjectClass): Likewise.
3626 (MethodClass): Likewise.
3627 (ThreadGroupClass): Likewise.
3628 (NativeThreadClass): Likewise.
3629 * boehm.cc (ObjectClass): Removed.
3630 (ClassClass): Removed.
3631 (_Jv_MarkObj): Use `class$' form.
3632 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3635 2000-10-05 Warren Levy <warrenl@cygnus.com>
3637 * Makefile.am: Removed java/io/Replaceable.java and
3638 java/io/Resolvable.java.
3639 * Makefile.in: Rebuilt.
3640 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3642 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3644 (processResolution): Handle readResolve method via reflection with
3645 removal of Resolvable interface.
3646 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3647 method via reflection with removal of Replaceable interface.
3648 * java/io/Replaceable.java: Removed.
3649 * java/io/Resolvable.java: Removed.
3650 * java/security/Key.java (serialVersionUID): New field.
3651 * java/security/Provider.java (serialVersionUID): New field.
3652 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3654 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3656 * java/sql/DataTruncation.java (serialVersionUID): New field.
3657 * java/sql/SQLException.java (serialVersionUID): New field.
3658 * java/sql/SQLWarning.java (serialVersionUID): New field.
3659 * java/util/Date.java (serialVersionUID): New field.
3660 (millis): Made transient.
3661 (readObject): New method.
3662 (writeObject): New method.
3664 2000-10-05 Tom Tromey <tromey@cygnus.com>
3666 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3668 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3670 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3671 (JvRunMain): Set _Jv_argv and _Jv_argc.
3672 * java/awt/Component.java: Minor fixes.
3673 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3674 * java/awt/Toolkit.java (systemEventQueue): Removed.
3675 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3676 * java/awt/Window.java (getToolkit): Don't call super.
3677 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3678 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3679 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3680 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3681 * gnu/awt/gtk/GtkFramePeer.java: New file.
3682 * gnu/awt/gtk/GtkMainThread.java: New file.
3683 * gnu/awt/gtk/GtkToolkit.java: New file.
3684 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3685 * gnu/awt/gtk/gtkcommon.cc: New file.
3686 * gnu/awt/gtk/gtkcommon.h: New file.
3687 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3688 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3689 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3690 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3691 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3692 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3694 2000-09-30 Tom Tromey <tromey@cygnus.com>
3696 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3697 interrupted before modifying the cv's wait set.
3700 2000-09-30 Hans Boehm <boehm@acm.org>
3701 Bryce McKinlay <bryce@albatross.co.nz>
3703 Implement bitmap descriptor based marking for Boehm GC.
3705 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3706 * configure: Rebuilt.
3707 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3708 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3709 method get_finalizer().
3710 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3711 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3712 (_Jv_AllocObj): Add new jclass parameter.
3713 (_Jv_AllocArray): Ditto.
3714 (_Jv_BuildGCDescr): New prototype.
3715 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3716 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3717 get_finalizer() instead of direct finalizer vtable offset.
3718 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3719 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3720 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3721 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3722 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3723 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3724 (_Jv_DetermineVTableIndex): Ditto.
3725 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3726 calculations to account for new gc_descr field.
3727 * boehm.cc: #include gc_gcj.h.
3728 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3729 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3730 New commentary from HB. Mark the classes vtable.
3731 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3732 (GC_DEFAULT_DESCR): New #define.
3733 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3734 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3735 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3736 scan conservativly if size is less than min_heap_addr. Set vtable
3737 pointer of new object before returning.
3738 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3739 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3740 allocation for obj_kind_x.
3741 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3742 (_Jv_AllocObj): Set vtable on returned object.
3743 (_Jv_AllocArray): Ditto.
3744 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3745 (_Jv_NewPrimArray): Ditto.
3746 (_Jv_AllocObj): Declare as a friend.
3747 (_Jv_AllocArray): Ditto.
3748 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3749 from &ObjectClass into new array class. Remove offset-by-one
3750 adjustments from `method' size calculations to account for gc_descr
3753 2000-09-26 Tom Tromey <tromey@cygnus.com>
3755 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3756 `remove', not `add'.
3758 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3760 * java/lang/natSystem.cc (file_encoding): Added return statement.
3762 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3764 * Makefile.am: Re-work shell commands that exceeded command-line
3766 * Makefile.in: Rebuilt.
3768 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3770 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3771 * java/lang/natDouble.cc: Likewise.
3772 * java/lang/reflect/natMethod.cc: Likewise.
3773 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3775 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3777 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3779 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3780 * acinclude.m4: Arrange for automake to not bring in a new
3781 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3782 * Makefile.am: Leave it up to automake to subst GCJ.
3783 * aclocal.m4, configure, Makefile.in: Rebuilt.
3785 2000-09-13 Tom Tromey <tromey@cygnus.com>
3787 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3788 (get): Ensure Boolean class is initialized.
3789 * java/lang/reflect/natField.cc (BooleanClass): New define.
3790 (get): Ensure Boolean class is initialized.
3792 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3794 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3795 Initialize with anonymous class.
3796 (compareToIgnoreCase): New method.
3798 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3799 (uncaughtException): Set had_uncaught_exception.
3800 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3801 exit with error status if set.
3802 (_Jv_RunMain): Ditto.
3804 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3806 * configure: Rebuilt with new ../libtool.m4.
3808 2000-09-11 Tom Tromey <tromey@cygnus.com>
3810 * java/lang/reflect/Field.java (toString): Don't rely on
3813 2000-09-08 Tom Tromey <tromey@cygnus.com>
3815 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3816 default decoder use iconv.
3817 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3818 Let default encoder use iconv.
3819 * configure: Rebuilt.
3820 * configure.in: Check for nl_langinfo and <langinfo.h>.
3821 * java/lang/natSystem.cc (file_encoding): New function.
3822 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3824 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3826 * acinclude.m4: Simplify the tests for CC and CXX.
3827 * aclocal.m4, configure: Rebuilt.
3829 * acinclude.m4: Include libtool macros from the source tree.
3830 * aclocal.m4, configure: Rebuilt.
3832 2000-09-08 Warren Levy <warrenl@cygnus.com>
3834 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3835 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3836 * java/io/File.java (writeObject): Added.
3837 (readObject): Added.
3838 (serialVersionUID): Added.
3839 * java/io/ObjectOutputStream.java (writeObject): Initialized
3840 fieldsAlreadyWritten before recursion rather than after.
3841 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3842 * java/io/OptionalDataException.java (serialVersionUID): Added.
3843 (OptionalDataException): Made package private.
3844 * java/io/SyncFailedException.java (SyncFailedException): Removed
3845 default constructor to match spec.
3846 * java/lang/Boolean.java (serialVersionUID): Added.
3847 * java/lang/Byte.java (serialVersionUID): Added.
3848 * java/lang/Character.java (serialVersionUID): Added.
3849 * java/lang/Double.java (serialVersionUID): Added.
3850 * java/lang/Float.java (serialVersionUID): Added.
3851 * java/lang/Integer.java (serialVersionUID): Added.
3852 * java/lang/Long.java (serialVersionUID): Added.
3853 * java/lang/Number.java (serialVersionUID): Added.
3854 * java/lang/Short.java (serialVersionUID): Added.
3855 * java/lang/String.java (serialVersionUID): Added.
3856 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3858 * java/lang/reflect/InvocationTargetException.java
3859 (serialVersionUID): Added.
3860 * java/net/URL.java (handler): Made transient.
3861 (hashCode): Added field for serialization, per spec. and use
3862 cached value if available.
3863 (serialVersionUID): Added.
3864 (URL): Initialize hashCode.
3865 (set): Adjust hashCode.
3866 (readObject): New Method to initialize the protocol handler when
3868 (writeObject): New method.
3869 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3870 * java/text/Collator.java: Removed 'implements Serializable'.
3871 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3872 * java/util/Properties.java (serialVersionUID): Added.
3873 * java/util/Random.java (serialVersionUID): Added.
3874 (seed): Made private.
3875 (nextNextGaussian): Made private.
3876 (haveNextNextGaussian): Made private.
3877 * java/util/Stack.java (serialVersionUID): Added.
3878 * java/util/TimeZone.java (serialVersionUID): Added.
3879 * java/util/Vector.java (serialVersionUID): Added.
3881 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3883 * Makefile.am (Thread.h): Don't be friends with native threads
3885 * Makefile.in: Rebuilt.
3886 * java/lang/Thread.java (interrupt_flag): Make package-private.
3888 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3890 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3891 to avoid long long division.
3893 2000-09-06 Tom Tromey <tromey@cygnus.com>
3895 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3897 * java/lang/reflect/Method.java (toString): Use `getName' for
3900 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3901 `args' if method takes no parameters.
3903 Fix for PR java.lang/339:
3904 * java/lang/natPosixProcess.cc (fail): New function.
3905 (cleanup): New function.
3906 (startProcess): Use them. Create pipe so child can communicate
3907 exec failure back to parent.
3909 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3911 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3913 (send): Undo last patch. Remove the label only.
3915 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3917 * java/net/natInetAdress.cc: Ditto.
3919 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3921 2000-09-05 Tom Tromey <tromey@cygnus.com>
3923 * doc/cni.sgml: Updated from master copy.
3925 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3927 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3929 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3931 * java/lang/fdlibm.h: #undef __P if previously defined.
3932 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3933 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3937 2000-09-04 Tom Tromey <tromey@cygnus.com>
3939 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3942 2000-09-04 Anthony Green <green@redhat.com>
3944 Fix for PR java.io/203:
3945 * java/io/File.java (createTempFile): Obey directory argument.
3946 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3947 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3948 variable to set java.io.tmpdir on non-WIN32 systems.
3950 2000-09-04 Anthony Green <green@redhat.com>
3952 * java/io/File.java (deleteOnExit): New method.
3953 * gnu/gcj/runtime/FileDeleter.java: New class.
3954 * java/lang/natRuntime.cc (exit): Call
3955 FileDeleter.deleteOnExitNow()
3956 * Makefile.am: Add FileDeleter.java.
3957 * Makefile.in: Rebuilt.
3959 2000-09-02 Tom Tromey <tromey@cygnus.com>
3961 * Makefile.in: Rebuilt.
3962 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3963 environment variable.
3965 2000-09-01 Andrew Haley <aph@redhat.com>
3967 * java/io/StreamTokenizer.java: Don't throw a
3968 NumberFormatException if a field is numeric as far as the
3969 StreamTokenizer is concerned but not as far as Double.valueOf() is
3970 concerned: return a zero instead.
3972 2000-08-30 Tom Tromey <tromey@cygnus.com>
3974 * Makefile.in: Rebuilt.
3975 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3977 2000-08-28 Tom Tromey <tromey@cygnus.com>
3979 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3980 gnu/gcj/awt/ComponentDataBlitOp.java,
3981 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3982 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3983 java/awt/color/ICC_ColorSpace.java,
3984 java/awt/color/ICC_Profile.java,
3985 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3986 java/awt/image/ComponentColorModel.java,
3987 java/awt/image/ComponentSampleModel.java,
3988 java/awt/image/DataBuffer.java,
3989 java/awt/image/DataBufferByte.java,
3990 java/awt/image/DataBufferInt.java,
3991 java/awt/image/DataBufferUShort.java,
3992 java/awt/image/DirectColorModel.java,
3993 java/awt/image/IndexColorModel.java,
3994 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3995 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3996 java/awt/image/SinglePixelPackedSampleModel.java,
3997 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3998 Removed Latin-1 copyright symbols.
3999 * java/util/zip/ZipFile.java: Indentation fixes.
4001 2000-08-27 Mark Wielaard <mark@klomp.org>
4003 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4004 constructor, close can delete the file, finalize calls close.
4005 * java/util/jar/JarFile.java: Constructor that takes mode now
4008 2000-08-27 Anthony Green <green@redhat.com>
4010 * java/util/ArrayList.java, java/util/Timer.java,
4011 java/util/LinkedList.java, java/util/TimerTask.java,
4012 java/util/HashMap.java, java/util/AbstractMap.java,
4013 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4014 java/util/SortedSet.java: Imported from GNU Classpath.
4015 * Makefile.in: Rebuilt.
4016 * Makefile.am: Added new files.
4018 2000-08-26 Anthony Green <green@redhat.com>
4020 * Makefile.in: Rebuilt.
4021 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4024 * prims.cc: Include ClassLoader.h.
4025 (_Jv_RunMain): When executing jar files, classpath must be the jar
4026 file only. Lose our reference to the system ClassLoader in order
4027 to get a new one with the correct classpath.
4028 * java/lang/natSystem.cc (init_properties): When executing a jar
4029 file, only use the jar file for java.class.path.
4031 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4032 for bytecode archives.
4034 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4035 exists, but not Main-Class.
4037 2000-08-23 Mark Wielaard <mark@klomp.org>
4039 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4040 return -1 when fill() has no more data for the Inflater.
4042 2000-08-23 Mark Wielaard <mark@klomp.org>
4044 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4045 write(String) already does.
4047 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4049 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4050 to `alive_flag', call `init'.
4051 (init): New native method.
4052 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4055 2000-08-21 Mark Wielaard <mark@klomp.org>
4057 * Makefile.in: Rebuilt.
4058 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4060 (java/lang/reflect/Field.h): Likewise.
4061 (java/lang/reflect/Method.h): Likewise.
4062 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4065 2000-08-21 Tom Tromey <tromey@cygnus.com>
4067 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4070 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4072 * java/lang/natSystem.cc (init_properties): Change sourceware
4073 reference to sources.redhat.com.
4075 * include/java-props.h: Add _Jv_Jar_Class_Path.
4076 * prims.cc: Ditto. Set it from `gij -jar file' option.
4078 * java/lang/natSystem.cc (init_properties): Set java.class.path
4080 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4082 * java/util/PropertyPermission.java: Import from GNU Classpath.
4083 * Makefile.in: Rebuilt.
4084 * Makefile.am: Add java/util/PropertyPermission.java.
4085 * java/lang/System.java: Add setProperty method.
4087 * gij.cc (main): Add -jar option to execute jar files.
4088 (help): Describe -jar option.
4089 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4090 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4091 * gnu/gcj/runtime/FirstThread.java (main): New method.
4093 * java/util/jar/Attributes.java: Correct comment spelling.
4095 2000-08-20 Mark Wielaard <mark@klomp.org>
4097 * java/util/zip/Adler32.java: Make private variables really private
4098 * java/util/zip/CRC32.java: Make private variables really private
4099 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4101 * java/util/zip/InflaterInputStream.java: skip() could skip to
4103 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4104 * java/util/zip/ZipFile.java: size() new 1.2 method
4105 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4106 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4109 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4111 * java/util/jar/JarFile.java: Don't call
4112 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4115 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4117 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4118 Read the entire contents of the class file, not just what is
4121 * java/net/JarURLConnection.java: getEntry doesn't take any
4122 arguments. Return null if element is null.
4124 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4125 size from the archive, not the inflated size.
4127 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4128 java.util.zip.ZipFile.getEntry.
4130 * gij.cc (help): Change sourceware reference to
4133 2000-08-19 Tom Tromey <tromey@cygnus.com>
4135 * java/util/zip/ZipInputStream.java (createZipEntry):
4138 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4140 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4141 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4142 java/util/jar/JarInputStream.java,
4143 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4144 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4145 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4146 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4147 java/security/cert/Certificate.java,
4148 java/security/cert/CertificateEncodingException.java,
4149 java/security/cert/CertificateException.java,
4150 java/security/cert/CertificateExpiredException.java,
4151 java/security/cert/CertificateFactory.java,
4152 java/security/cert/CertificateFactorySpi.java,
4153 java/security/cert/CertificateNotYetValidException.java,
4154 java/security/cert/CertificateParsingException.java,
4155 java/security/cert/X509CRL.java,
4156 java/security/cert/X509CRLEntry.java,
4157 java/security/cert/X509Certificate.java,
4158 java/security/cert/X509Extension.java: Imported from Classpath.
4159 * java/util/Hashtable.java: Imported from Classpath.
4161 * java/util/zip/ZipInputStream.java: Create stub for
4164 * gcj/javaprims.h: Updated class list.
4166 * Makefile.in, gcj/Makefile.in: Rebuilt.
4167 * Makefile.am (ordinary_java_source_files): Add these new classes.
4169 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4171 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4172 * gnu/gcj/awt/GLightweightPeer.java: New file.
4173 * java/awt/BorderLayout.java: Implemented all methods.
4174 * java/awt/Button.java (actionListener, actionCommand): Renamed
4175 and modifier change.
4176 (addNotify): Call super.
4177 (dispatchEventImpl): New method.
4178 (getListeners): New method.
4179 (label): Made package-private, not private.
4180 * java/awt/Canvas.java: Implemented class body.
4181 * java/awt/Color.java (brighter): New method.
4182 (darker): New method.
4183 (hashCode): New method.
4184 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4185 (getGraphicsConfiguration): Delegate to
4186 getGraphicsConfigurationImpl().
4187 (getGraphicsConfigurationImpl): New method.
4188 (getToolkit): Only return value from peer if not null.
4189 (isDisplayable): Check with parent.
4190 (isShowing): No parent implies not showing.
4191 (getForeground): Check parent property if local is null.
4192 (getBackground): Likewise.
4193 (getFont): Likewise.
4194 (setForeground): Inform peer.
4195 (setBackground): Likewise
4196 (setLocale): Invalidate component.
4197 (getColorModel): Implemented.
4198 (setLocation): Invalidate, or ignore if no change.
4199 (setSize): Invalidate, or ignore if no change.
4200 (setBounds): Invalidate, or ignore if no change.
4201 (isOpaque): By default, heavyweight implies opaque.
4202 (isLightweight): Implemented.
4203 (getMaximumSize): Implemented.
4204 (doLayout): Implemented, NOP.
4205 (validate): Implemented, NOP.
4206 (invalidate): Only propagate to parent if parent was valid.
4207 (getGraphics): Implemented.
4208 (getFontMetrics): Implemented.
4209 (update): Implemented.
4210 (paintAll): Implemented.
4211 (repaint): Implemented all repaint methods.
4212 (print): Implemented.
4213 (printAll): Implemented.
4214 (createImage): Implemented.
4215 (dispatchEvent): Give the peer a chance to handle the event.
4216 (dispatchEventImpl): Dispatch paint events.
4217 (enableEvents): Lightweights enable events on parent component.
4218 (coalesceEvents): Coalesce paint events, and select event type
4220 (coalescePaintEvents): New method.
4221 (processEvent): Fix unfortunate ordering of statements, and call
4222 correct method for MOUSE_CLICKED.
4223 (processPaintEvent): New method.
4224 (addNotify): Allow container to notify children before event
4225 mask is set in peer.
4226 (addNotifyContainerChildren): New method.
4227 (removeNotify): Visibility should not change on removeNotify.
4228 (paramString): Implemented.
4229 (list): Implemented two of the list methods.
4230 * Container (myInsets): Removed, insets are managed by peer.
4231 (getInsets): Query peer.
4232 (addImpl): Fix reparenting, enable events for lightweights,
4233 initialize component array.
4234 (validate): Call doLayout in validateTree() instead.
4235 (validateTree): Do nothing if already valid. Call beginValidate(),
4236 endValidate() on peer. Call validateTree() instead of validate()
4237 for children that are containers. Mark valid after validation of
4239 (setFont): Partial implementation.
4240 (paint): Implemented.
4241 (visitChildren): New method.
4242 (visitChild): New method.
4243 (update): Implemented.
4244 (print): Implemented.
4245 (paintComponents): Implemented.
4246 (printComponents): Consider translation and clipping.
4247 (getComponentAt): Ignore invisible children. Return this if no
4249 (addNotify): Call super.
4250 (addNotifyContainerChildren): New method.
4251 (paramString): Implemented.
4252 (list): Implemented.
4253 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4255 (invokeLater): Likewise.
4256 (isDispatchThread): Likewise.
4257 * java/awt/FontMetrics (getLeading): Formula change.
4258 (getDescent): Consider leading also.
4259 (getMaxAscent): Default to getAscent().
4260 (getMaxDescent): Default to getDescent.
4261 (getMaxAdvance): Return value signifying unknown.
4262 (charWidth): Both methods implemented.
4263 (charsWidth): Implemented.
4264 (bytesWidth): Implemented.
4265 (getWidths): Implemented.
4266 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4268 (Frame): Rearragend constuctor chaining to disallow null being
4269 passed as a graphics configuration.
4270 (getTitle): Return empty string if null.
4272 (getIconImage): New method.
4273 (setIconImage): New method.
4274 (finalize): New method.
4275 (setMenuBar): Notify peer.
4276 (isResizable): New method.
4277 (setResizable): New method.
4278 (getState): New method.
4280 (remove): Implemented.
4281 (removeNotify): New method.
4282 (getFrames): New method.
4283 * java/awt/Graphics.java: Implemented body of class.
4284 * java/awt/Graphics2D.java: New file.
4285 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4286 * java/awt/Image.java: Implemented body of class.
4287 * java/awt/Panel.java (Panel): Call correct super constructor.
4288 (addNotify): Implemented.
4289 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4290 * java/awt/RenderingHints.java: New file.
4291 * java/awt/Toolkit.java (createComponent): Implemented.
4292 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4293 * java/awt/Window.java (Window): Two new constructors. Reordered
4294 constructor chaining.
4295 (getGraphicsConfigurationImpl): New method.
4296 (finalize): Call super.
4297 (addNotify): Call super.
4298 (pack): Do layout stuff.
4299 (show): Ensure that peer exists and that component is valid.
4300 (dispose): Dispose owned children.
4301 (getOwner): Simplify code, casting null pointers is valid.
4302 (getGraphicsConfiguration): Ask peer if local value is null.
4303 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4305 * java/awt/image/BufferedImage.java: New file.
4306 * java/awt/image/RasterOp.java: New file.
4307 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4308 More powerfull replacement for getColorModel().
4309 (getColorModel) Removed.
4310 (setEventMask) New method.
4311 * Makefile.am: Added new files.
4312 * Makefile.in: Rebuilt.
4314 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4316 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4317 (finit_leg_name): New global.
4318 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4319 `$finit$'. This is a backward compatibility hack.
4320 (java::lang::Class::_getMethods): Likewise.
4322 2000-08-15 Andrew Haley <aph@cygnus.com>
4324 * include/jvm.h (_Jv_HashCode): New hash code.
4326 2000-08-15 Tom Tromey <tromey@cygnus.com>
4328 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4330 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4332 * THANKS: More thanks.
4334 2000-08-10 Tom Tromey <tromey@cygnus.com>
4336 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4338 (connect): Likewise.
4340 (getOption): Likewise.
4341 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4342 case when errno not set.
4345 (receive): Likewise.
4346 (mcastGrp): Likewise.
4347 (setOption): Likewise.
4348 (getOption): Likewise.
4350 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4351 John Stracke <francis@ecal.com>
4353 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4354 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4356 (disconnect): Don't unset connected flag.
4357 (getHeaderField (String)): Call connect() if not connected.
4358 (getHeaderField (int)): Ditto.
4359 (getHeaderFieldKey): Ditto.
4360 (getHttpHeaders): Don't call connect().
4361 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4362 gotResponseVals): New fields.
4363 (getResponseCode): Call getResponseVals() conditionally.
4364 (getResponseMessage): Ditto.
4365 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4367 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4369 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4370 * Makefile.in: Rebuilt.
4371 * java/awt/Color.java (getTransparency): New method.
4372 * java/awt/Component.java: Various updates.
4373 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4374 after dealing with children.
4375 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4376 * java/awt/Window.java: Various new methods and updates.
4377 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4379 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4380 * java/awt/event/WindowEvent.java (paramString): Ditto.
4381 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4383 * java/awt/geom/Point2D.java (clone): Ditto.
4384 * java/awt/geom/RectangularShape.java (clone): Ditto.
4385 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4386 isAlphaPremultiplied): Make package-private, not private.
4388 2000-08-08 Tom Tromey <tromey@cygnus.com>
4390 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4391 surrogate characters.
4392 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4394 (write): Correct handling of surrogate characters.
4396 2000-08-07 Tom Tromey <tromey@cygnus.com>
4398 * java/lang/reflect/Method.java (hashCode): Use getName().
4399 (toString): Likewise.
4400 * java/lang/reflect/natMethod.cc (getType): Initialize
4403 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4405 * java/lang/reflect/Field.java (toString): Correct formatting.
4408 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4410 (receive): Streamlined.
4412 2000-08-05 Tom Tromey <tromey@cygnus.com>
4414 * java/io/PrintWriter.java: Merged comments from Classpath.
4415 (printlnUnsynchronized): Removed.
4416 (println()): Print the separator.
4417 (println): Call println(), not printlnUnsynchronized.
4418 (out): Now protected, to match spec.
4420 2000-08-04 Tom Tromey <tromey@cygnus.com>
4422 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4423 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4426 2000-08-03 Warren Levy <warrenl@cygnus.com>
4428 * java/io/ObjectInputStream.java (readFields): Turn off
4429 readDataFromBlock while reading via GetField.
4430 (GetField$1.get(String, Object)): Pass Class of default value to
4432 (getField): Allow for null default values.
4434 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4435 (PutField$1.put): Fixed calls of checkType in most of the put
4436 methods to pass the correct parameter.
4437 (PutField$1.put(String, Object)): Allow for null value arg.
4438 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4441 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4442 typo in spec'ed field name.
4443 (getSerialPersistentFields): Changed spelling of method to match
4444 the correct spelling of the spec'ed field name.
4446 2000-08-03 Tom Tromey <tromey@cygnus.com>
4448 * Makefile.in: Rebuilt.
4449 * Makefile.am (awt_java_source_files): Added new files.
4451 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4453 * Makefile.am: Add new AWT stubs.
4454 * java/awt/Canvas.java: New placeholder class.
4455 * java/awt/Checkbox.java: Ditto.
4456 * java/awt/CheckboxMenuItem.java: Ditto.
4457 * java/awt/Choice.java: Ditto.
4458 * java/awt/Dialog.java: Ditto.
4459 * java/awt/FileDialog.java: Ditto.
4460 * java/awt/List.java: Ditto.
4461 * java/awt/ScrollPane.java: Ditto.
4462 * java/awt/TextField.java: Ditto.
4463 * java/awt/datatransfer/Clipboard.java: Ditto.
4464 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4465 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4466 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4467 Some commented out. Partially implemented.
4468 * java/awt/natToolkit.cc: Removed file.
4470 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4472 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4473 Fixes "make -j" builds.
4474 * Makefile.in: Rebuild.
4476 2000-08-02 Tom Tromey <tromey@cygnus.com>
4478 * Makefile.in: Rebuilt.
4479 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4480 * java/net/natPlainSocketImpl.cc: Include posix.h.
4481 (accept): Use _Jv_select.
4482 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4483 (receive): Use _Jv_select.
4484 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4485 (available): Use _Jv_select.
4486 * java/lang/natSystem.cc: Include posix.h.
4487 (currentTimeMillis): Use _Jv_gettimeofday.
4488 * include/posix.h: New file.
4489 * posix.cc: New file.
4491 * scripts/encodings.pl: New file.
4492 * Makefile.in: Rebuilt.
4493 * Makefile.am (convert_source_files): Added IOConverter.java.
4494 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4496 (getDefaultDecodingClass): Canonicalize default encoding name.
4497 (getEncoder): Likewise.
4498 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4500 (getDefaultDecodingClass): Canonicalize default encoding name.
4501 (getDecoder): Likewise.
4502 * gnu/gcj/convert/IOConverter.java: New file.
4504 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4506 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4507 to match C declaration in ffi.h.
4508 * Makefile.am: Add java/awt/Button.java.
4509 * Makefile.in: Rebuilt.
4511 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4513 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4514 cast of the second argument to `ffi_raw_call' changed to match
4517 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4519 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4520 argument to `ffi_raw_call' changed to match prototype.
4522 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4524 * java/awt/Component.java (toString): Implemented.
4525 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4526 dispatchEvent() to dispatch the event.
4527 (removeImpl): Ditto.
4529 2000-07-30 Anthony Green <green@redhat.com>
4531 * java/awt/Component.java: Add treeLock object.
4532 (getTreeLock): Implement.
4533 (isShowing): Implement.
4535 2000-07-30 Tom Tromey <tromey@cygnus.com>
4537 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4539 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4541 * java/awt/Window.java (addNotify): Wrote.
4542 (addWindowListener): Wrote.
4544 (getWarningString): Wrote.
4545 (processEvent): Wrote.
4546 (processWindowEvent): Wrote.
4547 (removeWindowListener): Wrote.
4548 (show): Call validate(), setVisible().
4552 * java/awt/Toolkit.java (createWindow): Declare.
4554 * java/awt/Frame.java (addNotify): Use getToolkit to find
4557 * java/awt/Component.java (invalidate): Wrote.
4559 (getToolkit): Wrote.
4561 * java/awt/Container.java (addContainerListener): Removed
4563 (removeContainerListener): Likewise.
4565 (add(Component)): Use it.
4566 (add(String,Component)): Likewise.
4567 (add(Component,int)): Likewise.
4568 (add(Component,Object)): Likewise.
4569 (add(Component,Object,int)): Likewise.
4571 (getAlignmentX): Wrote.
4572 (getAlignmentY): Wrote.
4573 (getComponentAt): Wrote.
4574 (getMaximumSize): Wrote.
4575 (invalidate): Wrote.
4576 (list(PrintStream,int)): Wrote.
4577 (list(PrintWriter,int)): Wrote.
4578 (getMinimumSize): Wrote.
4579 (getPreferredSize): Wrote.
4580 (printComponents): Wrote.
4581 (processContainerEvent): Look at containerListener, not
4583 (remove): Added event processing and peer destruction.
4584 (removeAll): Use remove.
4585 (removeNotify): Wrote.
4587 (validateTree): Wrote.
4589 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4590 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4591 * java/awt/Container.java (addNotify): Don't create Container
4593 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4595 2000-07-30 Tom Tromey <tromey@cygnus.com>
4597 * java/awt/Container.java (remove(int)): Wrote.
4598 (remove(Component)): Wrote.
4599 (add(Component)): Wrote.
4600 (add(Component,int)): Wrote.
4602 (addNotify): Set our own peer.
4603 * java/awt/Scrollbar.java (listeners): Changed type.
4604 (Scrollbar): Don't initialize listeners.
4606 (setValue): Call setValues.
4607 (setMinimum): Likewise.
4608 (setMaxPriority): Likewise.
4609 (setVisibleAmount): Likewise.
4611 (setUnitIncrement): Forward to peer.
4612 (setLineIncrement): Call setUnitIncrement.
4613 (setPageIncrement): Call setBlockIncrement.
4614 (setBlockIncrement): Forward to peer.
4615 (addAdjustmentListener): Rewrote.
4616 (removeAdjustmentListener): Rewrote.
4617 (processAdjustmentEvent): Rewrote.
4618 (paramString): Wrote.
4619 * Makefile.in: Rebuilt.
4620 * Makefile.am (awt_java_source_files): Added Button.java.
4621 * java/awt/Button.java: New file.
4622 * java/awt/Toolkit.java (createLabel): Declare.
4623 (createButton): Likewise.
4624 (createScrollbar): Likewise.
4625 (createContainer): Likewise.
4626 * java/awt/Label.java (addNotify): Wrote.
4627 (setAlignment): Call setAlignment in the peer.
4628 (setText): Call setText in the peer.
4630 2000-07-28 Warren Levy <warrenl@cygnus.com>
4632 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4633 NotSerializableException with just the class name.
4635 2000-07-26 Andrew Haley <aph@cygnus.com>
4637 * interpret.cc (continue1): Insert missing break into switch.
4639 2000-07-28 Warren Levy <warrenl@cygnus.com>
4641 * java/io/ObjectStreamException.java: Made constructors protected.
4643 2000-07-27 Tom Tromey <tromey@cygnus.com>
4645 * java/io/OutputStreamWriter.java (close): Only flush if not
4648 2000-07-27 Warren Levy <warrenl@cygnus.com>
4650 * mauve-libgcj: Activated serialization tests.
4651 * gcj/field.h (getModifiers): Mask off unknown flags.
4652 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4653 spurious bits don't cause discrepancies.
4654 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4655 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4656 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4657 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4658 * java/lang/Throwable.java (serialVersionUID): New field.
4659 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4660 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4662 * java/lang/reflect/natMethod.cc: Ditto.
4663 * java/security/Key.java (serialVersionUID): Removed field for now.
4664 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4665 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4667 2000-07-22 Tom Tromey <tromey@cygnus.com>
4669 * java/awt/geom/RectangularShape.java (getPathIterator):
4672 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4674 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4675 stub libjava/java/awt/ColorModel.java which was located in the
4677 * libjava/java/awt/image/ComponentColorModel.java: New file.
4678 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4679 * libjava/java/awt/image/DataBuffer.java: New file.
4680 * libjava/java/awt/image/DataBufferByte.java: New file.
4681 * libjava/java/awt/image/DataBufferInt.java: New file.
4682 * libjava/java/awt/image/DataBufferUShort.java: New file.
4683 * libjava/java/awt/image/DirectColorModel.java: New file.
4684 * libjava/java/awt/image/PackedColorModel.java: New file.
4685 * libjava/java/awt/image/Raster.java: New file.
4686 * libjava/java/awt/image/SampleModel.java: New file.
4687 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4689 * libjava/java/awt/image/IndexColorModel.java: New file.
4690 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4691 java.awt.ColorModel stub.
4693 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4694 * gnu/gcj/util/Buffers.java: New file, utility class.
4696 * libjava/Makefile.am: Updated to include new files.
4697 * libjava/Makefile.in: Rebuilt.
4699 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4701 * java/io/StreamTokenizer.java: Merged with classpath.
4703 2000-07-20 Tom Tromey <tromey@cygnus.com>
4705 * Makefile.in: Rebuilt.
4706 * Makefile.am (awt_java_source_files): Updated for new files.
4707 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4708 * java/awt/Label.java: New file.
4709 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4710 (createIntersection, createUnion, getBounds2D): New methods.
4711 * java/awt/Scrollbar.java: New file.
4712 * java/awt/Shape.java: Updated to 1.2.
4713 * java/awt/geom/AffineTransform.java: New file.
4714 * java/awt/geom/Ellipse2D.java: New file.
4715 * java/awt/geom/NoninvertibleTransformException.java: New file.
4716 * java/awt/geom/PathIterator.java: New file.
4717 * java/awt/geom/Rectangle2D.java: New file.
4718 * java/awt/geom/RectangularShape.java: New file.
4719 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4720 * java/awt/geom/IllegalPathStateException.java: New file.
4722 * scripts/showval.java: New file.
4724 * scripts/classes.pl (scan): Print inner classes properly.
4725 * gcj/javaprims.h: Updated class list.
4727 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4728 initialize String fields for interpreted classes. Fixes bug
4729 reported by Hans Boehm.
4731 * java/io/File.java (getParentFile): New method, from Classpath
4732 via Oskar Liljeblad.
4734 * java/util/Vector.java (remove(Object)): Implemented.
4736 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4738 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4739 zero return from backtrace().
4741 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4743 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4745 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4746 before calling notifyAll().
4748 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4750 Add missing files from last check-in:
4751 * java/awt/image/ImageConsumer.java: New file.
4752 * java/awt/image/ImageProducer.java: New file.
4753 * java/awt/image/ImageObserver.java: New file.
4755 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4757 Merged implementation of java.applet from classpath:
4758 * java/applet/Applet.java: New file.
4759 * java/applet/AppletContext.java: New file.
4760 * java/applet/AppletStub.java: New file.
4761 * java/applet/AudioClip.java: New file.
4763 * Makefile.am: Added new java.applet classes.
4764 * Makefile.in: Rebuilt.
4766 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4769 * java/util/ResourceBundle.java (getLocale): stub.
4770 * Makefile.am: Added new AWT classes.
4771 * Makefile.in: Rebuilt.
4772 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4773 constructors. Fix toString() and paramString().
4774 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4775 * java/awt/CheckboxGroup.java: New class.
4776 * java/awt/ColorModel.java: New class.
4777 * java/awt/Component.java: Added stubs for most methods. Implemented
4779 * java/awt/Container.java: ditto.
4780 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4781 * java/awt/Cursor.java: ditto.
4782 * java/awt/Event.java: Fix paramString().
4783 * java/awt/EventQueue.java: New class. Implemented.
4784 * java/awt/Font.java: Added additional stub methods. Implemented
4786 * java/awt/FontMetrics.java: New class. Stubbed.
4787 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4789 * java/awt/Insets.java: New class. Implemented.
4790 * java/awt/Menu.java: Add new methods. Partially implemented.
4791 * java/awt/MenuItem.java: Add new methods and fields. Partially
4793 * java/awt/MenuShortcut.java: New class. Implemented.
4794 * java/awt/Panel.java: New class. Placeholder.
4795 * java/awt/PopupMenu.java: New class. Stubbed.
4796 * java/awt/Rectangle.java: New class. Implemented.
4797 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4798 * java/awt/event/ActionEvent.java: Implement paramString().
4799 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4800 * java/awt/event/ComponentEvent.java: Implement paramString().
4801 * java/awt/event/ContainerEvent.java: Implement paramString().
4802 * java/awt/event/FocusEvent.java: Implement paramString().
4803 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4804 * java/awt/event/HierarchyBoundsListener.java: New class.
4805 * java/awt/event/HierarchyEvent.java: New class.
4806 * java/awt/event/HierarchyListener.java: New class.
4807 * java/awt/event/InputMethodEvent.java: Implement paramString().
4808 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4809 exception if !catchExceptions.
4810 * java/awt/event/ItemEvent.java: Implement paramString().
4811 * java/awt/event/KeyEvent.java: Implement paramString().
4812 * java/awt/event/MouseEvent.java: Implement paramString().
4813 * java/awt/event/PaintEvent.java: Implement paramString().
4814 * java/awt/event/TextEvent.java: Implement paramString().
4815 * java/awt/event/WindowEvent.java: Implement paramString().
4817 AWT Peer interfaces:
4818 * java/awt/peer/ButtonPeer.java: New file.
4819 * java/awt/peer/ListPeer.java: New file.
4820 * java/awt/peer/CanvasPeer.java: New file.
4821 * java/awt/peer/MenuBarPeer.java: New file.
4822 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4823 * java/awt/peer/MenuComponentPeer.java: New file.
4824 * java/awt/peer/CheckboxPeer.java: New file.
4825 * java/awt/peer/MenuItemPeer.java: New file.
4826 * java/awt/peer/ChoicePeer.java: New file.
4827 * java/awt/peer/MenuPeer.java: New file.
4828 * java/awt/peer/ComponentPeer.java: Implemented.
4829 * java/awt/peer/PanelPeer.java: New file.
4830 * java/awt/peer/ContainerPeer.java: Implemented.
4831 * java/awt/peer/PopupMenuPeer.java: New file.
4832 * java/awt/peer/DialogPeer.java: New file.
4833 * java/awt/peer/ScrollPanePeer.java: New file.
4834 * java/awt/peer/FileDialogPeer.java: New file.
4835 * java/awt/peer/ScrollbarPeer.java: New file.
4836 * java/awt/peer/FontPeer.java: New file.
4837 * java/awt/peer/TextAreaPeer.java: New file.
4838 * java/awt/peer/FramePeer.java: Implemented.
4839 * java/awt/peer/TextComponentPeer.java: New file.
4840 * java/awt/peer/LabelPeer.java: New file.
4841 * java/awt/peer/TextFieldPeer.java: New file.
4842 * java/awt/peer/LightweightPeer.java: New file.
4843 * java/awt/peer/WindowPeer.java: Implemented.
4845 2000-07-06 Tom Tromey <tromey@cygnus.com>
4847 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4848 Initialize static final String fields.
4850 2000-07-03 Tom Tromey <tromey@cygnus.com>
4852 * java/io/PrintWriter.java (print): Call write(String), not
4853 print(String). See PR libgcj/277.
4854 (print(String)): Use write, not out.write.
4856 2000-06-30 Tom Tromey <tromey@cygnus.com>
4858 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4860 2000-06-27 Andrew Haley <aph@cygnus.com>
4862 * java/io/File.java (createTempFile): Close the FileDescriptor
4863 used to create a temp file. Fixes some of PR 203.
4864 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4865 collection if we run out of file handles.
4867 2000-06-28 Warren Levy <warrenl@cygnus.com>
4869 * gnu/java/security/provider/Gnu.java: New file.
4870 * gnu/java/security/provider/SHA.java: New file.
4871 * gnu/java/security/provider/SHA1PRNG.java: New file.
4872 * Makefile.am: Added the above files.
4873 * Makefile.in: Rebuilt.
4875 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4877 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4879 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4880 (destroyed_flag): Removed.
4881 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4882 (activeCount): Added spec note.
4884 2000-06-27 Warren Levy <warrenl@cygnus.com>
4886 * java/security/Principal.java: New file.
4887 * Makefile.am: Added Principal.java.
4888 * Makefile.in: Rebuilt.
4890 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4892 * java/awt/event/MouseEvent.java: Fixed coordinate space
4895 2000-06-27 Tom Tromey <tromey@cygnus.com>
4897 * java/io/PushbackInputStream.java (read): If there are characters
4898 in the buffer, don't also call super.read().
4899 * java/io/PushbackReader.java (read): If there are characters in
4900 the buffer, don't also call super.read().
4902 * java/lang/Double.java (valueOf): Call parseDouble().
4904 2000-06-26 Warren Levy <warrenl@cygnus.com>
4906 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4907 (newVal): Renamed to newValue.
4908 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4909 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4910 (revokeNow): Renamed to invalidateRefs.
4911 * java/io/OptionalDataException.java: Updated FIXME.
4912 (eof): New placeholder field.
4914 * java/io/WriteAbortedException.java (message): Made transient.
4915 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4916 * java/lang/Throwable.java (stackTrace): Made transient.
4917 * java/net/InetAddress.java: Made Serializable.
4918 * java/security/KeyPair.java: Made Serializable.
4919 * java/security/Provider.java: Replaced with Classpath version that
4920 implements serialization and proper methods.
4921 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4922 (limits): Renamed to choiceLimits.
4924 2000-06-24 Tom Tromey <tromey@cygnus.com>
4926 * java/lang/natDouble.cc (parseDouble): Renamed from
4928 * java/lang/Double.java (parseDouble): Renamed from
4929 doubleValueOf. Now public.
4931 2000-06-23 Andrew Haley <aph@cygnus.com>
4933 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4934 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4936 2000-06-23 Tom Tromey <tromey@cygnus.com>
4938 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4939 * java/lang/natDouble.cc: Always include <alloca.h>.
4940 Fix for PR libgcj/267.
4942 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4944 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4945 comply with classpath VM spec.
4946 (add(Group)): Rename to addGroup().
4947 * java/lang/Thread.java (Thread): Use addThread().
4948 * java/lang/natThread.cc (finish_): Use removeThread().
4950 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4952 * java/lang/ThreadGroup.java: Merged with classpath.
4953 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4954 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4956 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4957 ThreadGroup.root if Thread.currentThread is null. Honour the
4958 ThreadGroup's max priority setting.
4960 2000-06-18 Tom Tromey <tromey@cygnus.com>
4962 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4963 returned class. For PR gcj/260.
4965 2000-06-16 Tom Tromey <tromey@cygnus.com>
4967 Fix for PR libgcj/261:
4968 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4970 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4971 argument. (This is a patch from long ago that somehow went
4974 2000-06-15 Tom Tromey <tromey@cygnus.com>
4976 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4980 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4982 Fix for PR java.lang/258:
4983 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4984 JV_STATE_DONE, to prevent accidental initialization.
4985 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4986 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4987 interface or an abstract class. Remove redundant initializeClass calls.
4988 Remove duplicate if_idt test.
4989 (_Jv_InterfaceAssignableFrom): New function.
4990 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4992 2000-05-31 Tom Tromey <tromey@cygnus.com>
4994 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4995 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4996 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4997 (NUM_OBJECT_METHODS): New define.
4998 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4999 `array_vtable' parameter. Added assertion.
5000 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5003 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5005 * gcj/cni.h: Include <string.h>.
5006 * defineclass.cc: Include <alloca.h>.
5007 * interpret.cc: Ditto.
5008 * gij.cc: Include <stdlib.h>.
5010 2000-05-30 Tom Tromey <tromey@cygnus.com>
5012 * include/name-finder.h: Include <sys/wait.h>.
5013 (_Jv_name_finder::pid): Now of type `pid_t'.
5014 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5015 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5018 2000-05-24 Warren Levy <warrenl@cygnus.com>
5020 * java/io/ObjectOutputStream.java (writeObject): Use component type
5021 when writing arrays.
5024 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5026 Fix for PR libgcj/226:
5027 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5028 since this is an installed header.
5030 Fix for PR libgcj/228:
5031 * java/util/zip/ZipFile (getInputStream): Create inflater with
5034 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5035 with DataFormatException.
5037 2000-05-20 Tom Tromey <tromey@cygnus.com>
5039 * Makefile.in: Rebuilt.
5040 * Makefile.am (hack1): Removed.
5041 (awto_files): Likewise.
5042 (libgcjawt_la_SOURCES): Likewise.
5043 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5044 (libgcjawt_la_DEPENDENCIES): Likewise.
5045 (libgcjawt_la_LIBADD): Likewise.
5046 (libgcjawt_la_LDFLAGS): Likewise.
5047 (libgcjawt_la_LINK): Likewise.
5048 ($(awt_java_source_files:.java=.class)): Likewise.
5049 (libgcj.zip): Don't depend on AWT files.
5050 (MOSTLYCLEANFILES): Don't include AWT files.
5051 ($(awto_files)): Removed.
5052 (nat_headers): Removed AWT files.
5053 (cond_awt_java_source_files): Removed.
5054 (ordinary_java_source_files): Added awt_java_source_files.
5055 * libgcj.spec.in (*lib): Removed -lgcjawt.
5056 * configure: Rebuilt.
5057 * configure.in: Removed --enable-java-awt option.
5059 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5061 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5062 (ZipEntry): Copy the `name' field.
5063 (clone): Implement JDK1.2 method.
5064 (setCompressedSize): ditto.
5067 2000-05-19 Tom Tromey <tromey@cygnus.com>
5069 * java/io/BufferedWriter.java: Merged with Classpath.
5070 * java/io/BufferedOutputStream.java: Merged with Classpath.
5072 2000-05-16 Andrew Haley <aph@cygnus.com>
5074 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5075 build_ia64_frame_state.
5076 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5079 2000-05-15 Warren Levy <warrenl@cygnus.com>
5081 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5082 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5083 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5084 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5085 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5086 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5087 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5088 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5089 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5090 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5091 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5092 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5093 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5094 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5095 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5096 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5097 * gnu/gcj/io/NullOutputStream.java: Removed.
5098 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5099 * gnu/gcj/lang/ArrayHelper.java: Removed.
5100 * gnu/gcj/lang/ClassHelper.java: Removed.
5101 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5103 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5104 * gnu/java/beans/EmptyBeanInfo.java: New file.
5105 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5106 * gnu/java/beans/IntrospectionIncubator.java: New file.
5107 * gnu/java/beans/editors/ColorEditor.java: New file.
5108 * gnu/java/beans/editors/FontEditor.java: New file.
5109 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5110 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5111 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5112 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5113 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5114 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5115 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5116 * gnu/java/beans/editors/StringEditor.java: New file.
5117 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5118 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5119 * gnu/java/io/NullOutputStream.java: New file.
5120 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5121 * gnu/java/lang/ArrayHelper.java: New file.
5122 * gnu/java/lang/ClassHelper.java: New file.
5123 * gnu/java/lang/reflect/TypeSignature.java: New file.
5125 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5126 namespace back to the original Classpath gnu/java namespace.
5127 * Makefile.in: Rebuilt.
5129 * java/beans/Beans.java: Namespace change.
5130 * java/beans/EventSetDescriptor.java: Namespace change.
5131 * java/beans/Introspector.java: Namespace change.
5132 * java/beans/PropertyEditorManager.java: Namespace change.
5133 * java/io/ObjectInputStream.java: Namespace change.
5134 * java/io/ObjectOutputStream.java: Namespace change.
5135 * java/io/ObjectStreamClass.java: Namespace change.
5136 * java/io/ObjectStreamField.java: Namespace change.
5138 2000-04-21 Warren Levy <warrenl@cygnus.com>
5140 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5141 now that compiler patch is available.
5142 Removed unneeded System.loadLibrary.
5143 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5144 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5146 2000-04-19 Andrew Haley <aph@cygnus.com>
5148 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5149 and target classes have been initialized.
5151 2000-04-19 Andrew Haley <aph@cygnus.com>
5153 * java/lang/String.java: implement Serializable, Comparable.
5154 (compareTo (Object)): New method.
5156 2000-04-19 Warren Levy <warrenl@cygnus.com>
5158 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5159 instead of getField to retrieve non-public field.
5160 (getSerialPersistantFields): Ditto.
5162 2000-04-18 Warren Levy <warrenl@cygnus.com>
5164 * mauve-libgcj: Turned off object serialization tests temporarily
5165 due to compiler error.
5167 2000-04-17 Warren Levy <warrenl@cygnus.com>
5169 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5170 to avoid build problem.
5172 * mauve-libgcj: Turned on object serialization tests.
5174 2000-04-17 Tom Tromey <tromey@cygnus.com>
5176 * libgcj.spec.in (*lib): Added -lgcjawt.
5178 2000-04-17 Andrew Haley <aph@cygnus.com>
5180 * Makefile.am: Add new files:
5181 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5183 * Makefile.in: Rebuilt.
5185 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5186 interface that has no implementations.
5187 Check for an attempt to assign an abstract class to an interface.
5189 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5190 if we fail to find MessageDigest.getInstance ("SHA").
5192 * gnu/gcj/io/SimpleSHSStream.java: New file.
5193 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5194 * gnu/gcj/io/shs.cc: New file.
5195 * gnu/gcj/io/shs.h: new file.
5197 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5200 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5201 punctuation from the classname of an array element.
5203 * gcj/javaprims.h: Add SimpleDigestStream.
5205 2000-04-17 Andrew Haley <aph@cygnus.com>
5207 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5208 to getPrivateField for superclasses.
5210 2000-04-14 Andrew Haley <aph@cygnus.com>
5212 * Makefile.am: Add new files:
5213 java/io/ObjectOutputStream$PutField.h,
5214 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5215 java/io/natObjectOutputStream.cc
5216 * Makefile.in: Rebuilt.
5217 * gcj/Makefile.in: Rebuilt.
5218 * include/Makefile.in: Rebuilt.
5219 * java/lang/Class.h (getPrivateField): New method.
5220 (getPrivateMethod): Ditto.
5221 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5222 and java::io::ObjectStreamClass our friends.
5223 * java/lang/natClass.cc (getPrivateField): New method.
5224 (getPrivateMethod): Ditto.
5225 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5226 * gcj/javaprims.h: Add serialization classes.
5227 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5228 (setByteField): Ditto.
5229 (setCharField): Ditto.
5230 (setDoubleField): Ditto.
5231 (setFloatField): Ditto.
5232 (setIntField): Ditto.
5233 (setLongField): Ditto.
5234 (setShortField): Ditto.
5235 (setObjectField): Ditto.
5236 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5238 (getByteField): Ditto.
5239 (getCharField): Ditto.
5240 (getDoubleField): Ditto.
5241 (getFloatField): Ditto.
5242 (getIntField): Ditto.
5243 (getLongField): Ditto.
5244 (getShortField): Ditto.
5245 (getObjectField): Ditto.
5246 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5248 (getSerialPersistantFields): Ditto.
5249 (getDefinedSUID): Ditto.
5250 * java/io/natObjectOutputStream.cc: New file.
5251 * java/io/natObjectInputStream.cc: New file.
5253 2000-04-13 Warren Levy <warrenl@cygnus.com>
5255 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5256 problems. Revert to previous version to reproduce and when fixed.
5258 2000-04-13 Warren Levy <warrenl@cygnus.com>
5260 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5261 * gnu/gcj/io/NullOutputStream.java: New file.
5262 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5263 * java/io/BlockDataException.java: New file.
5264 * java/io/Externalizable.java: New file.
5265 * java/io/InvalidClassException.java: New file.
5266 * java/io/InvalidObjectException.java: New file.
5267 * java/io/NotActiveException.java: New file.
5268 * java/io/NotSerializableException.java: New file.
5269 * java/io/ObjectInput.java: New file.
5270 * java/io/ObjectInputStream.java: New file.
5271 * java/io/ObjectInputValidation.java: New file.
5272 * java/io/ObjectOutput.java: New file.
5273 * java/io/ObjectOutputStream.java: New file.
5274 * java/io/ObjectStreamClass.java: New file.
5275 * java/io/ObjectStreamConstants.java: New file.
5276 * java/io/ObjectStreamField.java: New file.
5277 * java/io/Replaceable.java: New file.
5278 * java/io/Resolvable.java: New file.
5279 * java/io/SerializablePermission.java: New file.
5280 * java/io/WriteAbortedException.java: New file.
5281 * java/security/BasicPermission.java: New file.
5282 * java/security/DigestOutputStream.java: New file.
5283 * java/security/Guard.java: New file.
5284 * java/security/Permission.java: New file.
5285 * java/security/PermissionCollection.java: New file.
5286 * Makefile.am: Added above files.
5287 * Makefile.in: Rebuilt.
5289 * java/beans/Beans.java (instantiate): Activated serialization code.
5290 * java/lang/SecurityManager.java (checkPermission): New method.
5292 2000-04-12 Warren Levy <warrenl@cygnus.com>
5294 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5295 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5296 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5297 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5298 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5299 * gnu/gcj/beans/editors/FontEditor.java: New file.
5300 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5301 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5302 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5303 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5304 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5305 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5306 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5307 * gnu/gcj/beans/editors/StringEditor.java: New file.
5308 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5309 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5310 * gnu/gcj/lang/ArrayHelper.java: New file.
5311 * gnu/gcj/lang/ClassHelper.java: New file.
5312 * java/beans/BeanDescriptor.java: New file.
5313 * java/beans/BeanInfo.java: New file.
5314 * java/beans/Beans.java: New file.
5315 * java/beans/Customizer.java: New file.
5316 * java/beans/DesignMode.java: New file.
5317 * java/beans/EventSetDescriptor.java: New file.
5318 * java/beans/FeatureDescriptor.java: New file.
5319 * java/beans/IndexedPropertyDescriptor.java: New file.
5320 * java/beans/IntrospectionException.java: New file.
5321 * java/beans/Introspector.java: New file.
5322 * java/beans/MethodDescriptor.java: New file.
5323 * java/beans/ParameterDescriptor.java: New file.
5324 * java/beans/PropertyChangeEvent.java: New file.
5325 * java/beans/PropertyChangeListener.java: New file.
5326 * java/beans/PropertyChangeSupport.java: New file.
5327 * java/beans/PropertyDescriptor.java: New file.
5328 * java/beans/PropertyEditor.java: New file.
5329 * java/beans/PropertyEditorManager.java: New file.
5330 * java/beans/PropertyEditorSupport.java: New file.
5331 * java/beans/PropertyVetoException.java: New file.
5332 * java/beans/SimpleBeanInfo.java: New file.
5333 * java/beans/VetoableChangeListener.java: New file.
5334 * java/beans/VetoableChangeSupport.java: New file.
5335 * java/beans/Visibility.java: New file.
5336 * java/beans/beancontext/BeanContext.java: New file.
5337 * java/beans/beancontext/BeanContextChild.java: New file.
5338 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5339 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5340 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5341 * java/beans/beancontext/BeanContextEvent.java: New file.
5342 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5343 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5344 * java/beans/beancontext/BeanContextProxy.java: New file.
5345 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5347 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5348 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5350 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5351 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5353 * java/beans/beancontext/BeanContextServices.java: New file.
5354 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5355 * java/util/AbstractCollection.java: New file.
5356 * java/util/AbstractList.java: New file.
5357 * java/util/Arrays.java: New file.
5358 * Makefile.am: Added above files.
5359 * Makefile.in: Rebuilt.
5361 2000-04-11 Warren Levy <warrenl@cygnus.com>
5363 * java/awt/AWTError.java: New file.
5364 * java/awt/AWTEvent.java: New file.
5365 * java/awt/AWTException.java: New file.
5366 * java/awt/ActiveEvent.java: New file.
5367 * java/awt/Adjustable.java: New file.
5368 * java/awt/BorderLayout.java: New file.
5369 * java/awt/Color.java: New file.
5370 * java/awt/Component.java: New file.
5371 * java/awt/Container.java: New file.
5372 * java/awt/Dimension.java: New file.
5373 * java/awt/Event.java: New file.
5374 * java/awt/Font.java: New file.
5375 * java/awt/Frame.java: New file.
5376 * java/awt/Graphics.java: New file.
5377 * java/awt/IllegalComponentStateException.java: New file.
5378 * java/awt/Image.java: New file.
5379 * java/awt/ItemSelectable.java: New file.
5380 * java/awt/LayoutManager.java: New file.
5381 * java/awt/LayoutManager2.java: New file.
5382 * java/awt/Menu.java: New file.
5383 * java/awt/MenuBar.java: New file.
5384 * java/awt/MenuComponent.java: New file.
5385 * java/awt/MenuContainer.java: New file.
5386 * java/awt/MenuItem.java: New file.
5387 * java/awt/Paint.java: New file.
5388 * java/awt/PaintContext.java: New file.
5389 * java/awt/Point.java: New file.
5390 * java/awt/Rectangle.java: New file.
5391 * java/awt/Shape.java: New file.
5392 * java/awt/TextArea.java: New file.
5393 * java/awt/TextComponent.java: New file.
5394 * java/awt/Toolkit.java: New file.
5395 * java/awt/Transparency.java: New file.
5396 * java/awt/Window.java: New file.
5397 * java/awt/natToolkit.cc: New file.
5398 * java/awt/event/AWTEventListener.java: New file.
5399 * java/awt/event/ActionEvent.java: New file.
5400 * java/awt/event/ActionListener.java: New file.
5401 * java/awt/event/AdjustmentEvent.java: New file.
5402 * java/awt/event/AdjustmentListener.java: New file.
5403 * java/awt/event/ComponentAdapter.java: New file.
5404 * java/awt/event/ComponentEvent.java: New file.
5405 * java/awt/event/ComponentListener.java: New file.
5406 * java/awt/event/ContainerAdapter.java: New file.
5407 * java/awt/event/ContainerEvent.java: New file.
5408 * java/awt/event/ContainerListener.java: New file.
5409 * java/awt/event/FocusAdapter.java: New file.
5410 * java/awt/event/FocusEvent.java: New file.
5411 * java/awt/event/FocusListener.java: New file.
5412 * java/awt/event/InputEvent.java: New file.
5413 * java/awt/event/InputMethodEvent.java: New file.
5414 * java/awt/event/InputMethodListener.java: New file.
5415 * java/awt/event/InvocationEvent.java: New file.
5416 * java/awt/event/ItemEvent.java: New file.
5417 * java/awt/event/ItemListener.java: New file.
5418 * java/awt/event/KeyAdapter.java: New file.
5419 * java/awt/event/KeyEvent.java: New file.
5420 * java/awt/event/KeyListener.java: New file.
5421 * java/awt/event/MouseAdapter.java: New file.
5422 * java/awt/event/MouseEvent.java: New file.
5423 * java/awt/event/MouseListener.java: New file.
5424 * java/awt/event/MouseMotionAdapter.java: New file.
5425 * java/awt/event/MouseMotionListener.java: New file.
5426 * java/awt/event/PaintEvent.java: New file.
5427 * java/awt/event/TextEvent.java: New file.
5428 * java/awt/event/TextListener.java: New file.
5429 * java/awt/event/WindowAdapter.java: New file.
5430 * java/awt/event/WindowEvent.java: New file.
5431 * java/awt/event/WindowListener.java: New file.
5432 * java/awt/geom/Dimension2D.java: New file.
5433 * java/awt/geom/Point2D.java: New file.
5434 * java/awt/peer/ComponentPeer.java: New file.
5435 * java/awt/peer/ContainerPeer.java: New file.
5436 * java/awt/peer/FramePeer.java: New file.
5437 * java/awt/peer/WindowPeer.java: New file.
5438 * java/util/Collection.java: New file.
5439 * java/util/Comparator.java: New file.
5440 * java/util/Iterator.java: New file.
5441 * java/util/List.java: New file.
5442 * java/util/ListIterator.java: New file.
5443 * Makefile.am: Added above files.
5444 * Makefile.in: Rebuilt.
5446 2000-04-10 Warren Levy <warrenl@cygnus.com>
5448 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5449 * java/lang/FirstThread.java: Ditto.
5450 * java/lang/StringBuffer.java: Ditto.
5451 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5453 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5454 Special case handled in java.math.BigInteger.
5455 * java/math/BigInteger.java (divide): Handle the special case when
5456 dividing by 1 and the high bit of the dividend is set.
5457 (setShiftRight): Handle case when count == 0.
5459 2000-04-05 Andrew Haley <aph@cygnus.com>
5461 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5464 2000-04-05 Andrew Haley <aph@cygnus.com>
5466 * sysdep/ia64.c (rse_address_add): Delete.
5467 (IS_NaT_COLLECTION_ADDR): Delete.
5468 (ia64_backtrace_helper): check for null unwind_info.
5470 * sysdep/ia64-frame.h: add calc_caller_bsp.
5472 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5475 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5476 (_Jv_remI): Likewise.
5477 (_Jv_divJ): Likewise.
5478 (_Jv_remJ): Likewise.
5480 * interpret.cc (continue1): Use divide subroutines to guarantee
5481 correct Java standard behaviour.
5482 Floating-point division should not abort; make it so.
5484 2000-03-29 Tom Tromey <tromey@cygnus.com>
5486 * configure: Rebuilt.
5487 * configure.in: Test against `libgcj_sjlj', not
5488 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5489 to be set even when using sjlj.
5491 2000-03-24 Andrew Haley <aph@cygnus.com>
5493 * Makefile.am: Add file addr2name.awk.
5494 * Makefile.in: Rebuilt.
5495 * addr2name.awk: New file.
5496 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5498 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5501 2000-03-22 Andrew Haley <aph@cygnus.com>
5503 * configure.host: Add -funwind-tables for IA64.
5504 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5505 * Makefile.in: Rebuilt.
5506 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5507 * sysdep/ia64.c: New file.
5508 * sysdep/ia64-frame.h: New file.
5509 * configure.in: Add sysdep/ia64.c for ia64.
5510 * configure: Rebuilt.
5512 2000-03-17 Andrew Haley <aph@cygnus.com>
5514 * java/lang/natString.cc: Remove `register' keyword.
5515 interpret.cc: ditto.
5517 2000-03-16 Andrew Haley <aph@cygnus.com>
5519 * configure.host (ia64): Enable interpreter.
5521 2000-03-14 Hans Boehm <boehm@acm.org>
5523 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5525 2000-03-14 Andrew Haley <aph@cygnus.com>
5527 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5530 2000-03-10 Andrew Haley <aph@cygnus.com>
5532 * java/lang/ieeefp.h: Import latest version from fdlibm.
5534 2000-03-14 Andrew Haley <aph@cygnus.com>
5536 * prims.cc (_Jv_ThrowSignal): New function.
5537 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5539 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5540 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5541 * include/ppc-signal.h: New file.
5543 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5545 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5546 * java/lang/natThread.java (initialize_native): Cast `data' to
5548 * gnu/gcj/RawData.java: Clarify documentation.
5550 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5551 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5552 `jarFile', not `jarFileURL'.
5554 2000-05-15 Andrew Haley <aph@cygnus.com>
5556 * include/ppc-signal.h: New file.
5558 2000-05-11 Tom Tromey <tromey@cygnus.com>
5560 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5561 file headers, don't include `size' in the skip call.
5563 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5565 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5566 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5568 (replace): Reimplemented. Fix javadoc.
5569 (reverse): Call ensureCapacity_unsynchronized().
5570 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5572 (replace): Calculate length for arraycopy() correctly.
5574 2000-05-09 Tom Tromey <tromey@cygnus.com>
5576 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5578 (insert(int,char[],int,int): New method.
5579 (delete): New method from Classpath.
5580 (deleteCharAt): Likewise.
5581 (substring): Likewise.
5582 (shared): No longer private.
5583 Added JavaDoc comments from Classpath.
5584 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5587 2000-05-07 Tom Tromey <tromey@cygnus.com>
5589 * Makefile.in: Rebuilt.
5590 * Makefile.am (LIBLINK): New macro.
5591 (libgcj_la_LINK): Use it.
5592 (libgcjawt_la_LINK): Likewise.
5594 2000-05-06 Tom Tromey <tromey@cygnus.com>
5596 * Makefile.in: Rebuilt.
5597 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5599 2000-05-05 Tom Tromey <tromey@cygnus.com>
5601 Fix for PR libgcj/220:
5602 * Makefile.in: Rebuilt.
5603 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5604 (jv_convert_LDFLAGS): Likewise.
5605 (libgcj_la_LDFLAGS): Likewise.
5606 (GCJLINK): New macro.
5607 (jv_convert_LINK): Use it.
5608 (gij_LINK): Likewise.
5609 (libgcj_la_LINK): New macro.
5610 (libgcjawt_la_LINK): Likewise.
5612 2000-05-04 Tom Tromey <tromey@cygnus.com>
5614 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5616 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5620 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5622 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5623 (_Jv_IsAssignableFrom): Ditto.
5624 (_Jv_IsInstanceOf): Ditto.
5625 (_Jv_CheckCast): Ditto.
5626 (_Jv_CheckArrayStore): Ditto.
5627 * java/lang/Class.h (_Jv_InitClass): Ditto.
5628 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5633 (_Jv_MonitorExit): Ditto.
5634 * boehm.cc (_Jv_MarkObj): Ditto.
5635 (_Jv_MarkObj): Ditto.
5636 (_Jv_MarkArray): Ditto.
5637 * prims.cc (_Jv_AllocObject): Ditto.
5638 (_Jv_NewObjectArray): Ditto.
5639 (_Jv_NewPrimArray): Ditto.
5640 (_Jv_Malloc): Ditto.
5641 (_Jv_Realloc): Ditto.
5642 (_Jv_MallocUnchecked): Ditto.
5648 2000-05-04 Tom Tromey <tromey@cygnus.com>
5650 * java/util/Locale.java (Locale): Don't explicitly check for
5652 * java/util/Hashtable.java (containsKey): Don't explicitly check
5655 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5657 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5659 * java/text/StringCharacterIterator.java
5660 (StringCharacterIterator): Don't check for null.
5661 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5663 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5664 check for null pointer.
5665 (leaveGroup): Likewise.
5666 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5668 (setData): Likewise.
5669 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5672 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5674 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5675 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5676 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5677 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5678 -rpath for in-gcc builds.
5679 * Makefile.in: Rebuilt.
5681 2000-04-28 Tom Tromey <tromey@cygnus.com>
5683 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5686 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5688 * libjava/java/lang/String.java (toString): Remove `final' hack.
5690 2000-04-05 Tom Tromey <tromey@cygnus.com>
5692 Runtime support for PR gcj/2:
5693 * prims.cc (_Jv_ThrowNullPointerException): New function.
5694 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5696 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5698 * prims.cc (_Jv_NewObjectArray): Fix typo.
5700 2000-04-26 Tom Tromey <tromey@cygnus.com>
5702 * Makefile.in: Rebuilt.
5703 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5705 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5707 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5710 2000-04-22 Anthony Green <green@cygnus.com>
5712 * include/jvm.h (__builtin_expect): Define as unused for now.
5713 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5717 (_Jv_MonitorExit): Ditto.
5718 * boehm.cc (_Jv_MarkObj): Ditto.
5719 (_Jv_MarkObj): Ditto.
5720 (_Jv_MarkArray): Ditto.
5721 (_Jv_AllocBytes): Ditto.
5722 * prims.cc (_Jv_AllocObject): Ditto.
5723 (_Jv_NewObjectArray): Ditto.
5724 (_Jv_NewPrimArray): Ditto.
5725 (_Jv_Malloc): Ditto.
5726 (_Jv_Realloc): Ditto.
5727 (_Jv_MallocUnchecked): Ditto.
5733 * include/Makefile.in: Rebuilt.
5734 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5736 2000-04-21 Tom Tromey <tromey@cygnus.com>
5738 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5739 Yet another new version from Classpath.
5741 Fix for PR libgcj/15:
5742 * java/util/natGregorianCalendar.cc (_REENTRANT,
5743 _POSIX_PTHREAD_SEMANTICS): Don't define.
5744 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5745 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5747 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5749 * configure: Rebuilt.
5750 * configure.in: If using POSIX threads, define _REENTRANT if
5751 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5752 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5754 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5755 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5756 version from Classpath.
5758 Fix for PR libgcj/213:
5759 * Makefile.in: Rebuilt.
5760 * Makefile.am (gij_SOURCES): Added gij.cc.
5761 (EXTRA_gij_SOURCES): Removed.
5762 (gij_LDADD): Removed gij.lo.
5763 (gij_DEPENDENCIES): Likewise.
5764 ($(gij_OBJECTS)): Depend on nat_headers.
5766 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5767 `setURL', not `url.set'.
5769 2000-04-20 Tom Tromey <tromey@cygnus.com>
5771 Fix for PR java.io/204:
5772 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5773 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5776 Fix for PR libgcj/212:
5777 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5778 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5779 * java/lang/Class.h (_Jv_word): Declare.
5781 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5783 2000-04-19 Tom Tromey <tromey@cygnus.com>
5785 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5786 doesn't have a loader.
5788 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5790 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5791 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5793 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5795 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5797 (available): Initialize `where' to prevent bogus compiler warning.
5799 2000-04-12 Tom Tromey <tromey@cygnus.com>
5801 * java/lang/natString.cc (intern): Temporarily disable finalizer
5804 * java/lang/natString.cc (unintern): Added `obj' argument.
5805 (intern): Register finalizer for string.
5806 * java/lang/String.java (unintern): Now static; added obj
5809 2000-04-11 Tom Tromey <tromey@cygnus.com>
5811 * java/util/Vector.java (VectorEnumeration): Now `final'.
5812 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5813 (HashtableEnumeration): Likewise.
5814 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5815 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5817 2000-04-10 Warren Levy <warrenl@cygnus.com>
5819 * java/io/ObjectStreamException.java: New file.
5820 * java/io/OptionalDataException.java: New file.
5821 * java/io/StreamCorruptedException.java: New file.
5822 * java/math/BigDecimal.java: New file.
5823 * java/sql/CallableStatement.java: New file.
5824 * java/sql/Connection.java: New file.
5825 * java/sql/DataTruncation.java: New file.
5826 * java/sql/DatabaseMetaData.java: New file.
5827 * java/sql/Date.java: New file.
5828 * java/sql/Driver.java: New file.
5829 * java/sql/DriverManager.java: New file.
5830 * java/sql/DriverPropertyInfo.java: New file.
5831 * java/sql/PreparedStatement.java: New file.
5832 * java/sql/ResultSet.java: New file.
5833 * java/sql/ResultSetMetaData.java: New file.
5834 * java/sql/SQLException.java: New file.
5835 * java/sql/SQLWarning.java: New file.
5836 * java/sql/Statement.java: New file.
5837 * java/sql/Time.java: New file.
5838 * java/sql/Timestamp.java: New file.
5839 * java/sql/Types.java: New file.
5840 * Makefile.am: Added above new files.
5841 * Makefile.in: Rebuilt.
5843 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5844 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5845 DatagramSocket constructor instead of null.
5847 2000-04-08 Anthony Green <green@cygnus.com>
5849 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5852 2000-04-08 Anthony Green <green@cygnus.com>
5854 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5855 (_Jv_MutexUnlock): Ditto.
5856 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5857 (_Jv_MutexUnlock): Ditto.
5859 2000-04-08 Anthony Green <green@cygnus.com>
5861 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5862 (ensureCapacity_unsynchronized): New private method.
5863 (append): Use ensureCapacity_unsynchronized.
5865 2000-04-08 Tom Tromey <tromey@cygnus.com>
5867 * Makefile.in: Rebuilt.
5868 * Makefile.am (awt_java_source_files): Added new files.
5869 * java/awt/IllegalComponentStateException.java: New file.
5870 * java/awt/ItemSelectable.java: New file.
5871 * java/awt/event/WindowEvent.java: Finished.
5872 * java/awt/event/TextEvent.java: Finished.
5873 * java/awt/event/ContainerEvent.java: New file.
5874 * java/awt/Component.java (getX, getY): New methods.
5875 * java/awt/event/PaintEvent.java: New file.
5876 * java/awt/event/MouseEvent.java: New file.
5877 * java/awt/ActiveEvent.java: New file.
5878 * java/awt/event/KeyEvent.java: Finished.
5879 * java/awt/event/ItemEvent.java: New file.
5880 * java/awt/Adjustable.java: New file.
5881 * java/awt/event/InputMethodEvent.java: New file.
5882 * java/awt/event/InputEvent.java: Finished.
5883 * java/awt/event/FocusEvent.java: New file.
5884 * java/awt/event/MouseMotionAdapter.java: New file.
5885 * java/awt/event/MouseAdapter.java: New file.
5886 * java/awt/event/KeyAdapter.java: New file.
5887 * java/awt/event/FocusAdapter.java: New file.
5888 * java/awt/event/ContainerAdapter.java: New file.
5889 * java/awt/event/ComponentEvent.java: Finished.
5890 * java/awt/event/AdjustmentEvent.java: New file.
5891 * java/awt/event/ComponentAdapter.java: New file.
5892 * java/awt/event/ActionEvent.java: Finished.
5893 * java/awt/event/MouseMotionListener.java: New file.
5894 * java/awt/event/MouseListener.java: New file.
5895 * java/awt/event/ItemListener.java: New file.
5896 * java/awt/event/InputMethodListener.java: New file.
5897 * java/awt/event/ContainerListener.java: New file.
5898 * java/awt/event/FocusListener.java: New file.
5899 * java/awt/event/ComponentListener.java: New file.
5900 * java/awt/event/AWTEventListener.java: New file.
5901 * java/awt/event/AdjustmentListener.java: New file.
5903 2000-04-08 Anthony Green <green@cygnus.com>
5905 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5906 check when we have to.
5908 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5911 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5914 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5915 inline hasMoreElements.
5917 2000-04-05 Tom Tromey <tromey@cygnus.com>
5919 * configure: Rebuilt.
5920 * configure.in: Recognize --enable-java-awt.
5921 (AWT): New conditional.
5922 * Makefile.in: Rebuilt.
5923 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5925 (libgcjawt_la_SOURCES): New macro.
5926 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5927 (libgcjawt_la_DEPENDENCIES): Likewise.
5928 (libgcjawt_la_LIBADD): Likewise.
5929 (libgcjawt_la_LDFLAGS): Likewise.
5930 (libgcj.zip): Depend on cond_java_awt_source_files
5931 (cond_awt_java_source_files): New macro.
5932 (MOSTLYCLEANFILES): Added awto_files.
5933 (awto_files): New macro. Use where javao_files used.
5934 (nat_headers): Use cond_awt_java_source_files.
5936 2000-04-04 Tom Tromey <tromey@cygnus.com>
5938 * Makefile.in: Rebuilt.
5939 * Makefile.am (awt_java_source_files): Added AWTException.java.
5940 * java/awt/AWTException.java: New file.
5942 2000-04-03 Tom Tromey <tromey@cygnus.com>
5944 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5945 commentary from Alex.
5947 * Makefile.in: Rebuilt.
5948 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5951 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5953 * configure: Rebuilt.
5954 * configure.in: Add --disable-jvmpi.
5955 * include/config.h.in: Rebuilt.
5956 * acconfig.h: Add ENABLE_JVMPI.
5958 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5959 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5960 (_Jv_JVMPI_Notify_THREAD_END): New define.
5961 (_Jv_JVMPI_Notify_THREAD_END): New define.
5962 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5963 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5964 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5966 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5969 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5970 (finish_): Generate JVMPI thread end events.
5971 (run_): Generate JVMPI thread start events.
5972 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5973 preloaded JNI library.
5974 Include JVMPI headers if necessary.
5975 (run): Generate JVMPI thread start events.
5977 * boehm.cc: Define GC_disable and GC_enable.
5978 (_Jv_DisableGC): New function.
5979 (_Jv_EnableGC): New function.
5980 (disable_gc_mutex): Declare.
5981 * nogc.cc (_Jv_DisableGC): New function.
5982 (_Jv_EnableGC): New function.
5984 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5985 (_Jv_JVMPI_Interface): Define.
5986 (jvmpiEnableEvent): New function.
5987 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5989 * include/jvmpi.h: New file.
5991 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5993 * Makefile.in: New #defines and friends for Thread.h.
5994 * Makefile.am: Ditto.
5995 * posix-threads.cc: (struct starter): Remove `object'.
5996 (_Jv_CondWait): Use interruptable condition variables and new
5997 recursive mutexes. New return codes on interrupt or non-ownership
5999 (_Jv_CondNotify): Ditto.
6000 (_Jv_CondNotifyAll): Ditto.
6001 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6002 the target thread by signaling its wait condition.
6003 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6004 not the starter struct. Initialize wait_mutex and wait_cond.
6005 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6007 (_Jv_MutexUnlock): Ditto.
6008 (really_start): Set info->data->thread from pthread_self() to work
6009 around a race condition. Destroy wait_mutex and wait_cond when run()
6011 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6012 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6014 startable_flag: New private field.
6015 (Thread): Initialize `startable_flag'.
6016 (toString): Check for null thread group.
6017 * java/lang/natThread.cc: (struct natThread): New fields
6018 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6019 (class locker): Removed.
6020 (initialize_native): Initialize `join_cond' and `join_mutex'.
6021 (interrupt): Now just calls _Jv_ThreadInterrupt().
6022 (join): Simplified. Just wait on the target thread's join condition.
6023 (finish_): Remove join list code. Unset thread group. Signal
6024 potential joiners by notifying the dying threads join_cond.
6025 (start): Check for illegal restarts.
6026 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6028 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6029 #defines and #ifdefs.
6030 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6031 `wait_mutex', `next'.
6032 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6033 directly mapping to pthread_cond_t.
6034 (struct _Jv_Mutex_t): New recursive implementation.
6035 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6036 _Jv_HaveCondDestroy: Never define this for posix-threads.
6037 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6038 (_Jv_CondNotifyAll): Ditto.
6039 (_Jv_MutexLock): Ditto.
6040 (_Jv_MutexUnlock): Ditto.
6041 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6042 (_Jv_MutexDestroy): Ditto.
6043 (_Jv_CondDestroy): Removed.
6044 (_Jv_PthreadGetMutex): Removed.
6045 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6046 error. Add a FIXME about this.
6047 (_Jv_CondNotifyAll): Ditto.
6048 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6049 _JV_NOT_OWNER on other errors. Add FIXME.
6051 2000-03-26 Tom Tromey <tromey@cygnus.com>
6053 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6055 (call): Don't throw exception here.
6057 2000-03-26 Tom Tromey <tromey@cygnus.com>
6059 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6060 * interpret.cc: Use SIZEOF_VOID_P.
6061 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6062 (_Jv_loadLong): Likewise.
6063 (_Jv_storeDouble): Likewise.
6064 * configure: Rebuilt.
6065 * configure.in: Check size of void*.
6067 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6069 2000-03-26 Hans Boehm <boehm@acm.org>
6071 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6072 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6074 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6075 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6076 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6077 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6079 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6080 (FFI_RAW_SIZE): Likewise.
6081 (_Jv_InterpMethod::ncode): Use them.
6082 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6083 STORED): Define differently on a 64 bit machine.
6084 (continue1): Use ffi_java_raw_call when appropriate.
6086 2000-03-24 Warren Levy <warrenl@cygnus.com>
6088 * java/math/BigInteger.java(divide): Handle the special case when
6089 dividing by 1 and the high bit of the dividend is set.
6090 (setShiftRight): Handle case when count == 0.
6092 2000-03-24 Warren Levy <warrenl@cygnus.com>
6094 * java/awt/Font.java(isBold): Fix syntax error.
6096 * java/awt/Frame.java(postEvent): ditto.
6097 * java/awt/Menu.java(postEvent): ditto.
6098 * java/awt/MenuBar.java(postEvent): ditto.
6099 * java/awt/Toolkit.java(init): Included a stub.
6101 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6103 * java/awt/Event.java: Add all the event type constants.
6104 (Event): Implemented constructors.
6105 (controlDown): Implemented.
6106 (metaDown): Implemented.
6107 (paramString): Stubbed.
6108 (shiftDown): Implemented.
6109 (toString): Implemented.
6110 (translate): Implemented.
6112 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6114 * java/lang/natClass.cc (isInstance): Initialize `this'.
6115 (isAssignableFrom): Initialize `this' and `klass'.
6116 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6117 implemented by any loaded class, so return false.
6118 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6119 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6121 2000-03-19 Warren Levy <warrenl@cygnus.com>
6123 * java/awt/Color.java: Specified java.io for Serializable.
6124 * java/awt/Toolkit.java: Imported java.net.URL.
6126 2000-03-19 Warren Levy <warrenl@cygnus.com>
6128 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6130 2000-03-16 Warren Levy <warrenl@cygnus.com>
6132 * java/awt/Color.java: New file.
6133 * java/awt/Graphics.java: New file.
6134 * java/awt/Image.java: New file.
6135 * java/awt/Paint.java: New file.
6136 * java/awt/PaintContext.java: New file.
6137 * java/awt/Transparency.java: New file.
6138 * java/util/Collection.java: New file.
6139 * java/util/Comparator.java: New file.
6140 * java/util/Iterator.java: New file.
6141 * java/util/List.java: New file.
6142 * java/util/ListIterator.java: New file.
6143 * Makefile.am: Added above new files.
6144 * Makefile.in: Rebuilt.
6146 * java/awt/Font.java (PLAIN): New field.
6148 (ITALIC): New field.
6149 (ROMAN_BASELINE): New field.
6150 (CENTER_BASELINE): New field.
6151 (HANGING_BASELINE): New field.
6155 (pointSize): New field.
6156 (Font): Implemented constructor.
6157 (isPlain): Implemented method.
6158 (isBold): Implemented method.
6159 (isItalic): Implemented method.
6160 (getName): Implemented method.
6161 (getStyle): Implemented method.
6162 (getSize): Implemented method.
6163 (getSize2D): Implemented method.
6165 * java/awt/Frame.java (getFont): Stubbed.
6166 (postEvent): Stubbed.
6168 * java/awt/Menu.java (postEvent): Stubbed.
6169 * java/awt/MenuBar.java (getFont): Stubbed.
6170 (postEvent): Stubbed.
6171 * java/awt/Toolkit.java (getImage): Added abstract method.
6173 2000-03-15 Tom Tromey <tromey@cygnus.com>
6175 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6177 * prims.cc (win32_exception_handler): Reformatted.
6179 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6180 (_Jv_HaveMutexDestroy): Likewise.
6182 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6184 * java/io/natFileDescriptorWin32.cc: New file.
6185 * java/io/natFileWin32.cc: New file.
6186 * java/net/natInetAddress.cc: Added conditional inclusion of
6187 Windows / Winsock headers.
6188 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6189 inclusion of Windows / Winsock headers.
6190 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6191 Windows / Winsock headers.
6192 * include/win32-signal.h: New file.
6193 * include/win32-threads.h: New file.
6194 * win32-threads.cc: New file.
6195 * exception.cc (win32_get_restart_frame): New function.
6196 * prims.cc (win32_exception_handler): New function.
6197 (main_init) Performs Winsock initialisation.
6198 (main_init) Installs exeception handler.
6200 2000-03-14 Tom Tromey <tromey@cygnus.com>
6202 * jni.cc (mangled_name): Fixed assertion.
6203 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6204 turned assert into actual failure.
6206 2000-03-09 Warren Levy <warrenl@cygnus.com>
6208 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6209 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6210 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6212 2000-03-09 Warren Levy <warrenl@cygnus.com>
6214 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6215 * java/security/DigestException.java: New file.
6216 * java/security/GeneralSecurityException.java: New file.
6217 * java/security/InvalidAlgorithmParameterException.java: New file.
6218 * java/security/InvalidKeyException.java: New file.
6219 * java/security/InvalidParameterException.java: New file.
6220 * java/security/Key.java: New file.
6221 * java/security/KeyException.java: New file.
6222 * java/security/KeyPair.java: New file.
6223 * java/security/KeyPairGenerator.java: New file.
6224 * java/security/KeyPairGeneratorSpi.java: New file.
6225 * java/security/NoSuchProviderException.java: New file.
6226 * java/security/PrivateKey.java: New file.
6227 * java/security/Provider.java: New file.
6228 * java/security/PublicKey.java: New file.
6229 * java/security/SecureRandom.java: New file.
6230 * java/security/Security.java: New file.
6231 * java/security/Signature.java: New file.
6232 * java/security/SignatureException.java: New file.
6233 * java/security/interfaces/DSAKey.java: New file.
6234 * java/security/interfaces/DSAParams.java: New file.
6235 * java/security/interfaces/DSAPrivateKey.java: New file.
6236 * java/security/interfaces/DSAPublicKey.java: New file.
6237 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6238 * java/security/interfaces/RSAPrivateKey.java: New file.
6239 * java/security/interfaces/RSAPublicKey.java: New file.
6240 * java/security/spec/AlgorithmParameterSpec.java: New file.
6241 * java/security/spec/InvalidKeySpecException.java: New file.
6242 * java/security/spec/InvalidParameterSpecException.java: New file.
6243 * java/security/spec/KeySpec.java: New file.
6244 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6245 * java/security/spec/RSAPrivateKeySpec.java: New file.
6246 * java/security/spec/RSAPublicKeySpec.java: New file.
6247 * Makefile.am: Added above java.security files.
6248 * Makefile.in: Rebuilt.
6250 * java/security/MessageDigest.java: Rewritten.
6251 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6253 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6257 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6259 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6260 _Jv_PrepareConstantTimeTables.
6261 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6262 classes should have an IDT, so don't return if klass is an array
6265 2000-03-08 Tom Tromey <tromey@cygnus.com>
6267 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6268 of `void' to be created.
6270 2000-03-08 Warren Levy <warrenl@cygnus.com>
6272 * java/math/BigInteger.java(signum): Handle zero properly.
6274 2000-03-07 Tom Tromey <tromey@cygnus.com>
6276 * All files: Updated copyright information.
6277 * COPYING: New file.
6278 * COPYING.LIB: Removed.
6279 * LIBGCJ_LICENSE: We now use GPL + special exception.
6281 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6283 * resolve.cc (_Jv_SearchMethodInClass): New function.
6284 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6285 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6287 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6289 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6290 (struct _Jv_ifaces): New declaration.
6291 JV_CLASS: New macro definition.
6292 (getComponentType): Relocate below isArray() for inlining.
6293 (getModifiers): Declare `inline'.
6294 (getSuperclass): Ditto.
6296 (isPrimitive): Ditto.
6297 (_Jv_IsAssignableFrom): New prototype.
6298 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6300 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6301 Check for JV_STATE_DONE before invoking initializeClass().
6302 (_Jv_PrepareConstantTimeTables): New prototype.
6303 (_Jv_GetInterfaces): Ditto.
6304 (_Jv_GenerateITable): Ditto.
6305 (_Jv_GetMethodString): Ditto.
6306 (_Jv_AppendPartialITable): Ditto.
6307 (_Jv_FindIIndex): Ditto.
6308 depth, ancestors, idt: New class fields.
6310 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6311 inline function `_Jv_IsAssignableFrom'. Use that function.
6312 (isInstance): Declare `inline'.
6313 (initializeClass): Get lock on class before checking `state'. Unlock
6314 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6316 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6317 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6318 class->depth and ancestor table.
6319 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6320 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6321 _Jv_IsAssignableFrom.
6322 (_Jv_CheckArrayStore): Ditto.
6323 (_Jv_LookupInterfaceMethodIdx): New function.
6324 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6325 (_Jv_PrepareConstantTimeTables): New function.
6326 (_Jv_IndexOf): Ditto.
6327 (_Jv_GetInterfaces): Ditto.
6328 (_Jv_GenerateITable): Ditto.
6329 (_Jv_GetMethodString): Ditto.
6330 (_Jv_AppendPartialITable): Ditto.
6331 iindex_mutex, iindex_mutex_initialized: New static fields.
6332 (_Jv_FindIIndex): New function.
6334 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6336 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6337 (_Jv_CheckArrayStore): Ditto.
6338 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6339 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6340 Moved to gcj/array.h.
6341 (_Jv_Realloc): New function.
6343 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6345 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6346 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6347 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6348 JvNewDoubleArray): Implementations moved from prims.cc and
6351 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6353 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6355 2000-03-06 Tom Tromey <tromey@cygnus.com>
6357 * jni.cc (MARK_NONE): New define.
6358 (MARK_USER): Likewise.
6359 (MARK_SYSTEM): Likewise.
6360 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6362 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6363 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6364 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6365 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6367 (call): Use MARK_SYSTEM.
6368 (_Jv_GetJNIEnvNewFrame): New function.
6369 (_Jv_LookupJNIMethod): New function.
6370 (_Jv_JNI_PopSystemFrame): New function.
6371 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6373 2000-03-05 Tom Tromey <tromey@cygnus.com>
6375 Fix for PR libgcj/43:
6376 * include/Makefile.in: Rebuilt.
6377 * include/Makefile.am (include_HEADERS): New define.
6379 2000-03-05 Anthony Green <green@redhat.com>
6381 * gcj/javaprims.h ("Java"): Remove FirstThread.
6383 * configure.host: Fix __NO_MATH_INLNES botch.
6385 * Makefile.in: Rebuilt.
6386 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6387 (gnu/gcj/runtime/FirstThread.h): Moved.
6388 (ordinary_java_source_files): Move FirstThread.java.
6389 * prims.cc: Deal with FirstThread movement.
6391 (_Jv_RunMain): Ditto.
6393 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6394 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6396 2000-03-05 Warren Levy <warrenl@cygnus.com>
6398 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6399 Handle null addresses.
6401 2000-03-04 Anthony Green <green@redhat.com>
6403 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6406 2000-03-04 Anthony Green <green@redhat.com>
6408 * configure: Rebuilt.
6409 * configure.in (ZLIBTESTSPEC): New macro.
6410 (GCTESTSPEC): New macro.
6411 (LIBGCJTESTSPEC): New macro.
6412 * libgcj-test.spec.in: New file.
6414 2000-03-02 Tom Tromey <tromey@cygnus.com>
6416 * include/java-interp.h: Don't include MethodInvocation.h.
6417 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6418 * Makefile.in: Rebuilt.
6419 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6420 (ordinary_java_source_files): Don't mention
6421 MethodInvocation.java.
6422 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6423 * interpret.cc (MethodInvocation::continue1): Removed.
6424 (run): Handle exceptions here.
6425 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6427 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6429 (defineClass2): Removed.
6431 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6433 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6435 (hack_call): Removed.
6437 * java/lang/Class.h (Class): Removed hackRunInitializers,
6439 * java/lang/natClass.cc (hackRunInitializers): Removed.
6440 (initializeClass): Catch exceptions here.
6441 Include ExceptionInInitializerError.h.
6442 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6445 * java/lang/Object.h (Object): Don't mention hack12_6.
6446 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6448 * java/lang/Object.java (hack12_6): Removed.
6450 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6451 (start): Use run_, not run__.
6452 * java/lang/Thread.java (run_): Renamed from run__; old run_
6455 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6456 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6457 (_Jv_JNI_DefineClass): Likewise.
6458 (_Jv_JNI_ThrowNew): Likewise.
6459 (_Jv_JNI_AllocObject): Likewise.
6460 (_Jv_JNI_GetAnyMethodID): Likewise.
6461 (_Jv_JNI_CallAnyMethodV): Likewise.
6462 (_Jv_JNI_CallAnyMethodA): Likewise.
6463 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6464 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6465 (_Jv_JNI_GetAnyFieldID): Likewise.
6466 (_Jv_JNI_NewString): Likewise.
6467 (_Jv_JNI_NewStringUTF): Likewise.
6468 (_Jv_JNI_GetStringUTFChars): Likewise.
6469 (_Jv_JNI_NewObjectArray): Likewise.
6470 (_Jv_JNI_NewPrimitiveArray): Likewise.
6471 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6472 (_Jv_JNI_GetStringRegion): Likewise.
6473 (_Jv_JNI_GetStringUTFRegion): Likewise.
6474 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6475 (_Jv_JNI_MonitorEnter): Likewise.
6476 (_Jv_JNI_MonitorExit): Likewise.
6477 (_Jv_JNI_ToReflectedField): Likewise.
6478 (_Jv_JNI_ToReflectedMethod): Likewise.
6479 (_Jv_JNI_RegisterNatives): Likewise.
6480 (_Jv_JNI_AttachCurrentThread): Likewise.
6481 (_Jv_JNI_DestroyJavaVM): Likewise.
6483 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6485 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6486 error caused by the incorrect casting of a long to an int.
6488 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6490 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6491 SIGSEV caused by use of the wrong instance variable.
6493 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6495 * java/io/File.java (File(String, String)): For dirPath, treat an
6496 empty String the same as `null'.
6498 2000-02-26 Anthony Green <green@cygnus.com>
6500 * gnu/gcj/io/MimeTypes.java: Test for null.
6502 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6503 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6505 * java/net/URLConnection.java: Update copyright notice.
6507 2000-02-25 Tom Tromey <tromey@cygnus.com>
6509 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6512 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6514 * java/net/URLConnection.java (initializeDateFormats): New
6516 (getHeaderFieldDate): Call initializeDateFormats if required.
6517 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6519 Fix for PR libgcj/38.
6521 2000-02-24 Warren Levy <warrenl@cygnus.com>
6523 * java/math/BigInteger.java(ival): Made private.
6527 2000-02-20 Anthony Green <green@cygnus.com>
6529 * Makefile.in: Rebuilt.
6530 * Makefile.am (ordinary_java_source_files): Add
6531 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6533 * scripts/MakeDefaultMimeTypes.java: New file.
6534 * scripts/mime.types: New file.
6535 * scripts/classes.pl: Moved from top level.
6536 * classes.pl: Moved to scripts directory.
6538 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6540 * gnu/gcj/io/MimeTypes.java: New file.
6541 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6543 2000-02-20 Tom Tromey <tromey@cygnus.com>
6545 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6547 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6549 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6552 2000-02-18 Tom Tromey <tromey@cygnus.com>
6554 * include/jvm.h (_Jv_GetJavaVM): Declare.
6555 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6556 (_Jv_MethodBase::get_method): New method.
6557 (_Jv_JNIMethod::set_function): New method.
6558 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6559 (_Jv_JNI_RegisterNatives): New function.
6560 (_Jv_JNIFunctions): Updated for new functions.
6561 (_Jv_GetJavaVM): New function.
6562 (_Jv_JNI_GetJavaVM): Use it. Now static.
6563 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6564 is already a Java thread but does not have a JNIEnv yet.
6566 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6569 2000-02-17 Tom Tromey <tromey@cygnus.com>
6571 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6574 2000-02-16 Tom Tromey <tromey@cygnus.com>
6576 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6578 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6579 (_Jv_JNI_NewObject): Likewise.
6580 (_Jv_JNI_NewObjectA): Likewise.
6581 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6582 as "return" type to _Jv_CallAnyMethodA.
6583 (_Jv_JNI_CallAnyMethodA): Likewise.
6584 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6586 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6589 2000-02-15 Tom Tromey <tromey@cygnus.com>
6591 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6593 (init_cif): Added `rtype_p' argument.
6594 * include/java-interp.h (class _Jv_MethodBase): Added
6596 (class _Jv_InterpMethod): Removed args_raw_size.
6597 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6598 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6599 class pointer as well as the ordinary arguments.
6601 * jni.cc (mangled_name): Skip leading `(' in signature.
6603 * jni.cc (add_char): Added missing `else'.
6605 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6608 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6612 * java/lang/natRuntime.cc (_load): Include library path with
6615 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6618 * java/lang/natThread.cc (dumpStack): Removed.
6619 * java/lang/Thread.java (dumpStack): Implemented.
6621 2000-02-15 Tom Tromey <tromey@cygnus.com>
6623 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6624 with `lib' for loadLibrary. Fixes PR gcj/150.
6626 2000-02-14 Warren Levy <warrenl@cygnus.com>
6628 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6630 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6634 (modPow): Rewritten to not use the naive, slow, brute force approach.
6635 (isProbablePrime): Implemented.
6636 (testBit): Implemented.
6637 (flipBit): Implemented.
6638 (getLowestSetBit): Implemented.
6640 2000-02-16 Anthony Green <green@redhat.com>
6642 * configure.host: Use the same options for i386 and i486 as we do
6645 2000-02-12 Tom Tromey <tromey@cygnus.com>
6647 * java/io/File.java (createTempFile): Use low bits from counter,
6650 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6652 * THANKS: More thanks.
6654 2000-02-11 Tom Tromey <tromey@cygnus.com>
6656 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6657 astore instruction. From Hans Boehm.
6659 2000-02-11 Warren Levy <warrenl@cygnus.com>
6661 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6662 (BigInteger(String)): New constructor.
6663 (not): Rewritten using version from Kawa's BitOps class.
6664 (valueOf): New private methods from Kawa's BitOps class.
6671 (andNot): Implemented.
6672 (clearBit): Implemented.
6673 (setBit): Implemented.
6674 (bitCount): Implemented.
6675 (toByteArray): Implemented.
6677 2000-02-11 Tom Tromey <tromey@cygnus.com>
6679 * java/io/File.java (nextValue): Now synchronized.
6681 2000-02-10 Tom Tromey <tromey@cygnus.com>
6683 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6684 * java/io/FileDescriptor.java (EXCL): New static field.
6685 * java/io/File.java (tmpdir): New static field.
6686 (createTempFile): New method.
6687 (nextValue): New method.
6688 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6691 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6692 (jboolean): Declare as an attributed int, not a bool.
6693 (_Jv_func): Declare differently for C.
6695 * gnu/gcj/jni/natNativeThread.cc: New file.
6696 * gnu/gcj/jni/NativeThread.java: New file.
6697 * java/lang/Thread.java (data): Now a RawData.
6698 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6700 * Makefile.in: Rebuilt.
6701 * Makefile.am (java/lang/Thread.h): New target.
6702 (ordinary_java_source_files): Added NativeThread.java.
6703 (nat_source_files): Added natNativeThread.cc.
6704 * java/lang/natThread.cc: Include <jni.h>
6705 (struct natThread): Added `jni_env' field.
6706 (_Jv_GetCurrentJNIEnv): New function.
6707 (_Jv_SetCurrentJNIEnv): Likewise.
6708 (initialize_native): Initialize jni_env.
6710 * jni.cc (ThreadGroupClass): New define.
6711 (_Jv_JNI_InvokeFunctions): New structure.
6712 (JNI_GetCreatedJavaVMs): New function.
6713 (the_vm): New global.
6714 (JNI_GetDefaultJavaVMInitArgs): New function.
6715 Include NativeThread.h.
6716 (NativeThreadClass): New define.
6717 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6718 (_Jv_JNI_DestroyJavaVM): New function.
6719 (_Jv_JNI_AttachCurrentThread): New function.
6720 (_Jv_JNI_DetachCurrentThread): New function.
6721 (_Jv_JNI_GetEnv): New function.
6722 (JNI_CreateJavaVM): New function.
6723 (_Jv_JNI_GetJavaVM): New function.
6724 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6725 * include/jni.h (JavaVMAttachArgs): New structure.
6726 (JNI_EDETACHED): New define.
6727 (JNI_EVERSION): Likewise.
6728 (JavaVM): Define properly.
6729 (struct JNIInvokeInterface): New structure.
6730 (class _Jv_JavaVM): New class.
6731 (JNI_OnLoad, JNI_OnUnload): Declare.
6732 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6733 JNI_GetCreatedJavaVMs): Declare.
6734 (JavaVMInitArgs): New typedef.
6735 (JavaVMOption): Likewise.
6736 (JNI_ERR): New define.
6739 2000-02-10 Andrew Haley <aph@cygnus.com>
6741 * interpret.cc: Don't include fdlibm.h.
6742 Replace #if with #ifdef throughout.
6743 Declare extern __ieee754_fmod.
6744 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6746 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6747 Search class hierarchy for superclass vtable.
6749 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6750 off the end of a pointer list.
6752 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6756 2000-02-09 Tom Tromey <tromey@cygnus.com>
6758 * java/lang/natRuntime.cc (_load): Call add_library.
6759 (loadLibraryInternal): Likewise.
6761 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6762 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6763 (Output_iconv::finalize): Likewise.
6765 2000-02-08 Tom Tromey <tromey@cygnus.com>
6767 * java/util/Properties.java (setProperty): New method.
6768 (store): New method.
6770 2000-02-07 Tom Tromey <tromey@cygnus.com>
6772 * java/lang/Runtime.java (_load): Declare.
6773 (load, loadLibrary): Wrote in terms of _load.
6774 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6776 (loadLibrary): Likewise.
6778 (_load): New method.
6779 (loadLibrary, load): Removed.
6781 * jni.cc (ThrowableClass): New define.
6782 (_Jv_JNI_Throw): Check argument.
6783 (_Jv_JNI_ThrowNew): Likewise.
6784 (wrap_value): Don't wrap object if it is NULL.
6785 (_Jv_JNI_DefineClass): Use wrap_value.
6786 (_Jv_JNI_FindClass): Likewise.
6787 (_Jv_JNI_GetSuperclass): Likewise.
6788 (_Jv_JNI_ExceptionOccurred): Likewise.
6789 (_Jv_JNI_AllocObject): Likewise.
6790 (_Jv_JNI_GetObjectClass): Likewise.
6791 (_Jv_JNI_NewString): Likewise.
6792 (_Jv_JNI_NewStringUTF): Likewise.
6793 (_Jv_JNI_NewObjectArray): Likewise.
6794 (_Jv_JNI_GetObjectArrayElement): Likewise.
6795 (_Jv_JNI_NewPrimitiveArray): Likewise.
6796 (_Jv_JNI_ToReflectedField): Likewise.
6797 (_Jv_JNI_ToReflectedMethod): Likewise.
6798 (_Jv_JNI_AllocObject): Check argument.
6799 (_Jv_JNI_NewObjectV): Likewise.
6800 (_Jv_JNI_NewObject): Likewise.
6801 (_Jv_JNI_NewObjectA): Likewise.
6802 (_Jv_JNI_GetObjectClass): Likewise.
6803 (_Jv_JNI_GetField): Likewise.
6804 (_Jv_JNI_SetField): Likewise.
6806 * interpret.cc (PUSHL): Don't use expression statement.
6811 * jni.cc (add_char): Conditional on INTERPRETER.
6812 (mangled_name): Likewise.
6814 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6816 (class _Jv_JNIMethod): Likewise.
6818 2000-02-04 Warren Levy <warrenl@cygnus.com>
6820 * Makefile.am: Added MPN.java and BigInteger.java.
6821 * Makefile.in: Rebuilt.
6822 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6824 * java/math/BigInteger.java: New file. Based primarily on
6825 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6827 2000-02-04 Tom Tromey <tromey@cygnus.com>
6829 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6831 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6832 if the method is native.
6833 * resolve.cc (ncode): Don't handle native methods.
6834 (_Jv_JNIMethod::ncode): New method.
6835 (_Jv_PrepareClass): Handle native methods.
6836 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6837 Include AbstractMethodError.h.
6838 (add_char): New function.
6839 (mangled_name): Likewise.
6840 * include/java-interp.h (class _Jv_JNIMethod): New class.
6841 (class _Jv_MethodBase): New class.
6842 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6843 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6846 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6847 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6848 libraries): New globals.
6849 (add_library): New function.
6850 (_Jv_FindSymbolInExecutable): New function.
6852 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6855 2000-02-04 Andrew Haley <aph@cygnus.com>
6857 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6858 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6859 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6860 printStackTrace to printRawStackTrace.
6862 2000-02-03 Tom Tromey <tromey@cygnus.com>
6864 * java/util/Calendar.java (toString): New method.
6865 * java/util/SimpleTimeZone.java (clone): New method.
6866 (toString): New method.
6867 * java/util/TimeZone.java (clone): New method.
6868 * java/text/SimpleDateFormat.java (clone): New method.
6869 * java/text/NumberFormat.java (clone): New method.
6870 (equals): New method.
6871 * java/text/Format.java (clone): New method.
6872 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6874 (clone): New method.
6875 * java/text/DateFormat.java (clone): New method.
6876 * java/text/Collator.java (clone): New method.
6878 2000-02-03 Tom Tromey <tromey@cygnus.com>
6880 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6883 2000-02-01 Tom Tromey <tromey@cygnus.com>
6885 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6886 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6887 constructing the closure if the function is native.
6888 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6889 a template function, #if'd out, or static.
6890 Include <java-interp.h>.
6892 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6894 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6896 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6897 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6899 (wrap_value): New function.
6900 (_Jv_JNI_CallAnyMethodV): Use it.
6901 (_Jv_JNI_CallAnyMethodA): Likewise.
6902 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6903 (_Jv_JNI_GetStaticField): Likewise.
6905 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6906 (_Jv_JNI_GetStaticField): Likewise.
6908 2000-01-31 Tom Tromey <tromey@cygnus.com>
6910 * prims.cc (_Jv_MallocUnchecked): New function.
6911 (main_init): Call _Jv_JNI_Init.
6912 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6913 (_Jv_JNI_Init): Declare.
6914 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6916 (_Jv_JNI_NewGlobalRef): New function.
6917 (_Jv_JNI_DeleteGlobalRef): New function.
6918 (_Jv_JNI_DeleteLocalRef): New function.
6919 (_Jv_JNI_conversion_call): Initialize and clear local reference
6921 (_Jv_JNI_NewLocalRef): New function.
6922 (struct _Jv_JNI_LocalFrame): New structure.
6923 (_Jv_JNI_PushLocalFrame): New function.
6924 (_Jv_JNI_EnsureLocalCapacity): New function.
6925 (FRAME_SIZE): New define.
6926 (_Jv_JNI_GetStringChars): Mark string, not characters.
6927 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6928 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6929 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6931 (_Jv_JNI_DefineClass): Make return value a local ref.
6932 (_Jv_JNI_FindClass): Likewise.
6933 (_Jv_JNI_GetSuperclass): Likewise.
6934 (_Jv_JNI_ExceptionOccurred): Likewise.
6935 (_Jv_JNI_AllocObject): Likewise.
6936 (_Jv_JNI_GetObjectClass): Likewise.
6937 (_Jv_JNI_CallAnyMethodV): Likewise.
6938 (_Jv_JNI_NewString): Likewise.
6939 (_Jv_JNI_NewStringUTF): Likewise.
6940 (_Jv_JNI_NewObjectArray): Likewise.
6941 (_Jv_JNI_GetObjectArrayElement): Likewise.
6942 (_Jv_JNI_ToReflectedField): Likewise.
6943 (_Jv_JNI_ToReflectedMethod): Likewise.
6944 (_Jv_JNIFunctions): Updated table for new functions.
6945 (_Jv_JNI_Init): New function.
6946 (mark_for_gc): Wrote.
6947 (unmark_for_gc): Wrote.
6948 * include/jni.h (struct JNINativeInterface): Removed name from
6949 PopLocalFrame parameter.
6950 (class _Jv_JNIEnv): Added `locals' field.
6952 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6954 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6957 2000-01-30 Tom Tromey <tromey@cygnus.com>
6959 * include/config.h.in: Rebuilt.
6960 * acconfig.h (HAVE_ICONV): Define.
6961 * configure: Rebuilt.
6962 * configure.in: Check for `iconv' function.
6963 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6964 no specific encoder exists.
6965 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6966 no specific encoder exists.
6967 * Makefile.in: Rebuilt.
6968 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6970 (nat_source_files): Added natIconv.cc.
6971 * gnu/gcj/convert/natIconv.cc: New file.
6972 * gnu/gcj/convert/Input_iconv.java: New file.
6973 * gnu/gcj/convert/Output_iconv.java: New file.
6975 2000-01-28 Tom Tromey <tromey@cygnus.com>
6977 * Makefile.in: Rebuilt.
6978 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6980 2000-01-26 Tom Tromey <tromey@cygnus.com>
6982 * gcj/method.h (JvNumMethods): Moved from Class.h.
6983 (JvGetFirstMethod): Likewise.
6984 * java/lang/Class.h (Object): Updated decl of
6985 _Jv_JNI_ToReflectedField.
6986 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6987 * Makefile.in: Rebuilt.
6988 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6989 argument of _Jv_JNI_ToReflectedField.
6990 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6992 (java/lang/reflect/Method.h): Likewise.
6993 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6995 (jweak): New typedef.
6996 (struct JNINativeInterface): Correctly declare remaining entries.
6997 * jni.cc: Include Class.h, ClassLoader.h.
6998 (_Jv_JNI_FindClass): New function.
6999 (_Jv_JNI_DefineClass): New function.
7000 (_Jv_JNI_conversion_call): New function.
7001 (_Jv_JNI_FindClass): Use current class loader to find class.
7002 (_Jv_JNI_ExceptionCheck): New function.
7003 (_Jv_JNI_FromReflectedField): Now static.
7004 (MethodClass): New define.
7005 (_Jv_JNI_FromReflectedMethod): New function.
7006 (_Jv_JNI_ToReflectedMethod): Likewise.
7008 (_Jv_JNI_IsAssignableFrom): Renamed.
7009 (_Jv_JNI_GetStringRegion): New function.
7010 Include StringIndexOutOfBoundsException.h.
7011 (_Jv_JNI_GetStringUTFRegion): New function.
7012 (_Jv_JNIFunctions): Updated for new functions.
7013 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7014 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7015 (_Jv_JNI_GetStringCritical): New function.
7016 (_Jv_JNI_ReleaseStringCritical): Likewise.
7017 (get_throwable): Removed.
7018 (GCJ_JV_JNIENV_FRIEND): Removed.
7019 (__GCJ_JNI_IMPL__): Define.
7022 * resolve.cc (get_ffi_type_from_signature): Handle case where
7025 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7027 * interpret.cc (run): Don't call println.
7028 Don't include PrintStream.h.
7030 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7031 nameIndex. Use "jint" as type for boffset.
7032 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7034 (Class): Likewise. Also changed type of method_count,
7035 vtable_method_count, size_in_bytes, field_count,
7036 static_field_count, interface_count.
7037 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7040 2000-01-21 Tom Tromey <tromey@cygnus.com>
7042 * java/lang/reflect/natConstructor.cc (newInstance): Use
7044 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7045 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7046 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7049 (invoke): Use _Jv_CallAnyMethodA.
7051 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7052 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7054 (struct _Jv_Method): Added getNextMethod method.
7055 (JvNumMethods): New function.
7056 (JvGetFirstMethod): Likewise.
7057 * gcj/field.h (JvGetFirstStaticField): New function.
7058 (JvNumStaticFields): Likewise.
7059 (getNextField): Renamed from getNextInstanceField.
7060 (struct _Jv_Field): New method getClass.
7061 * jni.cc: Wrote many new functions.
7062 * include/jni.h (JNI_TRUE): Define.
7063 (JNI_FALSE): Likewise.
7064 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7065 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7066 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7067 (jfieldID, jmethodID): Likewise.
7068 (JNI_COMMIT, JNI_ABORT): New defines.
7069 (JNINativeMethod): New struct.
7070 (struct JNINativeInterface): Correctly declared more entries.
7071 (class _Jv_JNIEnv): Added `ex' member.
7072 (JNI_VERSION_1_1): New define.
7073 (JNI_VERSION_1_2): Likewise.
7075 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7076 getNextInstanceField.
7078 2000-01-20 Tom Tromey <tromey@cygnus.com>
7080 * resolve.cc (StringClass): Removed.
7081 * defineclass.cc (StringClass): Removed.
7083 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7087 2000-01-19 Tom Tromey <tromey@cygnus.com>
7089 * interpret.cc (PC_REGISTER_ASM): Removed.
7091 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7092 From Bryce McKinlay.
7094 * All files: Updated copyright to reflect Cygnus purchase.
7096 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7098 * configure: Rebuilt.
7099 * configure.in: Recognize --disable-interpreter.
7101 2000-01-18 Andrew Haley <aph@cygnus.com>
7103 * name-finder.cc (lookup): Check for dladdr function.
7104 acconfig.h (HAVE_DLADDR): Add.
7105 configure.in: Check for HAVE_DLADDR
7107 include/config.h.in: Rebuilt.
7109 2000-01-17 Andrew Haley <aph@cygnus.com>
7111 * prims.cc (_Jv_RunMain): Set the name of this executable.
7113 2000-01-17 Tom Tromey <tromey@cygnus.com>
7115 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7116 when backtrace can't be computed.
7118 * configure: Rebuilt.
7119 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7121 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7122 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7123 (_Jv_FindClassInCache): Likewise.
7124 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7125 (findSystemClass): Try to load class from compiled module.
7127 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7128 (loadLibrary): Likewise.
7129 (lt_preloaded_symbols): Define.
7130 (loadLibraryInternal): New method.
7131 * include/config.h.in: Rebuilt.
7132 * acconfig.h (USE_LTDL): Added.
7133 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7134 (INCLUDES): Added $(INCLTDL).
7135 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7136 (libgcj_la_LIBADD): Likewise.
7137 * aclocal.m4, configure: Rebuilt.
7138 * configure.in: Added libltdl support.
7140 2000-01-15 Tom Tromey <tromey@cygnus.com>
7142 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7144 2000-01-14 Andrew Haley <aph@cygnus.com>
7146 * java/lang/natThrowable.cc: New file.
7148 * java/lang/Throwable.java (fillInStackTrace): Make native.
7149 (printStackTrace): Call native method to do this.
7150 (Throwable): Call fillInStackTrace.
7151 (stackTrace): New variable.
7153 * include/jvm.h: Add _Jv_ThisExecutable functions.
7155 * prims.cc: (_Jv_execName): New variable.
7156 (catch_segv): Call fillInStackTrace.
7158 (_Jv_ThisExecutable): New functions.
7159 (JvRunMain): Set the name of this executable.
7161 * Makefile.am: Add java/lang/natThrowable.cc.
7163 * Makefile.in: Rebuilt.
7165 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7167 * configure.in: Force link with __frame_state_for in
7168 FORCELIBGCCSPEC. Add new checks for backtrace.
7169 * include/config.h.in: Rebuilt.
7171 * name-finder.cc: New file.
7172 * include/name-finder.h: New file.
7174 2000-01-16 Anthony Green <green@cygnus.com>
7176 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7179 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7181 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7183 2000-01-13 Tom Tromey <tromey@cygnus.com>
7185 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7186 not system loader, as initiating loader.
7188 2000-01-11 Tom Tromey <tromey@cygnus.com>
7190 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7191 HP/UX. From David Scott Urban.
7193 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7195 * java/lang/natMath.cc (pow): Cast args to `double', not
7198 (IEEEremainder): Likewise.
7199 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7200 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7202 2000-01-09 Anthony Green <green@cygnus.com>
7204 * java/lang/natString.cc (init): Test for overflow condition
7205 during out of bounds check.
7206 (getChars): Throw StringIndexOutOfBoundsException, not
7207 ArrayIndexOutOfBoundsException.
7209 (regionMatches): Obey case option during string comparison.
7211 * configure.host (ligcj_interpreter): New variable. Enable
7212 interpreter by default on IA-32.
7213 * configure.in: Examine libgcj_interpreter.
7214 * configure: Rebuilt.
7216 2000-01-07 Tom Tromey <tromey@cygnus.com>
7218 * mauve-libgcj: Don't disable ClassTest.
7220 * java/lang/natClass.cc (getClasses): Wrote.
7222 2000-01-06 Tom Tromey <tromey@cygnus.com>
7224 * java/lang/natClass.cc (_getConstructors): Correctly check
7225 whether method name is the init name.
7226 (getMethod): Look at accflags on method in `klass', not `this'.
7228 2000-01-05 Tom Tromey <tromey@cygnus.com>
7230 * java/lang/natClass.cc (getMethod): Compute offset relative to
7231 `klass's methods table, not `this's table.
7233 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7234 In unwrapping/widening case, check whether `k' is null, not
7235 whether it is primitive. Initialize `num' from `argelts', not
7236 `paramelts'. Correct create and pass arguments to ffi_call.
7237 Don't let presence of `this' argument affect index used to look in
7239 (COPY): Set appropriate element in `values' vector.
7241 * java/lang/natClass.cc: Include <gcj/method.h>.
7243 * java/lang/Class.h (_getMethods): Correctly declare as private,
7246 * java/lang/Class.h (_getMethods): Declare.
7247 * java/lang/Class.java (_getMethods): Declare.
7248 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7249 (getDeclaredClasses): Always return empty array.
7250 (_getMethods): New method.
7251 (getMethods): Wrote.
7252 (getDeclaredMethod): Return `rmethod'.
7253 (finit_name): New global.
7254 (getDeclaredMethods): Check for finit_name.
7255 (_getMethods): Likewise.
7256 (getMethod): Only return public methods.
7258 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7259 jboolean and select correct ffi type on that basis.
7260 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7261 Constructor call always has `void' return type.
7263 2000-01-04 Tom Tromey <tromey@cygnus.com>
7265 * java/lang/Class.h (getSignature): Updated.
7266 * java/lang/Class.java (getSignature): Updated.
7267 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7269 (getConstructor): Ensure constructor is public.
7270 (_getConstructors): Check for public-ness of constructor when
7271 `declared' is false, not when it is true.
7273 2000-01-04 Warren Levy <warrenl@cygnus.com>
7275 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7277 (receive): Set the sender's address in the DatagramPacket.
7279 2000-01-04 Tom Tromey <tromey@cygnus.com>
7281 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7282 declaring class as return_type argument to
7283 _Jv_CallNonvirtualMethodA.
7284 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7285 constructor case, create object and use it as `this' argument.
7286 * java/lang/Class.h (_getConstructors): Declare.
7287 (_getFields): Declare.
7288 * java/lang/Class.java (getConstructors): Wrote.
7289 (_getConstructors): New native method.
7290 (getDeclaredConstructors): Wrote.
7291 (_getFields): Declare new native method.
7292 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7294 (getMethod): Work correctly when class is primitive.
7295 (getDeclaredMethods): Likewise. Compute offset using `method',
7297 (getDeclaredMethod): Likewise.
7298 (getConstructor): Wrote.
7299 (ConstructorClass): New define.
7300 (getDeclaredConstructor): Wrote.
7301 (_getConstructors): New method.
7302 (_getFields): New method.
7305 * Makefile.in: Rebuilt.
7306 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7308 * prims.cc: Remove `#pragma implementation'.
7309 * gcj/array.h: Remove `#pragma interface'.
7311 * prims.cc (_Jv_equaln): New function.
7312 * java/lang/Class.java (getSignature): Declare.
7313 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7314 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7316 (getSignature): New method.
7317 (getDeclaredMethod): Wrote.
7319 Include StringBuffer.h.
7320 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7321 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7323 (getSignature): Declare.
7324 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7325 (_Jv_equaln): Declare.
7326 (_Jv_CallNonvirtualMethodA): Declare.
7327 * Makefile.in: Rebuilt.
7328 * Makefile.am (nat_source_files): Added natConstructor.cc.
7329 (java/lang/reflect/Constructor.h): New target.
7330 * java/lang/reflect/natConstructor.cc: New file.
7331 * java/lang/reflect/Constructor.java (newInstance): Now native.
7332 (declaringClass): Renamed from decl_class.
7333 (offset): Renamed from index.
7334 (getType): New native method.
7335 (getModifiers): Now native.
7336 (getParameterTypes): Call getType if required.
7337 (hashCode): Include hash code from declaring class.
7338 (modifiers): Removed.
7339 (toString): Call getType if required.
7340 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7341 * java/lang/reflect/natMethod.cc (hack_call): New method.
7342 Removed `#if 0' around FFI code.
7343 Include <gnu/gcj/RawData.h>.
7344 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7345 IllegalArgumentException when argument object and class disagree.
7346 (_Jv_GetTypesFromSignature): New function.
7348 (ObjectClass): New define.
7349 (_Jv_CallNonvirtualMethodA): New function.
7350 * java/lang/reflect/Method.java (hack_trampoline): New method.
7351 (hack_call): New native method.