1 2001-08-17 Mark J Roberts <mjr@anarcast.net>
3 * java/math/BigInteger.java (randBytes): New method.
4 (BigInteger(int,Random)): Use randBytes.
6 2001-08-17 Tom Tromey <tromey@redhat.com>
8 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
10 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
12 * BigInteger.java: fix right shifts by nonzero multiples of 32.
14 2001-08-15 Tom Tromey <tromey@redhat.com>
16 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
17 (local_ref_table, global_ref_table): Now IdentityHashMap.
18 (_Jv_JNI_Init): Updated for new types.
19 (mark_for_gc): Likewise.
20 (unmark_for_gc): Likewise.
21 * gcj/javaprims.h: Rebuilt class list.
22 * Makefile.in: Rebuilt.
23 * Makefile.am (core_java_source_files): Added new file.
24 * java/util/IdentityHashMap.java: New file.
26 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
29 2001-08-09 Tom Tromey <tromey@redhat.com>
31 * java/awt/image/SampleModel.java (getPixel): Set correct array
32 element. From Chris Meyer.
34 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
36 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
37 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
39 2001-08-06 Tom Tromey <tromey@redhat.com>
41 * java/io/InputStreamReader.java (refill): Only call refill on
42 BufferedInputStream when appropriate constraints are met.
44 2001-08-05 Tom Tromey <tromey@redhat.com>
46 * java/io/StringWriter.java: Merged with Classpath.
47 * java/io/InputStream.java: Merged with Classpath.
48 * java/io/OutputStream.java: Merged with Classpath.
49 * java/io/PushbackInputStream.java: Merged with Classpath.
50 * java/io/CharArrayReader.java: Merged with Classpath.
51 * java/io/CharArrayWriter.java: Merged with Classpath.
53 2001-08-02 Tom Tromey <tromey@redhat.com>
55 * prims.cc (JNI_OnLoad): Don't declare.
56 (_JNI_OnLoad): Don't define.
57 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
59 2001-08-02 Tom Tromey <tromey@redhat.com>
61 * java/io/RandomAccessFile.java (seek): Let seek go past end of
63 (skipBytes): Don't fail if seeking past end of file.
64 * java/io/FileInputStream.java (skip): Don't fail if seeking past
66 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
68 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
70 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
72 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
74 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
76 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
77 to initialize global_ref_table/local_ref_table.
79 2001-08-02 Tom Tromey <tromey@redhat.com>
82 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
85 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
87 * include/posix.h (_POSIX_PII_SOCKET): Define.
88 * configure.in (HAVE_SOCKLEN_T): Define.
89 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
91 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
92 (java::net::PlainSocketImpl::accept): Use it.
93 Fixes PRs libgcj/3694, libgcj/3696.
95 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
96 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
97 * configure, include/config.h.in: Regenerate.
98 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
100 (java::net::PlainDatagramSocketImpl::setOption): Guard against
101 missing IPV6_MULTICAST_IF.
102 Fixes PR libgcj/3694.
104 2001-08-01 Jeff Sturm <jsturm@one-point.com>
106 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
108 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
110 * Makefile.in: Rebuilt.
111 * Makefile.am (GCJLINK): Added --tag=GCJ.
114 2001-07-30 Tom Tromey <tromey@redhat.com>
116 * java/util/Date.java: Re-merged with Classpath.
118 2001-07-30 Jeff Sturm <jsturm@one-point.com>
120 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
121 (_Jv_bind): New static function.
122 (bind): Use _Jv_bind.
123 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
124 (_Jv_bind, _Jv_connect): New static functions.
125 (bind): Use _Jv_bind.
126 (connect): Use _Jv_connect.
128 2001-07-30 Tom Tromey <tromey@redhat.com>
129 Corey Minyard <minyard@acm.org>
131 * gnu/gcj/convert/natIconv.cc (done): New methods.
132 * gnu/gcj/convert/Output_iconv.java (done): New method.
133 * gnu/gcj/convert/Input_iconv.java (done): New method.
134 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
136 (getDefaultEncodingClass): Removed.
137 (getDefaultEncoder): Use getEncoder.
139 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
141 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
143 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
145 (getDefaultDecodingClass): Removed.
146 (getDefaultDecoder): Use getDecoder.
147 (getDecoder): Look up decoder in cache.
149 * java/lang/natString.cc (init): Call `done' on converter.
150 (getBytes): Likewise.
152 2001-07-30 Tom Tromey <tromey@redhat.com>
154 * java/lang/Integer.java: Merged with Classpath.
156 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
158 * java/util/GregorianCalendar.java (GregorianCalendar): Call
159 setTimeInMillis() to set the default/current time.
161 2001-07-29 Mark Wielaard <mark@klomp.org>
163 * HACKING: add description on updating namespace
165 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
167 * java/util/Calendar.java (set): Never recompute fields here. They
168 will already be set if someone set time explicitly, and it can cause
169 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
170 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
171 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
173 * java/text/SimpleDateFormat.java (defaultCentury): New field.
174 (readObject): Call set2DigitYearStart if appropriate so that
175 defaultCentury is calculated.
176 (SimpleDateFormat): Don't bother clearing calendar here. Call
177 computeCenturyStart().
178 (set2DigitYearStart): Calculate and set defaultCentury.
179 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
181 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
182 2 numeric digits, use the 80-20 heuristic to parse the value into a
183 default century based on defaultCenturyStart.
184 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
186 2001-07-25 Tom Tromey <tromey@redhat.com>
188 * Makefile.in: Rebuilt.
189 * Makefile.am (libgcj.jar): Correctly fail when bytecode
192 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
194 * prims.cc (_JNI_OnLoad): New function.
195 (JNI_OnLoad): Use it.
196 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
198 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
200 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
201 Makefile.in: Regenerate.
203 2001-07-24 Tom Tromey <tromey@redhat.com>
205 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
208 2001-07-23 Tom Tromey <tromey@redhat.com>
210 * gcj/javaprims.h: Rebuilt class list.
211 * Makefile.in: Rebuilt.
212 * Makefile.am (core_java_source_files): Added VMClassLoader.
213 * java/lang/VMClassLoader.java: New file.
214 * java/lang/Boolean.java: Merged with Classpath.
215 * java/lang/Byte.java: Merged with Classpath.
216 * java/lang/Integer.java: Merged with Classpath.
217 * java/lang/Long.java: Merged with Classpath.
218 * java/lang/Number.java: Merged with Classpath.
219 * java/lang/Short.java: Merged with Classpath.
221 2001-07-22 Jeff Sturm <jsturm@one-point.com>
223 * configure.host: Enable hash synchronization for alpha*-*.
224 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
226 * java/lang/natObject.cc (compare_and_swap, release_set,
227 compare_and_swap_release): Added inline functions for alpha.
229 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
231 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
232 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
233 back to old RFC 2133 variants if missing.
235 2001-07-18 Tom Tromey <tromey@redhat.com>
237 * java/io/natFileWin32.cc (_access): Renamed.
239 * java/io/natFile.cc (_access): Renamed.
241 * java/io/File.java (access, stat): Add leading `_' to name.
244 2001-07-18 Tom Tromey <tromey@redhat.com>
247 * libgcj.spec.in (*lib): Added LIBICONV.
248 * configure: Rebuilt.
249 * configure.in: Call AM_ICONV. Don't check for iconv function.
250 Add parameters to JV_HASH_SYNCHRONIZATION define.
251 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
253 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
255 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
256 not by setting its size field.
258 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
260 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
263 2001-07-12 Tom Tromey <tromey@redhat.com>
264 David Brownell <david-b@pacbell.net>
266 Fix for PR libgcj/3426:
267 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
269 (read): Throw exception if character conversion fails.
270 * java/io/BufferedInputStream.java (refill): Now package-private.
271 * java/io/InputStreamReader.java (ready): Simplified.
272 (refill): New method.
275 2001-07-12 Tom Tromey <tromey@redhat.com>
277 Report from Henner Zeller:
278 * java/io/FileOutputStream.java (FileOutputStream): Throw
279 FileNotFoundException, not IOException.
281 2001-07-10 Anthony Green <green@redhat.com>
283 * Makefile.in: Rebuilt.
284 * Makefile.am: Add new files.
285 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
286 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
287 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
288 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
289 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
290 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
291 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
292 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
293 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
294 org/w3c/dom/ranges/DocumentRange.java,
295 org/w3c/dom/ranges/Range.java,
296 org/w3c/dom/ranges/RangeException.java,
297 org/w3c/dom/traversal/DocumentTraversal.java,
298 org/w3c/dom/traversal/NodeFilter.java,
299 org/w3c/dom/traversal/NodeIterator.java,
300 org/w3c/dom/traversal/TreeWalker.java,
301 org/xml/sax/ext/DeclHandler.java,
302 org/xml/sax/ext/LexicalHandler.java,
303 org/xml/sax/helpers/AttributeListImpl.java,
304 org/xml/sax/helpers/AttributesImpl.java,
305 org/xml/sax/helpers/DefaultHandler.java,
306 org/xml/sax/helpers/LocatorImpl.java,
307 org/xml/sax/helpers/NamespaceSupport.java,
308 org/xml/sax/helpers/ParserAdapter.java,
309 org/xml/sax/helpers/ParserFactory.java,
310 org/xml/sax/helpers/XMLFilterImpl.java,
311 org/xml/sax/helpers/XMLReaderAdapter.java,
312 org/xml/sax/helpers/XMLReaderFactory.java,
313 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
314 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
315 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
316 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
317 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
318 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
319 org/xml/sax/SAXNotRecognizedException.java,
320 org/xml/sax/SAXNotSupportedException.java,
321 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
322 org/xml/sax/XMLReader.java: New files.
324 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
326 * Makefile.am: Added `java/lang/ThreadLocal.java'.
327 * Makefile.in: Regenerate.
328 * java/lang/ThreadLocal.java: Initial import.
330 2001-07-07 Jeff Sturm <jsturm@one-point.com>
332 * Makefile.am (libgcj.jar): Don't recursively make
333 built_java_source_files. Avoid long command lines.
334 Don't change to $(srcdir) to invoke javac.
335 (libgcj.la, libgcjx.la); Avoid long command lines.
336 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
337 * Makefile.in: Rebuilt.
339 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
341 * include/i386-signal.h: Don't do anything with unsigned divide
342 overflow except throw an exception.
344 2001-07-05 Tom Tromey <tromey@redhat.com>
347 * java/lang/Class.h (Class(void)): Now private. Removed
348 implementation. From dmorsberger@sensysdl.com.
350 2001-07-02 Tom Tromey <tromey@redhat.com>
352 Fix for PR bootstrap/3281:
353 * aclocal.m4, configure: Rebuilt.
354 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
355 Correctly compute libgcj_basedir.
356 (mkinstalldirs): Define and subst.
358 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
361 * java/io/LineNumberReader.java (reset): Pass correct arguments to
364 2001-06-27 Tom Tromey <tromey@redhat.com>
366 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
369 2001-06-25 Tom Tromey <tromey@redhat.com>
371 * scripts/encodings.pl: Generate lower-case names. Updated URL
372 for `character-sets' file.
373 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
375 Rebuilt list of aliases.
377 2001-06-25 Tom Tromey <tromey@redhat.com>
379 * java/io/natFileDescriptorPosix.cc (open): Change error message
380 formatting. From David Brownell.
382 2001-06-21 Tom Tromey <tromey@redhat.com>
384 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
387 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
389 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
390 extraneous/malformed sign word.
392 2001-06-15 Tom Tromey <tromey@redhat.com>
394 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
396 2001-06-15 Tom Tromey <tromey@redhat.com>
398 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
399 NULL if no library on the list has the symbol.
400 (init): Call add_library on the program itself.
401 * prims.cc (JvRunMain): Initialize Runtime before searching for
403 (_Jv_RunMain): Likewise.
405 2001-06-15 Tom Tromey <tromey@redhat.com>
407 * jni.cc (ClassClass): Removed; updated all users.
408 (ObjectClass): Likewise.
409 (ThrowableClass): Likewise.
410 (MethodClass): Likewise.
411 (ThreadGroupClass): Likewise.
412 (local_ref_table): Renamed from `ref_table'.
413 (global_ref_table): New global.
414 (_Jv_JNI_Init): Initialize both ref tables.
415 (mark_for_gc): Added `ref_table' parameter.
416 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
418 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
419 (_Jv_JNI_DeleteGlobalRef): Likewise.
420 (_Jv_JNI_DeleteLocalRef): Likewise.
421 (_Jv_JNI_NewLocalRef): Likewise.
422 (_Jv_JNI_PopLocalFrame): Likewise.
423 (_Jv_JNI_GetStringChars): Likewise.
424 (_Jv_JNI_ReleaseStringChars): Likewise.
425 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
426 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
428 2001-06-14 Tom Tromey <tromey@redhat.com>
430 Fix for PR libgcj/3144:
431 * java/util/Date.java: Merged with Classpath.
433 2001-06-12 Tom Tromey <tromey@redhat.com>
435 * aclocal.m4, configure: Rebuilt.
436 * acinclude.m4: Find configure.host in srcdir.
438 2001-06-07 Tom Tromey <tromey@redhat.com>
440 Fix for PR libgcj/3059:
441 * java/lang/natSystem.cc (init_properties): Define `java.home'.
442 * Makefile.in: Rebuilt.
443 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
445 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
447 * exception.cc (cstdlib): Replaces stdlib.h.
448 (_Jv_Throw): Use std::abort().
449 (PERSONALITY_FUNCTION): Likewise.
451 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
453 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
454 nothing, as in autoconf 2.50.
455 * aclocal.m4, configure: Rebuilt.
457 2001-06-08 Tom Tromey <tromey@redhat.com>
459 * configure: Rebuilt.
460 * configure.in: Compute new aux dir using `pwd'.
462 2001-06-07 Tom Tromey <tromey@redhat.com>
464 For PR bootstrap/3075:
465 * configure, aclocal.m4, Makefile.am: Rebuilt.
466 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
467 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
468 relative to libgcj_basedir.
469 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
470 AC_CANONICAL_SYSTEM here.
471 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
473 ($(extra_headers)): New target.
475 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
476 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
478 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
479 table index is within allowed bounds. Ensure that we dont try to access
480 class itable at a negative offset. Avoid an ancestor table lookup if
481 source is a primitive type class.
482 (isInstance): Remove redundant isPrimitive() check.
484 2001-06-04 Tom Tromey <tromey@redhat.com>
486 * java/security/PublicKey.java: Extend Key.
487 * java/security/PrivateKey.java: Extend Key.
489 2001-06-02 Anthony Green <green@redhat.com>
491 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
492 alternate when USE_LTDL not defined.
494 2001-06-02 Anthony Green <green@redhat.com>
496 * configure: Rebuild.
497 * configure.in: Remove data_start hack.
498 * libgcj.spec.in: Ditto.
499 * Makefile.in: Rebuild.
500 * Makefile.am: Ditto.
501 * libgcjdata.c: Remove.
503 2001-06-02 Anthony Green <green@redhat.com>
505 * configure: Rebuild.
506 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
507 --without-libffi option. Tweak --disable-java-net processing.
508 * Makefile.in: Rebuild.
509 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
510 * include/config.h.in: Rebuild.
511 * acconfig.h (USE_LIBFFI): Define.
512 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
514 2001-06-02 Anthony Green <green@redhat.com>
516 * configure: Rebuilt.
517 * configure.in: Test for sigaction on native builds.
518 * prims.cc: Check HAVE_SIGACTION.
519 * include/config.h.in: Rebuilt.
521 2001-05-31 Jeff Sturm <jsturm@one-point.com>
523 * natFile.cc (get_entry): Removed functions.
524 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
525 Allocate enough storage for d_name if using readdir_r.
527 2001-05-31 Tom Tromey <tromey@redhat.com>
529 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
531 (write): Loop until write completes. From Corey Minyard.
533 2001-05-29 Laurent Guerby <guerby@acm.org>
535 * java/awt/geom/Rectangle2D.java: fix doc typo.
537 2001-05-31 Tom Tromey <tromey@redhat.com>
539 * java/sql/DriverManager.java (getDrivers): Handle case where
540 driver's class loader is null. From Corey Minyard.
542 2001-05-29 Tom Tromey <tromey@redhat.com>
544 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
546 * configure: Rebuilt.
547 * configure.in: Only add multilib support code if we just rebuilt
550 2001-05-29 Andrew Haley <aph@redhat.com>
552 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
553 pointer: the dwarf unwinder in libgcc will do everything that's
555 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
556 more than we absolutely need to.
557 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
558 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
560 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
562 * configure: Rebuilt.
563 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
565 (SIGNAL_HANDLER): Use siginfo style handler.
566 (INIT_SEGV): Likewise.
567 (INIT_FPE): Likewise.
568 * include/ppc-signal.h: Delete whole file.
570 2001-05-24 Tom Tromey <tromey@redhat.com>
572 * java/lang/natString.cc (init): Throw
573 ArrayIndexOutOfBoundsException.
574 (getChars): Likewise.
575 (getBytes): Likewise.
578 * configure.in: Only allow hash synchronization when POSIX threads
580 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
583 2001-05-23 Tom Tromey <tromey@redhat.com>
585 * Makefile.in: Rebuilt.
586 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
588 Revert patch of 2001-05-21:
589 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
590 (libgcj_la_LIBADD): Likewise.
591 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
592 (libgcjx_la_LIBADD): Likewise.
594 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
595 * gcj/Makefile.in: Rebuilt.
596 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
597 * gcj/javaprims.h: Include gcj/libgcj-config.h.
598 * gcj/libgcj-config.h.in: New file.
599 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
600 * configure: Rebuilt.
601 * configure.in: Enable hash synchronization by default on some
603 (HASH_SYNC_SPEC): New subst.
604 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
605 Correctly use `test -z' instead of `test -n' in a couple places.
606 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
608 * configure.host (enable_java_net_default): Initialize.
609 (enable_hash_synchronization_default): New variable.
611 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
613 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
614 synchronization in use.
615 (_Jv_MarkArray): Likewise.
616 (_Jv_AllocBytes): Don't check return result.
617 (handle_out_of_memory): New function.
618 (_Jv_InitGC): Set GC_oom_fn.
619 (trace_one_vtable): New global.
620 (_Jv_AllocTraceOne): New function.
621 * configure.in: Added --enable-hash-synchronization.
622 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
623 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
624 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
625 (_Jv_AllocArray): Likewise.
626 (_Jv_AllocBytes): Likewise.
627 (_Jv_AllocPtrFreeObject): New function.
628 (_Jv_AllocTraceOne): Likewise.
629 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
631 (self_cache): New global.
632 (_Jv_ThreadSelf_out_of_line): New function.
633 * prims.cc (_Jv_AllocBytesChecked): Removed.
634 (_Jv_ThrowNoMemory): New function.
635 (_Jv_AllocObject): Don't check for null return from allocator.
636 (_Jv_NewObjectArray): Likewise.
637 (_Jv_AllocPtrFreeObject): New function.
638 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
639 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
640 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
641 * include/boehm-gc.h (_Jv_AllocObj): Define.
642 (_Jv_AllocPtrFreeObj): Define.
643 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
644 (_Jv_ThrowNoMemory): Declare.
645 (_Jv_AllocTraceOne): Declare.
646 (_Jv_AllocBytesChecked): Removed.
647 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
648 _Jv_MutexUnlock): Handle LOCK_DEBUG.
649 (_Jv_ThreadSelf): Handle case where system pthread_self() is
651 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
653 * java/lang/Object.h (sync_info): Conditional upon presence of
654 hash synchronization.
655 * java/lang/natObject.cc: Much new code to handle thin locks and
656 hash synchronization.
657 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
660 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
662 * gij.cc (version): Update copyright year.
664 2001-05-22 Anthony Green <green@redhat.com>
666 * configure.in: Tweak canadian cross test, and don't redefine GCJ
669 2001-05-21 Per Bothner <per@bothner.com>
671 Implement invocation interface; don't create new thread for main.
672 * java/lang/Thread.java (gen_name): Make native.
673 (<init>(Thread,THreadGroup,Runnable,String)): New private
674 constructor, used by other constructors, and _Jv_AttachCurrentThread.
675 * java/lang/natThread.cc (gen_name): New implementation.
676 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
677 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
678 (_Jv_CreateJavaVM): New runtime initialization procedure.
679 (runFirst): New proecdure - mostly code from old FirstThread::run.
680 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
681 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
682 JvDetachCurrentThread): New inline wrappers.
683 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
684 _Jv_DetachCurrentThread): New declarations.
685 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
686 (getMain): new static method.
687 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
688 by runFirst in prims.cc.
689 (java/lang/Thread.h): Update for new invocation interface.
690 * include/posix-threads.h (_Jv_ThreadRegister,
691 _Jv_ThreadUnRegister): New declarations.
692 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
693 (really_start): Use new _Jv_ThreadRegister.
694 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
695 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
696 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
697 Complain of called when _Jv_OnlyThread already set.
698 (_Jv_ThreadStart): Always JvFail.
699 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
700 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
701 * win32-threads.cc (struct starter): Remove objet field -
702 we use _Jv_Thread_t's new thread_obj field instead.
703 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
704 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
705 (really_start): Use new _Jv_ThreadRegister.
706 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
707 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
708 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
709 Removed - no longer needed with new invocation interface.
710 * Makefile.am: Update for removed/added files.
712 2001-05-21 Per Bothner <per@bothner.com>
714 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
715 (libgcj_la_LIBADD): Likewise.
716 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
718 2001-05-21 Per Bothner <per@bothner.com>
720 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
721 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
722 taken from old Integer.toString code.
723 (Integer::valueOf): Use _Jv_FormatInt.
724 * java/lang/Integer.java (toString): Just use call String.valueOf.
725 * java/lang/Long.java (toString): Fix typo in comment.
726 * java/lang/String.java (valueOf(int)): Make native.
727 * java/lang/StringBuffer.java (append(int)): Make native.
728 * java/lang/natStringBuffer.cc: New file, for append(jint).
729 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
731 2001-05-21 Tom Tromey <tromey@redhat.com>
733 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
735 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
737 * include/dwarf2-signal.h: New file.
738 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
739 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
740 * configure: Rebuilt.
742 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
744 * configure.in: Update boehm-gc include dir for new GC version.
745 * configure: Rebuilt.
746 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
748 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
749 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
750 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
753 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
755 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
756 (_Jv_MutexInit): Likewise.
758 2001-05-18 Tom Tromey <tromey@redhat.com>
760 * Makefile.in: Rebuilt.
761 * Makefile.am (awt_java_source_files): Added Polygon.java.
763 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
765 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
766 * gcj/javaprims.h: ... here.
767 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
769 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
771 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
772 with length of ioffset table.
773 (_Jv_IsAssignableFrom): Likewise.
775 2001-05-17 Per Bothner <per@bothner.com>
777 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
779 2001-05-16 Tom Tromey <tromey@redhat.com>
781 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
784 2001-05-15 Tom Tromey <tromey@redhat.com>
786 * java/util/GregorianCalendar.java (computeTime): Only call
789 2001-05-14 Tom Tromey <tromey@redhat.com>
791 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
792 ZONE_OFFSET just before computing the time.
794 2001-05-12 Zack Weinberg <zackw@stanford.edu>
796 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
797 * Makefile.in: Regenerate (by hand).
798 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
799 * doc/cni.sgml: Document #pragma GCC java_exceptions.
801 2001-05-11 Richard Henderson <rth@redhat.com>
803 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
804 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
806 2001-05-11 Richard Henderson <rth@redhat.com>
808 * exception.cc: Include unwind-pe.h. Remove all pointer
811 2001-05-10 Tom Tromey <tromey@redhat.com>
813 * Makefile.in: Rebuilt.
814 * Makefile.am (awt_java_source_files): Added Polygon.java.
815 * java/awt/Polygon.java: New file.
817 * java/awt/geom/AffineTransform.java
818 (setToRotation(double,double,double)): New method.
819 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
820 (setToShear): Likewise.
822 2001-05-10 Tom Tromey <tromey@redhat.com>
824 * java/util/GregorianCalendar.java: Imported from Classpath.
825 * gnu/java/locale/LocaleInformation_nl.java: New file from
827 * gnu/java/locale/LocaleInformation_en.java: Likewise.
828 * gnu/java/locale/LocaleInformation_de.java: Likewise.
829 * gnu/java/locale/LocaleInformation.java: Likewise.
830 * natGregorianCalendar.cc: Removed.
831 * Makefile.in: Rebuilt.
832 * Makefile.am (nat_source_files): Removed
833 natGregorianCalendar.cc.
835 2001-05-10 Tom Tromey <tromey@redhat.com>
837 * java/text/SimpleDateFormat.java (computeCenturyStart): New
839 (defaultCenturyStart): Use it.
840 (readObject): Likewise.
841 (SimpleDateFormat): Clear the calendar. Set the grouping on the
843 (parse): Copy the calendar before modifying it. Correctly handle
846 * java/util/Calendar.java (clear): Set field value(s) to 0.
848 2001-05-10 Jeff Sturm <jsturm@one-point.com>
850 * Calendar.java (get): Clear areFieldsSet if requested field
852 (set): Unset fields that depend on new value.
854 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
856 * java/lang/Class.h (_Jv_Self): New union type.
857 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
858 Jeff Sturm and Fergus Henderson.
860 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
862 * java/lang/ClassLoader.java: Remove dead code fragment.
864 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
866 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
868 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
870 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
872 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
873 * configure.host (EXCEPTIONSPEC): New.
874 * configure.in (EXCEPTIONSPEC): New.
875 * configure: Rebuilt.
877 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
879 * doc/*.texi: Remove generated documentation.
881 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
883 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
884 (performDelete): Fix #endif placement.
886 2001-04-27 Zack Weinberg <zackw@stanford.edu>
888 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
889 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
890 (_Jv_ThreadDestroyData): Use _Jv_Free.
891 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
894 2001-04-27 Tom Tromey <tromey@redhat.com>
896 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
898 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
900 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
902 * include/jni.h (struct JNINativeInterface): Fixed types in
903 Get/Set*ArrayRegion declarations.
904 (class _Jv_JNIEnv): Likewise.
906 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
908 * configure.in: Obtain THREADS with `gcc -v'.
909 * configure: Rebuilt.
911 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
914 * java/io/ObjectStreamClass.java (setClass): Calculate
915 serialVersionUID for local class and compare it against the UID
916 from the Object Stream. Throw InvalidClassException upon mismatch.
917 (setUID): Renamed to...
918 (getClassUID): this. Return the calculated class UID rather than
919 setting uid field directly.
920 (getDefinedSUID): Removed.
921 * java/io/ObjectInputStream.java (resolveClass): Use the
922 three-argument Class.forName().
923 * java/io/InvalidClassException (toString): Don't include classname in
924 result if it is null.
926 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
928 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
929 Wrap use of inet_pton in HAVE_INET6.
931 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
933 java.security merge and ClassLoader compliance fixes.
935 * java/lang/Class.h (Class): Include ProtectionDomain.h.
936 New protectionDomain field.
937 (forName): Add initialize parameter. Fixes declaration to comply with
939 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
940 variant. Honour "initialize" flag.
941 (getProtectionDomain0): New method.
942 * java/lang/Class.java: Fix forName() declaration.
943 (getPackage): New method based on Classpath implementation.
944 (getProtectionDomain0): New native method decl.
945 (getProtectionDomain): New method.
946 * java/lang/ClassLoader.java (getParent): Now final.
947 (definedPackages): New field.
949 (defineClass): New variant with protectionDomain argument.
950 (definePackage): New.
952 (findSystemClass): Now final.
953 (getSystemResourceAsStream): Remove redundant "final" modifier.
954 (getSystemResource): Remove redundant "final" modifier.
955 (getResources): Now final.
956 (protectionDomainPermission): New static field.
957 (unknownProtectionDomain): Ditto.
958 (defaultProtectionDomain): Ditto.
959 (getSystemClassLoader): Now non-native.
960 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
961 arguments for Class.forName().
962 * java/lang/Package.java: New file.
963 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
964 (instance): Static initialize singleton.
965 (findClass): Override this, not findSystemClass.
966 * java/lang/natClassLoader.cc (defineClass0): Set class's
967 protectionDomain field as specified.
968 (getSystemClassLoader): Removed.
969 (findClass): Renamed from findSystemClass. Call the interpreter via
970 URLClassLoader.findClass if loading class via dlopen fails.
972 * java/security/*.java: java.security import/merge with Classpath.
973 * java/security/acl/*.java: Likewise.
974 * java/security/interfaces/*.java: Likewise.
975 * java/security/spec/*.java: Likewise.
976 * java/net/NetPermission.java: Likewise.
977 * java/net/SocketPermission.java: Likewise.
978 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
980 * Makefile.am: Add new classes.
981 * Makefile.in: Rebuilt.
982 * gcj/javaprims.h: CNI namespace rebuild.
984 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
986 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
987 for libtool tests. Pre-create gnu/classpath/Configuration.java.
988 * configure: Rebuilt.
990 2001-04-21 Tom Tromey <tromey@redhat.com>
992 * Makefile.in: Rebuilt.
993 * Makefile.am (awt_java_source_files): Added Line2D.java.
994 * java/awt/geom/Line2D.java: Wrote.
996 * java/awt/Menu.java (addNotify): Wrote.
998 * java/awt/PopupMenu.java (addNotify): Implemented.
1001 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1002 * java/awt/List.java (addNotify): Call super.addNotify.
1003 * java/awt/Label.java (addNotify): Call super.addNotify.
1004 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1005 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1006 * java/awt/Choice.java (addNotify): Call super.addNotify.
1007 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1008 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1010 * java/awt/List.java (replaceItem): Notify peer.
1012 * java/awt/geom/Rectangle2D.java
1013 (Float.setRect(float,float,float,float)): New method.
1015 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1018 * java/awt/RenderingHints.java (Key): Class now public.
1020 * java/awt/Rectangle.java (Rectangle): Now implements
1022 (getPathIterator): Removed.
1024 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1027 * java/awt/FileDialog.java: Wrote.
1029 * java/awt/EventQueue.java (isDispatchThread): Now public.
1030 (invokeLater): Likewise.
1032 * java/awt/Component.java (setCursor): Update peer.
1033 (getFontMetrics): Use peer.
1035 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1038 2001-04-20 Tom Tromey <tromey@redhat.com>
1040 * java/awt/List.java: Wrote.
1041 * java/awt/Dialog.java: Wrote.
1043 2001-04-20 Warren Levy <warrenl@redhat.com>
1045 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1046 * java/text/SimpleDateFormat.java
1047 (indexInArray): Removed private method.
1048 (processYear): Removed private method.
1049 (parseLenient): Removed private method.
1050 (parseLeadingZeros): Removed private method.
1051 (parseStrict): Removed private method.
1052 (expect): Added new private method.
1053 (parse): Reverted to pre-Classpath merge version with minor fixes.
1054 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1057 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1059 * java/io/File.java (normalizePath): New private method.
1060 (File (String)): Use normalizePath().
1061 (File (String, String)): Likewise.
1063 * Makefile.am (libffi_files): Removed.
1064 (libgcj.la): Link libffi as a convenience library instead of
1065 refering to its object files directly.
1066 * Makefile.in: Rebuilt.
1068 2001-04-08 Per Bothner <per@bothner.com>
1070 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1071 Recalculate hash, since Utf8Const's hash is only 16 bits.
1073 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1074 bits of hash to calculate step for chaining.
1076 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1077 when 2/3 full, rather than 3/4 full.
1079 2001-04-06 Tom Tromey <tromey@redhat.com>
1081 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1082 (wrap_value<T*>): New specialization.
1083 (_Jv_JNI_PopLocalFrame): Update env->locals.
1085 2001-04-05 Tom Tromey <tromey@redhat.com>
1087 * libtool-version: Updated current.
1089 2001-04-04 Andreas Jaeger <aj@suse.de>
1091 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1092 * gcj/Makefile.in: Rebuilt.
1093 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1094 * Makefile.in: Rebuilt.
1095 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1096 * testsuite/Makefile.in: Rebuild.
1097 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1098 * include/Makefile.in: Rebuild.
1100 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1102 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1103 compiled test', not 'execution from source compiled test'.
1104 Use UNTESTED, not XFAIL, for tests which are not run because
1105 they depend on a previous test which failed.
1107 2001-04-02 Richard Henderson <rth@redhat.com>
1109 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1110 the same tree as gcc.
1111 * configure: Rebuilt.
1113 * exception.cc (_Jv_Throw): Clarify commentary.
1115 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1117 * jni.cc (wrap_value<jclass>): New specialization.
1119 2001-04-02 Tom Tromey <tromey@redhat.com>
1121 * java/io/PrintStream.java (out): Removed field. Fixes PR
1123 (write): Call flush, not out.flush, per spec.
1124 (close): Flush output stream, per spec. Handle
1125 InterruptedIOException.
1126 (checkError): Likewise.
1127 (flush, print, write): Handle InterruptedIOException per spec.
1128 (PrintStream): Don't create BufferedOutputStream.
1129 (work_bytes): New field.
1130 (writeChars): Use work_bytes. Don't assume `out' is a
1131 BufferedOutputStream.
1133 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1135 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1138 2001-03-30 Tom Tromey <tromey@redhat.com>
1140 * jni.cc (add_char): Correctly encode non-ascii characters.
1141 (add_char): Define even when INTERPRETER not defined.
1142 (mangled_name): Likewise.
1143 (_Jv_GetJNIEnvNewFrame): Likewise.
1144 (_Jv_LookupJNIMethod): Likewise.
1146 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1148 * configure.host: Enable interpreter for PPC.
1150 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1152 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1153 to "file.separator", "path.separator", and "java.io.tmpdir" property
1155 * java/io/File.java: Likewise.
1156 * java/io/natFile.cc (init_native): Likewise.
1157 * java/io/natFileWin32.cc (init_native): Likewise.
1159 2001-04-01 Per Bothner <per@bothner.com>
1161 * java/lang/natString.cc (intern): If string's data does not point to
1162 this String, make a fresh String that does.
1164 * java/lang/natString.cc (unintern): Replace by static function.
1165 * java/lang/String.java (unintern): Remove method.
1167 2001-04-01 Per Bothner <per@bothner.com>
1169 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1170 (finish): def.deflate needs to be called in a loop.
1171 (inbuf, inbufLength): New private fields.
1172 (write(int)): Use inbuf.
1173 (write(byte[],int,int): Check if pending output in inbuf.
1174 * ZipOutputStream.java: Don't use Deflater if stored.
1175 Use a Checksum object directly, not via a CheckedOutputStream.
1176 (uncompressed_size): New field,
1177 (closeEntry): Only write data_directory if needed.
1178 (write): If STORED, write directly.
1179 Always update crc, and uncompressed_size.
1180 (write_entry): Fix lots of protocol erors.
1182 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1184 1.3-Compliant Implementation of java.io.File.
1185 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1186 "path.separator", and "java.io.tmpdir" from the File class, instead
1187 of setting them explicitly.
1188 * java/io/File.java: Do not canonicalize paths for security manager
1189 checks. Call init_native() from static initializer. Do not pass path
1190 argument to native methods. New native method declarations. Some
1191 security manager checks moved to checkWrite().
1192 (equals): Check file system case sensitivity and act appropriatly.
1193 (hashCode): Likewise.
1194 (isHidden): New method implemented.
1195 (performList): Changed prototype. Now takes a class argument specifying
1196 the class of the returned array: Strings or File objects. Also added
1197 FileFilter argument.
1198 (listFiles): New variants with "File" return type implemented.
1199 (createTempFile): Use createNewFile(). Use maxPathLen.
1200 (setReadOnly): New method implemented.
1201 (listRoots): Likewise.
1202 (compareTo): Likewise.
1203 (setLastModified): Likewise.
1204 (checkWrite): New method.
1206 * java/io/natFile.cc: Various functions no longer take canonical path
1208 (stat): Handle ISHIDDEN query.
1209 (isAbsolute): Remove WIN32 cruft.
1210 (performList): New arguments. Handle returning either File[] or String[]
1211 arrays. Check with FileFilter or FilenameFilter arguments as
1212 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1213 (performSetReadOnly): New method implemented.
1214 (performListRoots): Likewise.
1215 (performSetLastModified): Likewise.
1216 (performCreate): Likewise.
1217 (init_native): New initialization function.
1218 * java/io/natFileWin32.cc: Various functions no longer take canonical
1220 (stat): Add FIXME about ISHIDDEN query.
1221 (performList): New arguments. Handle returning either File[] or String[]
1222 arrays. Check with FileFilter or FilenameFilter arguments as
1223 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1224 (performSetReadOnly): New. Stubbed.
1225 (performListRoots): Likewise.
1226 (performSetLastModified): Likewise.
1227 (performCreate): Likewise.
1228 (init_native) New initialization function.
1229 * configure.in: Check for utime() and chmod().
1230 * configure: Rebuilt.
1231 * include/config.h.in: Rebuilt.
1233 Resolves PR libgcj/1759.
1235 2001-03-28 Richard Henderson <rth@redhat.com>
1237 IA-64 ABI Exception Handling:
1238 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1239 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1240 Remove EXCEPTIONSPEC.
1241 * configure.host (libgcj_sjlj): Remove.
1242 * configure.in (EXCEPTIONSPEC): Remove.
1243 (enable-sjlj-exceptions): Detect if not specified.
1244 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1245 what header we're looking for.
1246 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1247 * Makefile.in, configure: Regenerate.
1248 * exception.cc: Don't declare libgcc2 stuff.
1249 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1250 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1251 (win32_get_restart_frame): Remove.
1252 (struct java_exception_header): New.
1253 (__gcj_exception_class): New.
1254 (get_exception_header_from_ue): New.
1255 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1256 (size_of_encoded_value, read_encoded_value): New.
1257 (read_uleb128, read_sleb128, parse_lsda_header): New.
1258 (get_ttype_entry, __gcj_personality_sj0): New.
1259 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1261 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1263 * javax/naming/InitialContext.java (init): Fix typo.
1264 (composeName): Remove unnecessary semicolon.
1265 (addToEnvironment): Remove unnecessary semicolon.
1266 (addToEnvironment): Use put() instead of add().
1268 * javax/naming/InitialContext.java (InitialContext):
1270 (destroySubcontext): Method doesn't return a result.
1271 * javax/naming/Context.java: Import java.util.Hashtable.
1272 * javax/naming/Name.java: Import java.util.Enumeration.
1274 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1276 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1277 objects in subdirectories.
1278 * Makefile.in: Rebuilt.
1280 2001-03-25 Richard Henderson <rth@redhat.com>
1282 * exception.cc (java_eh_info): Make value type jthrowable.
1283 (_Jv_type_matcher): Remove now unneeded cast.
1284 (_Jv_Throw): Make argument type jthrowable. Munge name
1285 for SJLJ_EXCEPTIONS here ...
1286 * gcj/cni.h: ... not here.
1288 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1290 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1291 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1292 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1293 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1294 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1295 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1296 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1297 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1298 java/lang/natDouble.cc, java/lang/natObject.cc,
1299 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1300 java/lang/natString.cc, java/lang/natSystem.cc,
1301 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1302 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1303 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1304 java/util/zip/natInflater.cc:
1305 Use throw, not JvThrow or _Jv_Throw.
1307 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1309 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1310 paramater, bump it to 1.
1311 * java/util/Hashtable.java (Hashtable): Likewise.
1313 2001-03-23 Per Bothner <per@bothner.com>
1315 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1316 check for errors, since we don't want to throw exception on
1317 overflow/underflow. Instead, trim whitespace, and then check that
1318 _strtod_r uses up all the rest of the string.
1320 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1321 ancestors array is invalid for interfaces, so do that *after*
1322 check that the target type is not an interface.
1324 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1326 * prims.cc (_Jv_FindClassFromSignature): Check return of
1327 recursive call. Do not abort on invalid signature; return NULL
1330 2001-03-22 Tom Tromey <tromey@redhat.com>
1332 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1333 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1335 * include/jvm.h (_Jv_ResolveField): Declare.
1336 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1337 * resolve.cc (_Jv_ResolveField): No longer conditional on
1340 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1342 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1343 for libtool hacking.
1344 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1345 to a temporary file, then invoke libtool with the -objectlist
1347 (libgcjx.la): Likewise.
1348 * Makefile.in: Rebuilt.
1350 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1352 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1354 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1356 * jni.cc (add_char): Handle `.' like `/'.
1358 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1360 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1361 initialize if exception_types is null.
1362 * java/lang/reflect/Constructor.java: Likewise.
1363 * java/lang/reflect/natConstructor.cc (getType): Initialize
1364 exception_types to an empty Object array.
1366 2001-03-21 Tom Tromey <tromey@redhat.com>
1368 * configure: Rebuilt.
1369 * configure.in (GCJFLAGS): Subst.
1370 * Makefile.in: Rebuilt.
1371 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1372 (gij_LDFLAGS): Likewise.
1373 (JC1FLAGS): Added GCJFLAGS and removed -g.
1375 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1376 read/write case. Fixes PR libgcj/2338.
1378 2001-03-20 Warren Levy <warrenl@redhat.com>
1380 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1381 and corrected SimpleTimeZone's for the timezones hash table.
1383 2001-03-19 Per Bothner <per@bothner.com>
1385 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1386 "canonicalize" "../../xxx" to "/xxx".
1388 2001-03-19 Mark Wielaard <mark@klomp.org>
1390 * java/util/ArrayList.java: Remove RCS keywords from comments
1391 * java/util/BasicMapEntry.java: idem
1392 * java/util/Dictionary.java: idem
1393 * java/util/HashSet.java: idem
1395 * java/util/EventObject.java: reindent
1396 * java/util/Properties.java: idem
1397 * java/util/SortedMap.java: idem
1399 * java/util/Enumeration.java: Merge with Classpath
1400 * java/util/EventListener.java: idem
1401 * java/util/Observable.java: idem
1402 * java/util/Observer.java: idem
1403 * java/util/Stack.java: idem
1405 2001-03-17 Tom Tromey <tromey@redhat.com>
1407 * java/lang/natString.cc (rehash): Don't bother with memset;
1408 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1410 (UNMASK_PTR): New macro.
1411 (intern): Unmask pointer before returning it. Register finalizer
1413 (unintern): Handle case where
1414 (MASK_PTR): New macro.
1415 (PTR_MAKSED): Likewise.
1416 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1418 2001-03-01 Andrew Haley <aph@redhat.com>
1420 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1421 stackTrace buffer to a correctly aligned pointer array.
1423 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1425 * java/lang/Runtime.java (_exit): Declare new package-private native.
1426 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1427 without a security manager check.
1428 (exit): Call _exit after security check.
1429 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1431 * java/lang/System.java (setSecurityManager): If a security manager
1432 is already in place, call checkPermission.
1433 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1434 throws an exception, try to deal with it gracefully.
1435 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1436 Only try to print the subordinate stack trace if "exception" is set.
1437 Print our class name first.
1439 2001-03-08 Tom Tromey <tromey@redhat.com>
1441 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1442 info for array classes.
1443 Fixes PR libgcj/1971.
1445 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1447 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1450 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1452 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1453 instead of the new JDK1.2 API. This is simpler and makes
1454 back-porting the classes to JDK1.1 trivial.
1455 (readObject): likewise.
1457 2001-03-01 Per Bothner <per@bothner.com>
1459 Changes merged from Kawa's gnu.math.
1460 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1461 (rshift(int[],int[],int,int): Removed - not needed.
1462 (gcd): Use rshift0 rather than rshift.
1463 * java/math/BigInteger.java (setShiftRight): Likewise.
1464 (divide): Simplify by using rshift0.
1465 (divide): Zero-extend results if high-order bit set.
1467 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1469 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1472 2001-02-23 Per Bothner <per@bothner.com>
1474 Change to sometimes include class name in ClassFormatError message.
1475 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1476 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1477 boolean instead of throwing ClassFormatError on failure.
1478 (throw_class_format_error): Change static function to method.
1479 (_Jv_ClassReader): New inline methods verify_identifier,
1480 two overloads of verify_classname, verify_field_signature, and
1481 verify_method_signature
1482 * include/java-interp.h: Update declarations to return bool.
1483 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1484 ClassFormatError since _Jv_VerifyClassName now returns bool.
1486 2001-02-23 Per Bothner <per@bothner.com>
1488 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1489 c++filt to select java-style output.
1491 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1493 Fix for PR java/2040:
1494 * java/util/HashMap.java (HashMap): Don't throw exception for
1495 loadFactor > 1. Add exception messages.
1496 * java/util/Hashtable.java (Hashtable): Likewise.
1498 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1500 Disable libgcjx by default.
1501 * configure.in: Add support for --enable-java-awt configure option.
1502 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1503 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1504 * Makefile.in: Rebuilt.
1505 * configure: Rebuilt.
1507 2001-02-20 Tom Tromey <tromey@redhat.com>
1509 * java/io/PipedWriter.java (flush): Throw exception if stream
1511 * java/io/OutputStreamWriter.java (write): Throw exception if
1513 (writeChars): Don't throw exception if stream closed.
1514 * java/io/CharArrayWriter.java (closed): New field.
1516 (flush): Throw exception if stream closed.
1517 (reset): Synchronize on correct lock. Allow stream to be
1519 (toCharArray, toString, writeTo): Synchronize.
1520 (write): Throwe exception if stream closed.
1521 * java/io/BufferedWriter.java (close): Clear `buffer'.
1522 (flush): Throw IOException if stream is closed.
1525 2001-02-16 Tom Tromey <tromey@cygnus.com>
1527 * java/lang/ThreadGroup.java (activeCount): Only include threads
1529 (enumerate): Likewise.
1531 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1533 * java/lang/Integer.java (getInteger): Return default argument if
1534 property is not set. Don't call decode with null argument.
1535 * java/lang/Long.java (getLong): Likewise.
1537 * java/io/CharArrayReader.java (CharArrayReader): Throw
1538 IllegalArgumentException if constructor arguments are illegal.
1539 (ready): Return false if no more characters can be read.
1540 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1542 2001-02-17 Mark Wielaard <mark@klomp.org>
1544 * java/util/TimerTask.java: New version from Classpath.
1546 2001-02-17 Mark Wielaard <mark@klomp.org>
1548 Remerge with Classpath
1549 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1550 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1551 (readByte): Use convertToByte().
1552 (readChar): Use convertToChar().
1553 (readInt): Use convertToInt().
1554 (readLong): Use convertToLong().
1555 (readShort): Use convertToShort().
1556 (readUnsignedByte): Use convertToUnsignedByte().
1557 (readUnsignedShort): Use convertToUnsignedShort().
1558 (readUTF): Use convertToUTF().
1560 (convertToBoolean): Resurrected.
1561 (convertToByte): Ditto.
1562 (convertToChar): Ditto.
1563 (convertToInt): Ditto.
1564 (convertToLong): Ditto.
1565 (convertToShort): Ditto.
1566 (convertToUnsignedByte): Ditto.
1567 (convertToUnsignedShort): Ditto.
1568 (convertToUTF): Ditto.
1570 2001-02-17 Mark Wielaard <mark@klomp.org>
1574 2001-02-17 Mark Wielaard <mark@klomp.org>
1576 * java/io/DataInputStream.java: update copyright notice
1577 * java/io/PrintWriter.java: idem
1578 * java/io/Reader.java: idem
1579 * java/io/StreamTokenizer.java: idem
1580 * java/io/StringReader.java: idem
1581 * java/lang/reflect/ReflectPermission.java: idem
1583 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1585 * java/util/TreeSet.java (clone): Made subclass safe, use
1586 super.clone(), not new.
1587 * java/util/TreeMap.java (clone): Likewise.
1589 * java/util/TreeMap.java (nil): Made non-final.
1590 (clone): Create new nil node for copy.
1592 * java/util/HashSet.java (clone): Made subclass safe, use
1593 super.clone(), not new.
1595 2001-02-14 Andrew Haley <aph@redhat.com>
1597 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1600 2001-02-15 Anthony Green <green@redhat.com>
1602 * defineclass.cc: Don't include alloca.h.
1603 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1604 * interpret.cc (run_normal): Ditto.
1606 * java/lang/natDouble.cc (parseDouble): Ditto.
1608 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1610 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1612 * java/util/Collections.java (ReverseComparator): New static class.
1613 (reverseOrder): Return static instance of ReverseComparator.
1615 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1616 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1617 Rectangle.clone(), not Object.clone().
1619 * java/util/HashSet.java (clone): Remove try/catch.
1621 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1622 * java/util/Collection.java: Likewise.
1623 * java/util/Comparator.java: Likewise.
1624 * java/util/Dictionary.java: Likewise.
1625 * java/util/Iterator.java: Likewise.
1626 * java/util/ListIterator.java: Likewise.
1627 * java/util/Map.java: Likewise.
1628 * java/util/Set.java: Likewise.
1630 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1632 * java/util/TreeMap.java: New file.
1633 * java/util/TreeSet.java: New file.
1634 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1635 * Makefile.in: Rebuilt.
1636 * java/util/HashSet.java (clone): Use constructor instead of calling
1638 * java/util/SortedSet.java: Sync with classpath.
1639 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1642 * java/lang/natClass.cc (getSignature): Don't try to dereference
1643 param_types if it is null. Instead, take this to mean "no parameters".
1644 * java/lang/TreeMap.java (TreeIterator.next): Throw
1645 NoSuchElementException in preference to ConcurrentModificationException.
1646 (TreeIterator.remove): Throw IllegalStateException in preference to
1647 ConcurrentModificationException.
1648 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1649 throw a NoSuchElementException.
1650 (SubMap.lastKey): Likewise.
1652 2001-02-13 Tom Tromey <tromey@redhat.com>
1654 * java/io/PipedReader.java (ready): Throw IOException if pipe
1656 * java/io/FilterReader.java (close): Don't clear `in'.
1657 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1659 (read, ready, reset, skip): Added exception message.
1660 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1661 Perform checkStatus check inside synchronized block.
1663 2001-02-13 Tom Tromey <tromey@redhat.com>
1665 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1667 2001-02-13 Tom Tromey <tromey@redhat.com>
1669 Fix for PR libgcj/1351:
1670 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1672 Include Thread.h and InterruptedIOException.h.
1674 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1676 * java/io/BlockDataException.java: Removed.
1677 * java/io/ObjectInputStream.java (readObject): Throw
1678 StreamCorruptedException, not BlockDataException.
1679 * Makefile.am: Remove BlockDataException.
1680 * Makefile.in: Rebuild.
1682 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1683 Tom Tromey <tromey@redhat.com>
1685 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1688 2001-02-09 Tom Tromey <tromey@redhat.com>
1690 * java/util/Timer.java: New version from Classpath.
1692 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1694 * java/lang/Double.java (doubleToRawLongBits): Now native.
1695 * java/lang/Float.java (floatToRawIntBits): Likewise.
1696 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1697 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1699 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1701 * java/io/File.java (java.net): Imported.
1702 (getAbsoluteFile): Added.
1703 (getCanonicalPath): Likewise.
1706 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1708 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1709 * java/lang/Integer.java: Likewise.
1710 * java/lang/Long.java: Likewise.
1711 * java/lang/Short.java: Likewise.
1712 * java/lang/Double.java: Likewise.
1713 (doubleToRawLongBits): New method.
1714 * java/lang/Float.java: As above.
1715 (floatToRawIntBits): New method.
1717 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1718 IOException if stream closed.
1720 2001-02-08 Tom Tromey <tromey@redhat.com>
1722 * java/lang/Float.java (parseFloat): New method.
1724 2001-02-08 Tom Tromey <tromey@redhat.com>
1726 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1727 * java/io/InputStreamReader.java (ready, read): Throw IOException
1728 if stream has been closed.
1730 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1732 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1733 Change sources.redhat.com and sourceware.cygnus.com references to
1736 2001-02-07 Tom Tromey <tromey@redhat.com>
1738 Fix for PR libgcj/1906:
1739 * java/text/MessageFormat.java (setLocale): Use named class
1742 (format(Object,StringBuffer,FieldPosition)): Special case if
1743 argument is an Object[].
1745 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1747 * java/util/Arrays.java: Removed "cmp" methods.
1748 (qsort): Don't use "cmp".
1751 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1753 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1754 sort. Fix for PR java/1895.
1756 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1758 * configure.host: Use sjlj-exceptions for Alpha.
1760 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1762 * libgcj.spec.in: Don't force static libgcc into the executable.
1763 * configure.in (FORCELIBGCCSPEC): Removed.
1764 * configure: Rebuilt.
1766 2001-01-31 Tom Tromey <tromey@redhat.com>
1768 * Makefile.in: Rebuilt.
1769 * Makefile.am (LTCXXCOMPILE): New macro.
1771 2001-01-26 Andrew Haley <aph@redhat.com>
1773 (INIT_FPE): Use a direct system call to set the handler.
1775 2001-01-27 Richard Henderson <rth@redhat.com>
1777 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1779 2001-01-27 Tom Tromey <tromey@redhat.com>
1781 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1782 native interface structure.
1784 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1786 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1788 (read (byte[], int, int)): Only call readNextBlock() if the block
1789 buffer would actually be overrun. Increment blockDataPosition.
1790 (callReadMethod): Propagate exceptions from invocation target.
1791 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1792 exceptions from invocation target.
1794 2001-01-26 Tom Tromey <tromey@redhat.com>
1796 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1797 to internal representation.
1798 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1799 _Jv_FindClassFromSignature.
1801 2001-01-26 Warren Levy <warrenl@redhat.com>
1803 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1804 and timezone if they are available on the system.
1806 2001-01-24 Tom Tromey <tromey@redhat.com>
1808 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1810 2001-01-24 Tom Tromey <tromey@redhat.com>
1812 * Makefile.in: Rebuilt.
1813 * Makefile.am (c_source_files): Added sf_fabs.c.
1814 * java/lang/sf_fabs.c: New file.
1816 2001-01-19 Warren Levy <warrenl@redhat.com>
1818 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1819 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1820 correctly. Adjust properly from 0-23 clock hour.
1822 2001-01-17 Mark Wielaard <mark@klomp.org>
1824 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1826 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1828 * java/lang/Class.h (isInterface): Move implementation from
1829 natClass.cc. Declare inline.
1830 (Class): Add default constructor.
1831 * java/lang/Object.h: Update comments.
1832 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1833 initialize superclass, saving a call if super is already initialized.
1835 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1837 * prims.cc (init_prim_class): Deleted.
1838 (DECLARE_PRIM_TYPE): Rewritten.
1839 * java/lang/Class.h (stdio.h): Include removed.
1840 (stddef.h): Included.
1841 (java/lang/reflect/Modifier.h): Likewise.
1842 (Class): Contructor now takes arguments, initializes fields.
1843 (initializePrim): Prototype deleted.
1844 * java/lang/natClass.cc (initializePrim): Deleted.
1846 2001-01-16 Warren Levy <warrenl@redhat.com>
1848 * java/math/BigInteger.java: Update Copyright year.
1850 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1852 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1855 2001-01-14 Mark Wielaard <mark@klomp.org>
1856 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1857 (decode): Merge comments with Classpath, don't throw Exception
1859 2001-01-12 Tom Tromey <tromey@redhat.com>
1861 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1865 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1866 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1867 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1868 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1869 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1871 * java/lang/natSystem.cc: Include locale.h if it exists.
1872 * configure: Rebuilt.
1873 * configure.in: Check for locale.h.
1875 2001-01-11 Tom Tromey <tromey@redhat.com>
1877 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1878 (Cursor(int), getPredefinedCursor): Throw exception if argument
1881 2001-01-03 Tom Tromey <tromey@redhat.com>
1883 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1884 (getLocationOnScreen): Wrote.
1886 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1888 * Makefile.am: Re-enable dependencies.
1889 * Makefile.in: Rebuilt.
1891 2001-01-10 Warren Levy <warrenl@redhat.com>
1893 * java/math/BigDecimal.java (divide): Fixed comment.
1895 2001-01-10 Warren Levy <warrenl@redhat.com>
1897 Fix for PR libgcj/1596:
1898 * java/math/BigDecimal.java (divide): Check newScale for validity.
1899 Ensure that BigInteger.pow() is called with a non-negative value.
1900 (setScale (int)): New public method.
1901 (setScale (int,int)): New public method.
1903 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1905 Fix for PR libgcj/1338:
1906 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1907 commentChar. Fixed typos in comments.
1909 2001-01-08 Warren Levy <warrenl@redhat.com>
1911 Fix for PR libgcj/1411:
1912 * Makefile.am: Removed java/util/natTimeZone.cc.
1913 * Makefile.in: Rebuilt.
1914 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1915 missing localized timezone names.
1916 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1917 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1918 (init_properties): Set user.timezone property.
1919 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1920 default timezone names; removed non-standard ones. Use standard
1922 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1924 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1926 (getDefaultTimeZoneId): Removed.
1928 * java/util/natTimeZone.cc: Removed.
1930 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1932 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1933 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1934 (_Jv_GetArrayClass): New inline function.
1935 (arrayclass): New field.
1936 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1937 _Jv_GetArrayElementFromElementType.
1938 (_Jv_NewPrimArray): Ditto.
1939 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1940 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1941 Set Modifier::ABSTRACT.
1942 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1943 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1944 Now synchronized. Array classes are now referenced from
1945 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1946 Set array classes' accessibility flags correctly. Optimize so that
1947 all array classes share the same IDT.
1948 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1949 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1950 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1951 in superclasses from overwriting classes own fields.
1952 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1953 Modifier::isAbstract().
1954 (null_idt): New static field.
1955 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1957 (_Jv_IndexOf): Made inline.
1958 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1960 2001-01-08 Tom Tromey <tromey@redhat.com>
1962 Fix for PR java/1586:
1963 * Makefile.in: Rebuilt.
1964 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1966 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1968 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1969 from the c++ compiler.
1970 * Makefile.in: Rebuilt.
1972 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1974 All files with updated copyright.
1975 * prims.cc (class _Jv_PrimClass): Removed.
1976 (init_prim_class): New function.
1977 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1978 `_Jv_PrimClass' in primitive type declarations. Assign to the
1979 value returned by `init_prim_class.'
1980 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1981 primitive type declarations.
1982 (JvPrimClass): Cast to `jclass' removed.
1983 * java/lang/Class.h (Class): New constructor.
1984 (Class): New copy constructor.
1985 (initializePrim): New prototype.
1986 (_Jv_PrimClass): Field removed.
1987 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1988 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1989 (class java::lang::Object): `finalize' moved up front.
1990 * java/lang/natClass.cc
1991 (isAssignableFrom): Turned outline.
1992 (isInstance): Likewise.
1993 (isInterface): Likewise, fixed indentation.
1994 (initializePrim): New function.
1996 2001-01-07 Anthony Green <green@redhat.com>
1998 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2000 * Makefile.in: Rebuilt.
2002 * scripts/TexinfoDoclet.java: New file.
2004 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2005 doc/java-awt-color.texi, doc/java-lang.texi,
2006 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2007 doc/java-awt-event.texi, doc/java-net.texi,
2008 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2009 doc/java-awt-image.texi, doc/java-security.texi,
2010 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2011 doc/java-text.texi, doc/java-beans-beancontext.texi,
2012 doc/java-util-jar.texi, doc/java-beans.texi,
2013 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2014 doc/java-lang-ref.texi: New files.
2016 2001-01-07 Anthony Green <green@redhat.com>
2018 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2019 be used for both input and output, so don't clear doInput.
2021 * java/lang/StringBuffer.java: Fix comments.
2023 2001-01-06 Anthony Green <green@redhat.com>
2025 * java/beans/PropertyDescriptor.java: Fix comment.
2026 * java/io/PushbackReader.java: Fix comment.
2027 * java/io/ObjectStreamClass.java: Fix comment.
2028 * java/io/DataInputStream.java: Fix comment.
2029 * java/io/PipedInputStream.java: Fix comments.
2030 * java/io/PipedReader.java: Fix comments.
2031 * java/sql/DatabaseMetaData.java: Fix comments.
2033 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2035 * java/io/PipedReader: Synchronize on "lock" instead of this.
2037 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2039 * java/lang/Thread.java: Update comment.
2041 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2042 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2043 * java/io/PipedReader: New implementation based on new
2045 * java/io/PipedWriter: Updated to match new PipedReader.
2047 2001-01-03 Tom Tromey <tromey@redhat.com>
2049 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2050 (getViewportSize): Insets include scrollbar size.
2051 (doLayout): Finished.
2052 (getScrollPosition): Wrote.
2053 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2055 2001-01-02 Tom Tromey <tromey@redhat.com>
2057 * java/awt/ScrollPane.java: Wrote.
2058 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2061 * java/awt/Panel.java (Panel()): Fixed.
2063 * java/awt/Component.java (isShowing): Return false if no peer
2064 exists, and true if component is visible and no parent exists.
2065 (getLocationOnScreen): Wrote.
2066 (getPreferredSize): Removed FIXME comment.
2067 (getMinimumSize): Likewise.
2068 (getAlignmentX, getAlignmentY): Wrote.
2070 (requestFocus): Wrote.
2071 (transferFocus): Wrote.
2072 (findNextFocusComponent): New method.
2073 (hasFocus()): Wrote.
2074 (checkImage): Wrote.
2075 (enableEvents): Call setEventMask on the peer.
2077 * java/awt/Container.java (list): Use super.list() to print self.
2078 (findNextFocusComponent): New method.
2079 (setLayout): Call invalidate.
2080 (findComponentAt): Wrote.
2082 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2084 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2085 the correct versions of various linuxthreads functions get linked.
2086 * Makefile.in: Rebuilt.
2087 * java/lang/natThread.cc (finalize_native): New static function. Call
2088 _Jv_ThreadDestroyData.
2089 (initialize_native): Register finalizer for "data".
2090 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2091 (_Jv_ThreadDestroyData): New prototype.
2092 * include/win32-threads.h: Ditto.
2093 * include/no-threads.h: Ditto.
2094 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2095 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2096 move mutex and condition variable destroy code from:
2097 (really_start): ...here.
2098 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2099 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2100 (_Jv_ThreadDestroyData): Implemented.
2101 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2102 (_Jv_AllocArray): Ditto.
2104 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2106 * java/sql/DriverManager.java (getConnection): Don't set user/password
2109 2000-12-27 Warren Levy <warrenl@redhat.com>
2111 Fix for PR libgcj/1358:
2112 * java/lang/System.java: Update Copyright date properly.
2113 * java/util/Calendar.java: Fix typo in comment.
2114 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2115 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2116 initialize times. Spec says to set H:M:S values to zero only if
2118 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2119 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2120 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2121 timezones and GMT offsets, being careful to account for units of
2122 milliseconds vs. seconds.
2124 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2126 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2127 not be assigned to Object.
2129 Fix for PR libgcj/1516:
2130 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2132 (can_widen): Declared inline. Remove redundant checks for void
2133 arguments and char->short conversion. Add special case for boolean
2135 (ffi_type): Declared inline.
2136 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2138 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2140 * java/sql/SQLWarning.java: Fixed typo in comment.
2142 2000-12-26 Tom Tromey <tromey@redhat.com>
2144 * java/awt/MenuItem.java (paramString): Now protected.
2146 * java/awt/MenuShortcut.java: Implements Serializable.
2148 * java/awt/MenuBar.java: Rewrote from scratch.
2150 * java/awt/MenuComponent.java (removeNotify): Wrote.
2151 Implements Serializable.
2153 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2156 * java/awt/CheckboxMenuItem.java: Wrote.
2158 2000-12-25 Tom Tromey <tromey@redhat.com>
2160 * java/awt/MenuContainer.java: Fixed typo.
2162 * Makefile.in: Rebuilt.
2163 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2164 * java/awt/SystemColor.java: New file.
2166 * java/awt/Color.java (rgba): Now package-private.
2168 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2170 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2173 * java/awt/MenuItem.java (addNotify): New method.
2174 (MenuItem(String,MenuShortcut)): New constructor.
2175 (setLabel): Notify peer of change.
2176 (setEnabled): Likewise.
2178 * java/awt/GridLayout.java (toString): New method.
2180 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2181 (FlowLayout): Check for LEADING and TRAILING.
2182 (setAlignment): Likewise.
2183 (layoutContainer): Handle component orientation.
2185 * java/awt/Component.java (orientatin): New field.
2186 (setComponentOrientation): Wrote.
2187 (getComponentOrientation): Wrote.
2189 * java/awt/Event.java (Event): Implements Serializable.
2190 (consumed): New field for serialization.
2191 * java/awt/Dimension.java (Dimension): Implements Serializable.
2192 * java/awt/Cursor.java (Cursor): Implements Serializable.
2193 * java/awt/Container.java (Container): No longer abstract.
2195 * java/awt/Choice.java: Wrote.
2196 * java/awt/Checkbox.java: Wrote.
2197 * java/awt/ItemSelectable.java: Documented.
2198 * java/awt/CheckboxGroup.java: Wrote.
2200 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2202 (getSize): Likewise.
2204 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2206 * java/io/FileDescriptor.java: Initialize fd to -1.
2207 Remove default constructor.
2209 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2211 * java/lang/mprec.h: Change C9X reference to refer to C99.
2213 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2215 * java/lang/Throwable.java (trace_enabled): New static field.
2216 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2217 trace_enabled not set.
2218 * prims.cc (main_init): Turn off trace_enabled while creating
2219 default exception objects.
2221 2000-12-21 Tom Tromey <tromey@redhat.com>
2223 * java/beans/PropertyChangeListener.java: Extends EventListener.
2224 * java/beans/VetoableChangeListener.java: Extends EventListener.
2226 * java/util/zip/Deflater.java (update, init): Now private.
2228 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2230 * java/util/BasicMapEntry.java: Re-added.
2231 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2232 (putAll): Test for BasicMapEntry.
2233 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2234 (putAll): Test for BasicMapEntry.
2235 Change references from `HashMap.Entry' to `Entry' in various places.
2236 * Makefile.am: Add BasicMapEntry.java.
2237 * Makefile.in: Rebuilt.
2239 2000-12-18 Warren Levy <warrenl@redhat.com>
2241 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2242 need to set timezone to a valid non-null value. Partial fix for
2245 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2247 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2249 * java/awt/Button.java (addNotify): Likewise.
2250 * java/awt/Label.java (addNotify): Likewise.
2251 * java/awt/Panel.java (addNotify): Likewise.
2252 * java/awt/Scrollbar.java (addNotify): Likewise.
2253 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2254 Remove redundant null checks.
2256 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2258 * COPYING: Update to current
2259 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2260 to 19yy as example year in copyright notice).
2262 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2264 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2265 end-of-stream if avail_in is 0.
2267 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2269 * java/util/ArrayList.java (data): Declare transient.
2270 (serialPersistantFields): Removed.
2271 (readObject): Use defaultReadObject(), not readFields().
2272 (writeObject): Use defaultWriteObject(), not writeFields().
2274 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2276 * java/util/Hashtable.java (put): Remove `last' variable.
2277 Link new entry to head of list.
2278 * java/util/HashMap.java (put): Ditto.
2280 2000-12-15 Tom Tromey <tromey@redhat.com>
2282 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2283 loader to Class.forName.
2285 2000-12-14 Tom Tromey <tromey@redhat.com>
2287 * java/util/ResourceBundle.java
2288 (getBundle(String,Locale,ClassLoader)): New method.
2289 (trySomeGetBundle): Added `loader' argument.
2290 (partialGetBundle): Likewise.
2292 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2293 maximumFractionDigits, maximumIntegerDigits,
2294 minimumFractionDigits, minimumIntegerDigits): Now
2297 * java/lang/Thread.java (checkAccess): Now final.
2299 * java/lang/RuntimePermission.java: Class now final.
2301 * java/io/StringWriter.java (StringWriter(int)): Now public.
2303 * java/io/SerializablePermission.java (legal_names): Now private.
2305 * java/lang/Character.java: Updated UnicodeBlock constants.
2306 * scripts/blocks.pl: Special case private use and surrogate
2309 2000-12-12 Tom Tromey <tromey@redhat.com>
2311 * Makefile.in: Rebuilt.
2312 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2314 (GCJCOMPILE): Use it.
2317 2000-12-11 Tom Tromey <tromey@redhat.com>
2319 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2320 New static final fields.
2322 * scripts/classes.pl (scan): Skip lines with leading `*'.
2323 Fix for PR libgcj/378.
2325 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2327 * configure.in: Remove check for -fuse-divide-subroutine.
2328 * configure: Rebuilt.
2330 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2332 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2334 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2336 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2337 Remove BasicMapEntry.java and Bucket.java.
2338 * Makefile.in: Rebuilt.
2339 * java/util/HashMap.java: Rewritten.
2340 * java/util/HashSet.java: Imported from classpath.
2341 * java/util/WeakHashMap.java: Imported from classpath.
2342 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2343 * java/util/Bucket.java: Deleted.
2344 * java/util/BasicMapEntry.java: Deleted.
2345 * java/util/Collections.java (search): Use a for-loop, not iterator
2347 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2348 of elements in source.
2349 (max): Use a for-loop.
2351 (reverse): Keep track of positions instead of using Iterator's
2352 nextIndex() and previousIndex().
2353 (shuffle(List)): Initialize defaultRandom if required using
2354 double-check thread safety idiom. Call two-argument shuffle method
2355 using defaultRandom.
2356 (defaultRandom): New field.
2357 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2358 using previousIndex() and nextIndex().
2359 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2360 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2361 * java/util/AbstractMap.java (toString): Use StringBuffer.
2362 * java/lang/ref/PhantomReference.java: Imported from classpath.
2363 * java/lang/ref/SoftReference.java: Ditto.
2364 * java/lang/ref/Reference.java: Ditto.
2365 * java/lang/ref/WeakReference.java: Ditto.
2366 * java/lang/ref/ReferenceQueue.java: Ditto.
2368 2000-12-10 Richard Henderson <rth@redhat.com>
2370 * configure.host: Recognize alpha*-*, not alphaev6-*.
2372 2000-12-09 Anthony Green <green@redhat.com>
2374 * configure.host: Enable interpreter for Alpha.
2376 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2378 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2379 (ZIP): Points at fastjar instead of zip.
2380 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2381 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2382 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2383 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2384 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2385 ($(x_java_source_files:.java=.class):): Likewise.
2386 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2388 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2389 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2390 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2391 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2392 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2393 gnu/gcj/runtime/VMClassLoader.h:,
2394 java/io/ObjectInputStream$$GetField.h:,
2395 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2396 (Makefile.in): Rebuilt.
2398 2000-12-08 Tom Tromey <tromey@redhat.com>
2401 * configure: Rebuilt.
2402 * configure.in: Use echo, not `:', to create .d files.
2404 2000-12-08 Warren Levy <warrenl@redhat.com>
2406 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2407 NullPointerException so proper check of offset can be done.
2409 2000-12-08 Warren Levy <warrenl@redhat.com>
2411 * java/io/FileInputStream.java (close): Check if the fd is valid.
2412 * java/io/RandomAccessFile.java (close): Ditto.
2413 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2414 * java/net/PlainSocketImpl.java (close): Ditto.
2416 2000-12-06 Tom Tromey <tromey@redhat.com>
2418 * java/awt/GridBagConstraints.java: Filled in values for static
2421 * java/util/BitSet.java: Updated copyright notice.
2423 * Makefile.in: Rebuilt.
2424 * Makefile.am (awt_java_source_files): Added new file.
2425 * java/awt/GridBagConstraints.java: New file.
2427 2000-12-05 Tom Tromey <tromey@redhat.com>
2429 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2430 Now package-private, not protected.
2431 * java/text/DateFormatSymbols.java (equals): Now private.
2432 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2433 * java/util/BitSet.java: Class no longer final.
2435 2000-12-04 Warren Levy <warrenl@redhat.com>
2437 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2438 out code dependent on compiler and library changes.
2440 2000-12-04 Warren Levy <warrenl@redhat.com>
2442 * java/io/FilePermission.java: Made class final per spec.
2443 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2444 method name to match spec (fixed typo).
2445 * java/util/LinkedList.java: Implements List.
2447 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2449 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2450 Edgar Villanueva <edgarvil@home.com>.
2452 2000-12-03 Tom Tromey <tromey@redhat.com>
2454 * java/awt/geom/Point2D.java: Added protected constructor.
2455 (equals): New method.
2456 (Float.setLocation(float,float)): New method.
2457 * java/awt/geom/Dimension2D.java: Added protected constructor.
2458 * java/awt/geom/AffineTransform.java: Made all constants public.
2459 (concatenate): Fixed typo in name.
2460 * java/awt/event/WindowAdapter.java: Class now abstract.
2461 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2462 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2465 * java/awt/AWTError.java: Extend Error, not
2466 IllegalStateException.
2468 * Makefile.in: Rebuilt.
2469 * Makefile.am (awt_java_source_files): Added new file.
2470 * java/awt/geom/RoundRectangle2D.java: New file.
2472 * Makefile.in: Rebuilt.
2473 * Makefile.am (awt_java_source_files): Added new file.
2474 * java/awt/FlowLayout.java: New file.
2476 * Makefile.in: Rebuilt.
2477 * Makefile.am (awt_java_source_files): Added new file.
2478 * java/awt/GridLayout.java: New file.
2480 2000-12-02 Tom Tromey <tromey@redhat.com>
2482 * Makefile.in: Rebuilt.
2483 * Makefile.am (awt_java_source_files): Added new files.
2484 * java/awt/CardLayout.java: New file.
2485 * java/awt/AWTPermission.java: New file.
2487 2000-12-01 Tom Tromey <tromey@redhat.com>
2489 * java/util/Vector.java (insertElementAt): Unconditionally
2490 increment elementCount.
2491 (removeRange): Clear unused slots in vector.
2493 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2495 * java/lang/natMath.cc: Declare fabsf() function.
2496 * java/lang/mprec.h: Don't include math.h.
2497 * java/lang/dtoa.c: Include string.h.
2498 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2501 From Adam Welc <welc@cs.purdue.edu>:
2502 * java/util/LinkedList.java (removeFirst): Update `first' field.
2503 Handle the last == first case.
2504 (removeLast): Update `last' field. Handle the last == first case.
2506 2000-12-01 Warren Levy <warrenl@cygnus.com>
2508 * Makefile.am: Added entries for new java.sql modules.
2509 * Makefile.in: Rebuilt.
2511 2000-12-01 Warren Levy <warrenl@cygnus.com>
2513 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2514 that aren't quite 1.2 compatible yet.
2516 2000-11-30 Warren Levy <warrenl@cygnus.com>
2518 * java/sql/Array.java: New file from classpath.
2519 * java/sql/BatchUpdateException.java: Ditto.
2520 * java/sql/Blob.java: Ditto.
2521 * java/sql/Clob.java: Ditto.
2522 * java/sql/Ref.java: Ditto.
2523 * java/sql/SQLData.java: Ditto.
2524 * java/sql/SQLInput.java: Ditto.
2525 * java/sql/SQLOutput.java: Ditto.
2526 * java/sql/Struct.java: Ditto.
2527 * java/sql/CallableStatement.java: Merged file from claspath.
2528 * java/sql/Connection.java: Ditto.
2529 * java/sql/DataTruncation.java: Ditto.
2530 * java/sql/DatabaseMetaData.java: Ditto.
2531 * java/sql/DriverManager.java: Ditto.
2532 * java/sql/PreparedStatement.java: Ditto.
2533 * java/sql/ResultSet.java: Ditto.
2534 * java/sql/ResultSetMetaData.java: Ditto.
2535 * java/sql/SQLException.java: Ditto.
2536 * java/sql/SQLWarning.java: Ditto.
2537 * java/sql/Statement.java: Ditto.
2538 * java/sql/Types.java: Ditto.
2540 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2542 * java/lang/natSystem.cc (init_properties): Set user.language and
2544 * configure.in: Check for setlocale.
2545 * configure: Rebuilt.
2546 * include/config.h.in: Rebuilt.
2548 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2549 the infate() call didn't deliver any output. Throw a ZipException if
2550 the needsDictionary() call returns true.
2551 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2552 * java/io/InputStreamReader: Use the default buffer size for the
2553 contained BufferedInputStream.
2555 2000-11-28 Warren Levy <warrenl@cygnus.com>
2557 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2558 more time zone entries.
2559 * java/text/SimpleDateFormat.java (format): Added case for
2562 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2564 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2565 directly rather than read() in all cases. Make primitive read
2566 implementations more efficient, as defined in JDK online docs.
2567 (skipBytes): Behave like the JDK's implementation.
2568 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2569 closed stream with checkStatus() whenever an IOException can be
2571 (checkStatus): New private method.
2573 2000-11-27 Warren Levy <warrenl@cygnus.com>
2575 * Makefile.am: Added natTimeZone.cc.
2576 * Makefile.in: Rebuilt.
2577 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2578 * java/text/DateFormatSymbols.java (ampms): Made package private.
2579 (eras): Made package private.
2580 (months): Made package private.
2581 (shortMonths): Made package private.
2582 (shortWeekdays): Made package private.
2583 (weekdays): Made package private.
2584 (formatPrefixes): New private field.
2585 (localPatternCharsDefault): Made private.
2586 (dateFormats): New package private field.
2587 (timeFormats): New package private field.
2588 (formatsForKey): New private method.
2589 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2590 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2591 * java/text/SimpleDateFormat.java: Merged with Classpath.
2592 * java/util/TimeZone.java: Merged with Classpath.
2593 * java/util/natTimeZone.cc: New file.
2595 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2597 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2598 (addElement): Don't increment elementCount twice. Doh.
2599 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2600 array needs to be expanded.
2602 * java/util/Collections.java (UnmodifiableCollection): Implement
2604 (UnmodifiableList): Throw UnsupportedOperationException from
2605 modification methods. Set `l' from the one-parameter constructor.
2606 (UnmodifiableMap): Implement toString().
2607 (SynchronizedCollection): Ditto.
2608 (SynchronizedList): Set `l' from the one-parameter constructor.
2609 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2610 (SynchronizedMap): Implement toString().
2612 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2614 * javax/naming/NameParser.java,
2615 javax/naming/directory/AttributeInUseException.java,
2616 javax/naming/directory/AttributeModificationException.java,
2617 javax/naming/directory/InvalidAttributeIdentifierException.java,
2618 javax/naming/directory/InvalidAttributesException.java,
2619 javax/naming/directory/InvalidAttributeValueException.java,
2620 javax/naming/directory/InvalidSearchControlsException.java,
2621 javax/naming/directory/InvalidSearchFilterException.java,
2622 javax/naming/directory/NoSuchAttributeException.java,
2623 javax/naming/directory/SchemaViolationException.java: New files.
2625 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2627 * javax/naming/InitialContext.java (rebind): Implement.
2628 (unbind): Implement.
2629 (rename): Implement.
2631 (listBindings): Implement.
2632 (destroySubcontext): Implement.
2633 (createSubcontext): Implement.
2634 (lookupLink): Implement.
2635 (getNameParser): Implement.
2636 (composeName): Implement.
2637 (addToEnvironment): Implement.
2639 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2641 * javax/naming/AuthenticationException.java,
2642 javax/naming/AuthenticationNotSupportedException.java,
2643 javax/naming/CannotProceedException.java,
2644 javax/naming/CommunicationException.java,
2645 javax/naming/ConfigurationException.java,
2646 javax/naming/ContextNotEmptyException.java,
2647 javax/naming/InsufficientResourcesException.java,
2648 javax/naming/InterruptedNamingException.java,
2649 javax/naming/InvalidNameException.java,
2650 javax/naming/LimitExceededException.java,
2651 javax/naming/LinkException.java,
2652 javax/naming/LinkLoopException.java,
2653 javax/naming/MalformedLinkException.java,
2654 javax/naming/NameAlreadyBoundException.java,
2655 javax/naming/NameNotFoundException.java,
2656 javax/naming/NamingSecurityException.java,
2657 javax/naming/NoPermissionException.java,
2658 javax/naming/NotContextException.java,
2659 javax/naming/PartialResultException.java,
2660 javax/naming/ReferralException.java,
2661 javax/naming/ServiceUnavailableException.java,
2662 javax/naming/SizeLimitExceededException.java,
2663 javax/naming/TimeLimitExceededException.java: New files.
2665 * javax/naming/Name.java (clone): New method.
2666 (compareTo): New method.
2667 (isEmpty): New method.
2668 (getAll): New method.
2669 (getPrefix): New method.
2670 (getSuffix): New method.
2671 (startsWith): New method.
2672 (endsWith): New method.
2673 (addAll): New method.
2674 (addAll): New method.
2677 (remove): New method.
2679 * javax/naming/Context.java (lookup): New method.
2680 (rebind): New method.
2681 (unbind): New method.
2682 (rename): New method.
2684 (listBindings): New method.
2685 (destroySubcontext): New method.
2686 (createSubcontext): New method.
2687 (lookupLink): New method.
2688 (getNameParser): New method.
2689 (composeName): New method.
2690 (addToEnvironment): New method.
2691 (removeFromEnvironment): New method.
2692 (getEnvironment): New method.
2693 (close): New method.
2694 (getNameInNamespace): New method.
2696 * javax/naming/InitialContext.java (lookup): New method.
2697 (rebind): New method.
2698 (unbind): New method.
2699 (rename): New method.
2701 (listBindings): New method.
2702 (destroySubcontext): New method.
2703 (createSubcontext): New method.
2704 (lookupLink): New method.
2705 (getNameParser): New method.
2706 (composeName): New method.
2707 (addToEnvironment): New method.
2708 (removeFromEnvironment): New method.
2709 (getEnvironment): New method.
2710 (close): New method.
2711 (getNameInNamespace): New method.
2713 2000-11-26 Tom Tromey <tromey@cygnus.com>
2715 * Makefile.in: Rebuilt.
2716 * Makefile.am (core_java_source_files): Added
2717 RuntimePermission.java.
2718 * java/lang/RuntimePermission.java: Imported from Classpath.
2719 * java/lang/Thread.java (getContextClassLoader): Now
2720 synchronized. Added security code.
2721 (setContextClassLoader): Likewise.
2723 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2724 length field of array.
2725 (_Jv_NewPrimArray): Likewise.
2726 * gcj/array.h (__JArray): `length' field now const. Added
2729 2000-11-26 Anthony Green <green@redhat.com>
2731 * javax/naming/spi/NamingManager.java,
2732 javax/naming/spi/ObjectFactory.java,
2733 javax/naming/spi/InitialContextFactory.java,
2734 javax/naming/spi/InitialContextFactoryBuilder.java,
2735 javax/naming/RefAddr.java, javax/naming/Reference.java,
2736 javax/naming/NamingException.java, javax/naming/Context.java,
2737 javax/naming/Referenceable.java,
2738 javax/naming/directory/InitialDirContext.java,
2739 javax/naming/directory/DirContext.java,
2740 javax/naming/directory/Attributes.java,
2741 javax/naming/directory/Attribute.java,
2742 javax/naming/StringRefAddr.java,
2743 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2744 javax/naming/InitialContext.java,
2745 javax/naming/NoInitialContextException.java: New files.
2747 2000-11-25 Anthony Green <green@redhat.com>
2749 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2750 (_Jv_NewPrimArray): Likewise.
2751 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2752 (class JArray): Removed constructor.
2754 * java/lang/Thread.java (context_class_loader): New private data.
2755 (getContextClassLoader): New method.
2756 (setContextClassLoader): New method.
2757 (Thread): Initialize context_class_loader.
2759 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2760 (getResource): Rename to findResource.
2761 (findResource): New method. Used to be getResource.
2762 (getResourceAsStream): Deleted.
2763 (jarFileize): Extracted logic from URLClassLoader constructor into
2764 this new private method.
2765 (addURL): New protected method.
2766 (URLClassLoader): Call jarFileize. Use addElement instead of
2768 (findResources): New method.
2770 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2771 (getResource): Implement correct logic.
2772 (findResource): New method.
2773 (getResources): New method.
2774 (findClass): Create a ClassNotFoundException with the name of the
2775 class rather than nothing at all.
2776 (defineClass) Only throw ClassFormatError.
2778 * java/lang/Class.java (forName): New method.
2779 * java/lang/Class.h (forName): New method.
2780 * java/lang/natClass.cc (forName): New method.
2782 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2784 * java/lang/System.java (setProperties): Only call init_properties()
2785 if properties is null.
2786 (getProperties): Ditto.
2787 (getProperty): Ditto.
2788 (setProperty): Call init_properties if properties are null.
2789 (prop_init): Remove field.
2790 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2791 method. Check for null properties after synchronizing instead of
2792 prop_init flag. Set the properties field last for thread safety.
2794 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2795 test for gcj.dumpobjects property and enable object stream dumping
2797 (dumpElement): No longer native.
2798 (dumpElementln): Ditto.
2799 (setDump): Do not define.
2800 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2801 (dumpElementln): Removed.
2804 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2806 * configure: Rebuilt.
2807 * Makefile.in: Rebuilt.
2808 * Makefile.am (built_java_source_files): Add Configuration.java.
2809 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2810 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2811 Create `gnu' directory in the build tree.
2812 * gnu/classpath/Configuration.java.in: New file.
2814 2000-11-24 Tom Tromey <tromey@cygnus.com>
2816 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2818 (_Jv_NewPrimArray): Likewise.
2820 * gcj/array.h (__JArray): `length' field now const. Added
2822 (class JArray): Added constructor.
2824 2000-11-23 Mark Wielaard <mark@klomp.org>
2826 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2829 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2831 * java/util/Vector.java: Improve exception messages.
2832 (Vector): Check initialCapacity for IllegalArgumentException.
2833 (tromToSize): Don't check for elementCount == elementData.length
2835 (toArray): Don't try to set null marker if target array is the same
2836 length as the vector.
2838 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2840 * Makefile.in: Rebuilt.
2841 * Makefile.am (core_java_source_files): Added Collections.java.
2842 * java/util/List.java: Merged from classpath.
2843 * java/util/Vector.java: Ditto.
2844 * java/util/Collections.java: From classpath.
2845 * java/util/ArrayList.java (addAll(Collection)): Call
2846 addAll(int,Collection) instead of duplicating code.
2847 (indexOf): Clean up int initialization.
2848 (clear): Set cleared array entries to null, to allow garbage
2850 * java/util/List.java: Minor formatting fixes.
2851 * java/util/SimpleTimeZone.java: ditto.
2853 2000-11-18 Tom Tromey <tromey@cygnus.com>
2855 * Makefile.in: Rebuilt.
2856 * Makefile.am (core_java_source_files): Added new files.
2857 * java/lang/reflect/ReflectPermission.java: New class.
2858 * java/io/FileFilter.java: From Classpath
2859 * java/io/FilePermission.java: From Classpath.
2861 2000-11-17 Tom Tromey <tromey@cygnus.com>
2863 * java/lang/reflect/AccessibleObject.java (isAccessible,
2864 setAccessible): Now public.
2866 * java/lang/natString.cc: Include Locale.h.
2867 (toUpperCase): Added `locale' argument. Handle locale
2869 (toLowerCase): Added `locale' argument. Handle locale
2871 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2872 CAPITAL_I): New defines.
2873 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2876 (toUpperCase, toLowerCase): New methods. Variants which accept
2879 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2882 * java/util/PropertyPermission.java: Re-merged from Classpath.
2884 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2886 * java/text/StringCharacterIterator.java: Reindented.
2887 (setText): New method.
2889 2000-11-17 Mark Wielaard <mark@klomp.org>
2891 Merge with Classpath (changes by Bryce McKinlay)
2892 * java/util/jar/*.java: Reformat all to unofficial standard coding
2893 style. No changes of substance.
2895 2000-11-17 Mark Wielaard <mark@klomp.org>
2897 * java/util/zip/*.java: Javadoc updates.
2899 2000-11-17 Tom Tromey <tromey@cygnus.com>
2901 * java/text/CollationKey.java: Implement Comparable.
2902 (compareTo(Object)): New method.
2903 * java/text/Collator.java (compare(Object,Object)): New method.
2904 Implement Comparator.
2906 * java/util/zip/InflaterInputStream.java (available): New method.
2907 (close): New method.
2908 (read, available, skip, fill): Throw exception if stream closed.
2909 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2910 getNextEntry): Throw exception if closed.
2912 2000-11-16 Tom Tromey <tromey@cygnus.com>
2914 * java/io/PushbackReader.java: Merged with Classpath.
2915 * java/util/Arrays.java: Updated from Classpath.
2917 * scripts/blocks.pl: New file.
2918 * java/lang/Character.java (Subset): New class.
2919 (UnicodeBlock): New class.
2921 * java/lang/Math.java (toDegrees, toRadians): New methods.
2923 * java/lang/Float.java: Implement Comparable.
2924 (compareTo): New methods.
2925 * java/lang/Double.java: Implement Comparable.
2926 (compareTo): New methods.
2928 2000-11-16 Warren Levy <warrenl@cygnus.com>
2930 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2932 (listeners): Made transient.
2933 (source): Renamed from 'bean'.
2934 (children): New field for serialization.
2935 (propertyChangeSupportSerializedDataVersion): Ditto.
2936 (serialVersionUID): Ditto.
2937 (writeObject): New serialization method.
2938 (readObject): New serialization method.
2939 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2941 (listeners): Made transient.
2942 (source): Renamed from 'bean'.
2943 (children): New field for serialization.
2944 (vetoableChangeSupportSerializedDataVersion): Ditto.
2945 (serialVersionUID): Ditto.
2946 (writeObject): New serialization method.
2947 (readObject): New serialization method.
2948 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2949 to allow constructor to have a return type (i.e. the class that the
2950 constructor constructs).
2952 2000-11-14 Tom Tromey <tromey@cygnus.com>
2954 * Makefile.in: Rebuilt.
2955 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2958 2000-11-02 Warren Levy <warrenl@cygnus.com>
2960 * java/io/ObjectInputStream.java (readObject): Added code to
2961 conditionally dump out the serialized data.
2962 Handle ENDBLOCKDATA case a bit more gracefully since the current
2963 behavior doesn't seem to work as expected.
2964 (readStreamHeader): Added code for serialized data dumper.
2965 (readNextBlock): Ditto.
2966 (readFields): Ditto.
2967 (dump): New private static field for turning on/off dumper.
2968 (setDump): New native method.
2969 (dumpElement): New native method.
2970 (dumpElementln): New native method.
2971 * java/io/natObjectInputStream.cc (setDump): New method.
2972 (dumpElement): New method.
2973 (dumpElementln): New method.
2975 2000-11-02 Warren Levy <warrenl@cygnus.com>
2977 * java/net/InetAddress.java (addr): Renamed from 'address'.
2978 (address): New field to match Serialized Form doc.
2979 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2980 (family): New serialization field.
2981 (serialVersionUID): New field.
2982 (readObject): New method.
2983 (writeObject): New method.
2984 (getFamily): New native method.
2985 (InetAddress): Set family.
2986 * java/net/natInetAddress.cc (getFamily): New method.
2987 (addr): Renamed from 'address'.
2988 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2989 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2990 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2992 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2994 * java/util/AbstractList.java (SubList): Make it a top-level private
2996 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2998 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2999 * Makefile.in: Rebuilt.
3001 2000-11-02 Tom Tromey <tromey@cygnus.com>
3003 * Makefile.in: Rebuilt.
3004 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3007 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3009 * java/util/AbstractList.java (remove): Comment out modCount increment
3010 to work around compiler bug.
3013 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3015 * java/util/AbstractList.java: Throw messages with
3016 IndexOutOfBoundsExceptions.
3017 (listIterator()): Call listIterator(0).
3018 (size): New field. Initialize to size().
3019 (hasNext): Test position against size, not size().
3020 (remove): Increment knownMod by one instead of resetting it from
3023 (SubList.upMod): Removed.
3024 (SubList.set): Don't call upMod() or update knownMod.
3025 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3026 (SubList.remove): Ditto.
3027 (SubList.addAll): Don't call backingList.size(). Increment size from
3029 (SubList.iterator): New method. Call listIterator(0).
3030 (SubList.listIterator): New method. Restore code to return an anonymous
3031 listIterator implementation (with some changes).
3032 * java/util/AbstractSequentialList.java: Throw messages with
3033 IndexOutOfBoundsExceptions.
3034 (addAll): Add a specnote.
3035 * java/util/ArrayList.java (removeRange): Get the math right.
3036 (addAll): Increment modCount _before_ creating iterator.
3037 * java/util/LinkedList.java: Rewritten, mostly.
3039 2000-11-01 Tom Tromey <tromey@cygnus.com>
3041 * scripts/encodings.pl: Added `ASCII' alias.
3042 * Makefile.in: Rebuilt.
3043 * Makefile.am (convert_source_files): Added new files.
3044 * gnu/gcj/convert/Input_ASCII.java: New file.
3045 * gnu/gcj/convert/Output_ASCII.java: New file.
3046 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3047 out-of-range characters.
3048 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3049 (read): Swap bytes if required. Treat `count' as character count,
3051 (write): Likewise. Also, handle case where iconv fails on a given
3053 (init): Put encoding into exception.
3054 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3055 (static): Call iconv_init. Rebuilt alias list.
3056 (iconv_init): New private method.
3058 2000-11-01 Tom Tromey <tromey@cygnus.com>
3060 * Makefile.in: Rebuilt.
3061 * Makefile.am (install-exec-hook): Only make a single symlink, and
3062 remove the destination before making the link.
3063 * configure: Rebuilt.
3064 * configure.in: Call AC_PROG_LN_S.
3066 2000-10-31 Warren Levy <warrenl@cygnus.com>
3068 * jni.cc: Added include of java/lang/ThreadGroup.h.
3069 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3070 per change of 2000-10-05.
3072 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3074 * java/util/BitSet.java: Updated @specnote.
3076 * java/io/Reader.java: Merge docs from classpath.
3077 (skip): Synchronize on `lock'.
3078 * java/io/FileReader.java: Import correct implementation from
3080 * java/io/StringReader.java: Merge docs from classpath.
3081 (ready): Throw IOException if stream is closed.
3083 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3085 * java/util/AbstractCollection.java (addAll): Use size() instead of
3086 hasNext() in iterator loop.
3088 (contains): Ditto. Simplify loop.
3089 (containsAll): Ditto.
3094 (toString): Ditto. Use string concatenation operators, not
3096 * java/util/AbstractList.java (addAll): Use size() instead of
3097 hasNext() in iterator loop.
3100 (indexOf): Ditto. Don't take null check outside of the loop.
3101 (iterator): Return an AbstractListItr instead of anonymous class.
3102 (lastIndexOf): Use a for loop bounded by size() instead of
3103 hasPrevious() in iterator loop.
3104 (listIterator): Return an AbstractListItr.
3105 (removeRange): Remove bounds checking code and docs.
3106 (AbstractListItr): New inner class. Code moved here from
3108 (SubList.iterator): Removed. Use default implementation from
3109 AbstractList instead.
3110 (SubList.listIterator): As above.
3111 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3112 instead of hasNext() in iterator loop.
3113 (containsValue): Ditto.
3119 (toString): Ditto. Use string concatenation operators, not
3121 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3122 bounded by size() instead of hasNext() in iterator loop.
3123 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3124 part of normal execution flow. Do an explicit null check instead.
3125 * java/util/ArrayList.java (_iSize): Rename to `size'.
3126 (_arData): Rename to `data'.
3127 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3130 (removeRange): Make protected. Don't check bounds.
3131 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3133 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3135 (addAll (int, Collection)): Check lower bounds. Simplify exception
3137 (clone): Clone the data array too.
3138 (indexOf): Inline doesEqual().
3139 (lastIndexOf): Ditto.
3140 (clear): Don't set array data to null.
3141 (set): Check lower bounds. Simplify exception string.
3142 (toArray): Correct comment.
3143 (trimToSize): Don't update modCount, this is not a structural change.
3146 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3148 (toString): Declare `bit' as long, not int.
3149 (data): Made package-private, not private.
3151 2000-10-27 Warren Levy <warrenl@cygnus.com>
3153 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3154 array elements to true.
3156 2000-10-27 Warren Levy <warrenl@cygnus.com>
3158 * Makefile.am: Added locale files from Classpath.
3159 * Makefile.in: Rebuilt.
3160 * gnu/java/locale/Calendar.java: New file.
3161 * gnu/java/locale/Calendar_de.java: New file.
3162 * gnu/java/locale/Calendar_en.java: New file.
3163 * gnu/java/locale/Calendar_nl.java: New file.
3164 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3165 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3166 serialization compatibility.
3167 (scale): Made private.
3168 (serialVersionUID): New field.
3169 * java/math/BigInteger.java (ival): Made transient.
3170 (words): Made transient.
3171 (bitCount): New serialization field.
3173 (firstNonzeroByteNum): Ditto.
3174 (lowestSetBit): Ditto.
3177 (serialVersionUID): New field.
3178 (readObject): New method.
3179 (writeObject): New method.
3180 * java/util/BitSet.java (serialVersionUID): New field.
3181 * java/util/Calendar.java: Replaced with Classpath file.
3182 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3183 of getDefault() for TimeZone or Locale instead of passing nulls.
3184 * java/util/Locale.java (serialVersionUID): New field.
3185 (writeObject): New method.
3186 (readObject): New method.
3187 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3189 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3191 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3192 (core_java_source_files): Put java.lang, java.io, and java.util here.
3193 (ordinary_java_source_files): Order so that core_java_source_files are
3195 (java_source_files): Reorder so that special_java_source_files are
3197 * configure.in: Don't pass -I flag to gcj.
3198 * Makefile.in: Rebuilt.
3199 * configure: Rebuilt.
3201 2000-10-25 Tom Tromey <tromey@cygnus.com>
3203 * Makefile.in: Rebuilt.
3204 * Makefile.am (install-exec-hook): New target.
3206 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3208 * java/util/EventObject.java: Merged from classpath.
3210 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3213 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3215 * java/util/AbstractSet.java (equals): Re-installed original code.
3217 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3219 * Makefile.am: Added rules for libgcjx library.
3220 * Makefile.in: Rebuilt.
3221 * configure.in: Added check for X.
3222 * configure: Rebuilt.
3223 * gnu/awt/LightweightRedirector.java: New file.
3224 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3225 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3226 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3227 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3228 * gnu/awt/j2d/MappedRaster.java: New file.
3229 * gnu/awt/xlib/XCanvasPeer.java: New file.
3230 * gnu/awt/xlib/XEventLoop.java: New file.
3231 * gnu/awt/xlib/XEventQueue.java: New file.
3232 * gnu/awt/xlib/XFontMetrics.java: New file.
3233 * gnu/awt/xlib/XFramePeer.java: New file.
3234 * gnu/awt/xlib/XGraphics.java: New file.
3235 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3236 * gnu/awt/xlib/XPanelPeer.java: New file.
3237 * gnu/awt/xlib/XToolkit.java: New file.
3238 * gnu/gcj/xlib/Clip.java: New file.
3239 * gnu/gcj/xlib/Colormap.java: New file.
3240 * gnu/gcj/xlib/Display.java: New file.
3241 * gnu/gcj/xlib/Drawable.java: New file.
3242 * gnu/gcj/xlib/Font.java: New file.
3243 * gnu/gcj/xlib/GC.java: New file.
3244 * gnu/gcj/xlib/Pixmap.java: New file.
3245 * gnu/gcj/xlib/Screen.java: New file.
3246 * gnu/gcj/xlib/Visual.java: New file.
3247 * gnu/gcj/xlib/WMSizeHints.java: New file.
3248 * gnu/gcj/xlib/Window.java: New file.
3249 * gnu/gcj/xlib/WindowAttributes.java: New file.
3250 * gnu/gcj/xlib/XAnyEvent.java: New file.
3251 * gnu/gcj/xlib/XButtonEvent.java: New file.
3252 * gnu/gcj/xlib/XColor.java: New file.
3253 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3254 * gnu/gcj/xlib/XConnectException.java: New file.
3255 * gnu/gcj/xlib/XEvent.java: New file.
3256 * gnu/gcj/xlib/XException.java: New file.
3257 * gnu/gcj/xlib/XExposeEvent.java: New file.
3258 * gnu/gcj/xlib/XID.java: New file.
3259 * gnu/gcj/xlib/XImage.java: New file.
3260 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3261 * gnu/gcj/xlib/natClip.cc: New file.
3262 * gnu/gcj/xlib/natColormap.cc: New file.
3263 * gnu/gcj/xlib/natDisplay.cc: New file.
3264 * gnu/gcj/xlib/natDrawable.cc: New file.
3265 * gnu/gcj/xlib/natFont.cc: New file.
3266 * gnu/gcj/xlib/natGC.cc: New file.
3267 * gnu/gcj/xlib/natPixmap.cc: New file.
3268 * gnu/gcj/xlib/natScreen.cc: New file.
3269 * gnu/gcj/xlib/natVisual.cc: New file.
3270 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3271 * gnu/gcj/xlib/natWindow.cc: New file.
3272 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3273 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3274 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3275 * gnu/gcj/xlib/natXColor.cc: New file.
3276 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3277 * gnu/gcj/xlib/natXException.cc: New file.
3278 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3279 * gnu/gcj/xlib/natXImage.cc: New file.
3280 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3281 * java/awt/EventDispatchThread.java: Start thead on creation.
3283 2000-10-20 Tom Tromey <tromey@cygnus.com>
3285 From Arno J. Klaassen:
3286 * interpret.cc: Include <stdlib.h> for alloca.
3287 * defineclass.cc: Include <stdlib.h> for alloca.
3289 * Makefile.in: Rebuilt.
3290 * Makefile.am: Include deps.mk.
3291 (GCJCOMPILE): Added -MD, -MT, and -MF.
3292 ($(javao_files)): Don't depend on libgcj.zip.
3293 (all-recursive): New target.
3294 (%.lo:%.cc): Do dependency tracking.
3295 ($(nat_headers)): Don't depend on libgcj.zip.
3296 * configure: Rebuilt.
3297 * configure.in: Make .d files and deps.mk.
3299 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3301 * exception.cc: Don't #include "exception".
3302 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3304 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3305 * Makefile.in: Updated.
3307 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3309 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3310 * java/awt/peer/ComponentPeer.java (disable): Removed.
3313 (minimumSize): Removed.
3314 (preferredSize): Removed.
3317 * java/awt/peer/ListPeer.java (addItem): Removed.
3319 (minimumSize): Removed.
3320 (preferredSize): Removed.
3321 (setMultipleSelections): Removed.
3322 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3323 (remove): Renamed from removeMenu.
3324 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3326 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3327 (remove): Renamed from removeItem.
3328 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3329 (getMinimumSize): Removed.
3330 (getPreferredSize): Removed.
3331 (minimumSize): Removed.
3332 (preferredSize): Removed.
3333 (replaceText): Removed.
3334 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3335 (preferredSize): Removed.
3336 (getMinimumSize): Removed.
3337 (getPreferredSize): Removed.
3338 (setEchoCharacter): Removed.
3340 2000-10-10 Warren Levy <warrenl@cygnus.com>
3342 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3343 * java/sql/Date.java (serialVersionUID): New field.
3344 * java/sql/Time.java (serialVersionUID): New field.
3345 * java/sql/Timestamp.java (serialVersionUID): New field.
3346 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3347 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3348 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3349 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3350 (readObject): New serialization method.
3351 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3352 (serialVersionOnStream): New field.
3353 (readObject): New serialization method.
3354 (getMonetaryDecimalSeparator): New method.
3355 (setMonetaryDecimalSeparator): New method.
3356 * java/text/NumberFormat.java (maxFractionDigits): New field.
3357 (maxIntegerDigits): New field.
3358 (minFractionDigits): New field.
3359 (minIntegerDigits): New field.
3360 (serialVersionOnStream): New field.
3361 (serialVersionUID): New field.
3362 (readObject): New serialization method.
3363 (writeObject): New serialization method.
3364 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3365 (serialVersionOnStream): New field.
3366 (serialVersionUID): New field.
3367 (readObject): New serialization method.
3369 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3371 * configure.in (GCJ): Avoid bogus error message when looking for
3372 (and not finding) gcj in the build tree.
3373 * configure: Rebuilt.
3375 2000-10-09 Tom Tromey <tromey@cygnus.com>
3377 * configure: Rebuilt.
3378 * configure.in: Include sys/types.h when checking for socklen_t.
3379 From Arno J. Klaassen.
3381 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3383 * include/jvm.h: Enable __builtin_expect().
3385 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3386 the main program. Fix for PR libgcj/341.
3388 2000-10-07 Tom Tromey <tromey@cygnus.com>
3390 * java/util/Properties.java: Merged with Classpath version.
3392 2000-10-05 Tom Tromey <tromey@cygnus.com>
3394 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3395 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3396 * java/lang/Class.h (Object): Added `class$' field.
3397 * java/lang/Object.h (Object): Added `class$' field.
3398 * defineclass.cc (ClassClass): Use `class$' form.
3399 (ClassObject): Likewise.
3400 * resolve.cc (ClassObject): Use `class$' form.
3401 (ObjectClass): Likewise.
3402 * interpret.cc (ClassError): Removed.
3403 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3405 (IntegerClass): Likewise.
3406 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3408 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3409 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3410 SerializableClass): Likewise.
3411 Include Serializable.h, Cloneable.h.
3412 * java/lang/natSystem.cc (SystemClass): Removed.
3413 (init_properties): Use `class$' form.
3414 * java/lang/natObject.cc (CloneableClass): Removed.
3415 (clone): Use `class$' form.
3416 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3417 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3418 ConstructorClass): Likewise.
3419 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3420 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3421 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3422 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'