1 2001-08-17 Jeff Sturm <jsturm@one-point.com>
3 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
4 starting from zero offset.
6 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
8 * boehm.cc: Include gc_local_alloc.h if appropriate.
9 (GC_GENERIC_MALLOC): Don't define.
10 (MAYBE_MARK): Redefine for GC 6.0.
11 (_Jv_MarkObj): Mark class differently.
12 (_Jv_AllocArray): Use GC_generic_malloc.
14 2001-08-17 Mark J Roberts <mjr@anarcast.net>
16 * java/math/BigInteger.java (randBytes): New method.
17 (BigInteger(int,Random)): Use randBytes.
19 2001-08-17 Tom Tromey <tromey@redhat.com>
21 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
23 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
25 * BigInteger.java: fix right shifts by nonzero multiples of 32.
27 2001-08-15 Tom Tromey <tromey@redhat.com>
29 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
30 (local_ref_table, global_ref_table): Now IdentityHashMap.
31 (_Jv_JNI_Init): Updated for new types.
32 (mark_for_gc): Likewise.
33 (unmark_for_gc): Likewise.
34 * gcj/javaprims.h: Rebuilt class list.
35 * Makefile.in: Rebuilt.
36 * Makefile.am (core_java_source_files): Added new file.
37 * java/util/IdentityHashMap.java: New file.
39 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
42 2001-08-09 Tom Tromey <tromey@redhat.com>
44 * java/awt/image/SampleModel.java (getPixel): Set correct array
45 element. From Chris Meyer.
47 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
49 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
50 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
52 2001-08-06 Tom Tromey <tromey@redhat.com>
54 * java/io/InputStreamReader.java (refill): Only call refill on
55 BufferedInputStream when appropriate constraints are met.
57 2001-08-05 Tom Tromey <tromey@redhat.com>
59 * java/io/StringWriter.java: Merged with Classpath.
60 * java/io/InputStream.java: Merged with Classpath.
61 * java/io/OutputStream.java: Merged with Classpath.
62 * java/io/PushbackInputStream.java: Merged with Classpath.
63 * java/io/CharArrayReader.java: Merged with Classpath.
64 * java/io/CharArrayWriter.java: Merged with Classpath.
66 2001-08-02 Tom Tromey <tromey@redhat.com>
68 * prims.cc (JNI_OnLoad): Don't declare.
69 (_JNI_OnLoad): Don't define.
70 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
72 2001-08-02 Tom Tromey <tromey@redhat.com>
74 * java/io/RandomAccessFile.java (seek): Let seek go past end of
76 (skipBytes): Don't fail if seeking past end of file.
77 * java/io/FileInputStream.java (skip): Don't fail if seeking past
79 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
81 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
83 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
85 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
87 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
89 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
90 to initialize global_ref_table/local_ref_table.
92 2001-08-02 Tom Tromey <tromey@redhat.com>
95 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
98 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
100 * include/posix.h (_POSIX_PII_SOCKET): Define.
101 * configure.in (HAVE_SOCKLEN_T): Define.
102 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
104 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
105 (java::net::PlainSocketImpl::accept): Use it.
106 Fixes PRs libgcj/3694, libgcj/3696.
108 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
109 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
110 * configure, include/config.h.in: Regenerate.
111 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
112 (mcastGrp): Likewise.
113 (java::net::PlainDatagramSocketImpl::setOption): Guard against
114 missing IPV6_MULTICAST_IF.
115 Fixes PR libgcj/3694.
117 2001-08-01 Jeff Sturm <jsturm@one-point.com>
119 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
121 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
123 * Makefile.in: Rebuilt.
124 * Makefile.am (GCJLINK): Added --tag=GCJ.
127 2001-07-30 Tom Tromey <tromey@redhat.com>
129 * java/util/Date.java: Re-merged with Classpath.
131 2001-07-30 Jeff Sturm <jsturm@one-point.com>
133 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
134 (_Jv_bind): New static function.
135 (bind): Use _Jv_bind.
136 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
137 (_Jv_bind, _Jv_connect): New static functions.
138 (bind): Use _Jv_bind.
139 (connect): Use _Jv_connect.
141 2001-07-30 Tom Tromey <tromey@redhat.com>
142 Corey Minyard <minyard@acm.org>
144 * gnu/gcj/convert/natIconv.cc (done): New methods.
145 * gnu/gcj/convert/Output_iconv.java (done): New method.
146 * gnu/gcj/convert/Input_iconv.java (done): New method.
147 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
149 (getDefaultEncodingClass): Removed.
150 (getDefaultEncoder): Use getEncoder.
152 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
154 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
156 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
158 (getDefaultDecodingClass): Removed.
159 (getDefaultDecoder): Use getDecoder.
160 (getDecoder): Look up decoder in cache.
162 * java/lang/natString.cc (init): Call `done' on converter.
163 (getBytes): Likewise.
165 2001-07-30 Tom Tromey <tromey@redhat.com>
167 * java/lang/Integer.java: Merged with Classpath.
169 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
171 * java/util/GregorianCalendar.java (GregorianCalendar): Call
172 setTimeInMillis() to set the default/current time.
174 2001-07-29 Mark Wielaard <mark@klomp.org>
176 * HACKING: add description on updating namespace
178 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
180 * java/util/Calendar.java (set): Never recompute fields here. They
181 will already be set if someone set time explicitly, and it can cause
182 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
183 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
184 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
186 * java/text/SimpleDateFormat.java (defaultCentury): New field.
187 (readObject): Call set2DigitYearStart if appropriate so that
188 defaultCentury is calculated.
189 (SimpleDateFormat): Don't bother clearing calendar here. Call
190 computeCenturyStart().
191 (set2DigitYearStart): Calculate and set defaultCentury.
192 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
194 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
195 2 numeric digits, use the 80-20 heuristic to parse the value into a
196 default century based on defaultCenturyStart.
197 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
199 2001-07-25 Tom Tromey <tromey@redhat.com>
201 * Makefile.in: Rebuilt.
202 * Makefile.am (libgcj.jar): Correctly fail when bytecode
205 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
207 * prims.cc (_JNI_OnLoad): New function.
208 (JNI_OnLoad): Use it.
209 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
211 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
213 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
214 Makefile.in: Regenerate.
216 2001-07-24 Tom Tromey <tromey@redhat.com>
218 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
221 2001-07-23 Tom Tromey <tromey@redhat.com>
223 * gcj/javaprims.h: Rebuilt class list.
224 * Makefile.in: Rebuilt.
225 * Makefile.am (core_java_source_files): Added VMClassLoader.
226 * java/lang/VMClassLoader.java: New file.
227 * java/lang/Boolean.java: Merged with Classpath.
228 * java/lang/Byte.java: Merged with Classpath.
229 * java/lang/Integer.java: Merged with Classpath.
230 * java/lang/Long.java: Merged with Classpath.
231 * java/lang/Number.java: Merged with Classpath.
232 * java/lang/Short.java: Merged with Classpath.
234 2001-07-22 Jeff Sturm <jsturm@one-point.com>
236 * configure.host: Enable hash synchronization for alpha*-*.
237 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
239 * java/lang/natObject.cc (compare_and_swap, release_set,
240 compare_and_swap_release): Added inline functions for alpha.
242 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
244 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
245 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
246 back to old RFC 2133 variants if missing.
248 2001-07-18 Tom Tromey <tromey@redhat.com>
250 * java/io/natFileWin32.cc (_access): Renamed.
252 * java/io/natFile.cc (_access): Renamed.
254 * java/io/File.java (access, stat): Add leading `_' to name.
257 2001-07-18 Tom Tromey <tromey@redhat.com>
260 * libgcj.spec.in (*lib): Added LIBICONV.
261 * configure: Rebuilt.
262 * configure.in: Call AM_ICONV. Don't check for iconv function.
263 Add parameters to JV_HASH_SYNCHRONIZATION define.
264 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
266 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
268 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
269 not by setting its size field.
271 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
273 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
276 2001-07-12 Tom Tromey <tromey@redhat.com>
277 David Brownell <david-b@pacbell.net>
279 Fix for PR libgcj/3426:
280 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
282 (read): Throw exception if character conversion fails.
283 * java/io/BufferedInputStream.java (refill): Now package-private.
284 * java/io/InputStreamReader.java (ready): Simplified.
285 (refill): New method.
288 2001-07-12 Tom Tromey <tromey@redhat.com>
290 Report from Henner Zeller:
291 * java/io/FileOutputStream.java (FileOutputStream): Throw
292 FileNotFoundException, not IOException.
294 2001-07-10 Anthony Green <green@redhat.com>
296 * Makefile.in: Rebuilt.
297 * Makefile.am: Add new files.
298 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
299 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
300 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
301 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
302 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
303 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
304 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
305 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
306 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
307 org/w3c/dom/ranges/DocumentRange.java,
308 org/w3c/dom/ranges/Range.java,
309 org/w3c/dom/ranges/RangeException.java,
310 org/w3c/dom/traversal/DocumentTraversal.java,
311 org/w3c/dom/traversal/NodeFilter.java,
312 org/w3c/dom/traversal/NodeIterator.java,
313 org/w3c/dom/traversal/TreeWalker.java,
314 org/xml/sax/ext/DeclHandler.java,
315 org/xml/sax/ext/LexicalHandler.java,
316 org/xml/sax/helpers/AttributeListImpl.java,
317 org/xml/sax/helpers/AttributesImpl.java,
318 org/xml/sax/helpers/DefaultHandler.java,
319 org/xml/sax/helpers/LocatorImpl.java,
320 org/xml/sax/helpers/NamespaceSupport.java,
321 org/xml/sax/helpers/ParserAdapter.java,
322 org/xml/sax/helpers/ParserFactory.java,
323 org/xml/sax/helpers/XMLFilterImpl.java,
324 org/xml/sax/helpers/XMLReaderAdapter.java,
325 org/xml/sax/helpers/XMLReaderFactory.java,
326 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
327 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
328 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
329 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
330 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
331 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
332 org/xml/sax/SAXNotRecognizedException.java,
333 org/xml/sax/SAXNotSupportedException.java,
334 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
335 org/xml/sax/XMLReader.java: New files.
337 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
339 * Makefile.am: Added `java/lang/ThreadLocal.java'.
340 * Makefile.in: Regenerate.
341 * java/lang/ThreadLocal.java: Initial import.
343 2001-07-07 Jeff Sturm <jsturm@one-point.com>
345 * Makefile.am (libgcj.jar): Don't recursively make
346 built_java_source_files. Avoid long command lines.
347 Don't change to $(srcdir) to invoke javac.
348 (libgcj.la, libgcjx.la); Avoid long command lines.
349 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
350 * Makefile.in: Rebuilt.
352 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
354 * include/i386-signal.h: Don't do anything with unsigned divide
355 overflow except throw an exception.
357 2001-07-05 Tom Tromey <tromey@redhat.com>
360 * java/lang/Class.h (Class(void)): Now private. Removed
361 implementation. From dmorsberger@sensysdl.com.
363 2001-07-02 Tom Tromey <tromey@redhat.com>
365 Fix for PR bootstrap/3281:
366 * aclocal.m4, configure: Rebuilt.
367 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
368 Correctly compute libgcj_basedir.
369 (mkinstalldirs): Define and subst.
371 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
374 * java/io/LineNumberReader.java (reset): Pass correct arguments to
377 2001-06-27 Tom Tromey <tromey@redhat.com>
379 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
382 2001-06-25 Tom Tromey <tromey@redhat.com>
384 * scripts/encodings.pl: Generate lower-case names. Updated URL
385 for `character-sets' file.
386 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
388 Rebuilt list of aliases.
390 2001-06-25 Tom Tromey <tromey@redhat.com>
392 * java/io/natFileDescriptorPosix.cc (open): Change error message
393 formatting. From David Brownell.
395 2001-06-21 Tom Tromey <tromey@redhat.com>
397 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
400 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
402 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
403 extraneous/malformed sign word.
405 2001-06-15 Tom Tromey <tromey@redhat.com>
407 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
409 2001-06-15 Tom Tromey <tromey@redhat.com>
411 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
412 NULL if no library on the list has the symbol.
413 (init): Call add_library on the program itself.
414 * prims.cc (JvRunMain): Initialize Runtime before searching for
416 (_Jv_RunMain): Likewise.
418 2001-06-15 Tom Tromey <tromey@redhat.com>
420 * jni.cc (ClassClass): Removed; updated all users.
421 (ObjectClass): Likewise.
422 (ThrowableClass): Likewise.
423 (MethodClass): Likewise.
424 (ThreadGroupClass): Likewise.
425 (local_ref_table): Renamed from `ref_table'.
426 (global_ref_table): New global.
427 (_Jv_JNI_Init): Initialize both ref tables.
428 (mark_for_gc): Added `ref_table' parameter.
429 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
431 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
432 (_Jv_JNI_DeleteGlobalRef): Likewise.
433 (_Jv_JNI_DeleteLocalRef): Likewise.
434 (_Jv_JNI_NewLocalRef): Likewise.
435 (_Jv_JNI_PopLocalFrame): Likewise.
436 (_Jv_JNI_GetStringChars): Likewise.
437 (_Jv_JNI_ReleaseStringChars): Likewise.
438 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
439 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
441 2001-06-14 Tom Tromey <tromey@redhat.com>
443 Fix for PR libgcj/3144:
444 * java/util/Date.java: Merged with Classpath.
446 2001-06-12 Tom Tromey <tromey@redhat.com>
448 * aclocal.m4, configure: Rebuilt.
449 * acinclude.m4: Find configure.host in srcdir.
451 2001-06-07 Tom Tromey <tromey@redhat.com>
453 Fix for PR libgcj/3059:
454 * java/lang/natSystem.cc (init_properties): Define `java.home'.
455 * Makefile.in: Rebuilt.
456 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
458 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
460 * exception.cc (cstdlib): Replaces stdlib.h.
461 (_Jv_Throw): Use std::abort().
462 (PERSONALITY_FUNCTION): Likewise.
464 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
466 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
467 nothing, as in autoconf 2.50.
468 * aclocal.m4, configure: Rebuilt.
470 2001-06-08 Tom Tromey <tromey@redhat.com>
472 * configure: Rebuilt.
473 * configure.in: Compute new aux dir using `pwd'.
475 2001-06-07 Tom Tromey <tromey@redhat.com>
477 For PR bootstrap/3075:
478 * configure, aclocal.m4, Makefile.am: Rebuilt.
479 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
480 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
481 relative to libgcj_basedir.
482 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
483 AC_CANONICAL_SYSTEM here.
484 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
486 ($(extra_headers)): New target.
488 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
489 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
491 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
492 table index is within allowed bounds. Ensure that we dont try to access
493 class itable at a negative offset. Avoid an ancestor table lookup if
494 source is a primitive type class.
495 (isInstance): Remove redundant isPrimitive() check.
497 2001-06-04 Tom Tromey <tromey@redhat.com>
499 * java/security/PublicKey.java: Extend Key.
500 * java/security/PrivateKey.java: Extend Key.
502 2001-06-02 Anthony Green <green@redhat.com>
504 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
505 alternate when USE_LTDL not defined.
507 2001-06-02 Anthony Green <green@redhat.com>
509 * configure: Rebuild.
510 * configure.in: Remove data_start hack.
511 * libgcj.spec.in: Ditto.
512 * Makefile.in: Rebuild.
513 * Makefile.am: Ditto.
514 * libgcjdata.c: Remove.
516 2001-06-02 Anthony Green <green@redhat.com>
518 * configure: Rebuild.
519 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
520 --without-libffi option. Tweak --disable-java-net processing.
521 * Makefile.in: Rebuild.
522 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
523 * include/config.h.in: Rebuild.
524 * acconfig.h (USE_LIBFFI): Define.
525 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
527 2001-06-02 Anthony Green <green@redhat.com>
529 * configure: Rebuilt.
530 * configure.in: Test for sigaction on native builds.
531 * prims.cc: Check HAVE_SIGACTION.
532 * include/config.h.in: Rebuilt.
534 2001-05-31 Jeff Sturm <jsturm@one-point.com>
536 * natFile.cc (get_entry): Removed functions.
537 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
538 Allocate enough storage for d_name if using readdir_r.
540 2001-05-31 Tom Tromey <tromey@redhat.com>
542 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
544 (write): Loop until write completes. From Corey Minyard.
546 2001-05-29 Laurent Guerby <guerby@acm.org>
548 * java/awt/geom/Rectangle2D.java: fix doc typo.
550 2001-05-31 Tom Tromey <tromey@redhat.com>
552 * java/sql/DriverManager.java (getDrivers): Handle case where
553 driver's class loader is null. From Corey Minyard.
555 2001-05-29 Tom Tromey <tromey@redhat.com>
557 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
559 * configure: Rebuilt.
560 * configure.in: Only add multilib support code if we just rebuilt
563 2001-05-29 Andrew Haley <aph@redhat.com>
565 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
566 pointer: the dwarf unwinder in libgcc will do everything that's
568 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
569 more than we absolutely need to.
570 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
571 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
573 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
575 * configure: Rebuilt.
576 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
578 (SIGNAL_HANDLER): Use siginfo style handler.
579 (INIT_SEGV): Likewise.
580 (INIT_FPE): Likewise.
581 * include/ppc-signal.h: Delete whole file.
583 2001-05-24 Tom Tromey <tromey@redhat.com>
585 * java/lang/natString.cc (init): Throw
586 ArrayIndexOutOfBoundsException.
587 (getChars): Likewise.
588 (getBytes): Likewise.
591 * configure.in: Only allow hash synchronization when POSIX threads
593 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
596 2001-05-23 Tom Tromey <tromey@redhat.com>
598 * Makefile.in: Rebuilt.
599 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
601 Revert patch of 2001-05-21:
602 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
603 (libgcj_la_LIBADD): Likewise.
604 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
605 (libgcjx_la_LIBADD): Likewise.
607 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
608 * gcj/Makefile.in: Rebuilt.
609 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
610 * gcj/javaprims.h: Include gcj/libgcj-config.h.
611 * gcj/libgcj-config.h.in: New file.
612 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
613 * configure: Rebuilt.
614 * configure.in: Enable hash synchronization by default on some
616 (HASH_SYNC_SPEC): New subst.
617 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
618 Correctly use `test -z' instead of `test -n' in a couple places.
619 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
621 * configure.host (enable_java_net_default): Initialize.
622 (enable_hash_synchronization_default): New variable.
624 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
626 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
627 synchronization in use.
628 (_Jv_MarkArray): Likewise.
629 (_Jv_AllocBytes): Don't check return result.
630 (handle_out_of_memory): New function.
631 (_Jv_InitGC): Set GC_oom_fn.
632 (trace_one_vtable): New global.
633 (_Jv_AllocTraceOne): New function.
634 * configure.in: Added --enable-hash-synchronization.
635 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
636 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
637 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
638 (_Jv_AllocArray): Likewise.
639 (_Jv_AllocBytes): Likewise.
640 (_Jv_AllocPtrFreeObject): New function.
641 (_Jv_AllocTraceOne): Likewise.
642 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
644 (self_cache): New global.
645 (_Jv_ThreadSelf_out_of_line): New function.
646 * prims.cc (_Jv_AllocBytesChecked): Removed.
647 (_Jv_ThrowNoMemory): New function.
648 (_Jv_AllocObject): Don't check for null return from allocator.
649 (_Jv_NewObjectArray): Likewise.
650 (_Jv_AllocPtrFreeObject): New function.
651 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
652 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
653 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
654 * include/boehm-gc.h (_Jv_AllocObj): Define.
655 (_Jv_AllocPtrFreeObj): Define.
656 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
657 (_Jv_ThrowNoMemory): Declare.
658 (_Jv_AllocTraceOne): Declare.
659 (_Jv_AllocBytesChecked): Removed.
660 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
661 _Jv_MutexUnlock): Handle LOCK_DEBUG.
662 (_Jv_ThreadSelf): Handle case where system pthread_self() is
664 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
666 * java/lang/Object.h (sync_info): Conditional upon presence of
667 hash synchronization.
668 * java/lang/natObject.cc: Much new code to handle thin locks and
669 hash synchronization.
670 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
673 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
675 * gij.cc (version): Update copyright year.
677 2001-05-22 Anthony Green <green@redhat.com>
679 * configure.in: Tweak canadian cross test, and don't redefine GCJ
682 2001-05-21 Per Bothner <per@bothner.com>
684 Implement invocation interface; don't create new thread for main.
685 * java/lang/Thread.java (gen_name): Make native.
686 (<init>(Thread,THreadGroup,Runnable,String)): New private
687 constructor, used by other constructors, and _Jv_AttachCurrentThread.
688 * java/lang/natThread.cc (gen_name): New implementation.
689 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
690 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
691 (_Jv_CreateJavaVM): New runtime initialization procedure.
692 (runFirst): New proecdure - mostly code from old FirstThread::run.
693 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
694 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
695 JvDetachCurrentThread): New inline wrappers.
696 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
697 _Jv_DetachCurrentThread): New declarations.
698 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
699 (getMain): new static method.
700 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
701 by runFirst in prims.cc.
702 (java/lang/Thread.h): Update for new invocation interface.
703 * include/posix-threads.h (_Jv_ThreadRegister,
704 _Jv_ThreadUnRegister): New declarations.
705 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
706 (really_start): Use new _Jv_ThreadRegister.
707 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
708 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
709 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
710 Complain of called when _Jv_OnlyThread already set.
711 (_Jv_ThreadStart): Always JvFail.
712 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
713 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
714 * win32-threads.cc (struct starter): Remove objet field -
715 we use _Jv_Thread_t's new thread_obj field instead.
716 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
717 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
718 (really_start): Use new _Jv_ThreadRegister.
719 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
720 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
721 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
722 Removed - no longer needed with new invocation interface.
723 * Makefile.am: Update for removed/added files.
725 2001-05-21 Per Bothner <per@bothner.com>
727 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
728 (libgcj_la_LIBADD): Likewise.
729 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
731 2001-05-21 Per Bothner <per@bothner.com>
733 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
734 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
735 taken from old Integer.toString code.
736 (Integer::valueOf): Use _Jv_FormatInt.
737 * java/lang/Integer.java (toString): Just use call String.valueOf.
738 * java/lang/Long.java (toString): Fix typo in comment.
739 * java/lang/String.java (valueOf(int)): Make native.
740 * java/lang/StringBuffer.java (append(int)): Make native.
741 * java/lang/natStringBuffer.cc: New file, for append(jint).
742 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
744 2001-05-21 Tom Tromey <tromey@redhat.com>
746 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
748 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
750 * include/dwarf2-signal.h: New file.
751 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
752 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
753 * configure: Rebuilt.
755 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
757 * configure.in: Update boehm-gc include dir for new GC version.
758 * configure: Rebuilt.
759 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
761 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
762 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
763 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
766 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
768 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
769 (_Jv_MutexInit): Likewise.
771 2001-05-18 Tom Tromey <tromey@redhat.com>
773 * Makefile.in: Rebuilt.
774 * Makefile.am (awt_java_source_files): Added Polygon.java.
776 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
778 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
779 * gcj/javaprims.h: ... here.
780 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
782 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
784 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
785 with length of ioffset table.
786 (_Jv_IsAssignableFrom): Likewise.
788 2001-05-17 Per Bothner <per@bothner.com>
790 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
792 2001-05-16 Tom Tromey <tromey@redhat.com>
794 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
797 2001-05-15 Tom Tromey <tromey@redhat.com>
799 * java/util/GregorianCalendar.java (computeTime): Only call
802 2001-05-14 Tom Tromey <tromey@redhat.com>
804 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
805 ZONE_OFFSET just before computing the time.
807 2001-05-12 Zack Weinberg <zackw@stanford.edu>
809 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
810 * Makefile.in: Regenerate (by hand).
811 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
812 * doc/cni.sgml: Document #pragma GCC java_exceptions.
814 2001-05-11 Richard Henderson <rth@redhat.com>
816 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
817 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
819 2001-05-11 Richard Henderson <rth@redhat.com>
821 * exception.cc: Include unwind-pe.h. Remove all pointer
824 2001-05-10 Tom Tromey <tromey@redhat.com>
826 * Makefile.in: Rebuilt.
827 * Makefile.am (awt_java_source_files): Added Polygon.java.
828 * java/awt/Polygon.java: New file.
830 * java/awt/geom/AffineTransform.java
831 (setToRotation(double,double,double)): New method.
832 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
833 (setToShear): Likewise.
835 2001-05-10 Tom Tromey <tromey@redhat.com>
837 * java/util/GregorianCalendar.java: Imported from Classpath.
838 * gnu/java/locale/LocaleInformation_nl.java: New file from
840 * gnu/java/locale/LocaleInformation_en.java: Likewise.
841 * gnu/java/locale/LocaleInformation_de.java: Likewise.
842 * gnu/java/locale/LocaleInformation.java: Likewise.
843 * natGregorianCalendar.cc: Removed.
844 * Makefile.in: Rebuilt.
845 * Makefile.am (nat_source_files): Removed
846 natGregorianCalendar.cc.
848 2001-05-10 Tom Tromey <tromey@redhat.com>
850 * java/text/SimpleDateFormat.java (computeCenturyStart): New
852 (defaultCenturyStart): Use it.
853 (readObject): Likewise.
854 (SimpleDateFormat): Clear the calendar. Set the grouping on the
856 (parse): Copy the calendar before modifying it. Correctly handle
859 * java/util/Calendar.java (clear): Set field value(s) to 0.
861 2001-05-10 Jeff Sturm <jsturm@one-point.com>
863 * Calendar.java (get): Clear areFieldsSet if requested field
865 (set): Unset fields that depend on new value.
867 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
869 * java/lang/Class.h (_Jv_Self): New union type.
870 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
871 Jeff Sturm and Fergus Henderson.
873 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
875 * java/lang/ClassLoader.java: Remove dead code fragment.
877 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
879 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
881 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
883 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
885 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
886 * configure.host (EXCEPTIONSPEC): New.
887 * configure.in (EXCEPTIONSPEC): New.
888 * configure: Rebuilt.
890 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
892 * doc/*.texi: Remove generated documentation.
894 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
896 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
897 (performDelete): Fix #endif placement.
899 2001-04-27 Zack Weinberg <zackw@stanford.edu>
901 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
902 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
903 (_Jv_ThreadDestroyData): Use _Jv_Free.
904 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
907 2001-04-27 Tom Tromey <tromey@redhat.com>
909 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
911 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
913 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
915 * include/jni.h (struct JNINativeInterface): Fixed types in
916 Get/Set*ArrayRegion declarations.
917 (class _Jv_JNIEnv): Likewise.
919 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
921 * configure.in: Obtain THREADS with `gcc -v'.
922 * configure: Rebuilt.
924 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
927 * java/io/ObjectStreamClass.java (setClass): Calculate
928 serialVersionUID for local class and compare it against the UID
929 from the Object Stream. Throw InvalidClassException upon mismatch.
930 (setUID): Renamed to...
931 (getClassUID): this. Return the calculated class UID rather than
932 setting uid field directly.
933 (getDefinedSUID): Removed.
934 * java/io/ObjectInputStream.java (resolveClass): Use the
935 three-argument Class.forName().
936 * java/io/InvalidClassException (toString): Don't include classname in
937 result if it is null.
939 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
941 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
942 Wrap use of inet_pton in HAVE_INET6.
944 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
946 java.security merge and ClassLoader compliance fixes.
948 * java/lang/Class.h (Class): Include ProtectionDomain.h.
949 New protectionDomain field.
950 (forName): Add initialize parameter. Fixes declaration to comply with
952 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
953 variant. Honour "initialize" flag.
954 (getProtectionDomain0): New method.
955 * java/lang/Class.java: Fix forName() declaration.
956 (getPackage): New method based on Classpath implementation.
957 (getProtectionDomain0): New native method decl.
958 (getProtectionDomain): New method.
959 * java/lang/ClassLoader.java (getParent): Now final.
960 (definedPackages): New field.
962 (defineClass): New variant with protectionDomain argument.
963 (definePackage): New.
965 (findSystemClass): Now final.
966 (getSystemResourceAsStream): Remove redundant "final" modifier.
967 (getSystemResource): Remove redundant "final" modifier.
968 (getResources): Now final.
969 (protectionDomainPermission): New static field.
970 (unknownProtectionDomain): Ditto.
971 (defaultProtectionDomain): Ditto.
972 (getSystemClassLoader): Now non-native.
973 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
974 arguments for Class.forName().
975 * java/lang/Package.java: New file.
976 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
977 (instance): Static initialize singleton.
978 (findClass): Override this, not findSystemClass.
979 * java/lang/natClassLoader.cc (defineClass0): Set class's
980 protectionDomain field as specified.
981 (getSystemClassLoader): Removed.
982 (findClass): Renamed from findSystemClass. Call the interpreter via
983 URLClassLoader.findClass if loading class via dlopen fails.
985 * java/security/*.java: java.security import/merge with Classpath.
986 * java/security/acl/*.java: Likewise.
987 * java/security/interfaces/*.java: Likewise.
988 * java/security/spec/*.java: Likewise.
989 * java/net/NetPermission.java: Likewise.
990 * java/net/SocketPermission.java: Likewise.
991 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
993 * Makefile.am: Add new classes.
994 * Makefile.in: Rebuilt.
995 * gcj/javaprims.h: CNI namespace rebuild.
997 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
999 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1000 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1001 * configure: Rebuilt.
1003 2001-04-21 Tom Tromey <tromey@redhat.com>
1005 * Makefile.in: Rebuilt.
1006 * Makefile.am (awt_java_source_files): Added Line2D.java.
1007 * java/awt/geom/Line2D.java: Wrote.
1009 * java/awt/Menu.java (addNotify): Wrote.
1011 * java/awt/PopupMenu.java (addNotify): Implemented.
1014 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1015 * java/awt/List.java (addNotify): Call super.addNotify.
1016 * java/awt/Label.java (addNotify): Call super.addNotify.
1017 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1018 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1019 * java/awt/Choice.java (addNotify): Call super.addNotify.
1020 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1021 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1023 * java/awt/List.java (replaceItem): Notify peer.
1025 * java/awt/geom/Rectangle2D.java
1026 (Float.setRect(float,float,float,float)): New method.
1028 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1031 * java/awt/RenderingHints.java (Key): Class now public.
1033 * java/awt/Rectangle.java (Rectangle): Now implements
1035 (getPathIterator): Removed.
1037 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1040 * java/awt/FileDialog.java: Wrote.
1042 * java/awt/EventQueue.java (isDispatchThread): Now public.
1043 (invokeLater): Likewise.
1045 * java/awt/Component.java (setCursor): Update peer.
1046 (getFontMetrics): Use peer.
1048 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1051 2001-04-20 Tom Tromey <tromey@redhat.com>
1053 * java/awt/List.java: Wrote.
1054 * java/awt/Dialog.java: Wrote.
1056 2001-04-20 Warren Levy <warrenl@redhat.com>
1058 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1059 * java/text/SimpleDateFormat.java
1060 (indexInArray): Removed private method.
1061 (processYear): Removed private method.
1062 (parseLenient): Removed private method.
1063 (parseLeadingZeros): Removed private method.
1064 (parseStrict): Removed private method.
1065 (expect): Added new private method.
1066 (parse): Reverted to pre-Classpath merge version with minor fixes.
1067 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1070 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1072 * java/io/File.java (normalizePath): New private method.
1073 (File (String)): Use normalizePath().
1074 (File (String, String)): Likewise.
1076 * Makefile.am (libffi_files): Removed.
1077 (libgcj.la): Link libffi as a convenience library instead of
1078 refering to its object files directly.
1079 * Makefile.in: Rebuilt.
1081 2001-04-08 Per Bothner <per@bothner.com>
1083 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1084 Recalculate hash, since Utf8Const's hash is only 16 bits.
1086 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1087 bits of hash to calculate step for chaining.
1089 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1090 when 2/3 full, rather than 3/4 full.
1092 2001-04-06 Tom Tromey <tromey@redhat.com>
1094 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1095 (wrap_value<T*>): New specialization.
1096 (_Jv_JNI_PopLocalFrame): Update env->locals.
1098 2001-04-05 Tom Tromey <tromey@redhat.com>
1100 * libtool-version: Updated current.
1102 2001-04-04 Andreas Jaeger <aj@suse.de>
1104 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1105 * gcj/Makefile.in: Rebuilt.
1106 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1107 * Makefile.in: Rebuilt.
1108 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1109 * testsuite/Makefile.in: Rebuild.
1110 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1111 * include/Makefile.in: Rebuild.
1113 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1115 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1116 compiled test', not 'execution from source compiled test'.
1117 Use UNTESTED, not XFAIL, for tests which are not run because
1118 they depend on a previous test which failed.
1120 2001-04-02 Richard Henderson <rth@redhat.com>
1122 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1123 the same tree as gcc.
1124 * configure: Rebuilt.
1126 * exception.cc (_Jv_Throw): Clarify commentary.
1128 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1130 * jni.cc (wrap_value<jclass>): New specialization.
1132 2001-04-02 Tom Tromey <tromey@redhat.com>
1134 * java/io/PrintStream.java (out): Removed field. Fixes PR
1136 (write): Call flush, not out.flush, per spec.
1137 (close): Flush output stream, per spec. Handle
1138 InterruptedIOException.
1139 (checkError): Likewise.
1140 (flush, print, write): Handle InterruptedIOException per spec.
1141 (PrintStream): Don't create BufferedOutputStream.
1142 (work_bytes): New field.
1143 (writeChars): Use work_bytes. Don't assume `out' is a
1144 BufferedOutputStream.
1146 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1148 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1151 2001-03-30 Tom Tromey <tromey@redhat.com>
1153 * jni.cc (add_char): Correctly encode non-ascii characters.
1154 (add_char): Define even when INTERPRETER not defined.
1155 (mangled_name): Likewise.
1156 (_Jv_GetJNIEnvNewFrame): Likewise.
1157 (_Jv_LookupJNIMethod): Likewise.
1159 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1161 * configure.host: Enable interpreter for PPC.
1163 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1165 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1166 to "file.separator", "path.separator", and "java.io.tmpdir" property
1168 * java/io/File.java: Likewise.
1169 * java/io/natFile.cc (init_native): Likewise.
1170 * java/io/natFileWin32.cc (init_native): Likewise.
1172 2001-04-01 Per Bothner <per@bothner.com>
1174 * java/lang/natString.cc (intern): If string's data does not point to
1175 this String, make a fresh String that does.
1177 * java/lang/natString.cc (unintern): Replace by static function.
1178 * java/lang/String.java (unintern): Remove method.
1180 2001-04-01 Per Bothner <per@bothner.com>
1182 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1183 (finish): def.deflate needs to be called in a loop.
1184 (inbuf, inbufLength): New private fields.
1185 (write(int)): Use inbuf.
1186 (write(byte[],int,int): Check if pending output in inbuf.
1187 * ZipOutputStream.java: Don't use Deflater if stored.
1188 Use a Checksum object directly, not via a CheckedOutputStream.
1189 (uncompressed_size): New field,
1190 (closeEntry): Only write data_directory if needed.
1191 (write): If STORED, write directly.
1192 Always update crc, and uncompressed_size.
1193 (write_entry): Fix lots of protocol erors.
1195 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1197 1.3-Compliant Implementation of java.io.File.
1198 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1199 "path.separator", and "java.io.tmpdir" from the File class, instead
1200 of setting them explicitly.
1201 * java/io/File.java: Do not canonicalize paths for security manager
1202 checks. Call init_native() from static initializer. Do not pass path
1203 argument to native methods. New native method declarations. Some
1204 security manager checks moved to checkWrite().
1205 (equals): Check file system case sensitivity and act appropriatly.
1206 (hashCode): Likewise.
1207 (isHidden): New method implemented.
1208 (performList): Changed prototype. Now takes a class argument specifying
1209 the class of the returned array: Strings or File objects. Also added
1210 FileFilter argument.
1211 (listFiles): New variants with "File" return type implemented.
1212 (createTempFile): Use createNewFile(). Use maxPathLen.
1213 (setReadOnly): New method implemented.
1214 (listRoots): Likewise.
1215 (compareTo): Likewise.
1216 (setLastModified): Likewise.
1217 (checkWrite): New method.
1219 * java/io/natFile.cc: Various functions no longer take canonical path
1221 (stat): Handle ISHIDDEN query.
1222 (isAbsolute): Remove WIN32 cruft.
1223 (performList): New arguments. Handle returning either File[] or String[]
1224 arrays. Check with FileFilter or FilenameFilter arguments as
1225 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1226 (performSetReadOnly): New method implemented.
1227 (performListRoots): Likewise.
1228 (performSetLastModified): Likewise.
1229 (performCreate): Likewise.
1230 (init_native): New initialization function.
1231 * java/io/natFileWin32.cc: Various functions no longer take canonical
1233 (stat): Add FIXME about ISHIDDEN query.
1234 (performList): New arguments. Handle returning either File[] or String[]
1235 arrays. Check with FileFilter or FilenameFilter arguments as
1236 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1237 (performSetReadOnly): New. Stubbed.
1238 (performListRoots): Likewise.
1239 (performSetLastModified): Likewise.
1240 (performCreate): Likewise.
1241 (init_native) New initialization function.
1242 * configure.in: Check for utime() and chmod().
1243 * configure: Rebuilt.
1244 * include/config.h.in: Rebuilt.
1246 Resolves PR libgcj/1759.
1248 2001-03-28 Richard Henderson <rth@redhat.com>
1250 IA-64 ABI Exception Handling:
1251 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1252 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1253 Remove EXCEPTIONSPEC.
1254 * configure.host (libgcj_sjlj): Remove.
1255 * configure.in (EXCEPTIONSPEC): Remove.
1256 (enable-sjlj-exceptions): Detect if not specified.
1257 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1258 what header we're looking for.
1259 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1260 * Makefile.in, configure: Regenerate.
1261 * exception.cc: Don't declare libgcc2 stuff.
1262 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1263 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1264 (win32_get_restart_frame): Remove.
1265 (struct java_exception_header): New.
1266 (__gcj_exception_class): New.
1267 (get_exception_header_from_ue): New.
1268 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1269 (size_of_encoded_value, read_encoded_value): New.
1270 (read_uleb128, read_sleb128, parse_lsda_header): New.
1271 (get_ttype_entry, __gcj_personality_sj0): New.
1272 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1274 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1276 * javax/naming/InitialContext.java (init): Fix typo.
1277 (composeName): Remove unnecessary semicolon.
1278 (addToEnvironment): Remove unnecessary semicolon.
1279 (addToEnvironment): Use put() instead of add().
1281 * javax/naming/InitialContext.java (InitialContext):
1283 (destroySubcontext): Method doesn't return a result.
1284 * javax/naming/Context.java: Import java.util.Hashtable.
1285 * javax/naming/Name.java: Import java.util.Enumeration.
1287 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1289 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1290 objects in subdirectories.
1291 * Makefile.in: Rebuilt.
1293 2001-03-25 Richard Henderson <rth@redhat.com>
1295 * exception.cc (java_eh_info): Make value type jthrowable.
1296 (_Jv_type_matcher): Remove now unneeded cast.
1297 (_Jv_Throw): Make argument type jthrowable. Munge name
1298 for SJLJ_EXCEPTIONS here ...
1299 * gcj/cni.h: ... not here.
1301 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1303 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1304 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1305 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1306 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1307 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1308 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1309 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1310 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1311 java/lang/natDouble.cc, java/lang/natObject.cc,
1312 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1313 java/lang/natString.cc, java/lang/natSystem.cc,
1314 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1315 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1316 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1317 java/util/zip/natInflater.cc:
1318 Use throw, not JvThrow or _Jv_Throw.
1320 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1322 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1323 paramater, bump it to 1.
1324 * java/util/Hashtable.java (Hashtable): Likewise.
1326 2001-03-23 Per Bothner <per@bothner.com>
1328 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1329 check for errors, since we don't want to throw exception on
1330 overflow/underflow. Instead, trim whitespace, and then check that
1331 _strtod_r uses up all the rest of the string.
1333 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1334 ancestors array is invalid for interfaces, so do that *after*
1335 check that the target type is not an interface.
1337 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1339 * prims.cc (_Jv_FindClassFromSignature): Check return of
1340 recursive call. Do not abort on invalid signature; return NULL
1343 2001-03-22 Tom Tromey <tromey@redhat.com>
1345 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1346 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1348 * include/jvm.h (_Jv_ResolveField): Declare.
1349 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1350 * resolve.cc (_Jv_ResolveField): No longer conditional on
1353 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1355 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1356 for libtool hacking.
1357 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1358 to a temporary file, then invoke libtool with the -objectlist
1360 (libgcjx.la): Likewise.
1361 * Makefile.in: Rebuilt.
1363 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1365 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1367 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1369 * jni.cc (add_char): Handle `.' like `/'.
1371 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1373 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1374 initialize if exception_types is null.
1375 * java/lang/reflect/Constructor.java: Likewise.
1376 * java/lang/reflect/natConstructor.cc (getType): Initialize
1377 exception_types to an empty Object array.
1379 2001-03-21 Tom Tromey <tromey@redhat.com>
1381 * configure: Rebuilt.
1382 * configure.in (GCJFLAGS): Subst.
1383 * Makefile.in: Rebuilt.
1384 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1385 (gij_LDFLAGS): Likewise.
1386 (JC1FLAGS): Added GCJFLAGS and removed -g.
1388 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1389 read/write case. Fixes PR libgcj/2338.
1391 2001-03-20 Warren Levy <warrenl@redhat.com>
1393 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1394 and corrected SimpleTimeZone's for the timezones hash table.
1396 2001-03-19 Per Bothner <per@bothner.com>
1398 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1399 "canonicalize" "../../xxx" to "/xxx".
1401 2001-03-19 Mark Wielaard <mark@klomp.org>
1403 * java/util/ArrayList.java: Remove RCS keywords from comments
1404 * java/util/BasicMapEntry.java: idem
1405 * java/util/Dictionary.java: idem
1406 * java/util/HashSet.java: idem
1408 * java/util/EventObject.java: reindent
1409 * java/util/Properties.java: idem
1410 * java/util/SortedMap.java: idem
1412 * java/util/Enumeration.java: Merge with Classpath
1413 * java/util/EventListener.java: idem
1414 * java/util/Observable.java: idem
1415 * java/util/Observer.java: idem
1416 * java/util/Stack.java: idem
1418 2001-03-17 Tom Tromey <tromey@redhat.com>
1420 * java/lang/natString.cc (rehash): Don't bother with memset;
1421 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1423 (UNMASK_PTR): New macro.
1424 (intern): Unmask pointer before returning it. Register finalizer
1426 (unintern): Handle case where
1427 (MASK_PTR): New macro.
1428 (PTR_MAKSED): Likewise.
1429 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1431 2001-03-01 Andrew Haley <aph@redhat.com>
1433 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1434 stackTrace buffer to a correctly aligned pointer array.
1436 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1438 * java/lang/Runtime.java (_exit): Declare new package-private native.
1439 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1440 without a security manager check.
1441 (exit): Call _exit after security check.
1442 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1444 * java/lang/System.java (setSecurityManager): If a security manager
1445 is already in place, call checkPermission.
1446 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1447 throws an exception, try to deal with it gracefully.
1448 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1449 Only try to print the subordinate stack trace if "exception" is set.
1450 Print our class name first.
1452 2001-03-08 Tom Tromey <tromey@redhat.com>
1454 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1455 info for array classes.
1456 Fixes PR libgcj/1971.
1458 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1460 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1463 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1465 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1466 instead of the new JDK1.2 API. This is simpler and makes
1467 back-porting the classes to JDK1.1 trivial.
1468 (readObject): likewise.
1470 2001-03-01 Per Bothner <per@bothner.com>
1472 Changes merged from Kawa's gnu.math.
1473 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1474 (rshift(int[],int[],int,int): Removed - not needed.
1475 (gcd): Use rshift0 rather than rshift.
1476 * java/math/BigInteger.java (setShiftRight): Likewise.
1477 (divide): Simplify by using rshift0.
1478 (divide): Zero-extend results if high-order bit set.
1480 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1482 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1485 2001-02-23 Per Bothner <per@bothner.com>
1487 Change to sometimes include class name in ClassFormatError message.
1488 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1489 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1490 boolean instead of throwing ClassFormatError on failure.
1491 (throw_class_format_error): Change static function to method.
1492 (_Jv_ClassReader): New inline methods verify_identifier,
1493 two overloads of verify_classname, verify_field_signature, and
1494 verify_method_signature
1495 * include/java-interp.h: Update declarations to return bool.
1496 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1497 ClassFormatError since _Jv_VerifyClassName now returns bool.
1499 2001-02-23 Per Bothner <per@bothner.com>
1501 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1502 c++filt to select java-style output.
1504 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1506 Fix for PR java/2040:
1507 * java/util/HashMap.java (HashMap): Don't throw exception for
1508 loadFactor > 1. Add exception messages.
1509 * java/util/Hashtable.java (Hashtable): Likewise.
1511 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1513 Disable libgcjx by default.
1514 * configure.in: Add support for --enable-java-awt configure option.
1515 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1516 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1517 * Makefile.in: Rebuilt.
1518 * configure: Rebuilt.
1520 2001-02-20 Tom Tromey <tromey@redhat.com>
1522 * java/io/PipedWriter.java (flush): Throw exception if stream
1524 * java/io/OutputStreamWriter.java (write): Throw exception if
1526 (writeChars): Don't throw exception if stream closed.
1527 * java/io/CharArrayWriter.java (closed): New field.
1529 (flush): Throw exception if stream closed.
1530 (reset): Synchronize on correct lock. Allow stream to be
1532 (toCharArray, toString, writeTo): Synchronize.
1533 (write): Throwe exception if stream closed.
1534 * java/io/BufferedWriter.java (close): Clear `buffer'.
1535 (flush): Throw IOException if stream is closed.
1538 2001-02-16 Tom Tromey <tromey@cygnus.com>
1540 * java/lang/ThreadGroup.java (activeCount): Only include threads
1542 (enumerate): Likewise.
1544 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1546 * java/lang/Integer.java (getInteger): Return default argument if
1547 property is not set. Don't call decode with null argument.
1548 * java/lang/Long.java (getLong): Likewise.
1550 * java/io/CharArrayReader.java (CharArrayReader): Throw
1551 IllegalArgumentException if constructor arguments are illegal.
1552 (ready): Return false if no more characters can be read.
1553 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1555 2001-02-17 Mark Wielaard <mark@klomp.org>
1557 * java/util/TimerTask.java: New version from Classpath.
1559 2001-02-17 Mark Wielaard <mark@klomp.org>
1561 Remerge with Classpath
1562 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1563 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1564 (readByte): Use convertToByte().
1565 (readChar): Use convertToChar().
1566 (readInt): Use convertToInt().
1567 (readLong): Use convertToLong().
1568 (readShort): Use convertToShort().
1569 (readUnsignedByte): Use convertToUnsignedByte().
1570 (readUnsignedShort): Use convertToUnsignedShort().
1571 (readUTF): Use convertToUTF().
1573 (convertToBoolean): Resurrected.
1574 (convertToByte): Ditto.
1575 (convertToChar): Ditto.
1576 (convertToInt): Ditto.
1577 (convertToLong): Ditto.
1578 (convertToShort): Ditto.
1579 (convertToUnsignedByte): Ditto.
1580 (convertToUnsignedShort): Ditto.
1581 (convertToUTF): Ditto.
1583 2001-02-17 Mark Wielaard <mark@klomp.org>
1587 2001-02-17 Mark Wielaard <mark@klomp.org>
1589 * java/io/DataInputStream.java: update copyright notice
1590 * java/io/PrintWriter.java: idem
1591 * java/io/Reader.java: idem
1592 * java/io/StreamTokenizer.java: idem
1593 * java/io/StringReader.java: idem
1594 * java/lang/reflect/ReflectPermission.java: idem
1596 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1598 * java/util/TreeSet.java (clone): Made subclass safe, use
1599 super.clone(), not new.
1600 * java/util/TreeMap.java (clone): Likewise.
1602 * java/util/TreeMap.java (nil): Made non-final.
1603 (clone): Create new nil node for copy.
1605 * java/util/HashSet.java (clone): Made subclass safe, use
1606 super.clone(), not new.
1608 2001-02-14 Andrew Haley <aph@redhat.com>
1610 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1613 2001-02-15 Anthony Green <green@redhat.com>
1615 * defineclass.cc: Don't include alloca.h.
1616 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1617 * interpret.cc (run_normal): Ditto.
1619 * java/lang/natDouble.cc (parseDouble): Ditto.
1621 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1623 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1625 * java/util/Collections.java (ReverseComparator): New static class.
1626 (reverseOrder): Return static instance of ReverseComparator.
1628 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1629 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1630 Rectangle.clone(), not Object.clone().
1632 * java/util/HashSet.java (clone): Remove try/catch.
1634 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1635 * java/util/Collection.java: Likewise.
1636 * java/util/Comparator.java: Likewise.
1637 * java/util/Dictionary.java: Likewise.
1638 * java/util/Iterator.java: Likewise.
1639 * java/util/ListIterator.java: Likewise.
1640 * java/util/Map.java: Likewise.
1641 * java/util/Set.java: Likewise.
1643 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1645 * java/util/TreeMap.java: New file.
1646 * java/util/TreeSet.java: New file.
1647 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1648 * Makefile.in: Rebuilt.
1649 * java/util/HashSet.java (clone): Use constructor instead of calling
1651 * java/util/SortedSet.java: Sync with classpath.
1652 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1655 * java/lang/natClass.cc (getSignature): Don't try to dereference
1656 param_types if it is null. Instead, take this to mean "no parameters".
1657 * java/lang/TreeMap.java (TreeIterator.next): Throw
1658 NoSuchElementException in preference to ConcurrentModificationException.
1659 (TreeIterator.remove): Throw IllegalStateException in preference to
1660 ConcurrentModificationException.
1661 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1662 throw a NoSuchElementException.
1663 (SubMap.lastKey): Likewise.
1665 2001-02-13 Tom Tromey <tromey@redhat.com>
1667 * java/io/PipedReader.java (ready): Throw IOException if pipe
1669 * java/io/FilterReader.java (close): Don't clear `in'.
1670 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1672 (read, ready, reset, skip): Added exception message.
1673 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1674 Perform checkStatus check inside synchronized block.
1676 2001-02-13 Tom Tromey <tromey@redhat.com>
1678 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1680 2001-02-13 Tom Tromey <tromey@redhat.com>
1682 Fix for PR libgcj/1351:
1683 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1685 Include Thread.h and InterruptedIOException.h.
1687 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1689 * java/io/BlockDataException.java: Removed.
1690 * java/io/ObjectInputStream.java (readObject): Throw
1691 StreamCorruptedException, not BlockDataException.
1692 * Makefile.am: Remove BlockDataException.
1693 * Makefile.in: Rebuild.
1695 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1696 Tom Tromey <tromey@redhat.com>
1698 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1701 2001-02-09 Tom Tromey <tromey@redhat.com>
1703 * java/util/Timer.java: New version from Classpath.
1705 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1707 * java/lang/Double.java (doubleToRawLongBits): Now native.
1708 * java/lang/Float.java (floatToRawIntBits): Likewise.
1709 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1710 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1712 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1714 * java/io/File.java (java.net): Imported.
1715 (getAbsoluteFile): Added.
1716 (getCanonicalPath): Likewise.
1719 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1721 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1722 * java/lang/Integer.java: Likewise.
1723 * java/lang/Long.java: Likewise.
1724 * java/lang/Short.java: Likewise.
1725 * java/lang/Double.java: Likewise.
1726 (doubleToRawLongBits): New method.
1727 * java/lang/Float.java: As above.
1728 (floatToRawIntBits): New method.
1730 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1731 IOException if stream closed.
1733 2001-02-08 Tom Tromey <tromey@redhat.com>
1735 * java/lang/Float.java (parseFloat): New method.
1737 2001-02-08 Tom Tromey <tromey@redhat.com>
1739 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1740 * java/io/InputStreamReader.java (ready, read): Throw IOException
1741 if stream has been closed.
1743 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1745 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1746 Change sources.redhat.com and sourceware.cygnus.com references to
1749 2001-02-07 Tom Tromey <tromey@redhat.com>
1751 Fix for PR libgcj/1906:
1752 * java/text/MessageFormat.java (setLocale): Use named class
1755 (format(Object,StringBuffer,FieldPosition)): Special case if
1756 argument is an Object[].
1758 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1760 * java/util/Arrays.java: Removed "cmp" methods.
1761 (qsort): Don't use "cmp".
1764 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1766 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1767 sort. Fix for PR java/1895.
1769 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1771 * configure.host: Use sjlj-exceptions for Alpha.
1773 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1775 * libgcj.spec.in: Don't force static libgcc into the executable.
1776 * configure.in (FORCELIBGCCSPEC): Removed.
1777 * configure: Rebuilt.
1779 2001-01-31 Tom Tromey <tromey@redhat.com>
1781 * Makefile.in: Rebuilt.
1782 * Makefile.am (LTCXXCOMPILE): New macro.
1784 2001-01-26 Andrew Haley <aph@redhat.com>
1786 (INIT_FPE): Use a direct system call to set the handler.
1788 2001-01-27 Richard Henderson <rth@redhat.com>
1790 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1792 2001-01-27 Tom Tromey <tromey@redhat.com>
1794 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1795 native interface structure.
1797 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1799 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1801 (read (byte[], int, int)): Only call readNextBlock() if the block
1802 buffer would actually be overrun. Increment blockDataPosition.
1803 (callReadMethod): Propagate exceptions from invocation target.
1804 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1805 exceptions from invocation target.
1807 2001-01-26 Tom Tromey <tromey@redhat.com>
1809 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1810 to internal representation.
1811 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1812 _Jv_FindClassFromSignature.
1814 2001-01-26 Warren Levy <warrenl@redhat.com>
1816 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1817 and timezone if they are available on the system.
1819 2001-01-24 Tom Tromey <tromey@redhat.com>
1821 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1823 2001-01-24 Tom Tromey <tromey@redhat.com>
1825 * Makefile.in: Rebuilt.
1826 * Makefile.am (c_source_files): Added sf_fabs.c.
1827 * java/lang/sf_fabs.c: New file.
1829 2001-01-19 Warren Levy <warrenl@redhat.com>
1831 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1832 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1833 correctly. Adjust properly from 0-23 clock hour.
1835 2001-01-17 Mark Wielaard <mark@klomp.org>
1837 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1839 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1841 * java/lang/Class.h (isInterface): Move implementation from
1842 natClass.cc. Declare inline.
1843 (Class): Add default constructor.
1844 * java/lang/Object.h: Update comments.
1845 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1846 initialize superclass, saving a call if super is already initialized.
1848 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1850 * prims.cc (init_prim_class): Deleted.
1851 (DECLARE_PRIM_TYPE): Rewritten.
1852 * java/lang/Class.h (stdio.h): Include removed.
1853 (stddef.h): Included.
1854 (java/lang/reflect/Modifier.h): Likewise.
1855 (Class): Contructor now takes arguments, initializes fields.
1856 (initializePrim): Prototype deleted.
1857 * java/lang/natClass.cc (initializePrim): Deleted.
1859 2001-01-16 Warren Levy <warrenl@redhat.com>
1861 * java/math/BigInteger.java: Update Copyright year.
1863 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1865 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1868 2001-01-14 Mark Wielaard <mark@klomp.org>
1869 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1870 (decode): Merge comments with Classpath, don't throw Exception
1872 2001-01-12 Tom Tromey <tromey@redhat.com>
1874 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1878 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1879 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1880 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1881 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1882 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1884 * java/lang/natSystem.cc: Include locale.h if it exists.
1885 * configure: Rebuilt.
1886 * configure.in: Check for locale.h.
1888 2001-01-11 Tom Tromey <tromey@redhat.com>
1890 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1891 (Cursor(int), getPredefinedCursor): Throw exception if argument
1894 2001-01-03 Tom Tromey <tromey@redhat.com>
1896 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1897 (getLocationOnScreen): Wrote.
1899 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1901 * Makefile.am: Re-enable dependencies.
1902 * Makefile.in: Rebuilt.
1904 2001-01-10 Warren Levy <warrenl@redhat.com>
1906 * java/math/BigDecimal.java (divide): Fixed comment.
1908 2001-01-10 Warren Levy <warrenl@redhat.com>
1910 Fix for PR libgcj/1596:
1911 * java/math/BigDecimal.java (divide): Check newScale for validity.
1912 Ensure that BigInteger.pow() is called with a non-negative value.
1913 (setScale (int)): New public method.
1914 (setScale (int,int)): New public method.
1916 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1918 Fix for PR libgcj/1338:
1919 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1920 commentChar. Fixed typos in comments.
1922 2001-01-08 Warren Levy <warrenl@redhat.com>
1924 Fix for PR libgcj/1411:
1925 * Makefile.am: Removed java/util/natTimeZone.cc.
1926 * Makefile.in: Rebuilt.
1927 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1928 missing localized timezone names.
1929 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1930 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1931 (init_properties): Set user.timezone property.
1932 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1933 default timezone names; removed non-standard ones. Use standard
1935 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1937 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1939 (getDefaultTimeZoneId): Removed.
1941 * java/util/natTimeZone.cc: Removed.
1943 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1945 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1946 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1947 (_Jv_GetArrayClass): New inline function.
1948 (arrayclass): New field.
1949 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1950 _Jv_GetArrayElementFromElementType.
1951 (_Jv_NewPrimArray): Ditto.
1952 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1953 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1954 Set Modifier::ABSTRACT.
1955 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1956 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1957 Now synchronized. Array classes are now referenced from
1958 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1959 Set array classes' accessibility flags correctly. Optimize so that
1960 all array classes share the same IDT.
1961 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1962 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1963 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1964 in superclasses from overwriting classes own fields.
1965 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1966 Modifier::isAbstract().
1967 (null_idt): New static field.
1968 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1970 (_Jv_IndexOf): Made inline.
1971 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1973 2001-01-08 Tom Tromey <tromey@redhat.com>
1975 Fix for PR java/1586:
1976 * Makefile.in: Rebuilt.
1977 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1979 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1981 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1982 from the c++ compiler.
1983 * Makefile.in: Rebuilt.
1985 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1987 All files with updated copyright.
1988 * prims.cc (class _Jv_PrimClass): Removed.
1989 (init_prim_class): New function.
1990 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1991 `_Jv_PrimClass' in primitive type declarations. Assign to the
1992 value returned by `init_prim_class.'
1993 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1994 primitive type declarations.
1995 (JvPrimClass): Cast to `jclass' removed.
1996 * java/lang/Class.h (Class): New constructor.
1997 (Class): New copy constructor.
1998 (initializePrim): New prototype.
1999 (_Jv_PrimClass): Field removed.
2000 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2001 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2002 (class java::lang::Object): `finalize' moved up front.
2003 * java/lang/natClass.cc
2004 (isAssignableFrom): Turned outline.
2005 (isInstance): Likewise.
2006 (isInterface): Likewise, fixed indentation.
2007 (initializePrim): New function.
2009 2001-01-07 Anthony Green <green@redhat.com>
2011 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2013 * Makefile.in: Rebuilt.
2015 * scripts/TexinfoDoclet.java: New file.
2017 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2018 doc/java-awt-color.texi, doc/java-lang.texi,
2019 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2020 doc/java-awt-event.texi, doc/java-net.texi,
2021 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2022 doc/java-awt-image.texi, doc/java-security.texi,
2023 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2024 doc/java-text.texi, doc/java-beans-beancontext.texi,
2025 doc/java-util-jar.texi, doc/java-beans.texi,
2026 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2027 doc/java-lang-ref.texi: New files.
2029 2001-01-07 Anthony Green <green@redhat.com>
2031 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2032 be used for both input and output, so don't clear doInput.
2034 * java/lang/StringBuffer.java: Fix comments.
2036 2001-01-06 Anthony Green <green@redhat.com>
2038 * java/beans/PropertyDescriptor.java: Fix comment.
2039 * java/io/PushbackReader.java: Fix comment.
2040 * java/io/ObjectStreamClass.java: Fix comment.
2041 * java/io/DataInputStream.java: Fix comment.
2042 * java/io/PipedInputStream.java: Fix comments.
2043 * java/io/PipedReader.java: Fix comments.
2044 * java/sql/DatabaseMetaData.java: Fix comments.
2046 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2048 * java/io/PipedReader: Synchronize on "lock" instead of this.
2050 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2052 * java/lang/Thread.java: Update comment.
2054 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2055 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2056 * java/io/PipedReader: New implementation based on new
2058 * java/io/PipedWriter: Updated to match new PipedReader.
2060 2001-01-03 Tom Tromey <tromey@redhat.com>
2062 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2063 (getViewportSize): Insets include scrollbar size.
2064 (doLayout): Finished.
2065 (getScrollPosition): Wrote.
2066 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2068 2001-01-02 Tom Tromey <tromey@redhat.com>
2070 * java/awt/ScrollPane.java: Wrote.
2071 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2074 * java/awt/Panel.java (Panel()): Fixed.
2076 * java/awt/Component.java (isShowing): Return false if no peer
2077 exists, and true if component is visible and no parent exists.
2078 (getLocationOnScreen): Wrote.
2079 (getPreferredSize): Removed FIXME comment.
2080 (getMinimumSize): Likewise.
2081 (getAlignmentX, getAlignmentY): Wrote.
2083 (requestFocus): Wrote.
2084 (transferFocus): Wrote.
2085 (findNextFocusComponent): New method.
2086 (hasFocus()): Wrote.
2087 (checkImage): Wrote.
2088 (enableEvents): Call setEventMask on the peer.
2090 * java/awt/Container.java (list): Use super.list() to print self.
2091 (findNextFocusComponent): New method.
2092 (setLayout): Call invalidate.
2093 (findComponentAt): Wrote.
2095 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2097 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2098 the correct versions of various linuxthreads functions get linked.
2099 * Makefile.in: Rebuilt.
2100 * java/lang/natThread.cc (finalize_native): New static function. Call
2101 _Jv_ThreadDestroyData.
2102 (initialize_native): Register finalizer for "data".
2103 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2104 (_Jv_ThreadDestroyData): New prototype.
2105 * include/win32-threads.h: Ditto.
2106 * include/no-threads.h: Ditto.
2107 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2108 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2109 move mutex and condition variable destroy code from:
2110 (really_start): ...here.
2111 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2112 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2113 (_Jv_ThreadDestroyData): Implemented.
2114 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2115 (_Jv_AllocArray): Ditto.
2117 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2119 * java/sql/DriverManager.java (getConnection): Don't set user/password
2122 2000-12-27 Warren Levy <warrenl@redhat.com>
2124 Fix for PR libgcj/1358:
2125 * java/lang/System.java: Update Copyright date properly.
2126 * java/util/Calendar.java: Fix typo in comment.
2127 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2128 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2129 initialize times. Spec says to set H:M:S values to zero only if
2131 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2132 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2133 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2134 timezones and GMT offsets, being careful to account for units of
2135 milliseconds vs. seconds.
2137 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2139 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2140 not be assigned to Object.
2142 Fix for PR libgcj/1516:
2143 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2145 (can_widen): Declared inline. Remove redundant checks for void
2146 arguments and char->short conversion. Add special case for boolean
2148 (ffi_type): Declared inline.
2149 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2151 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2153 * java/sql/SQLWarning.java: Fixed typo in comment.
2155 2000-12-26 Tom Tromey <tromey@redhat.com>
2157 * java/awt/MenuItem.java (paramString): Now protected.
2159 * java/awt/MenuShortcut.java: Implements Serializable.
2161 * java/awt/MenuBar.java: Rewrote from scratch.
2163 * java/awt/MenuComponent.java (removeNotify): Wrote.
2164 Implements Serializable.
2166 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2169 * java/awt/CheckboxMenuItem.java: Wrote.
2171 2000-12-25 Tom Tromey <tromey@redhat.com>
2173 * java/awt/MenuContainer.java: Fixed typo.
2175 * Makefile.in: Rebuilt.
2176 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2177 * java/awt/SystemColor.java: New file.
2179 * java/awt/Color.java (rgba): Now package-private.
2181 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2183 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2186 * java/awt/MenuItem.java (addNotify): New method.
2187 (MenuItem(String,MenuShortcut)): New constructor.
2188 (setLabel): Notify peer of change.
2189 (setEnabled): Likewise.
2191 * java/awt/GridLayout.java (toString): New method.
2193 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2194 (FlowLayout): Check for LEADING and TRAILING.
2195 (setAlignment): Likewise.
2196 (layoutContainer): Handle component orientation.
2198 * java/awt/Component.java (orientatin): New field.
2199 (setComponentOrientation): Wrote.
2200 (getComponentOrientation): Wrote.
2202 * java/awt/Event.java (Event): Implements Serializable.
2203 (consumed): New field for serialization.
2204 * java/awt/Dimension.java (Dimension): Implements Serializable.
2205 * java/awt/Cursor.java (Cursor): Implements Serializable.
2206 * java/awt/Container.java (Container): No longer abstract.
2208 * java/awt/Choice.java: Wrote.
2209 * java/awt/Checkbox.java: Wrote.
2210 * java/awt/ItemSelectable.java: Documented.
2211 * java/awt/CheckboxGroup.java: Wrote.
2213 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2215 (getSize): Likewise.
2217 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2219 * java/io/FileDescriptor.java: Initialize fd to -1.
2220 Remove default constructor.
2222 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2224 * java/lang/mprec.h: Change C9X reference to refer to C99.
2226 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2228 * java/lang/Throwable.java (trace_enabled): New static field.
2229 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2230 trace_enabled not set.
2231 * prims.cc (main_init): Turn off trace_enabled while creating
2232 default exception objects.
2234 2000-12-21 Tom Tromey <tromey@redhat.com>
2236 * java/beans/PropertyChangeListener.java: Extends EventListener.
2237 * java/beans/VetoableChangeListener.java: Extends EventListener.
2239 * java/util/zip/Deflater.java (update, init): Now private.
2241 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2243 * java/util/BasicMapEntry.java: Re-added.
2244 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2245 (putAll): Test for BasicMapEntry.
2246 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2247 (putAll): Test for BasicMapEntry.
2248 Change references from `HashMap.Entry' to `Entry' in various places.
2249 * Makefile.am: Add BasicMapEntry.java.
2250 * Makefile.in: Rebuilt.
2252 2000-12-18 Warren Levy <warrenl@redhat.com>
2254 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2255 need to set timezone to a valid non-null value. Partial fix for
2258 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2260 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2262 * java/awt/Button.java (addNotify): Likewise.
2263 * java/awt/Label.java (addNotify): Likewise.
2264 * java/awt/Panel.java (addNotify): Likewise.
2265 * java/awt/Scrollbar.java (addNotify): Likewise.
2266 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2267 Remove redundant null checks.
2269 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2271 * COPYING: Update to current
2272 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2273 to 19yy as example year in copyright notice).
2275 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2277 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2278 end-of-stream if avail_in is 0.
2280 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2282 * java/util/ArrayList.java (data): Declare transient.
2283 (serialPersistantFields): Removed.
2284 (readObject): Use defaultReadObject(), not readFields().
2285 (writeObject): Use defaultWriteObject(), not writeFields().
2287 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2289 * java/util/Hashtable.java (put): Remove `last' variable.
2290 Link new entry to head of list.
2291 * java/util/HashMap.java (put): Ditto.
2293 2000-12-15 Tom Tromey <tromey@redhat.com>
2295 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2296 loader to Class.forName.
2298 2000-12-14 Tom Tromey <tromey@redhat.com>
2300 * java/util/ResourceBundle.java
2301 (getBundle(String,Locale,ClassLoader)): New method.
2302 (trySomeGetBundle): Added `loader' argument.
2303 (partialGetBundle): Likewise.
2305 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2306 maximumFractionDigits, maximumIntegerDigits,
2307 minimumFractionDigits, minimumIntegerDigits): Now
2310 * java/lang/Thread.java (checkAccess): Now final.
2312 * java/lang/RuntimePermission.java: Class now final.
2314 * java/io/StringWriter.java (StringWriter(int)): Now public.
2316 * java/io/SerializablePermission.java (legal_names): Now private.
2318 * java/lang/Character.java: Updated UnicodeBlock constants.
2319 * scripts/blocks.pl: Special case private use and surrogate
2322 2000-12-12 Tom Tromey <tromey@redhat.com>
2324 * Makefile.in: Rebuilt.
2325 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2327 (GCJCOMPILE): Use it.
2330 2000-12-11 Tom Tromey <tromey@redhat.com>
2332 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2333 New static final fields.
2335 * scripts/classes.pl (scan): Skip lines with leading `*'.
2336 Fix for PR libgcj/378.
2338 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2340 * configure.in: Remove check for -fuse-divide-subroutine.
2341 * configure: Rebuilt.
2343 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2345 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2347 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2349 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2350 Remove BasicMapEntry.java and Bucket.java.
2351 * Makefile.in: Rebuilt.
2352 * java/util/HashMap.java: Rewritten.
2353 * java/util/HashSet.java: Imported from classpath.
2354 * java/util/WeakHashMap.java: Imported from classpath.
2355 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2356 * java/util/Bucket.java: Deleted.
2357 * java/util/BasicMapEntry.java: Deleted.
2358 * java/util/Collections.java (search): Use a for-loop, not iterator
2360 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2361 of elements in source.
2362 (max): Use a for-loop.
2364 (reverse): Keep track of positions instead of using Iterator's
2365 nextIndex() and previousIndex().
2366 (shuffle(List)): Initialize defaultRandom if required using
2367 double-check thread safety idiom. Call two-argument shuffle method
2368 using defaultRandom.
2369 (defaultRandom): New field.
2370 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2371 using previousIndex() and nextIndex().
2372 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2373 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2374 * java/util/AbstractMap.java (toString): Use StringBuffer.
2375 * java/lang/ref/PhantomReference.java: Imported from classpath.
2376 * java/lang/ref/SoftReference.java: Ditto.
2377 * java/lang/ref/Reference.java: Ditto.
2378 * java/lang/ref/WeakReference.java: Ditto.
2379 * java/lang/ref/ReferenceQueue.java: Ditto.
2381 2000-12-10 Richard Henderson <rth@redhat.com>
2383 * configure.host: Recognize alpha*-*, not alphaev6-*.
2385 2000-12-09 Anthony Green <green@redhat.com>
2387 * configure.host: Enable interpreter for Alpha.
2389 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2391 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2392 (ZIP): Points at fastjar instead of zip.
2393 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2394 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2395 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2396 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2397 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2398 ($(x_java_source_files:.java=.class):): Likewise.
2399 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2401 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2402 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2403 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2404 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2405 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2406 gnu/gcj/runtime/VMClassLoader.h:,
2407 java/io/ObjectInputStream$$GetField.h:,
2408 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2409 (Makefile.in): Rebuilt.
2411 2000-12-08 Tom Tromey <tromey@redhat.com>
2414 * configure: Rebuilt.
2415 * configure.in: Use echo, not `:', to create .d files.
2417 2000-12-08 Warren Levy <warrenl@redhat.com>
2419 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2420 NullPointerException so proper check of offset can be done.
2422 2000-12-08 Warren Levy <warrenl@redhat.com>
2424 * java/io/FileInputStream.java (close): Check if the fd is valid.
2425 * java/io/RandomAccessFile.java (close): Ditto.
2426 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2427 * java/net/PlainSocketImpl.java (close): Ditto.
2429 2000-12-06 Tom Tromey <tromey@redhat.com>
2431 * java/awt/GridBagConstraints.java: Filled in values for static
2434 * java/util/BitSet.java: Updated copyright notice.
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am (awt_java_source_files): Added new file.
2438 * java/awt/GridBagConstraints.java: New file.
2440 2000-12-05 Tom Tromey <tromey@redhat.com>
2442 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2443 Now package-private, not protected.
2444 * java/text/DateFormatSymbols.java (equals): Now private.
2445 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2446 * java/util/BitSet.java: Class no longer final.
2448 2000-12-04 Warren Levy <warrenl@redhat.com>
2450 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2451 out code dependent on compiler and library changes.
2453 2000-12-04 Warren Levy <warrenl@redhat.com>
2455 * java/io/FilePermission.java: Made class final per spec.
2456 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2457 method name to match spec (fixed typo).
2458 * java/util/LinkedList.java: Implements List.
2460 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2462 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2463 Edgar Villanueva <edgarvil@home.com>.
2465 2000-12-03 Tom Tromey <tromey@redhat.com>
2467 * java/awt/geom/Point2D.java: Added protected constructor.
2468 (equals): New method.
2469 (Float.setLocation(float,float)): New method.
2470 * java/awt/geom/Dimension2D.java: Added protected constructor.
2471 * java/awt/geom/AffineTransform.java: Made all constants public.
2472 (concatenate): Fixed typo in name.
2473 * java/awt/event/WindowAdapter.java: Class now abstract.
2474 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2475 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2478 * java/awt/AWTError.java: Extend Error, not
2479 IllegalStateException.
2481 * Makefile.in: Rebuilt.
2482 * Makefile.am (awt_java_source_files): Added new file.
2483 * java/awt/geom/RoundRectangle2D.java: New file.
2485 * Makefile.in: Rebuilt.
2486 * Makefile.am (awt_java_source_files): Added new file.
2487 * java/awt/FlowLayout.java: New file.
2489 * Makefile.in: Rebuilt.
2490 * Makefile.am (awt_java_source_files): Added new file.
2491 * java/awt/GridLayout.java: New file.
2493 2000-12-02 Tom Tromey <tromey@redhat.com>
2495 * Makefile.in: Rebuilt.
2496 * Makefile.am (awt_java_source_files): Added new files.
2497 * java/awt/CardLayout.java: New file.
2498 * java/awt/AWTPermission.java: New file.
2500 2000-12-01 Tom Tromey <tromey@redhat.com>
2502 * java/util/Vector.java (insertElementAt): Unconditionally
2503 increment elementCount.
2504 (removeRange): Clear unused slots in vector.
2506 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2508 * java/lang/natMath.cc: Declare fabsf() function.
2509 * java/lang/mprec.h: Don't include math.h.
2510 * java/lang/dtoa.c: Include string.h.
2511 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2514 From Adam Welc <welc@cs.purdue.edu>:
2515 * java/util/LinkedList.java (removeFirst): Update `first' field.
2516 Handle the last == first case.
2517 (removeLast): Update `last' field. Handle the last == first case.
2519 2000-12-01 Warren Levy <warrenl@cygnus.com>
2521 * Makefile.am: Added entries for new java.sql modules.
2522 * Makefile.in: Rebuilt.
2524 2000-12-01 Warren Levy <warrenl@cygnus.com>
2526 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2527 that aren't quite 1.2 compatible yet.
2529 2000-11-30 Warren Levy <warrenl@cygnus.com>
2531 * java/sql/Array.java: New file from classpath.
2532 * java/sql/BatchUpdateException.java: Ditto.
2533 * java/sql/Blob.java: Ditto.
2534 * java/sql/Clob.java: Ditto.
2535 * java/sql/Ref.java: Ditto.
2536 * java/sql/SQLData.java: Ditto.
2537 * java/sql/SQLInput.java: Ditto.
2538 * java/sql/SQLOutput.java: Ditto.
2539 * java/sql/Struct.java: Ditto.
2540 * java/sql/CallableStatement.java: Merged file from claspath.
2541 * java/sql/Connection.java: Ditto.
2542 * java/sql/DataTruncation.java: Ditto.
2543 * java/sql/DatabaseMetaData.java: Ditto.
2544 * java/sql/DriverManager.java: Ditto.
2545 * java/sql/PreparedStatement.java: Ditto.
2546 * java/sql/ResultSet.java: Ditto.
2547 * java/sql/ResultSetMetaData.java: Ditto.
2548 * java/sql/SQLException.java: Ditto.
2549 * java/sql/SQLWarning.java: Ditto.
2550 * java/sql/Statement.java: Ditto.
2551 * java/sql/Types.java: Ditto.
2553 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2555 * java/lang/natSystem.cc (init_properties): Set user.language and
2557 * configure.in: Check for setlocale.
2558 * configure: Rebuilt.
2559 * include/config.h.in: Rebuilt.
2561 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2562 the infate() call didn't deliver any output. Throw a ZipException if
2563 the needsDictionary() call returns true.
2564 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2565 * java/io/InputStreamReader: Use the default buffer size for the
2566 contained BufferedInputStream.
2568 2000-11-28 Warren Levy <warrenl@cygnus.com>
2570 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2571 more time zone entries.
2572 * java/text/SimpleDateFormat.java (format): Added case for
2575 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2577 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2578 directly rather than read() in all cases. Make primitive read
2579 implementations more efficient, as defined in JDK online docs.
2580 (skipBytes): Behave like the JDK's implementation.
2581 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2582 closed stream with checkStatus() whenever an IOException can be
2584 (checkStatus): New private method.
2586 2000-11-27 Warren Levy <warrenl@cygnus.com>
2588 * Makefile.am: Added natTimeZone.cc.
2589 * Makefile.in: Rebuilt.
2590 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2591 * java/text/DateFormatSymbols.java (ampms): Made package private.
2592 (eras): Made package private.
2593 (months): Made package private.
2594 (shortMonths): Made package private.
2595 (shortWeekdays): Made package private.
2596 (weekdays): Made package private.
2597 (formatPrefixes): New private field.
2598 (localPatternCharsDefault): Made private.
2599 (dateFormats): New package private field.
2600 (timeFormats): New package private field.
2601 (formatsForKey): New private method.
2602 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2603 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2604 * java/text/SimpleDateFormat.java: Merged with Classpath.
2605 * java/util/TimeZone.java: Merged with Classpath.
2606 * java/util/natTimeZone.cc: New file.
2608 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2610 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2611 (addElement): Don't increment elementCount twice. Doh.
2612 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2613 array needs to be expanded.
2615 * java/util/Collections.java (UnmodifiableCollection): Implement
2617 (UnmodifiableList): Throw UnsupportedOperationException from
2618 modification methods. Set `l' from the one-parameter constructor.
2619 (UnmodifiableMap): Implement toString().
2620 (SynchronizedCollection): Ditto.
2621 (SynchronizedList): Set `l' from the one-parameter constructor.
2622 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2623 (SynchronizedMap): Implement toString().
2625 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2627 * javax/naming/NameParser.java,
2628 javax/naming/directory/AttributeInUseException.java,
2629 javax/naming/directory/AttributeModificationException.java,
2630 javax/naming/directory/InvalidAttributeIdentifierException.java,
2631 javax/naming/directory/InvalidAttributesException.java,
2632 javax/naming/directory/InvalidAttributeValueException.java,
2633 javax/naming/directory/InvalidSearchControlsException.java,
2634 javax/naming/directory/InvalidSearchFilterException.java,
2635 javax/naming/directory/NoSuchAttributeException.java,
2636 javax/naming/directory/SchemaViolationException.java: New files.
2638 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2640 * javax/naming/InitialContext.java (rebind): Implement.
2641 (unbind): Implement.
2642 (rename): Implement.
2644 (listBindings): Implement.
2645 (destroySubcontext): Implement.
2646 (createSubcontext): Implement.
2647 (lookupLink): Implement.
2648 (getNameParser): Implement.
2649 (composeName): Implement.
2650 (addToEnvironment): Implement.
2652 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2654 * javax/naming/AuthenticationException.java,
2655 javax/naming/AuthenticationNotSupportedException.java,
2656 javax/naming/CannotProceedException.java,
2657 javax/naming/CommunicationException.java,
2658 javax/naming/ConfigurationException.java,
2659 javax/naming/ContextNotEmptyException.java,
2660 javax/naming/InsufficientResourcesException.java,
2661 javax/naming/InterruptedNamingException.java,
2662 javax/naming/InvalidNameException.java,
2663 javax/naming/LimitExceededException.java,
2664 javax/naming/LinkException.java,
2665 javax/naming/LinkLoopException.java,
2666 javax/naming/MalformedLinkException.java,
2667 javax/naming/NameAlreadyBoundException.java,
2668 javax/naming/NameNotFoundException.java,
2669 javax/naming/NamingSecurityException.java,
2670 javax/naming/NoPermissionException.java,
2671 javax/naming/NotContextException.java,
2672 javax/naming/PartialResultException.java,
2673 javax/naming/ReferralException.java,
2674 javax/naming/ServiceUnavailableException.java,
2675 javax/naming/SizeLimitExceededException.java,
2676 javax/naming/TimeLimitExceededException.java: New files.
2678 * javax/naming/Name.java (clone): New method.
2679 (compareTo): New method.
2680 (isEmpty): New method.
2681 (getAll): New method.
2682 (getPrefix): New method.
2683 (getSuffix): New method.
2684 (startsWith): New method.
2685 (endsWith): New method.
2686 (addAll): New method.
2687 (addAll): New method.
2690 (remove): New method.
2692 * javax/naming/Context.java (lookup): New method.
2693 (rebind): New method.
2694 (unbind): New method.
2695 (rename): New method.
2697 (listBindings): New method.
2698 (destroySubcontext): New method.
2699 (createSubcontext): New method.
2700 (lookupLink): New method.
2701 (getNameParser): New method.
2702 (composeName): New method.
2703 (addToEnvironment): New method.
2704 (removeFromEnvironment): New method.
2705 (getEnvironment): New method.
2706 (close): New method.
2707 (getNameInNamespace): New method.
2709 * javax/naming/InitialContext.java (lookup): New method.
2710 (rebind): New method.
2711 (unbind): New method.
2712 (rename): New method.
2714 (listBindings): New method.
2715 (destroySubcontext): New method.
2716 (createSubcontext): New method.
2717 (lookupLink): New method.
2718 (getNameParser): New method.
2719 (composeName): New method.
2720 (addToEnvironment): New method.
2721 (removeFromEnvironment): New method.
2722 (getEnvironment): New method.
2723 (close): New method.
2724 (getNameInNamespace): New method.
2726 2000-11-26 Tom Tromey <tromey@cygnus.com>
2728 * Makefile.in: Rebuilt.
2729 * Makefile.am (core_java_source_files): Added
2730 RuntimePermission.java.
2731 * java/lang/RuntimePermission.java: Imported from Classpath.
2732 * java/lang/Thread.java (getContextClassLoader): Now
2733 synchronized. Added security code.
2734 (setContextClassLoader): Likewise.
2736 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2737 length field of array.
2738 (_Jv_NewPrimArray): Likewise.
2739 * gcj/array.h (__JArray): `length' field now const. Added
2742 2000-11-26 Anthony Green <green@redhat.com>
2744 * javax/naming/spi/NamingManager.java,
2745 javax/naming/spi/ObjectFactory.java,
2746 javax/naming/spi/InitialContextFactory.java,
2747 javax/naming/spi/InitialContextFactoryBuilder.java,
2748 javax/naming/RefAddr.java, javax/naming/Reference.java,
2749 javax/naming/NamingException.java, javax/naming/Context.java,
2750 javax/naming/Referenceable.java,
2751 javax/naming/directory/InitialDirContext.java,
2752 javax/naming/directory/DirContext.java,
2753 javax/naming/directory/Attributes.java,
2754 javax/naming/directory/Attribute.java,
2755 javax/naming/StringRefAddr.java,
2756 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2757 javax/naming/InitialContext.java,
2758 javax/naming/NoInitialContextException.java: New files.
2760 2000-11-25 Anthony Green <green@redhat.com>
2762 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2763 (_Jv_NewPrimArray): Likewise.
2764 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2765 (class JArray): Removed constructor.
2767 * java/lang/Thread.java (context_class_loader): New private data.
2768 (getContextClassLoader): New method.
2769 (setContextClassLoader): New method.
2770 (Thread): Initialize context_class_loader.
2772 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2773 (getResource): Rename to findResource.
2774 (findResource): New method. Used to be getResource.
2775 (getResourceAsStream): Deleted.
2776 (jarFileize): Extracted logic from URLClassLoader constructor into
2777 this new private method.
2778 (addURL): New protected method.
2779 (URLClassLoader): Call jarFileize. Use addElement instead of
2781 (findResources): New method.
2783 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2784 (getResource): Implement correct logic.
2785 (findResource): New method.
2786 (getResources): New method.
2787 (findClass): Create a ClassNotFoundException with the name of the
2788 class rather than nothing at all.
2789 (defineClass) Only throw ClassFormatError.
2791 * java/lang/Class.java (forName): New method.
2792 * java/lang/Class.h (forName): New method.
2793 * java/lang/natClass.cc (forName): New method.
2795 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2797 * java/lang/System.java (setProperties): Only call init_properties()
2798 if properties is null.
2799 (getProperties): Ditto.
2800 (getProperty): Ditto.
2801 (setProperty): Call init_properties if properties are null.
2802 (prop_init): Remove field.
2803 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2804 method. Check for null properties after synchronizing instead of
2805 prop_init flag. Set the properties field last for thread safety.
2807 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2808 test for gcj.dumpobjects property and enable object stream dumping
2810 (dumpElement): No longer native.
2811 (dumpElementln): Ditto.
2812 (setDump): Do not define.
2813 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2814 (dumpElementln): Removed.
2817 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2819 * configure: Rebuilt.
2820 * Makefile.in: Rebuilt.
2821 * Makefile.am (built_java_source_files): Add Configuration.java.
2822 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2823 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2824 Create `gnu' directory in the build tree.
2825 * gnu/classpath/Configuration.java.in: New file.
2827 2000-11-24 Tom Tromey <tromey@cygnus.com>
2829 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2831 (_Jv_NewPrimArray): Likewise.
2833 * gcj/array.h (__JArray): `length' field now const. Added
2835 (class JArray): Added constructor.
2837 2000-11-23 Mark Wielaard <mark@klomp.org>
2839 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2842 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2844 * java/util/Vector.java: Improve exception messages.
2845 (Vector): Check initialCapacity for IllegalArgumentException.
2846 (tromToSize): Don't check for elementCount == elementData.length
2848 (toArray): Don't try to set null marker if target array is the same
2849 length as the vector.
2851 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2853 * Makefile.in: Rebuilt.
2854 * Makefile.am (core_java_source_files): Added Collections.java.
2855 * java/util/List.java: Merged from classpath.
2856 * java/util/Vector.java: Ditto.
2857 * java/util/Collections.java: From classpath.
2858 * java/util/ArrayList.java (addAll(Collection)): Call
2859 addAll(int,Collection) instead of duplicating code.
2860 (indexOf): Clean up int initialization.
2861 (clear): Set cleared array entries to null, to allow garbage
2863 * java/util/List.java: Minor formatting fixes.
2864 * java/util/SimpleTimeZone.java: ditto.
2866 2000-11-18 Tom Tromey <tromey@cygnus.com>
2868 * Makefile.in: Rebuilt.
2869 * Makefile.am (core_java_source_files): Added new files.
2870 * java/lang/reflect/ReflectPermission.java: New class.
2871 * java/io/FileFilter.java: From Classpath
2872 * java/io/FilePermission.java: From Classpath.
2874 2000-11-17 Tom Tromey <tromey@cygnus.com>
2876 * java/lang/reflect/AccessibleObject.java (isAccessible,
2877 setAccessible): Now public.
2879 * java/lang/natString.cc: Include Locale.h.
2880 (toUpperCase): Added `locale' argument. Handle locale
2882 (toLowerCase): Added `locale' argument. Handle locale
2884 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2885 CAPITAL_I): New defines.
2886 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2889 (toUpperCase, toLowerCase): New methods. Variants which accept
2892 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2895 * java/util/PropertyPermission.java: Re-merged from Classpath.
2897 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2899 * java/text/StringCharacterIterator.java: Reindented.
2900 (setText): New method.
2902 2000-11-17 Mark Wielaard <mark@klomp.org>
2904 Merge with Classpath (changes by Bryce McKinlay)
2905 * java/util/jar/*.java: Reformat all to unofficial standard coding
2906 style. No changes of substance.
2908 2000-11-17 Mark Wielaard <mark@klomp.org>
2910 * java/util/zip/*.java: Javadoc updates.
2912 2000-11-17 Tom Tromey <tromey@cygnus.com>
2914 * java/text/CollationKey.java: Implement Comparable.
2915 (compareTo(Object)): New method.
2916 * java/text/Collator.java (compare(Object,Object)): New method.
2917 Implement Comparator.
2919 * java/util/zip/InflaterInputStream.java (available): New method.
2920 (close): New method.
2921 (read, available, skip, fill): Throw exception if stream closed.
2922 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2923 getNextEntry): Throw exception if closed.
2925 2000-11-16 Tom Tromey <tromey@cygnus.com>
2927 * java/io/PushbackReader.java: Merged with Classpath.
2928 * java/util/Arrays.java: Updated from Classpath.
2930 * scripts/blocks.pl: New file.
2931 * java/lang/Character.java (Subset): New class.
2932 (UnicodeBlock): New class.
2934 * java/lang/Math.java (toDegrees, toRadians): New methods.
2936 * java/lang/Float.java: Implement Comparable.
2937 (compareTo): New methods.
2938 * java/lang/Double.java: Implement Comparable.
2939 (compareTo): New methods.
2941 2000-11-16 Warren Levy <warrenl@cygnus.com>
2943 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2945 (listeners): Made transient.
2946 (source): Renamed from 'bean'.
2947 (children): New field for serialization.
2948 (propertyChangeSupportSerializedDataVersion): Ditto.
2949 (serialVersionUID): Ditto.
2950 (writeObject): New serialization method.
2951 (readObject): New serialization method.
2952 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2954 (listeners): Made transient.
2955 (source): Renamed from 'bean'.
2956 (children): New field for serialization.
2957 (vetoableChangeSupportSerializedDataVersion): Ditto.
2958 (serialVersionUID): Ditto.
2959 (writeObject): New serialization method.
2960 (readObject): New serialization method.
2961 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2962 to allow constructor to have a return type (i.e. the class that the
2963 constructor constructs).
2965 2000-11-14 Tom Tromey <tromey@cygnus.com>
2967 * Makefile.in: Rebuilt.
2968 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2971 2000-11-02 Warren Levy <warrenl@cygnus.com>
2973 * java/io/ObjectInputStream.java (readObject): Added code to
2974 conditionally dump out the serialized data.
2975 Handle ENDBLOCKDATA case a bit more gracefully since the current
2976 behavior doesn't seem to work as expected.
2977 (readStreamHeader): Added code for serialized data dumper.
2978 (readNextBlock): Ditto.
2979 (readFields): Ditto.
2980 (dump): New private static field for turning on/off dumper.
2981 (setDump): New native method.
2982 (dumpElement): New native method.
2983 (dumpElementln): New native method.
2984 * java/io/natObjectInputStream.cc (setDump): New method.
2985 (dumpElement): New method.
2986 (dumpElementln): New method.
2988 2000-11-02 Warren Levy <warrenl@cygnus.com>
2990 * java/net/InetAddress.java (addr): Renamed from 'address'.
2991 (address): New field to match Serialized Form doc.
2992 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2993 (family): New serialization field.
2994 (serialVersionUID): New field.
2995 (readObject): New method.
2996 (writeObject): New method.
2997 (getFamily): New native method.
2998 (InetAddress): Set family.
2999 * java/net/natInetAddress.cc (getFamily): New method.
3000 (addr): Renamed from 'address'.
3001 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3002 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3003 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3005 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3007 * java/util/AbstractList.java (SubList): Make it a top-level private
3009 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3011 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3012 * Makefile.in: Rebuilt.
3014 2000-11-02 Tom Tromey <tromey@cygnus.com>
3016 * Makefile.in: Rebuilt.
3017 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3020 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3022 * java/util/AbstractList.java (remove): Comment out modCount increment
3023 to work around compiler bug.
3026 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3028 * java/util/AbstractList.java: Throw messages with
3029 IndexOutOfBoundsExceptions.
3030 (listIterator()): Call listIterator(0).
3031 (size): New field. Initialize to size().
3032 (hasNext): Test position against size, not size().
3033 (remove): Increment knownMod by one instead of resetting it from
3036 (SubList.upMod): Removed.
3037 (SubList.set): Don't call upMod() or update knownMod.
3038 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3039 (SubList.remove): Ditto.
3040 (SubList.addAll): Don't call backingList.size(). Increment size from
3042 (SubList.iterator): New method. Call listIterator(0).
3043 (SubList.listIterator): New method. Restore code to return an anonymous
3044 listIterator implementation (with some changes).
3045 * java/util/AbstractSequentialList.java: Throw messages with
3046 IndexOutOfBoundsExceptions.
3047 (addAll): Add a specnote.
3048 * java/util/ArrayList.java (removeRange): Get the math right.
3049 (addAll): Increment modCount _before_ creating iterator.
3050 * java/util/LinkedList.java: Rewritten, mostly.
3052 2000-11-01 Tom Tromey <tromey@cygnus.com>
3054 * scripts/encodings.pl: Added `ASCII' alias.
3055 * Makefile.in: Rebuilt.
3056 * Makefile.am (convert_source_files): Added new files.
3057 * gnu/gcj/convert/Input_ASCII.java: New file.
3058 * gnu/gcj/convert/Output_ASCII.java: New file.
3059 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3060 out-of-range characters.
3061 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3062 (read): Swap bytes if required. Treat `count' as character count,
3064 (write): Likewise. Also, handle case where iconv fails on a given
3066 (init): Put encoding into exception.
3067 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3068 (static): Call iconv_init. Rebuilt alias list.
3069 (iconv_init): New private method.
3071 2000-11-01 Tom Tromey <tromey@cygnus.com>
3073 * Makefile.in: Rebuilt.
3074 * Makefile.am (install-exec-hook): Only make a single symlink, and
3075 remove the destination before making the link.
3076 * configure: Rebuilt.
3077 * configure.in: Call AC_PROG_LN_S.
3079 2000-10-31 Warren Levy <warrenl@cygnus.com>
3081 * jni.cc: Added include of java/lang/ThreadGroup.h.
3082 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3083 per change of 2000-10-05.
3085 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3087 * java/util/BitSet.java: Updated @specnote.
3089 * java/io/Reader.java: Merge docs from classpath.
3090 (skip): Synchronize on `lock'.
3091 * java/io/FileReader.java: Import correct implementation from
3093 * java/io/StringReader.java: Merge docs from classpath.
3094 (ready): Throw IOException if stream is closed.
3096 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3098 * java/util/AbstractCollection.java (addAll): Use size() instead of
3099 hasNext() in iterator loop.
3101 (contains): Ditto. Simplify loop.
3102 (containsAll): Ditto.
3107 (toString): Ditto. Use string concatenation operators, not
3109 * java/util/AbstractList.java (addAll): Use size() instead of
3110 hasNext() in iterator loop.
3113 (indexOf): Ditto. Don't take null check outside of the loop.
3114 (iterator): Return an AbstractListItr instead of anonymous class.
3115 (lastIndexOf): Use a for loop bounded by size() instead of
3116 hasPrevious() in iterator loop.
3117 (listIterator): Return an AbstractListItr.
3118 (removeRange): Remove bounds checking code and docs.
3119 (AbstractListItr): New inner class. Code moved here from
3121 (SubList.iterator): Removed. Use default implementation from
3122 AbstractList instead.
3123 (SubList.listIterator): As above.
3124 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3125 instead of hasNext() in iterator loop.
3126 (containsValue): Ditto.
3132 (toString): Ditto. Use string concatenation operators, not
3134 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3135 bounded by size() instead of hasNext() in iterator loop.
3136 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3137 part of normal execution flow. Do an explicit null check instead.
3138 * java/util/ArrayList.java (_iSize): Rename to `size'.
3139 (_arData): Rename to `data'.
3140 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3143 (removeRange): Make protected. Don't check bounds.
3144 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3146 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3148 (addAll (int, Collection)): Check lower bounds. Simplify exception
3150 (clone): Clone the data array too.
3151 (indexOf): Inline doesEqual().
3152 (lastIndexOf): Ditto.
3153 (clear): Don't set array data to null.
3154 (set): Check lower bounds. Simplify exception string.
3155 (toArray): Correct comment.
3156 (trimToSize): Don't update modCount, this is not a structural change.
3159 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3161 (toString): Declare `bit' as long, not int.
3162 (data): Made package-private, not private.
3164 2000-10-27 Warren Levy <warrenl@cygnus.com>
3166 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3167 array elements to true.
3169 2000-10-27 Warren Levy <warrenl@cygnus.com>
3171 * Makefile.am: Added locale files from Classpath.
3172 * Makefile.in: Rebuilt.
3173 * gnu/java/locale/Calendar.java: New file.
3174 * gnu/java/locale/Calendar_de.java: New file.
3175 * gnu/java/locale/Calendar_en.java: New file.
3176 * gnu/java/locale/Calendar_nl.java: New file.
3177 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3178 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3179 serialization compatibility.
3180 (scale): Made private.
3181 (serialVersionUID): New field.
3182 * java/math/BigInteger.java (ival): Made transient.
3183 (words): Made transient.
3184 (bitCount): New serialization field.
3186 (firstNonzeroByteNum): Ditto.
3187 (lowestSetBit): Ditto.
3190 (serialVersionUID): New field.
3191 (readObject): New method.
3192 (writeObject): New method.
3193 * java/util/BitSet.java (serialVersionUID): New field.
3194 * java/util/Calendar.java: Replaced with Classpath file.
3195 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3196 of getDefault() for TimeZone or Locale instead of passing nulls.
3197 * java/util/Locale.java (serialVersionUID): New field.
3198 (writeObject): New method.
3199 (readObject): New method.
3200 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3202 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3204 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3205 (core_java_source_files): Put java.lang, java.io, and java.util here.
3206 (ordinary_java_source_files): Order so that core_java_source_files are
3208 (java_source_files): Reorder so that special_java_source_files are
3210 * configure.in: Don't pass -I flag to gcj.
3211 * Makefile.in: Rebuilt.
3212 * configure: Rebuilt.
3214 2000-10-25 Tom Tromey <tromey@cygnus.com>
3216 * Makefile.in: Rebuilt.
3217 * Makefile.am (install-exec-hook): New target.
3219 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3221 * java/util/EventObject.java: Merged from classpath.
3223 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3226 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3228 * java/util/AbstractSet.java (equals): Re-installed original code.
3230 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3232 * Makefile.am: Added rules for libgcjx library.
3233 * Makefile.in: Rebuilt.
3234 * configure.in: Added check for X.
3235 * configure: Rebuilt.
3236 * gnu/awt/LightweightRedirector.java: New file.
3237 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3238 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3239 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3240 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3241 * gnu/awt/j2d/MappedRaster.java: New file.
3242 * gnu/awt/xlib/XCanvasPeer.java: New file.
3243 * gnu/awt/xlib/XEventLoop.java: New file.
3244 * gnu/awt/xlib/XEventQueue.java: New file.
3245 * gnu/awt/xlib/XFontMetrics.java: New file.
3246 * gnu/awt/xlib/XFramePeer.java: New file.
3247 * gnu/awt/xlib/XGraphics.java: New file.
3248 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3249 * gnu/awt/xlib/XPanelPeer.java: New file.
3250 * gnu/awt/xlib/XToolkit.java: New file.
3251 * gnu/gcj/xlib/Clip.java: New file.
3252 * gnu/gcj/xlib/Colormap.java: New file.
3253 * gnu/gcj/xlib/Display.java: New file.
3254 * gnu/gcj/xlib/Drawable.java: New file.
3255 * gnu/gcj/xlib/Font.java: New file.
3256 * gnu/gcj/xlib/GC.java: New file.
3257 * gnu/gcj/xlib/Pixmap.java: New file.
3258 * gnu/gcj/xlib/Screen.java: New file.
3259 * gnu/gcj/xlib/Visual.java: New file.
3260 * gnu/gcj/xlib/WMSizeHints.java: New file.
3261 * gnu/gcj/xlib/Window.java: New file.
3262 * gnu/gcj/xlib/WindowAttributes.java: New file.
3263 * gnu/gcj/xlib/XAnyEvent.java: New file.
3264 * gnu/gcj/xlib/XButtonEvent.java: New file.
3265 * gnu/gcj/xlib/XColor.java: New file.
3266 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3267 * gnu/gcj/xlib/XConnectException.java: New file.
3268 * gnu/gcj/xlib/XEvent.java: New file.
3269 * gnu/gcj/xlib/XException.java: New file.
3270 * gnu/gcj/xlib/XExposeEvent.java: New file.
3271 * gnu/gcj/xlib/XID.java: New file.
3272 * gnu/gcj/xlib/XImage.java: New file.
3273 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3274 * gnu/gcj/xlib/natClip.cc: New file.
3275 * gnu/gcj/xlib/natColormap.cc: New file.
3276 * gnu/gcj/xlib/natDisplay.cc: New file.
3277 * gnu/gcj/xlib/natDrawable.cc: New file.
3278 * gnu/gcj/xlib/natFont.cc: New file.
3279 * gnu/gcj/xlib/natGC.cc: New file.
3280 * gnu/gcj/xlib/natPixmap.cc: New file.
3281 * gnu/gcj/xlib/natScreen.cc: New file.
3282 * gnu/gcj/xlib/natVisual.cc: New file.
3283 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3284 * gnu/gcj/xlib/natWindow.cc: New file.
3285 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3286 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3287 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3288 * gnu/gcj/xlib/natXColor.cc: New file.
3289 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3290 * gnu/gcj/xlib/natXException.cc: New file.
3291 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3292 * gnu/gcj/xlib/natXImage.cc: New file.
3293 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3294 * java/awt/EventDispatchThread.java: Start thead on creation.
3296 2000-10-20 Tom Tromey <tromey@cygnus.com>
3298 From Arno J. Klaassen:
3299 * interpret.cc: Include <stdlib.h> for alloca.
3300 * defineclass.cc: Include <stdlib.h> for alloca.
3302 * Makefile.in: Rebuilt.
3303 * Makefile.am: Include deps.mk.
3304 (GCJCOMPILE): Added -MD, -MT, and -MF.
3305 ($(javao_files)): Don't depend on libgcj.zip.
3306 (all-recursive): New target.
3307 (%.lo:%.cc): Do dependency tracking.
3308 ($(nat_headers)): Don't depend on libgcj.zip.
3309 * configure: Rebuilt.
3310 * configure.in: Make .d files and deps.mk.
3312 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3314 * exception.cc: Don't #include "exception".
3315 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3317 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3318 * Makefile.in: Updated.
3320 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3322 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3323 * java/awt/peer/ComponentPeer.java (disable): Removed.
3326 (minimumSize): Removed.
3327 (preferredSize): Removed.
3330 * java/awt/peer/ListPeer.java (addItem): Removed.
3332 (minimumSize): Removed.
3333 (preferredSize): Removed.
3334 (setMultipleSelections): Removed.
3335 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3336 (remove): Renamed from removeMenu.
3337 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3339 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3340 (remove): Renamed from removeItem.
3341 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3342 (getMinimumSize): Removed.
3343 (getPreferredSize): Removed.
3344 (minimumSize): Removed.
3345 (preferredSize): Removed.
3346 (replaceText): Removed.
3347 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3348 (preferredSize): Removed.
3349 (getMinimumSize): Removed.
3350 (getPreferredSize): Removed.
3351 (setEchoCharacter): Removed.
3353 2000-10-10 Warren Levy <warrenl@cygnus.com>
3355 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3356 * java/sql/Date.java (serialVersionUID): New field.
3357 * java/sql/Time.java (serialVersionUID): New field.
3358 * java/sql/Timestamp.java (serialVersionUID): New field.
3359 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3360 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3361 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3362 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3363 (readObject): New serialization method.
3364 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3365 (serialVersionOnStream): New field.
3366 (readObject): New serialization method.
3367 (getMonetaryDecimalSeparator): New method.
3368 (setMonetaryDecimalSeparator): New method.
3369 * java/text/NumberFormat.java (maxFractionDigits): New field.
3370 (maxIntegerDigits): New field.
3371 (minFractionDigits): New field.
3372 (minIntegerDigits): New field.
3373 (serialVersionOnStream): New field.
3374 (serialVersionUID): New field.
3375 (readObject): New serialization method.
3376 (writeObject): New serialization method.
3377 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3378 (serialVersionOnStream): New field.
3379 (serialVersionUID): New field.
3380 (readObject): New serialization method.
3382 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3384 * configure.in (GCJ): Avoid bogus error message when looking for
3385 (and not finding) gcj in the build tree.
3386 * configure: Rebuilt.
3388 2000-10-09 Tom Tromey <tromey@cygnus.com>
3390 * configure: Rebuilt.
3391 * configure.in: Include sys/types.h when checking for socklen_t.
3392 From Arno J. Klaassen.
3394 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3396 * include/jvm.h: Enable __builtin_expect().
3398 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3399 the main program. Fix for PR libgcj/341.
3401 2000-10-07 Tom Tromey <tromey@cygnus.com>
3403 * java/util/Properties.java: Merged with Classpath version.
3405 2000-10-05 Tom Tromey <tromey@cygnus.com>
3407 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3408 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3409 * java/lang/Class.h (Object): Added `class$' field.
3410 * java/lang/Object.h (Object): Added `class$' field.
3411 * defineclass.cc (ClassClass): Use `class$' form.
3412 (ClassObject): Likewise.
3413 * resolve.cc (ClassObject): Use `class$' form.
3414 (ObjectClass): Likewise.
3415 * interpret.cc (ClassError): Removed.
3416 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3418 (IntegerClass): Likewise.
3419 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3421 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3422 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3423 SerializableClass): Likewise.
3424 Include Serializable.h, Cloneable.h.
3425 * java/lang/natSystem.cc (SystemClass): Removed.
3426 (init_properties): Use `class$' form.
3427 * java/lang/natObject.cc (CloneableClass): Removed.
3428 (clone): Use `class$' form.
3429 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3430 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3431 ConstructorClass): Likewise.
3432 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3433 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3434 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3435 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3437 (ClassClass): Likewise.
3438 * include/jvm.h (StringClass): Use `class$' form.
3439 * prims.cc (ObjectClass): Removed.
3440 (_Jv_RunMain): Use `class$' form.
3441 (_Jv_AllocObject): Likewise.
3442 * jni.cc (ClassClass): Use `class$' form.
3443 (ThrowableClass): Likewise.
3444 (ObjectClass): Likewise.
3445 (MethodClass): Likewise.
3446 (ThreadGroupClass): Likewise.
3447 (NativeThreadClass): Likewise.
3448 * boehm.cc (ObjectClass): Removed.
3449 (ClassClass): Removed.
3450 (_Jv_MarkObj): Use `class$' form.
3451 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3454 2000-10-05 Warren Levy <warrenl@cygnus.com>
3456 * Makefile.am: Removed java/io/Replaceable.java and
3457 java/io/Resolvable.java.
3458 * Makefile.in: Rebuilt.
3459 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3461 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3463 (processResolution): Handle readResolve method via reflection with
3464 removal of Resolvable interface.
3465 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3466 method via reflection with removal of Replaceable interface.
3467 * java/io/Replaceable.java: Removed.
3468 * java/io/Resolvable.java: Removed.
3469 * java/security/Key.java (serialVersionUID): New field.
3470 * java/security/Provider.java (serialVersionUID): New field.
3471 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3473 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3475 * java/sql/DataTruncation.java (serialVersionUID): New field.
3476 * java/sql/SQLException.java (serialVersionUID): New field.
3477 * java/sql/SQLWarning.java (serialVersionUID): New field.
3478 * java/util/Date.java (serialVersionUID): New field.
3479 (millis): Made transient.
3480 (readObject): New method.
3481 (writeObject): New method.
3483 2000-10-05 Tom Tromey <tromey@cygnus.com>
3485 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3487 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3489 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3490 (JvRunMain): Set _Jv_argv and _Jv_argc.
3491 * java/awt/Component.java: Minor fixes.
3492 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3493 * java/awt/Toolkit.java (systemEventQueue): Removed.
3494 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3495 * java/awt/Window.java (getToolkit): Don't call super.
3496 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3497 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3498 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3499 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3500 * gnu/awt/gtk/GtkFramePeer.java: New file.
3501 * gnu/awt/gtk/GtkMainThread.java: New file.
3502 * gnu/awt/gtk/GtkToolkit.java: New file.
3503 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3504 * gnu/awt/gtk/gtkcommon.cc: New file.
3505 * gnu/awt/gtk/gtkcommon.h: New file.
3506 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3507 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3508 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3509 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3510 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3511 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3513 2000-09-30 Tom Tromey <tromey@cygnus.com>
3515 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3516 interrupted before modifying the cv's wait set.
3519 2000-09-30 Hans Boehm <boehm@acm.org>
3520 Bryce McKinlay <bryce@albatross.co.nz>
3522 Implement bitmap descriptor based marking for Boehm GC.
3524 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3525 * configure: Rebuilt.
3526 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3527 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3528 method get_finalizer().
3529 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3530 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3531 (_Jv_AllocObj): Add new jclass parameter.
3532 (_Jv_AllocArray): Ditto.
3533 (_Jv_BuildGCDescr): New prototype.
3534 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3535 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3536 get_finalizer() instead of direct finalizer vtable offset.
3537 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3538 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3539 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3540 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3541 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3542 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3543 (_Jv_DetermineVTableIndex): Ditto.
3544 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3545 calculations to account for new gc_descr field.
3546 * boehm.cc: #include gc_gcj.h.
3547 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3548 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3549 New commentary from HB. Mark the classes vtable.
3550 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3551 (GC_DEFAULT_DESCR): New #define.
3552 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3553 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3554 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3555 scan conservativly if size is less than min_heap_addr. Set vtable
3556 pointer of new object before returning.
3557 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3558 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3559 allocation for obj_kind_x.
3560 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3561 (_Jv_AllocObj): Set vtable on returned object.
3562 (_Jv_AllocArray): Ditto.
3563 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3564 (_Jv_NewPrimArray): Ditto.
3565 (_Jv_AllocObj): Declare as a friend.
3566 (_Jv_AllocArray): Ditto.
3567 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3568 from &ObjectClass into new array class. Remove offset-by-one
3569 adjustments from `method' size calculations to account for gc_descr
3572 2000-09-26 Tom Tromey <tromey@cygnus.com>
3574 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3575 `remove', not `add'.
3577 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3579 * java/lang/natSystem.cc (file_encoding): Added return statement.
3581 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3583 * Makefile.am: Re-work shell commands that exceeded command-line
3585 * Makefile.in: Rebuilt.
3587 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3589 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3590 * java/lang/natDouble.cc: Likewise.
3591 * java/lang/reflect/natMethod.cc: Likewise.
3592 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3594 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3596 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3598 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3599 * acinclude.m4: Arrange for automake to not bring in a new
3600 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3601 * Makefile.am: Leave it up to automake to subst GCJ.
3602 * aclocal.m4, configure, Makefile.in: Rebuilt.
3604 2000-09-13 Tom Tromey <tromey@cygnus.com>
3606 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3607 (get): Ensure Boolean class is initialized.
3608 * java/lang/reflect/natField.cc (BooleanClass): New define.
3609 (get): Ensure Boolean class is initialized.
3611 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3613 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3614 Initialize with anonymous class.
3615 (compareToIgnoreCase): New method.
3617 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3618 (uncaughtException): Set had_uncaught_exception.
3619 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3620 exit with error status if set.
3621 (_Jv_RunMain): Ditto.
3623 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3625 * configure: Rebuilt with new ../libtool.m4.
3627 2000-09-11 Tom Tromey <tromey@cygnus.com>
3629 * java/lang/reflect/Field.java (toString): Don't rely on
3632 2000-09-08 Tom Tromey <tromey@cygnus.com>
3634 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3635 default decoder use iconv.
3636 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3637 Let default encoder use iconv.
3638 * configure: Rebuilt.
3639 * configure.in: Check for nl_langinfo and <langinfo.h>.
3640 * java/lang/natSystem.cc (file_encoding): New function.
3641 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3643 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3645 * acinclude.m4: Simplify the tests for CC and CXX.
3646 * aclocal.m4, configure: Rebuilt.
3648 * acinclude.m4: Include libtool macros from the source tree.
3649 * aclocal.m4, configure: Rebuilt.
3651 2000-09-08 Warren Levy <warrenl@cygnus.com>
3653 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3654 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3655 * java/io/File.java (writeObject): Added.
3656 (readObject): Added.
3657 (serialVersionUID): Added.
3658 * java/io/ObjectOutputStream.java (writeObject): Initialized
3659 fieldsAlreadyWritten before recursion rather than after.
3660 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3661 * java/io/OptionalDataException.java (serialVersionUID): Added.
3662 (OptionalDataException): Made package private.
3663 * java/io/SyncFailedException.java (SyncFailedException): Removed
3664 default constructor to match spec.
3665 * java/lang/Boolean.java (serialVersionUID): Added.
3666 * java/lang/Byte.java (serialVersionUID): Added.
3667 * java/lang/Character.java (serialVersionUID): Added.
3668 * java/lang/Double.java (serialVersionUID): Added.
3669 * java/lang/Float.java (serialVersionUID): Added.
3670 * java/lang/Integer.java (serialVersionUID): Added.
3671 * java/lang/Long.java (serialVersionUID): Added.
3672 * java/lang/Number.java (serialVersionUID): Added.
3673 * java/lang/Short.java (serialVersionUID): Added.
3674 * java/lang/String.java (serialVersionUID): Added.
3675 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3677 * java/lang/reflect/InvocationTargetException.java
3678 (serialVersionUID): Added.
3679 * java/net/URL.java (handler): Made transient.
3680 (hashCode): Added field for serialization, per spec. and use
3681 cached value if available.
3682 (serialVersionUID): Added.
3683 (URL): Initialize hashCode.
3684 (set): Adjust hashCode.
3685 (readObject): New Method to initialize the protocol handler when
3687 (writeObject): New method.
3688 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3689 * java/text/Collator.java: Removed 'implements Serializable'.
3690 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3691 * java/util/Properties.java (serialVersionUID): Added.
3692 * java/util/Random.java (serialVersionUID): Added.
3693 (seed): Made private.
3694 (nextNextGaussian): Made private.
3695 (haveNextNextGaussian): Made private.
3696 * java/util/Stack.java (serialVersionUID): Added.
3697 * java/util/TimeZone.java (serialVersionUID): Added.
3698 * java/util/Vector.java (serialVersionUID): Added.
3700 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3702 * Makefile.am (Thread.h): Don't be friends with native threads
3704 * Makefile.in: Rebuilt.
3705 * java/lang/Thread.java (interrupt_flag): Make package-private.
3707 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3709 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3710 to avoid long long division.
3712 2000-09-06 Tom Tromey <tromey@cygnus.com>
3714 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3716 * java/lang/reflect/Method.java (toString): Use `getName' for
3719 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3720 `args' if method takes no parameters.
3722 Fix for PR java.lang/339:
3723 * java/lang/natPosixProcess.cc (fail): New function.
3724 (cleanup): New function.
3725 (startProcess): Use them. Create pipe so child can communicate
3726 exec failure back to parent.
3728 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3730 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3732 (send): Undo last patch. Remove the label only.
3734 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3736 * java/net/natInetAdress.cc: Ditto.
3738 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3740 2000-09-05 Tom Tromey <tromey@cygnus.com>
3742 * doc/cni.sgml: Updated from master copy.
3744 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3746 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3748 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3750 * java/lang/fdlibm.h: #undef __P if previously defined.
3751 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3752 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3756 2000-09-04 Tom Tromey <tromey@cygnus.com>
3758 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3761 2000-09-04 Anthony Green <green@redhat.com>
3763 Fix for PR java.io/203:
3764 * java/io/File.java (createTempFile): Obey directory argument.
3765 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3766 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3767 variable to set java.io.tmpdir on non-WIN32 systems.
3769 2000-09-04 Anthony Green <green@redhat.com>
3771 * java/io/File.java (deleteOnExit): New method.
3772 * gnu/gcj/runtime/FileDeleter.java: New class.
3773 * java/lang/natRuntime.cc (exit): Call
3774 FileDeleter.deleteOnExitNow()
3775 * Makefile.am: Add FileDeleter.java.
3776 * Makefile.in: Rebuilt.
3778 2000-09-02 Tom Tromey <tromey@cygnus.com>
3780 * Makefile.in: Rebuilt.
3781 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3782 environment variable.
3784 2000-09-01 Andrew Haley <aph@redhat.com>
3786 * java/io/StreamTokenizer.java: Don't throw a
3787 NumberFormatException if a field is numeric as far as the
3788 StreamTokenizer is concerned but not as far as Double.valueOf() is
3789 concerned: return a zero instead.
3791 2000-08-30 Tom Tromey <tromey@cygnus.com>
3793 * Makefile.in: Rebuilt.
3794 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3796 2000-08-28 Tom Tromey <tromey@cygnus.com>
3798 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3799 gnu/gcj/awt/ComponentDataBlitOp.java,
3800 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3801 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3802 java/awt/color/ICC_ColorSpace.java,
3803 java/awt/color/ICC_Profile.java,
3804 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3805 java/awt/image/ComponentColorModel.java,
3806 java/awt/image/ComponentSampleModel.java,
3807 java/awt/image/DataBuffer.java,
3808 java/awt/image/DataBufferByte.java,
3809 java/awt/image/DataBufferInt.java,
3810 java/awt/image/DataBufferUShort.java,
3811 java/awt/image/DirectColorModel.java,
3812 java/awt/image/IndexColorModel.java,
3813 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3814 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3815 java/awt/image/SinglePixelPackedSampleModel.java,
3816 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3817 Removed Latin-1 copyright symbols.
3818 * java/util/zip/ZipFile.java: Indentation fixes.
3820 2000-08-27 Mark Wielaard <mark@klomp.org>
3822 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3823 constructor, close can delete the file, finalize calls close.
3824 * java/util/jar/JarFile.java: Constructor that takes mode now
3827 2000-08-27 Anthony Green <green@redhat.com>
3829 * java/util/ArrayList.java, java/util/Timer.java,
3830 java/util/LinkedList.java, java/util/TimerTask.java,
3831 java/util/HashMap.java, java/util/AbstractMap.java,
3832 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3833 java/util/SortedSet.java: Imported from GNU Classpath.
3834 * Makefile.in: Rebuilt.
3835 * Makefile.am: Added new files.
3837 2000-08-26 Anthony Green <green@redhat.com>
3839 * Makefile.in: Rebuilt.
3840 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3843 * prims.cc: Include ClassLoader.h.
3844 (_Jv_RunMain): When executing jar files, classpath must be the jar
3845 file only. Lose our reference to the system ClassLoader in order
3846 to get a new one with the correct classpath.
3847 * java/lang/natSystem.cc (init_properties): When executing a jar
3848 file, only use the jar file for java.class.path.
3850 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3851 for bytecode archives.
3853 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3854 exists, but not Main-Class.
3856 2000-08-23 Mark Wielaard <mark@klomp.org>
3858 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3859 return -1 when fill() has no more data for the Inflater.
3861 2000-08-23 Mark Wielaard <mark@klomp.org>
3863 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3864 write(String) already does.
3866 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3868 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3869 to `alive_flag', call `init'.
3870 (init): New native method.
3871 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3874 2000-08-21 Mark Wielaard <mark@klomp.org>
3876 * Makefile.in: Rebuilt.
3877 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3879 (java/lang/reflect/Field.h): Likewise.
3880 (java/lang/reflect/Method.h): Likewise.
3881 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3884 2000-08-21 Tom Tromey <tromey@cygnus.com>
3886 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3889 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3891 * java/lang/natSystem.cc (init_properties): Change sourceware
3892 reference to sources.redhat.com.
3894 * include/java-props.h: Add _Jv_Jar_Class_Path.
3895 * prims.cc: Ditto. Set it from `gij -jar file' option.
3897 * java/lang/natSystem.cc (init_properties): Set java.class.path
3899 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3901 * java/util/PropertyPermission.java: Import from GNU Classpath.
3902 * Makefile.in: Rebuilt.
3903 * Makefile.am: Add java/util/PropertyPermission.java.
3904 * java/lang/System.java: Add setProperty method.
3906 * gij.cc (main): Add -jar option to execute jar files.
3907 (help): Describe -jar option.
3908 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3909 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3910 * gnu/gcj/runtime/FirstThread.java (main): New method.
3912 * java/util/jar/Attributes.java: Correct comment spelling.
3914 2000-08-20 Mark Wielaard <mark@klomp.org>
3916 * java/util/zip/Adler32.java: Make private variables really private
3917 * java/util/zip/CRC32.java: Make private variables really private
3918 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3920 * java/util/zip/InflaterInputStream.java: skip() could skip to
3922 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3923 * java/util/zip/ZipFile.java: size() new 1.2 method
3924 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3925 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3928 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3930 * java/util/jar/JarFile.java: Don't call
3931 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3934 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3936 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3937 Read the entire contents of the class file, not just what is
3940 * java/net/JarURLConnection.java: getEntry doesn't take any
3941 arguments. Return null if element is null.
3943 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3944 size from the archive, not the inflated size.
3946 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3947 java.util.zip.ZipFile.getEntry.
3949 * gij.cc (help): Change sourceware reference to
3952 2000-08-19 Tom Tromey <tromey@cygnus.com>
3954 * java/util/zip/ZipInputStream.java (createZipEntry):
3957 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3959 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3960 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3961 java/util/jar/JarInputStream.java,
3962 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3963 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3964 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3965 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3966 java/security/cert/Certificate.java,
3967 java/security/cert/CertificateEncodingException.java,
3968 java/security/cert/CertificateException.java,
3969 java/security/cert/CertificateExpiredException.java,
3970 java/security/cert/CertificateFactory.java,
3971 java/security/cert/CertificateFactorySpi.java,
3972 java/security/cert/CertificateNotYetValidException.java,
3973 java/security/cert/CertificateParsingException.java,
3974 java/security/cert/X509CRL.java,
3975 java/security/cert/X509CRLEntry.java,
3976 java/security/cert/X509Certificate.java,
3977 java/security/cert/X509Extension.java: Imported from Classpath.
3978 * java/util/Hashtable.java: Imported from Classpath.
3980 * java/util/zip/ZipInputStream.java: Create stub for
3983 * gcj/javaprims.h: Updated class list.
3985 * Makefile.in, gcj/Makefile.in: Rebuilt.
3986 * Makefile.am (ordinary_java_source_files): Add these new classes.
3988 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3990 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3991 * gnu/gcj/awt/GLightweightPeer.java: New file.
3992 * java/awt/BorderLayout.java: Implemented all methods.
3993 * java/awt/Button.java (actionListener, actionCommand): Renamed
3994 and modifier change.
3995 (addNotify): Call super.
3996 (dispatchEventImpl): New method.
3997 (getListeners): New method.
3998 (label): Made package-private, not private.
3999 * java/awt/Canvas.java: Implemented class body.
4000 * java/awt/Color.java (brighter): New method.
4001 (darker): New method.
4002 (hashCode): New method.
4003 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4004 (getGraphicsConfiguration): Delegate to
4005 getGraphicsConfigurationImpl().
4006 (getGraphicsConfigurationImpl): New method.
4007 (getToolkit): Only return value from peer if not null.
4008 (isDisplayable): Check with parent.
4009 (isShowing): No parent implies not showing.
4010 (getForeground): Check parent property if local is null.
4011 (getBackground): Likewise.
4012 (getFont): Likewise.
4013 (setForeground): Inform peer.
4014 (setBackground): Likewise
4015 (setLocale): Invalidate component.
4016 (getColorModel): Implemented.
4017 (setLocation): Invalidate, or ignore if no change.
4018 (setSize): Invalidate, or ignore if no change.
4019 (setBounds): Invalidate, or ignore if no change.
4020 (isOpaque): By default, heavyweight implies opaque.
4021 (isLightweight): Implemented.
4022 (getMaximumSize): Implemented.
4023 (doLayout): Implemented, NOP.
4024 (validate): Implemented, NOP.
4025 (invalidate): Only propagate to parent if parent was valid.
4026 (getGraphics): Implemented.
4027 (getFontMetrics): Implemented.
4028 (update): Implemented.
4029 (paintAll): Implemented.
4030 (repaint): Implemented all repaint methods.
4031 (print): Implemented.
4032 (printAll): Implemented.
4033 (createImage): Implemented.
4034 (dispatchEvent): Give the peer a chance to handle the event.
4035 (dispatchEventImpl): Dispatch paint events.
4036 (enableEvents): Lightweights enable events on parent component.
4037 (coalesceEvents): Coalesce paint events, and select event type
4039 (coalescePaintEvents): New method.
4040 (processEvent): Fix unfortunate ordering of statements, and call
4041 correct method for MOUSE_CLICKED.
4042 (processPaintEvent): New method.
4043 (addNotify): Allow container to notify children before event
4044 mask is set in peer.
4045 (addNotifyContainerChildren): New method.
4046 (removeNotify): Visibility should not change on removeNotify.
4047 (paramString): Implemented.
4048 (list): Implemented two of the list methods.
4049 * Container (myInsets): Removed, insets are managed by peer.
4050 (getInsets): Query peer.
4051 (addImpl): Fix reparenting, enable events for lightweights,
4052 initialize component array.
4053 (validate): Call doLayout in validateTree() instead.
4054 (validateTree): Do nothing if already valid. Call beginValidate(),
4055 endValidate() on peer. Call validateTree() instead of validate()
4056 for children that are containers. Mark valid after validation of
4058 (setFont): Partial implementation.
4059 (paint): Implemented.
4060 (visitChildren): New method.
4061 (visitChild): New method.
4062 (update): Implemented.
4063 (print): Implemented.
4064 (paintComponents): Implemented.
4065 (printComponents): Consider translation and clipping.
4066 (getComponentAt): Ignore invisible children. Return this if no
4068 (addNotify): Call super.
4069 (addNotifyContainerChildren): New method.
4070 (paramString): Implemented.
4071 (list): Implemented.
4072 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4074 (invokeLater): Likewise.
4075 (isDispatchThread): Likewise.
4076 * java/awt/FontMetrics (getLeading): Formula change.
4077 (getDescent): Consider leading also.
4078 (getMaxAscent): Default to getAscent().
4079 (getMaxDescent): Default to getDescent.
4080 (getMaxAdvance): Return value signifying unknown.
4081 (charWidth): Both methods implemented.
4082 (charsWidth): Implemented.
4083 (bytesWidth): Implemented.
4084 (getWidths): Implemented.
4085 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4087 (Frame): Rearragend constuctor chaining to disallow null being
4088 passed as a graphics configuration.
4089 (getTitle): Return empty string if null.
4091 (getIconImage): New method.
4092 (setIconImage): New method.
4093 (finalize): New method.
4094 (setMenuBar): Notify peer.
4095 (isResizable): New method.
4096 (setResizable): New method.
4097 (getState): New method.
4099 (remove): Implemented.
4100 (removeNotify): New method.
4101 (getFrames): New method.
4102 * java/awt/Graphics.java: Implemented body of class.
4103 * java/awt/Graphics2D.java: New file.
4104 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4105 * java/awt/Image.java: Implemented body of class.
4106 * java/awt/Panel.java (Panel): Call correct super constructor.
4107 (addNotify): Implemented.
4108 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4109 * java/awt/RenderingHints.java: New file.
4110 * java/awt/Toolkit.java (createComponent): Implemented.
4111 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4112 * java/awt/Window.java (Window): Two new constructors. Reordered
4113 constructor chaining.
4114 (getGraphicsConfigurationImpl): New method.
4115 (finalize): Call super.
4116 (addNotify): Call super.
4117 (pack): Do layout stuff.
4118 (show): Ensure that peer exists and that component is valid.
4119 (dispose): Dispose owned children.
4120 (getOwner): Simplify code, casting null pointers is valid.
4121 (getGraphicsConfiguration): Ask peer if local value is null.
4122 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4124 * java/awt/image/BufferedImage.java: New file.
4125 * java/awt/image/RasterOp.java: New file.
4126 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4127 More powerfull replacement for getColorModel().
4128 (getColorModel) Removed.
4129 (setEventMask) New method.
4130 * Makefile.am: Added new files.
4131 * Makefile.in: Rebuilt.
4133 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4135 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4136 (finit_leg_name): New global.
4137 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4138 `$finit$'. This is a backward compatibility hack.
4139 (java::lang::Class::_getMethods): Likewise.
4141 2000-08-15 Andrew Haley <aph@cygnus.com>
4143 * include/jvm.h (_Jv_HashCode): New hash code.
4145 2000-08-15 Tom Tromey <tromey@cygnus.com>
4147 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4149 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4151 * THANKS: More thanks.
4153 2000-08-10 Tom Tromey <tromey@cygnus.com>
4155 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4157 (connect): Likewise.
4159 (getOption): Likewise.
4160 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4161 case when errno not set.
4164 (receive): Likewise.
4165 (mcastGrp): Likewise.
4166 (setOption): Likewise.
4167 (getOption): Likewise.
4169 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4170 John Stracke <francis@ecal.com>
4172 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4173 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4175 (disconnect): Don't unset connected flag.
4176 (getHeaderField (String)): Call connect() if not connected.
4177 (getHeaderField (int)): Ditto.
4178 (getHeaderFieldKey): Ditto.
4179 (getHttpHeaders): Don't call connect().
4180 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4181 gotResponseVals): New fields.
4182 (getResponseCode): Call getResponseVals() conditionally.
4183 (getResponseMessage): Ditto.
4184 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4186 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4188 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4189 * Makefile.in: Rebuilt.
4190 * java/awt/Color.java (getTransparency): New method.
4191 * java/awt/Component.java: Various updates.
4192 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4193 after dealing with children.
4194 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4195 * java/awt/Window.java: Various new methods and updates.
4196 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4198 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4199 * java/awt/event/WindowEvent.java (paramString): Ditto.
4200 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4202 * java/awt/geom/Point2D.java (clone): Ditto.
4203 * java/awt/geom/RectangularShape.java (clone): Ditto.
4204 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4205 isAlphaPremultiplied): Make package-private, not private.
4207 2000-08-08 Tom Tromey <tromey@cygnus.com>
4209 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4210 surrogate characters.
4211 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4213 (write): Correct handling of surrogate characters.
4215 2000-08-07 Tom Tromey <tromey@cygnus.com>
4217 * java/lang/reflect/Method.java (hashCode): Use getName().
4218 (toString): Likewise.
4219 * java/lang/reflect/natMethod.cc (getType): Initialize
4222 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4224 * java/lang/reflect/Field.java (toString): Correct formatting.
4227 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4229 (receive): Streamlined.
4231 2000-08-05 Tom Tromey <tromey@cygnus.com>
4233 * java/io/PrintWriter.java: Merged comments from Classpath.
4234 (printlnUnsynchronized): Removed.
4235 (println()): Print the separator.
4236 (println): Call println(), not printlnUnsynchronized.
4237 (out): Now protected, to match spec.
4239 2000-08-04 Tom Tromey <tromey@cygnus.com>
4241 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4242 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4245 2000-08-03 Warren Levy <warrenl@cygnus.com>
4247 * java/io/ObjectInputStream.java (readFields): Turn off
4248 readDataFromBlock while reading via GetField.
4249 (GetField$1.get(String, Object)): Pass Class of default value to
4251 (getField): Allow for null default values.
4253 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4254 (PutField$1.put): Fixed calls of checkType in most of the put
4255 methods to pass the correct parameter.
4256 (PutField$1.put(String, Object)): Allow for null value arg.
4257 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4260 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4261 typo in spec'ed field name.
4262 (getSerialPersistentFields): Changed spelling of method to match
4263 the correct spelling of the spec'ed field name.
4265 2000-08-03 Tom Tromey <tromey@cygnus.com>
4267 * Makefile.in: Rebuilt.
4268 * Makefile.am (awt_java_source_files): Added new files.
4270 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4272 * Makefile.am: Add new AWT stubs.
4273 * java/awt/Canvas.java: New placeholder class.
4274 * java/awt/Checkbox.java: Ditto.
4275 * java/awt/CheckboxMenuItem.java: Ditto.
4276 * java/awt/Choice.java: Ditto.
4277 * java/awt/Dialog.java: Ditto.
4278 * java/awt/FileDialog.java: Ditto.
4279 * java/awt/List.java: Ditto.
4280 * java/awt/ScrollPane.java: Ditto.
4281 * java/awt/TextField.java: Ditto.
4282 * java/awt/datatransfer/Clipboard.java: Ditto.
4283 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4284 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4285 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4286 Some commented out. Partially implemented.
4287 * java/awt/natToolkit.cc: Removed file.
4289 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4291 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4292 Fixes "make -j" builds.
4293 * Makefile.in: Rebuild.
4295 2000-08-02 Tom Tromey <tromey@cygnus.com>
4297 * Makefile.in: Rebuilt.
4298 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4299 * java/net/natPlainSocketImpl.cc: Include posix.h.
4300 (accept): Use _Jv_select.
4301 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4302 (receive): Use _Jv_select.
4303 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4304 (available): Use _Jv_select.
4305 * java/lang/natSystem.cc: Include posix.h.
4306 (currentTimeMillis): Use _Jv_gettimeofday.
4307 * include/posix.h: New file.
4308 * posix.cc: New file.
4310 * scripts/encodings.pl: New file.
4311 * Makefile.in: Rebuilt.
4312 * Makefile.am (convert_source_files): Added IOConverter.java.
4313 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4315 (getDefaultDecodingClass): Canonicalize default encoding name.
4316 (getEncoder): Likewise.
4317 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4319 (getDefaultDecodingClass): Canonicalize default encoding name.
4320 (getDecoder): Likewise.
4321 * gnu/gcj/convert/IOConverter.java: New file.
4323 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4325 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4326 to match C declaration in ffi.h.
4327 * Makefile.am: Add java/awt/Button.java.
4328 * Makefile.in: Rebuilt.
4330 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4332 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4333 cast of the second argument to `ffi_raw_call' changed to match
4336 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4338 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4339 argument to `ffi_raw_call' changed to match prototype.
4341 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4343 * java/awt/Component.java (toString): Implemented.
4344 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4345 dispatchEvent() to dispatch the event.
4346 (removeImpl): Ditto.
4348 2000-07-30 Anthony Green <green@redhat.com>
4350 * java/awt/Component.java: Add treeLock object.
4351 (getTreeLock): Implement.
4352 (isShowing): Implement.
4354 2000-07-30 Tom Tromey <tromey@cygnus.com>
4356 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4358 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4360 * java/awt/Window.java (addNotify): Wrote.
4361 (addWindowListener): Wrote.
4363 (getWarningString): Wrote.
4364 (processEvent): Wrote.
4365 (processWindowEvent): Wrote.
4366 (removeWindowListener): Wrote.
4367 (show): Call validate(), setVisible().
4371 * java/awt/Toolkit.java (createWindow): Declare.
4373 * java/awt/Frame.java (addNotify): Use getToolkit to find
4376 * java/awt/Component.java (invalidate): Wrote.
4378 (getToolkit): Wrote.
4380 * java/awt/Container.java (addContainerListener): Removed
4382 (removeContainerListener): Likewise.
4384 (add(Component)): Use it.
4385 (add(String,Component)): Likewise.
4386 (add(Component,int)): Likewise.
4387 (add(Component,Object)): Likewise.
4388 (add(Component,Object,int)): Likewise.
4390 (getAlignmentX): Wrote.
4391 (getAlignmentY): Wrote.
4392 (getComponentAt): Wrote.
4393 (getMaximumSize): Wrote.
4394 (invalidate): Wrote.
4395 (list(PrintStream,int)): Wrote.
4396 (list(PrintWriter,int)): Wrote.
4397 (getMinimumSize): Wrote.
4398 (getPreferredSize): Wrote.
4399 (printComponents): Wrote.
4400 (processContainerEvent): Look at containerListener, not
4402 (remove): Added event processing and peer destruction.
4403 (removeAll): Use remove.
4404 (removeNotify): Wrote.
4406 (validateTree): Wrote.
4408 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4409 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4410 * java/awt/Container.java (addNotify): Don't create Container
4412 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4414 2000-07-30 Tom Tromey <tromey@cygnus.com>
4416 * java/awt/Container.java (remove(int)): Wrote.
4417 (remove(Component)): Wrote.
4418 (add(Component)): Wrote.
4419 (add(Component,int)): Wrote.
4421 (addNotify): Set our own peer.
4422 * java/awt/Scrollbar.java (listeners): Changed type.
4423 (Scrollbar): Don't initialize listeners.
4425 (setValue): Call setValues.
4426 (setMinimum): Likewise.
4427 (setMaxPriority): Likewise.
4428 (setVisibleAmount): Likewise.
4430 (setUnitIncrement): Forward to peer.
4431 (setLineIncrement): Call setUnitIncrement.
4432 (setPageIncrement): Call setBlockIncrement.
4433 (setBlockIncrement): Forward to peer.
4434 (addAdjustmentListener): Rewrote.
4435 (removeAdjustmentListener): Rewrote.
4436 (processAdjustmentEvent): Rewrote.
4437 (paramString): Wrote.
4438 * Makefile.in: Rebuilt.
4439 * Makefile.am (awt_java_source_files): Added Button.java.
4440 * java/awt/Button.java: New file.
4441 * java/awt/Toolkit.java (createLabel): Declare.
4442 (createButton): Likewise.
4443 (createScrollbar): Likewise.
4444 (createContainer): Likewise.
4445 * java/awt/Label.java (addNotify): Wrote.
4446 (setAlignment): Call setAlignment in the peer.
4447 (setText): Call setText in the peer.
4449 2000-07-28 Warren Levy <warrenl@cygnus.com>
4451 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4452 NotSerializableException with just the class name.
4454 2000-07-26 Andrew Haley <aph@cygnus.com>
4456 * interpret.cc (continue1): Insert missing break into switch.
4458 2000-07-28 Warren Levy <warrenl@cygnus.com>
4460 * java/io/ObjectStreamException.java: Made constructors protected.
4462 2000-07-27 Tom Tromey <tromey@cygnus.com>
4464 * java/io/OutputStreamWriter.java (close): Only flush if not
4467 2000-07-27 Warren Levy <warrenl@cygnus.com>
4469 * mauve-libgcj: Activated serialization tests.
4470 * gcj/field.h (getModifiers): Mask off unknown flags.
4471 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4472 spurious bits don't cause discrepancies.
4473 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4474 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4475 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4476 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4477 * java/lang/Throwable.java (serialVersionUID): New field.
4478 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4479 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4481 * java/lang/reflect/natMethod.cc: Ditto.
4482 * java/security/Key.java (serialVersionUID): Removed field for now.
4483 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4484 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4486 2000-07-22 Tom Tromey <tromey@cygnus.com>
4488 * java/awt/geom/RectangularShape.java (getPathIterator):
4491 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4493 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4494 stub libjava/java/awt/ColorModel.java which was located in the
4496 * libjava/java/awt/image/ComponentColorModel.java: New file.
4497 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4498 * libjava/java/awt/image/DataBuffer.java: New file.
4499 * libjava/java/awt/image/DataBufferByte.java: New file.
4500 * libjava/java/awt/image/DataBufferInt.java: New file.
4501 * libjava/java/awt/image/DataBufferUShort.java: New file.
4502 * libjava/java/awt/image/DirectColorModel.java: New file.
4503 * libjava/java/awt/image/PackedColorModel.java: New file.
4504 * libjava/java/awt/image/Raster.java: New file.
4505 * libjava/java/awt/image/SampleModel.java: New file.
4506 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4508 * libjava/java/awt/image/IndexColorModel.java: New file.
4509 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4510 java.awt.ColorModel stub.
4512 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4513 * gnu/gcj/util/Buffers.java: New file, utility class.
4515 * libjava/Makefile.am: Updated to include new files.
4516 * libjava/Makefile.in: Rebuilt.
4518 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4520 * java/io/StreamTokenizer.java: Merged with classpath.
4522 2000-07-20 Tom Tromey <tromey@cygnus.com>
4524 * Makefile.in: Rebuilt.
4525 * Makefile.am (awt_java_source_files): Updated for new files.
4526 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4527 * java/awt/Label.java: New file.
4528 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4529 (createIntersection, createUnion, getBounds2D): New methods.
4530 * java/awt/Scrollbar.java: New file.
4531 * java/awt/Shape.java: Updated to 1.2.
4532 * java/awt/geom/AffineTransform.java: New file.
4533 * java/awt/geom/Ellipse2D.java: New file.
4534 * java/awt/geom/NoninvertibleTransformException.java: New file.
4535 * java/awt/geom/PathIterator.java: New file.
4536 * java/awt/geom/Rectangle2D.java: New file.
4537 * java/awt/geom/RectangularShape.java: New file.
4538 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4539 * java/awt/geom/IllegalPathStateException.java: New file.
4541 * scripts/showval.java: New file.
4543 * scripts/classes.pl (scan): Print inner classes properly.
4544 * gcj/javaprims.h: Updated class list.
4546 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4547 initialize String fields for interpreted classes. Fixes bug
4548 reported by Hans Boehm.
4550 * java/io/File.java (getParentFile): New method, from Classpath
4551 via Oskar Liljeblad.
4553 * java/util/Vector.java (remove(Object)): Implemented.
4555 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4557 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4558 zero return from backtrace().
4560 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4562 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4564 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4565 before calling notifyAll().
4567 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4569 Add missing files from last check-in:
4570 * java/awt/image/ImageConsumer.java: New file.
4571 * java/awt/image/ImageProducer.java: New file.
4572 * java/awt/image/ImageObserver.java: New file.
4574 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4576 Merged implementation of java.applet from classpath:
4577 * java/applet/Applet.java: New file.
4578 * java/applet/AppletContext.java: New file.
4579 * java/applet/AppletStub.java: New file.
4580 * java/applet/AudioClip.java: New file.
4582 * Makefile.am: Added new java.applet classes.
4583 * Makefile.in: Rebuilt.
4585 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4588 * java/util/ResourceBundle.java (getLocale): stub.
4589 * Makefile.am: Added new AWT classes.
4590 * Makefile.in: Rebuilt.
4591 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4592 constructors. Fix toString() and paramString().
4593 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4594 * java/awt/CheckboxGroup.java: New class.
4595 * java/awt/ColorModel.java: New class.
4596 * java/awt/Component.java: Added stubs for most methods. Implemented
4598 * java/awt/Container.java: ditto.
4599 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4600 * java/awt/Cursor.java: ditto.
4601 * java/awt/Event.java: Fix paramString().
4602 * java/awt/EventQueue.java: New class. Implemented.
4603 * java/awt/Font.java: Added additional stub methods. Implemented
4605 * java/awt/FontMetrics.java: New class. Stubbed.
4606 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4608 * java/awt/Insets.java: New class. Implemented.
4609 * java/awt/Menu.java: Add new methods. Partially implemented.
4610 * java/awt/MenuItem.java: Add new methods and fields. Partially
4612 * java/awt/MenuShortcut.java: New class. Implemented.
4613 * java/awt/Panel.java: New class. Placeholder.
4614 * java/awt/PopupMenu.java: New class. Stubbed.
4615 * java/awt/Rectangle.java: New class. Implemented.
4616 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4617 * java/awt/event/ActionEvent.java: Implement paramString().
4618 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4619 * java/awt/event/ComponentEvent.java: Implement paramString().
4620 * java/awt/event/ContainerEvent.java: Implement paramString().
4621 * java/awt/event/FocusEvent.java: Implement paramString().
4622 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4623 * java/awt/event/HierarchyBoundsListener.java: New class.
4624 * java/awt/event/HierarchyEvent.java: New class.
4625 * java/awt/event/HierarchyListener.java: New class.
4626 * java/awt/event/InputMethodEvent.java: Implement paramString().
4627 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4628 exception if !catchExceptions.
4629 * java/awt/event/ItemEvent.java: Implement paramString().
4630 * java/awt/event/KeyEvent.java: Implement paramString().
4631 * java/awt/event/MouseEvent.java: Implement paramString().
4632 * java/awt/event/PaintEvent.java: Implement paramString().
4633 * java/awt/event/TextEvent.java: Implement paramString().
4634 * java/awt/event/WindowEvent.java: Implement paramString().
4636 AWT Peer interfaces:
4637 * java/awt/peer/ButtonPeer.java: New file.
4638 * java/awt/peer/ListPeer.java: New file.
4639 * java/awt/peer/CanvasPeer.java: New file.
4640 * java/awt/peer/MenuBarPeer.java: New file.
4641 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4642 * java/awt/peer/MenuComponentPeer.java: New file.
4643 * java/awt/peer/CheckboxPeer.java: New file.
4644 * java/awt/peer/MenuItemPeer.java: New file.
4645 * java/awt/peer/ChoicePeer.java: New file.
4646 * java/awt/peer/MenuPeer.java: New file.
4647 * java/awt/peer/ComponentPeer.java: Implemented.
4648 * java/awt/peer/PanelPeer.java: New file.
4649 * java/awt/peer/ContainerPeer.java: Implemented.
4650 * java/awt/peer/PopupMenuPeer.java: New file.
4651 * java/awt/peer/DialogPeer.java: New file.
4652 * java/awt/peer/ScrollPanePeer.java: New file.
4653 * java/awt/peer/FileDialogPeer.java: New file.
4654 * java/awt/peer/ScrollbarPeer.java: New file.
4655 * java/awt/peer/FontPeer.java: New file.
4656 * java/awt/peer/TextAreaPeer.java: New file.
4657 * java/awt/peer/FramePeer.java: Implemented.
4658 * java/awt/peer/TextComponentPeer.java: New file.
4659 * java/awt/peer/LabelPeer.java: New file.
4660 * java/awt/peer/TextFieldPeer.java: New file.
4661 * java/awt/peer/LightweightPeer.java: New file.
4662 * java/awt/peer/WindowPeer.java: Implemented.
4664 2000-07-06 Tom Tromey <tromey@cygnus.com>
4666 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4667 Initialize static final String fields.
4669 2000-07-03 Tom Tromey <tromey@cygnus.com>
4671 * java/io/PrintWriter.java (print): Call write(String), not
4672 print(String). See PR libgcj/277.
4673 (print(String)): Use write, not out.write.
4675 2000-06-30 Tom Tromey <tromey@cygnus.com>
4677 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4679 2000-06-27 Andrew Haley <aph@cygnus.com>
4681 * java/io/File.java (createTempFile): Close the FileDescriptor
4682 used to create a temp file. Fixes some of PR 203.
4683 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4684 collection if we run out of file handles.
4686 2000-06-28 Warren Levy <warrenl@cygnus.com>
4688 * gnu/java/security/provider/Gnu.java: New file.
4689 * gnu/java/security/provider/SHA.java: New file.
4690 * gnu/java/security/provider/SHA1PRNG.java: New file.
4691 * Makefile.am: Added the above files.
4692 * Makefile.in: Rebuilt.
4694 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4696 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4698 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4699 (destroyed_flag): Removed.
4700 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4701 (activeCount): Added spec note.
4703 2000-06-27 Warren Levy <warrenl@cygnus.com>
4705 * java/security/Principal.java: New file.
4706 * Makefile.am: Added Principal.java.
4707 * Makefile.in: Rebuilt.
4709 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4711 * java/awt/event/MouseEvent.java: Fixed coordinate space
4714 2000-06-27 Tom Tromey <tromey@cygnus.com>
4716 * java/io/PushbackInputStream.java (read): If there are characters
4717 in the buffer, don't also call super.read().
4718 * java/io/PushbackReader.java (read): If there are characters in
4719 the buffer, don't also call super.read().
4721 * java/lang/Double.java (valueOf): Call parseDouble().
4723 2000-06-26 Warren Levy <warrenl@cygnus.com>
4725 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4726 (newVal): Renamed to newValue.
4727 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4728 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4729 (revokeNow): Renamed to invalidateRefs.
4730 * java/io/OptionalDataException.java: Updated FIXME.
4731 (eof): New placeholder field.
4733 * java/io/WriteAbortedException.java (message): Made transient.
4734 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4735 * java/lang/Throwable.java (stackTrace): Made transient.
4736 * java/net/InetAddress.java: Made Serializable.
4737 * java/security/KeyPair.java: Made Serializable.
4738 * java/security/Provider.java: Replaced with Classpath version that
4739 implements serialization and proper methods.
4740 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4741 (limits): Renamed to choiceLimits.
4743 2000-06-24 Tom Tromey <tromey@cygnus.com>
4745 * java/lang/natDouble.cc (parseDouble): Renamed from
4747 * java/lang/Double.java (parseDouble): Renamed from
4748 doubleValueOf. Now public.
4750 2000-06-23 Andrew Haley <aph@cygnus.com>
4752 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4753 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4755 2000-06-23 Tom Tromey <tromey@cygnus.com>
4757 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4758 * java/lang/natDouble.cc: Always include <alloca.h>.
4759 Fix for PR libgcj/267.
4761 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4763 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4764 comply with classpath VM spec.
4765 (add(Group)): Rename to addGroup().
4766 * java/lang/Thread.java (Thread): Use addThread().
4767 * java/lang/natThread.cc (finish_): Use removeThread().
4769 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4771 * java/lang/ThreadGroup.java: Merged with classpath.
4772 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4773 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4775 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4776 ThreadGroup.root if Thread.currentThread is null. Honour the
4777 ThreadGroup's max priority setting.
4779 2000-06-18 Tom Tromey <tromey@cygnus.com>
4781 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4782 returned class. For PR gcj/260.
4784 2000-06-16 Tom Tromey <tromey@cygnus.com>
4786 Fix for PR libgcj/261:
4787 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4789 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4790 argument. (This is a patch from long ago that somehow went
4793 2000-06-15 Tom Tromey <tromey@cygnus.com>
4795 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4799 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4801 Fix for PR java.lang/258:
4802 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4803 JV_STATE_DONE, to prevent accidental initialization.
4804 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4805 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4806 interface or an abstract class. Remove redundant initializeClass calls.
4807 Remove duplicate if_idt test.
4808 (_Jv_InterfaceAssignableFrom): New function.
4809 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4811 2000-05-31 Tom Tromey <tromey@cygnus.com>
4813 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4814 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4815 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4816 (NUM_OBJECT_METHODS): New define.
4817 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4818 `array_vtable' parameter. Added assertion.
4819 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4822 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4824 * gcj/cni.h: Include <string.h>.
4825 * defineclass.cc: Include <alloca.h>.
4826 * interpret.cc: Ditto.
4827 * gij.cc: Include <stdlib.h>.
4829 2000-05-30 Tom Tromey <tromey@cygnus.com>
4831 * include/name-finder.h: Include <sys/wait.h>.
4832 (_Jv_name_finder::pid): Now of type `pid_t'.
4833 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4834 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4837 2000-05-24 Warren Levy <warrenl@cygnus.com>
4839 * java/io/ObjectOutputStream.java (writeObject): Use component type
4840 when writing arrays.
4843 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4845 Fix for PR libgcj/226:
4846 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4847 since this is an installed header.
4849 Fix for PR libgcj/228:
4850 * java/util/zip/ZipFile (getInputStream): Create inflater with
4853 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4854 with DataFormatException.
4856 2000-05-20 Tom Tromey <tromey@cygnus.com>
4858 * Makefile.in: Rebuilt.
4859 * Makefile.am (hack1): Removed.
4860 (awto_files): Likewise.
4861 (libgcjawt_la_SOURCES): Likewise.
4862 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4863 (libgcjawt_la_DEPENDENCIES): Likewise.
4864 (libgcjawt_la_LIBADD): Likewise.
4865 (libgcjawt_la_LDFLAGS): Likewise.
4866 (libgcjawt_la_LINK): Likewise.
4867 ($(awt_java_source_files:.java=.class)): Likewise.
4868 (libgcj.zip): Don't depend on AWT files.
4869 (MOSTLYCLEANFILES): Don't include AWT files.
4870 ($(awto_files)): Removed.
4871 (nat_headers): Removed AWT files.
4872 (cond_awt_java_source_files): Removed.
4873 (ordinary_java_source_files): Added awt_java_source_files.
4874 * libgcj.spec.in (*lib): Removed -lgcjawt.
4875 * configure: Rebuilt.
4876 * configure.in: Removed --enable-java-awt option.
4878 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4880 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4881 (ZipEntry): Copy the `name' field.
4882 (clone): Implement JDK1.2 method.
4883 (setCompressedSize): ditto.
4886 2000-05-19 Tom Tromey <tromey@cygnus.com>
4888 * java/io/BufferedWriter.java: Merged with Classpath.
4889 * java/io/BufferedOutputStream.java: Merged with Classpath.
4891 2000-05-16 Andrew Haley <aph@cygnus.com>
4893 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4894 build_ia64_frame_state.
4895 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4898 2000-05-15 Warren Levy <warrenl@cygnus.com>
4900 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4901 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4902 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4903 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4904 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4905 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4906 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4907 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4908 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4909 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4910 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4911 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4912 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4913 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4914 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4915 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4916 * gnu/gcj/io/NullOutputStream.java: Removed.
4917 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4918 * gnu/gcj/lang/ArrayHelper.java: Removed.
4919 * gnu/gcj/lang/ClassHelper.java: Removed.
4920 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4922 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4923 * gnu/java/beans/EmptyBeanInfo.java: New file.
4924 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4925 * gnu/java/beans/IntrospectionIncubator.java: New file.
4926 * gnu/java/beans/editors/ColorEditor.java: New file.
4927 * gnu/java/beans/editors/FontEditor.java: New file.
4928 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4929 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4930 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4931 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4932 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4933 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4934 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4935 * gnu/java/beans/editors/StringEditor.java: New file.
4936 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4937 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4938 * gnu/java/io/NullOutputStream.java: New file.
4939 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4940 * gnu/java/lang/ArrayHelper.java: New file.
4941 * gnu/java/lang/ClassHelper.java: New file.
4942 * gnu/java/lang/reflect/TypeSignature.java: New file.
4944 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4945 namespace back to the original Classpath gnu/java namespace.
4946 * Makefile.in: Rebuilt.
4948 * java/beans/Beans.java: Namespace change.
4949 * java/beans/EventSetDescriptor.java: Namespace change.
4950 * java/beans/Introspector.java: Namespace change.
4951 * java/beans/PropertyEditorManager.java: Namespace change.
4952 * java/io/ObjectInputStream.java: Namespace change.
4953 * java/io/ObjectOutputStream.java: Namespace change.
4954 * java/io/ObjectStreamClass.java: Namespace change.
4955 * java/io/ObjectStreamField.java: Namespace change.
4957 2000-04-21 Warren Levy <warrenl@cygnus.com>
4959 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4960 now that compiler patch is available.
4961 Removed unneeded System.loadLibrary.
4962 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4963 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4965 2000-04-19 Andrew Haley <aph@cygnus.com>
4967 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4968 and target classes have been initialized.
4970 2000-04-19 Andrew Haley <aph@cygnus.com>
4972 * java/lang/String.java: implement Serializable, Comparable.
4973 (compareTo (Object)): New method.
4975 2000-04-19 Warren Levy <warrenl@cygnus.com>
4977 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4978 instead of getField to retrieve non-public field.
4979 (getSerialPersistantFields): Ditto.
4981 2000-04-18 Warren Levy <warrenl@cygnus.com>
4983 * mauve-libgcj: Turned off object serialization tests temporarily
4984 due to compiler error.
4986 2000-04-17 Warren Levy <warrenl@cygnus.com>
4988 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4989 to avoid build problem.
4991 * mauve-libgcj: Turned on object serialization tests.
4993 2000-04-17 Tom Tromey <tromey@cygnus.com>
4995 * libgcj.spec.in (*lib): Added -lgcjawt.
4997 2000-04-17 Andrew Haley <aph@cygnus.com>
4999 * Makefile.am: Add new files:
5000 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5002 * Makefile.in: Rebuilt.
5004 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5005 interface that has no implementations.
5006 Check for an attempt to assign an abstract class to an interface.
5008 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5009 if we fail to find MessageDigest.getInstance ("SHA").
5011 * gnu/gcj/io/SimpleSHSStream.java: New file.
5012 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5013 * gnu/gcj/io/shs.cc: New file.
5014 * gnu/gcj/io/shs.h: new file.
5016 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5019 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5020 punctuation from the classname of an array element.
5022 * gcj/javaprims.h: Add SimpleDigestStream.
5024 2000-04-17 Andrew Haley <aph@cygnus.com>
5026 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5027 to getPrivateField for superclasses.
5029 2000-04-14 Andrew Haley <aph@cygnus.com>
5031 * Makefile.am: Add new files:
5032 java/io/ObjectOutputStream$PutField.h,
5033 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5034 java/io/natObjectOutputStream.cc
5035 * Makefile.in: Rebuilt.
5036 * gcj/Makefile.in: Rebuilt.
5037 * include/Makefile.in: Rebuilt.
5038 * java/lang/Class.h (getPrivateField): New method.
5039 (getPrivateMethod): Ditto.
5040 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5041 and java::io::ObjectStreamClass our friends.
5042 * java/lang/natClass.cc (getPrivateField): New method.
5043 (getPrivateMethod): Ditto.
5044 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5045 * gcj/javaprims.h: Add serialization classes.
5046 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5047 (setByteField): Ditto.
5048 (setCharField): Ditto.
5049 (setDoubleField): Ditto.
5050 (setFloatField): Ditto.
5051 (setIntField): Ditto.
5052 (setLongField): Ditto.
5053 (setShortField): Ditto.
5054 (setObjectField): Ditto.
5055 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5057 (getByteField): Ditto.
5058 (getCharField): Ditto.
5059 (getDoubleField): Ditto.
5060 (getFloatField): Ditto.
5061 (getIntField): Ditto.
5062 (getLongField): Ditto.
5063 (getShortField): Ditto.
5064 (getObjectField): Ditto.
5065 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5067 (getSerialPersistantFields): Ditto.
5068 (getDefinedSUID): Ditto.
5069 * java/io/natObjectOutputStream.cc: New file.
5070 * java/io/natObjectInputStream.cc: New file.
5072 2000-04-13 Warren Levy <warrenl@cygnus.com>
5074 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5075 problems. Revert to previous version to reproduce and when fixed.
5077 2000-04-13 Warren Levy <warrenl@cygnus.com>
5079 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5080 * gnu/gcj/io/NullOutputStream.java: New file.
5081 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5082 * java/io/BlockDataException.java: New file.
5083 * java/io/Externalizable.java: New file.
5084 * java/io/InvalidClassException.java: New file.
5085 * java/io/InvalidObjectException.java: New file.
5086 * java/io/NotActiveException.java: New file.
5087 * java/io/NotSerializableException.java: New file.
5088 * java/io/ObjectInput.java: New file.
5089 * java/io/ObjectInputStream.java: New file.
5090 * java/io/ObjectInputValidation.java: New file.
5091 * java/io/ObjectOutput.java: New file.
5092 * java/io/ObjectOutputStream.java: New file.
5093 * java/io/ObjectStreamClass.java: New file.
5094 * java/io/ObjectStreamConstants.java: New file.
5095 * java/io/ObjectStreamField.java: New file.
5096 * java/io/Replaceable.java: New file.
5097 * java/io/Resolvable.java: New file.
5098 * java/io/SerializablePermission.java: New file.
5099 * java/io/WriteAbortedException.java: New file.
5100 * java/security/BasicPermission.java: New file.
5101 * java/security/DigestOutputStream.java: New file.
5102 * java/security/Guard.java: New file.
5103 * java/security/Permission.java: New file.
5104 * java/security/PermissionCollection.java: New file.
5105 * Makefile.am: Added above files.
5106 * Makefile.in: Rebuilt.
5108 * java/beans/Beans.java (instantiate): Activated serialization code.
5109 * java/lang/SecurityManager.java (checkPermission): New method.
5111 2000-04-12 Warren Levy <warrenl@cygnus.com>
5113 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5114 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5115 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5116 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5117 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5118 * gnu/gcj/beans/editors/FontEditor.java: New file.
5119 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5120 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5121 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5122 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5123 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5124 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5125 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5126 * gnu/gcj/beans/editors/StringEditor.java: New file.
5127 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5128 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5129 * gnu/gcj/lang/ArrayHelper.java: New file.
5130 * gnu/gcj/lang/ClassHelper.java: New file.
5131 * java/beans/BeanDescriptor.java: New file.
5132 * java/beans/BeanInfo.java: New file.
5133 * java/beans/Beans.java: New file.
5134 * java/beans/Customizer.java: New file.
5135 * java/beans/DesignMode.java: New file.
5136 * java/beans/EventSetDescriptor.java: New file.
5137 * java/beans/FeatureDescriptor.java: New file.
5138 * java/beans/IndexedPropertyDescriptor.java: New file.
5139 * java/beans/IntrospectionException.java: New file.
5140 * java/beans/Introspector.java: New file.
5141 * java/beans/MethodDescriptor.java: New file.
5142 * java/beans/ParameterDescriptor.java: New file.
5143 * java/beans/PropertyChangeEvent.java: New file.
5144 * java/beans/PropertyChangeListener.java: New file.
5145 * java/beans/PropertyChangeSupport.java: New file.
5146 * java/beans/PropertyDescriptor.java: New file.
5147 * java/beans/PropertyEditor.java: New file.
5148 * java/beans/PropertyEditorManager.java: New file.
5149 * java/beans/PropertyEditorSupport.java: New file.
5150 * java/beans/PropertyVetoException.java: New file.
5151 * java/beans/SimpleBeanInfo.java: New file.
5152 * java/beans/VetoableChangeListener.java: New file.
5153 * java/beans/VetoableChangeSupport.java: New file.
5154 * java/beans/Visibility.java: New file.
5155 * java/beans/beancontext/BeanContext.java: New file.
5156 * java/beans/beancontext/BeanContextChild.java: New file.
5157 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5158 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5159 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5160 * java/beans/beancontext/BeanContextEvent.java: New file.
5161 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5162 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5163 * java/beans/beancontext/BeanContextProxy.java: New file.
5164 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5166 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5167 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5169 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5170 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5172 * java/beans/beancontext/BeanContextServices.java: New file.
5173 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5174 * java/util/AbstractCollection.java: New file.
5175 * java/util/AbstractList.java: New file.
5176 * java/util/Arrays.java: New file.
5177 * Makefile.am: Added above files.
5178 * Makefile.in: Rebuilt.
5180 2000-04-11 Warren Levy <warrenl@cygnus.com>
5182 * java/awt/AWTError.java: New file.
5183 * java/awt/AWTEvent.java: New file.
5184 * java/awt/AWTException.java: New file.
5185 * java/awt/ActiveEvent.java: New file.
5186 * java/awt/Adjustable.java: New file.
5187 * java/awt/BorderLayout.java: New file.
5188 * java/awt/Color.java: New file.
5189 * java/awt/Component.java: New file.
5190 * java/awt/Container.java: New file.
5191 * java/awt/Dimension.java: New file.
5192 * java/awt/Event.java: New file.
5193 * java/awt/Font.java: New file.
5194 * java/awt/Frame.java: New file.
5195 * java/awt/Graphics.java: New file.
5196 * java/awt/IllegalComponentStateException.java: New file.
5197 * java/awt/Image.java: New file.
5198 * java/awt/ItemSelectable.java: New file.
5199 * java/awt/LayoutManager.java: New file.
5200 * java/awt/LayoutManager2.java: New file.
5201 * java/awt/Menu.java: New file.
5202 * java/awt/MenuBar.java: New file.
5203 * java/awt/MenuComponent.java: New file.
5204 * java/awt/MenuContainer.java: New file.
5205 * java/awt/MenuItem.java: New file.
5206 * java/awt/Paint.java: New file.
5207 * java/awt/PaintContext.java: New file.
5208 * java/awt/Point.java: New file.
5209 * java/awt/Rectangle.java: New file.
5210 * java/awt/Shape.java: New file.
5211 * java/awt/TextArea.java: New file.
5212 * java/awt/TextComponent.java: New file.
5213 * java/awt/Toolkit.java: New file.
5214 * java/awt/Transparency.java: New file.
5215 * java/awt/Window.java: New file.
5216 * java/awt/natToolkit.cc: New file.
5217 * java/awt/event/AWTEventListener.java: New file.
5218 * java/awt/event/ActionEvent.java: New file.
5219 * java/awt/event/ActionListener.java: New file.
5220 * java/awt/event/AdjustmentEvent.java: New file.
5221 * java/awt/event/AdjustmentListener.java: New file.
5222 * java/awt/event/ComponentAdapter.java: New file.
5223 * java/awt/event/ComponentEvent.java: New file.
5224 * java/awt/event/ComponentListener.java: New file.
5225 * java/awt/event/ContainerAdapter.java: New file.
5226 * java/awt/event/ContainerEvent.java: New file.
5227 * java/awt/event/ContainerListener.java: New file.
5228 * java/awt/event/FocusAdapter.java: New file.
5229 * java/awt/event/FocusEvent.java: New file.
5230 * java/awt/event/FocusListener.java: New file.
5231 * java/awt/event/InputEvent.java: New file.
5232 * java/awt/event/InputMethodEvent.java: New file.
5233 * java/awt/event/InputMethodListener.java: New file.
5234 * java/awt/event/InvocationEvent.java: New file.
5235 * java/awt/event/ItemEvent.java: New file.
5236 * java/awt/event/ItemListener.java: New file.
5237 * java/awt/event/KeyAdapter.java: New file.
5238 * java/awt/event/KeyEvent.java: New file.
5239 * java/awt/event/KeyListener.java: New file.
5240 * java/awt/event/MouseAdapter.java: New file.
5241 * java/awt/event/MouseEvent.java: New file.
5242 * java/awt/event/MouseListener.java: New file.
5243 * java/awt/event/MouseMotionAdapter.java: New file.
5244 * java/awt/event/MouseMotionListener.java: New file.
5245 * java/awt/event/PaintEvent.java: New file.
5246 * java/awt/event/TextEvent.java: New file.
5247 * java/awt/event/TextListener.java: New file.
5248 * java/awt/event/WindowAdapter.java: New file.
5249 * java/awt/event/WindowEvent.java: New file.
5250 * java/awt/event/WindowListener.java: New file.
5251 * java/awt/geom/Dimension2D.java: New file.
5252 * java/awt/geom/Point2D.java: New file.
5253 * java/awt/peer/ComponentPeer.java: New file.
5254 * java/awt/peer/ContainerPeer.java: New file.
5255 * java/awt/peer/FramePeer.java: New file.
5256 * java/awt/peer/WindowPeer.java: New file.
5257 * java/util/Collection.java: New file.
5258 * java/util/Comparator.java: New file.
5259 * java/util/Iterator.java: New file.
5260 * java/util/List.java: New file.
5261 * java/util/ListIterator.java: New file.
5262 * Makefile.am: Added above files.
5263 * Makefile.in: Rebuilt.
5265 2000-04-10 Warren Levy <warrenl@cygnus.com>
5267 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5268 * java/lang/FirstThread.java: Ditto.
5269 * java/lang/StringBuffer.java: Ditto.
5270 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5272 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5273 Special case handled in java.math.BigInteger.
5274 * java/math/BigInteger.java (divide): Handle the special case when
5275 dividing by 1 and the high bit of the dividend is set.
5276 (setShiftRight): Handle case when count == 0.
5278 2000-04-05 Andrew Haley <aph@cygnus.com>
5280 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5283 2000-04-05 Andrew Haley <aph@cygnus.com>
5285 * sysdep/ia64.c (rse_address_add): Delete.
5286 (IS_NaT_COLLECTION_ADDR): Delete.
5287 (ia64_backtrace_helper): check for null unwind_info.
5289 * sysdep/ia64-frame.h: add calc_caller_bsp.
5291 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5294 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5295 (_Jv_remI): Likewise.
5296 (_Jv_divJ): Likewise.
5297 (_Jv_remJ): Likewise.
5299 * interpret.cc (continue1): Use divide subroutines to guarantee
5300 correct Java standard behaviour.
5301 Floating-point division should not abort; make it so.
5303 2000-03-29 Tom Tromey <tromey@cygnus.com>
5305 * configure: Rebuilt.
5306 * configure.in: Test against `libgcj_sjlj', not
5307 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5308 to be set even when using sjlj.
5310 2000-03-24 Andrew Haley <aph@cygnus.com>
5312 * Makefile.am: Add file addr2name.awk.
5313 * Makefile.in: Rebuilt.
5314 * addr2name.awk: New file.
5315 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5317 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5320 2000-03-22 Andrew Haley <aph@cygnus.com>
5322 * configure.host: Add -funwind-tables for IA64.
5323 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5324 * Makefile.in: Rebuilt.
5325 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5326 * sysdep/ia64.c: New file.
5327 * sysdep/ia64-frame.h: New file.
5328 * configure.in: Add sysdep/ia64.c for ia64.
5329 * configure: Rebuilt.
5331 2000-03-17 Andrew Haley <aph@cygnus.com>
5333 * java/lang/natString.cc: Remove `register' keyword.
5334 interpret.cc: ditto.
5336 2000-03-16 Andrew Haley <aph@cygnus.com>
5338 * configure.host (ia64): Enable interpreter.
5340 2000-03-14 Hans Boehm <boehm@acm.org>
5342 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5344 2000-03-14 Andrew Haley <aph@cygnus.com>
5346 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5349 2000-03-10 Andrew Haley <aph@cygnus.com>
5351 * java/lang/ieeefp.h: Import latest version from fdlibm.
5353 2000-03-14 Andrew Haley <aph@cygnus.com>
5355 * prims.cc (_Jv_ThrowSignal): New function.
5356 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5358 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5359 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5360 * include/ppc-signal.h: New file.
5362 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5364 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5365 * java/lang/natThread.java (initialize_native): Cast `data' to
5367 * gnu/gcj/RawData.java: Clarify documentation.
5369 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5370 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5371 `jarFile', not `jarFileURL'.
5373 2000-05-15 Andrew Haley <aph@cygnus.com>
5375 * include/ppc-signal.h: New file.
5377 2000-05-11 Tom Tromey <tromey@cygnus.com>
5379 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5380 file headers, don't include `size' in the skip call.
5382 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5384 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5385 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5387 (replace): Reimplemented. Fix javadoc.
5388 (reverse): Call ensureCapacity_unsynchronized().
5389 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5391 (replace): Calculate length for arraycopy() correctly.
5393 2000-05-09 Tom Tromey <tromey@cygnus.com>
5395 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5397 (insert(int,char[],int,int): New method.
5398 (delete): New method from Classpath.
5399 (deleteCharAt): Likewise.
5400 (substring): Likewise.
5401 (shared): No longer private.
5402 Added JavaDoc comments from Classpath.
5403 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5406 2000-05-07 Tom Tromey <tromey@cygnus.com>
5408 * Makefile.in: Rebuilt.
5409 * Makefile.am (LIBLINK): New macro.
5410 (libgcj_la_LINK): Use it.
5411 (libgcjawt_la_LINK): Likewise.
5413 2000-05-06 Tom Tromey <tromey@cygnus.com>
5415 * Makefile.in: Rebuilt.
5416 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5418 2000-05-05 Tom Tromey <tromey@cygnus.com>
5420 Fix for PR libgcj/220:
5421 * Makefile.in: Rebuilt.
5422 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5423 (jv_convert_LDFLAGS): Likewise.
5424 (libgcj_la_LDFLAGS): Likewise.
5425 (GCJLINK): New macro.
5426 (jv_convert_LINK): Use it.
5427 (gij_LINK): Likewise.
5428 (libgcj_la_LINK): New macro.
5429 (libgcjawt_la_LINK): Likewise.
5431 2000-05-04 Tom Tromey <tromey@cygnus.com>
5433 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5435 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5439 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5441 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5442 (_Jv_IsAssignableFrom): Ditto.
5443 (_Jv_IsInstanceOf): Ditto.
5444 (_Jv_CheckCast): Ditto.
5445 (_Jv_CheckArrayStore): Ditto.
5446 * java/lang/Class.h (_Jv_InitClass): Ditto.
5447 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5452 (_Jv_MonitorExit): Ditto.
5453 * boehm.cc (_Jv_MarkObj): Ditto.
5454 (_Jv_MarkObj): Ditto.
5455 (_Jv_MarkArray): Ditto.
5456 * prims.cc (_Jv_AllocObject): Ditto.
5457 (_Jv_NewObjectArray): Ditto.
5458 (_Jv_NewPrimArray): Ditto.
5459 (_Jv_Malloc): Ditto.
5460 (_Jv_Realloc): Ditto.
5461 (_Jv_MallocUnchecked): Ditto.
5467 2000-05-04 Tom Tromey <tromey@cygnus.com>
5469 * java/util/Locale.java (Locale): Don't explicitly check for
5471 * java/util/Hashtable.java (containsKey): Don't explicitly check
5474 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5476 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5478 * java/text/StringCharacterIterator.java
5479 (StringCharacterIterator): Don't check for null.
5480 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5482 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5483 check for null pointer.
5484 (leaveGroup): Likewise.
5485 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5487 (setData): Likewise.
5488 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5491 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5493 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5494 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5495 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5496 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5497 -rpath for in-gcc builds.
5498 * Makefile.in: Rebuilt.
5500 2000-04-28 Tom Tromey <tromey@cygnus.com>
5502 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5505 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5507 * libjava/java/lang/String.java (toString): Remove `final' hack.
5509 2000-04-05 Tom Tromey <tromey@cygnus.com>
5511 Runtime support for PR gcj/2:
5512 * prims.cc (_Jv_ThrowNullPointerException): New function.
5513 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5515 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5517 * prims.cc (_Jv_NewObjectArray): Fix typo.
5519 2000-04-26 Tom Tromey <tromey@cygnus.com>
5521 * Makefile.in: Rebuilt.
5522 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5524 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5526 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5529 2000-04-22 Anthony Green <green@cygnus.com>
5531 * include/jvm.h (__builtin_expect): Define as unused for now.
5532 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5536 (_Jv_MonitorExit): Ditto.
5537 * boehm.cc (_Jv_MarkObj): Ditto.
5538 (_Jv_MarkObj): Ditto.
5539 (_Jv_MarkArray): Ditto.
5540 (_Jv_AllocBytes): Ditto.
5541 * prims.cc (_Jv_AllocObject): Ditto.
5542 (_Jv_NewObjectArray): Ditto.
5543 (_Jv_NewPrimArray): Ditto.
5544 (_Jv_Malloc): Ditto.
5545 (_Jv_Realloc): Ditto.
5546 (_Jv_MallocUnchecked): Ditto.
5552 * include/Makefile.in: Rebuilt.
5553 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5555 2000-04-21 Tom Tromey <tromey@cygnus.com>
5557 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5558 Yet another new version from Classpath.
5560 Fix for PR libgcj/15:
5561 * java/util/natGregorianCalendar.cc (_REENTRANT,
5562 _POSIX_PTHREAD_SEMANTICS): Don't define.
5563 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5564 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5566 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5568 * configure: Rebuilt.
5569 * configure.in: If using POSIX threads, define _REENTRANT if
5570 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5571 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5573 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5574 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5575 version from Classpath.
5577 Fix for PR libgcj/213:
5578 * Makefile.in: Rebuilt.
5579 * Makefile.am (gij_SOURCES): Added gij.cc.
5580 (EXTRA_gij_SOURCES): Removed.
5581 (gij_LDADD): Removed gij.lo.
5582 (gij_DEPENDENCIES): Likewise.
5583 ($(gij_OBJECTS)): Depend on nat_headers.
5585 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5586 `setURL', not `url.set'.
5588 2000-04-20 Tom Tromey <tromey@cygnus.com>
5590 Fix for PR java.io/204:
5591 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5592 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5595 Fix for PR libgcj/212:
5596 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5597 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5598 * java/lang/Class.h (_Jv_word): Declare.
5600 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5602 2000-04-19 Tom Tromey <tromey@cygnus.com>
5604 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5605 doesn't have a loader.
5607 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5609 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5610 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5612 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5614 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5616 (available): Initialize `where' to prevent bogus compiler warning.
5618 2000-04-12 Tom Tromey <tromey@cygnus.com>
5620 * java/lang/natString.cc (intern): Temporarily disable finalizer
5623 * java/lang/natString.cc (unintern): Added `obj' argument.
5624 (intern): Register finalizer for string.
5625 * java/lang/String.java (unintern): Now static; added obj
5628 2000-04-11 Tom Tromey <tromey@cygnus.com>
5630 * java/util/Vector.java (VectorEnumeration): Now `final'.
5631 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5632 (HashtableEnumeration): Likewise.
5633 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5634 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5636 2000-04-10 Warren Levy <warrenl@cygnus.com>
5638 * java/io/ObjectStreamException.java: New file.
5639 * java/io/OptionalDataException.java: New file.
5640 * java/io/StreamCorruptedException.java: New file.
5641 * java/math/BigDecimal.java: New file.
5642 * java/sql/CallableStatement.java: New file.
5643 * java/sql/Connection.java: New file.
5644 * java/sql/DataTruncation.java: New file.
5645 * java/sql/DatabaseMetaData.java: New file.
5646 * java/sql/Date.java: New file.
5647 * java/sql/Driver.java: New file.
5648 * java/sql/DriverManager.java: New file.
5649 * java/sql/DriverPropertyInfo.java: New file.
5650 * java/sql/PreparedStatement.java: New file.
5651 * java/sql/ResultSet.java: New file.
5652 * java/sql/ResultSetMetaData.java: New file.
5653 * java/sql/SQLException.java: New file.
5654 * java/sql/SQLWarning.java: New file.
5655 * java/sql/Statement.java: New file.
5656 * java/sql/Time.java: New file.
5657 * java/sql/Timestamp.java: New file.
5658 * java/sql/Types.java: New file.
5659 * Makefile.am: Added above new files.
5660 * Makefile.in: Rebuilt.
5662 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5663 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5664 DatagramSocket constructor instead of null.
5666 2000-04-08 Anthony Green <green@cygnus.com>
5668 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5671 2000-04-08 Anthony Green <green@cygnus.com>
5673 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5674 (_Jv_MutexUnlock): Ditto.
5675 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5676 (_Jv_MutexUnlock): Ditto.
5678 2000-04-08 Anthony Green <green@cygnus.com>
5680 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5681 (ensureCapacity_unsynchronized): New private method.
5682 (append): Use ensureCapacity_unsynchronized.
5684 2000-04-08 Tom Tromey <tromey@cygnus.com>
5686 * Makefile.in: Rebuilt.
5687 * Makefile.am (awt_java_source_files): Added new files.
5688 * java/awt/IllegalComponentStateException.java: New file.
5689 * java/awt/ItemSelectable.java: New file.
5690 * java/awt/event/WindowEvent.java: Finished.
5691 * java/awt/event/TextEvent.java: Finished.
5692 * java/awt/event/ContainerEvent.java: New file.
5693 * java/awt/Component.java (getX, getY): New methods.
5694 * java/awt/event/PaintEvent.java: New file.
5695 * java/awt/event/MouseEvent.java: New file.
5696 * java/awt/ActiveEvent.java: New file.
5697 * java/awt/event/KeyEvent.java: Finished.
5698 * java/awt/event/ItemEvent.java: New file.
5699 * java/awt/Adjustable.java: New file.
5700 * java/awt/event/InputMethodEvent.java: New file.
5701 * java/awt/event/InputEvent.java: Finished.
5702 * java/awt/event/FocusEvent.java: New file.
5703 * java/awt/event/MouseMotionAdapter.java: New file.
5704 * java/awt/event/MouseAdapter.java: New file.
5705 * java/awt/event/KeyAdapter.java: New file.
5706 * java/awt/event/FocusAdapter.java: New file.
5707 * java/awt/event/ContainerAdapter.java: New file.
5708 * java/awt/event/ComponentEvent.java: Finished.
5709 * java/awt/event/AdjustmentEvent.java: New file.
5710 * java/awt/event/ComponentAdapter.java: New file.
5711 * java/awt/event/ActionEvent.java: Finished.
5712 * java/awt/event/MouseMotionListener.java: New file.
5713 * java/awt/event/MouseListener.java: New file.
5714 * java/awt/event/ItemListener.java: New file.
5715 * java/awt/event/InputMethodListener.java: New file.
5716 * java/awt/event/ContainerListener.java: New file.
5717 * java/awt/event/FocusListener.java: New file.
5718 * java/awt/event/ComponentListener.java: New file.
5719 * java/awt/event/AWTEventListener.java: New file.
5720 * java/awt/event/AdjustmentListener.java: New file.
5722 2000-04-08 Anthony Green <green@cygnus.com>
5724 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5725 check when we have to.
5727 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5730 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5733 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5734 inline hasMoreElements.
5736 2000-04-05 Tom Tromey <tromey@cygnus.com>
5738 * configure: Rebuilt.
5739 * configure.in: Recognize --enable-java-awt.
5740 (AWT): New conditional.
5741 * Makefile.in: Rebuilt.
5742 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5744 (libgcjawt_la_SOURCES): New macro.
5745 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5746 (libgcjawt_la_DEPENDENCIES): Likewise.
5747 (libgcjawt_la_LIBADD): Likewise.
5748 (libgcjawt_la_LDFLAGS): Likewise.
5749 (libgcj.zip): Depend on cond_java_awt_source_files
5750 (cond_awt_java_source_files): New macro.
5751 (MOSTLYCLEANFILES): Added awto_files.
5752 (awto_files): New macro. Use where javao_files used.
5753 (nat_headers): Use cond_awt_java_source_files.
5755 2000-04-04 Tom Tromey <tromey@cygnus.com>
5757 * Makefile.in: Rebuilt.
5758 * Makefile.am (awt_java_source_files): Added AWTException.java.
5759 * java/awt/AWTException.java: New file.
5761 2000-04-03 Tom Tromey <tromey@cygnus.com>
5763 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5764 commentary from Alex.
5766 * Makefile.in: Rebuilt.
5767 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5770 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5772 * configure: Rebuilt.
5773 * configure.in: Add --disable-jvmpi.
5774 * include/config.h.in: Rebuilt.
5775 * acconfig.h: Add ENABLE_JVMPI.
5777 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5778 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5779 (_Jv_JVMPI_Notify_THREAD_END): New define.
5780 (_Jv_JVMPI_Notify_THREAD_END): New define.
5781 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5782 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5783 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5785 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5788 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5789 (finish_): Generate JVMPI thread end events.
5790 (run_): Generate JVMPI thread start events.
5791 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5792 preloaded JNI library.
5793 Include JVMPI headers if necessary.
5794 (run): Generate JVMPI thread start events.
5796 * boehm.cc: Define GC_disable and GC_enable.
5797 (_Jv_DisableGC): New function.
5798 (_Jv_EnableGC): New function.
5799 (disable_gc_mutex): Declare.
5800 * nogc.cc (_Jv_DisableGC): New function.
5801 (_Jv_EnableGC): New function.
5803 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5804 (_Jv_JVMPI_Interface): Define.
5805 (jvmpiEnableEvent): New function.
5806 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5808 * include/jvmpi.h: New file.
5810 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5812 * Makefile.in: New #defines and friends for Thread.h.
5813 * Makefile.am: Ditto.
5814 * posix-threads.cc: (struct starter): Remove `object'.
5815 (_Jv_CondWait): Use interruptable condition variables and new
5816 recursive mutexes. New return codes on interrupt or non-ownership
5818 (_Jv_CondNotify): Ditto.
5819 (_Jv_CondNotifyAll): Ditto.
5820 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5821 the target thread by signaling its wait condition.
5822 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5823 not the starter struct. Initialize wait_mutex and wait_cond.
5824 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5826 (_Jv_MutexUnlock): Ditto.
5827 (really_start): Set info->data->thread from pthread_self() to work
5828 around a race condition. Destroy wait_mutex and wait_cond when run()
5830 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5831 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5833 startable_flag: New private field.
5834 (Thread): Initialize `startable_flag'.
5835 (toString): Check for null thread group.
5836 * java/lang/natThread.cc: (struct natThread): New fields
5837 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5838 (class locker): Removed.
5839 (initialize_native): Initialize `join_cond' and `join_mutex'.
5840 (interrupt): Now just calls _Jv_ThreadInterrupt().
5841 (join): Simplified. Just wait on the target thread's join condition.
5842 (finish_): Remove join list code. Unset thread group. Signal
5843 potential joiners by notifying the dying threads join_cond.
5844 (start): Check for illegal restarts.
5845 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5847 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5848 #defines and #ifdefs.
5849 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5850 `wait_mutex', `next'.
5851 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5852 directly mapping to pthread_cond_t.
5853 (struct _Jv_Mutex_t): New recursive implementation.
5854 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5855 _Jv_HaveCondDestroy: Never define this for posix-threads.
5856 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5857 (_Jv_CondNotifyAll): Ditto.
5858 (_Jv_MutexLock): Ditto.
5859 (_Jv_MutexUnlock): Ditto.
5860 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5861 (_Jv_MutexDestroy): Ditto.
5862 (_Jv_CondDestroy): Removed.
5863 (_Jv_PthreadGetMutex): Removed.
5864 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5865 error. Add a FIXME about this.
5866 (_Jv_CondNotifyAll): Ditto.
5867 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5868 _JV_NOT_OWNER on other errors. Add FIXME.
5870 2000-03-26 Tom Tromey <tromey@cygnus.com>
5872 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5874 (call): Don't throw exception here.
5876 2000-03-26 Tom Tromey <tromey@cygnus.com>
5878 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5879 * interpret.cc: Use SIZEOF_VOID_P.
5880 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5881 (_Jv_loadLong): Likewise.
5882 (_Jv_storeDouble): Likewise.
5883 * configure: Rebuilt.
5884 * configure.in: Check size of void*.
5886 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5888 2000-03-26 Hans Boehm <boehm@acm.org>
5890 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5891 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5893 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5894 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5895 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5896 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5898 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5899 (FFI_RAW_SIZE): Likewise.
5900 (_Jv_InterpMethod::ncode): Use them.
5901 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5902 STORED): Define differently on a 64 bit machine.
5903 (continue1): Use ffi_java_raw_call when appropriate.
5905 2000-03-24 Warren Levy <warrenl@cygnus.com>
5907 * java/math/BigInteger.java(divide): Handle the special case when
5908 dividing by 1 and the high bit of the dividend is set.
5909 (setShiftRight): Handle case when count == 0.
5911 2000-03-24 Warren Levy <warrenl@cygnus.com>
5913 * java/awt/Font.java(isBold): Fix syntax error.
5915 * java/awt/Frame.java(postEvent): ditto.
5916 * java/awt/Menu.java(postEvent): ditto.
5917 * java/awt/MenuBar.java(postEvent): ditto.
5918 * java/awt/Toolkit.java(init): Included a stub.
5920 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5922 * java/awt/Event.java: Add all the event type constants.
5923 (Event): Implemented constructors.
5924 (controlDown): Implemented.
5925 (metaDown): Implemented.
5926 (paramString): Stubbed.
5927 (shiftDown): Implemented.
5928 (toString): Implemented.
5929 (translate): Implemented.
5931 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5933 * java/lang/natClass.cc (isInstance): Initialize `this'.
5934 (isAssignableFrom): Initialize `this' and `klass'.
5935 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5936 implemented by any loaded class, so return false.
5937 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5938 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5940 2000-03-19 Warren Levy <warrenl@cygnus.com>
5942 * java/awt/Color.java: Specified java.io for Serializable.
5943 * java/awt/Toolkit.java: Imported java.net.URL.
5945 2000-03-19 Warren Levy <warrenl@cygnus.com>
5947 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5949 2000-03-16 Warren Levy <warrenl@cygnus.com>
5951 * java/awt/Color.java: New file.
5952 * java/awt/Graphics.java: New file.
5953 * java/awt/Image.java: New file.
5954 * java/awt/Paint.java: New file.
5955 * java/awt/PaintContext.java: New file.
5956 * java/awt/Transparency.java: New file.
5957 * java/util/Collection.java: New file.
5958 * java/util/Comparator.java: New file.
5959 * java/util/Iterator.java: New file.
5960 * java/util/List.java: New file.
5961 * java/util/ListIterator.java: New file.
5962 * Makefile.am: Added above new files.
5963 * Makefile.in: Rebuilt.
5965 * java/awt/Font.java (PLAIN): New field.
5967 (ITALIC): New field.
5968 (ROMAN_BASELINE): New field.
5969 (CENTER_BASELINE): New field.
5970 (HANGING_BASELINE): New field.
5974 (pointSize): New field.
5975 (Font): Implemented constructor.
5976 (isPlain): Implemented method.
5977 (isBold): Implemented method.
5978 (isItalic): Implemented method.
5979 (getName): Implemented method.
5980 (getStyle): Implemented method.
5981 (getSize): Implemented method.
5982 (getSize2D): Implemented method.
5984 * java/awt/Frame.java (getFont): Stubbed.
5985 (postEvent): Stubbed.
5987 * java/awt/Menu.java (postEvent): Stubbed.
5988 * java/awt/MenuBar.java (getFont): Stubbed.
5989 (postEvent): Stubbed.
5990 * java/awt/Toolkit.java (getImage): Added abstract method.
5992 2000-03-15 Tom Tromey <tromey@cygnus.com>
5994 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5996 * prims.cc (win32_exception_handler): Reformatted.
5998 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5999 (_Jv_HaveMutexDestroy): Likewise.
6001 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6003 * java/io/natFileDescriptorWin32.cc: New file.
6004 * java/io/natFileWin32.cc: New file.
6005 * java/net/natInetAddress.cc: Added conditional inclusion of
6006 Windows / Winsock headers.
6007 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6008 inclusion of Windows / Winsock headers.
6009 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6010 Windows / Winsock headers.
6011 * include/win32-signal.h: New file.
6012 * include/win32-threads.h: New file.
6013 * win32-threads.cc: New file.
6014 * exception.cc (win32_get_restart_frame): New function.
6015 * prims.cc (win32_exception_handler): New function.
6016 (main_init) Performs Winsock initialisation.
6017 (main_init) Installs exeception handler.
6019 2000-03-14 Tom Tromey <tromey@cygnus.com>
6021 * jni.cc (mangled_name): Fixed assertion.
6022 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6023 turned assert into actual failure.
6025 2000-03-09 Warren Levy <warrenl@cygnus.com>
6027 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6028 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6029 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6031 2000-03-09 Warren Levy <warrenl@cygnus.com>
6033 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6034 * java/security/DigestException.java: New file.
6035 * java/security/GeneralSecurityException.java: New file.
6036 * java/security/InvalidAlgorithmParameterException.java: New file.
6037 * java/security/InvalidKeyException.java: New file.
6038 * java/security/InvalidParameterException.java: New file.
6039 * java/security/Key.java: New file.
6040 * java/security/KeyException.java: New file.
6041 * java/security/KeyPair.java: New file.
6042 * java/security/KeyPairGenerator.java: New file.
6043 * java/security/KeyPairGeneratorSpi.java: New file.
6044 * java/security/NoSuchProviderException.java: New file.
6045 * java/security/PrivateKey.java: New file.
6046 * java/security/Provider.java: New file.
6047 * java/security/PublicKey.java: New file.
6048 * java/security/SecureRandom.java: New file.
6049 * java/security/Security.java: New file.
6050 * java/security/Signature.java: New file.
6051 * java/security/SignatureException.java: New file.
6052 * java/security/interfaces/DSAKey.java: New file.
6053 * java/security/interfaces/DSAParams.java: New file.
6054 * java/security/interfaces/DSAPrivateKey.java: New file.
6055 * java/security/interfaces/DSAPublicKey.java: New file.
6056 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6057 * java/security/interfaces/RSAPrivateKey.java: New file.
6058 * java/security/interfaces/RSAPublicKey.java: New file.
6059 * java/security/spec/AlgorithmParameterSpec.java: New file.
6060 * java/security/spec/InvalidKeySpecException.java: New file.
6061 * java/security/spec/InvalidParameterSpecException.java: New file.
6062 * java/security/spec/KeySpec.java: New file.
6063 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6064 * java/security/spec/RSAPrivateKeySpec.java: New file.
6065 * java/security/spec/RSAPublicKeySpec.java: New file.
6066 * Makefile.am: Added above java.security files.
6067 * Makefile.in: Rebuilt.
6069 * java/security/MessageDigest.java: Rewritten.
6070 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6072 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6076 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6078 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6079 _Jv_PrepareConstantTimeTables.
6080 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6081 classes should have an IDT, so don't return if klass is an array
6084 2000-03-08 Tom Tromey <tromey@cygnus.com>
6086 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6087 of `void' to be created.
6089 2000-03-08 Warren Levy <warrenl@cygnus.com>
6091 * java/math/BigInteger.java(signum): Handle zero properly.
6093 2000-03-07 Tom Tromey <tromey@cygnus.com>
6095 * All files: Updated copyright information.
6096 * COPYING: New file.
6097 * COPYING.LIB: Removed.
6098 * LIBGCJ_LICENSE: We now use GPL + special exception.
6100 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6102 * resolve.cc (_Jv_SearchMethodInClass): New function.
6103 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6104 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6106 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6108 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6109 (struct _Jv_ifaces): New declaration.
6110 JV_CLASS: New macro definition.
6111 (getComponentType): Relocate below isArray() for inlining.
6112 (getModifiers): Declare `inline'.
6113 (getSuperclass): Ditto.
6115 (isPrimitive): Ditto.
6116 (_Jv_IsAssignableFrom): New prototype.
6117 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6119 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6120 Check for JV_STATE_DONE before invoking initializeClass().
6121 (_Jv_PrepareConstantTimeTables): New prototype.
6122 (_Jv_GetInterfaces): Ditto.
6123 (_Jv_GenerateITable): Ditto.
6124 (_Jv_GetMethodString): Ditto.
6125 (_Jv_AppendPartialITable): Ditto.
6126 (_Jv_FindIIndex): Ditto.
6127 depth, ancestors, idt: New class fields.
6129 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6130 inline function `_Jv_IsAssignableFrom'. Use that function.
6131 (isInstance): Declare `inline'.
6132 (initializeClass): Get lock on class before checking `state'. Unlock
6133 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6135 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6136 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6137 class->depth and ancestor table.
6138 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6139 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6140 _Jv_IsAssignableFrom.
6141 (_Jv_CheckArrayStore): Ditto.
6142 (_Jv_LookupInterfaceMethodIdx): New function.
6143 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6144 (_Jv_PrepareConstantTimeTables): New function.
6145 (_Jv_IndexOf): Ditto.
6146 (_Jv_GetInterfaces): Ditto.
6147 (_Jv_GenerateITable): Ditto.
6148 (_Jv_GetMethodString): Ditto.
6149 (_Jv_AppendPartialITable): Ditto.
6150 iindex_mutex, iindex_mutex_initialized: New static fields.
6151 (_Jv_FindIIndex): New function.
6153 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6155 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6156 (_Jv_CheckArrayStore): Ditto.
6157 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6158 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6159 Moved to gcj/array.h.
6160 (_Jv_Realloc): New function.
6162 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6164 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6165 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6166 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6167 JvNewDoubleArray): Implementations moved from prims.cc and
6170 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6172 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6174 2000-03-06 Tom Tromey <tromey@cygnus.com>
6176 * jni.cc (MARK_NONE): New define.
6177 (MARK_USER): Likewise.
6178 (MARK_SYSTEM): Likewise.
6179 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6181 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6182 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6183 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6184 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6186 (call): Use MARK_SYSTEM.
6187 (_Jv_GetJNIEnvNewFrame): New function.
6188 (_Jv_LookupJNIMethod): New function.
6189 (_Jv_JNI_PopSystemFrame): New function.
6190 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6192 2000-03-05 Tom Tromey <tromey@cygnus.com>
6194 Fix for PR libgcj/43:
6195 * include/Makefile.in: Rebuilt.
6196 * include/Makefile.am (include_HEADERS): New define.
6198 2000-03-05 Anthony Green <green@redhat.com>
6200 * gcj/javaprims.h ("Java"): Remove FirstThread.
6202 * configure.host: Fix __NO_MATH_INLNES botch.
6204 * Makefile.in: Rebuilt.
6205 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6206 (gnu/gcj/runtime/FirstThread.h): Moved.
6207 (ordinary_java_source_files): Move FirstThread.java.
6208 * prims.cc: Deal with FirstThread movement.
6210 (_Jv_RunMain): Ditto.
6212 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6213 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6215 2000-03-05 Warren Levy <warrenl@cygnus.com>
6217 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6218 Handle null addresses.
6220 2000-03-04 Anthony Green <green@redhat.com>
6222 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6225 2000-03-04 Anthony Green <green@redhat.com>
6227 * configure: Rebuilt.
6228 * configure.in (ZLIBTESTSPEC): New macro.
6229 (GCTESTSPEC): New macro.
6230 (LIBGCJTESTSPEC): New macro.
6231 * libgcj-test.spec.in: New file.
6233 2000-03-02 Tom Tromey <tromey@cygnus.com>
6235 * include/java-interp.h: Don't include MethodInvocation.h.
6236 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6237 * Makefile.in: Rebuilt.
6238 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6239 (ordinary_java_source_files): Don't mention
6240 MethodInvocation.java.
6241 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6242 * interpret.cc (MethodInvocation::continue1): Removed.
6243 (run): Handle exceptions here.
6244 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6246 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6248 (defineClass2): Removed.
6250 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6252 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6254 (hack_call): Removed.
6256 * java/lang/Class.h (Class): Removed hackRunInitializers,
6258 * java/lang/natClass.cc (hackRunInitializers): Removed.
6259 (initializeClass): Catch exceptions here.
6260 Include ExceptionInInitializerError.h.
6261 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6264 * java/lang/Object.h (Object): Don't mention hack12_6.
6265 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6267 * java/lang/Object.java (hack12_6): Removed.
6269 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6270 (start): Use run_, not run__.
6271 * java/lang/Thread.java (run_): Renamed from run__; old run_
6274 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6275 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6276 (_Jv_JNI_DefineClass): Likewise.
6277 (_Jv_JNI_ThrowNew): Likewise.
6278 (_Jv_JNI_AllocObject): Likewise.
6279 (_Jv_JNI_GetAnyMethodID): Likewise.
6280 (_Jv_JNI_CallAnyMethodV): Likewise.
6281 (_Jv_JNI_CallAnyMethodA): Likewise.
6282 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6283 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6284 (_Jv_JNI_GetAnyFieldID): Likewise.
6285 (_Jv_JNI_NewString): Likewise.
6286 (_Jv_JNI_NewStringUTF): Likewise.
6287 (_Jv_JNI_GetStringUTFChars): Likewise.
6288 (_Jv_JNI_NewObjectArray): Likewise.
6289 (_Jv_JNI_NewPrimitiveArray): Likewise.
6290 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6291 (_Jv_JNI_GetStringRegion): Likewise.
6292 (_Jv_JNI_GetStringUTFRegion): Likewise.
6293 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6294 (_Jv_JNI_MonitorEnter): Likewise.
6295 (_Jv_JNI_MonitorExit): Likewise.
6296 (_Jv_JNI_ToReflectedField): Likewise.
6297 (_Jv_JNI_ToReflectedMethod): Likewise.
6298 (_Jv_JNI_RegisterNatives): Likewise.
6299 (_Jv_JNI_AttachCurrentThread): Likewise.
6300 (_Jv_JNI_DestroyJavaVM): Likewise.
6302 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6304 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6305 error caused by the incorrect casting of a long to an int.
6307 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6309 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6310 SIGSEV caused by use of the wrong instance variable.
6312 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6314 * java/io/File.java (File(String, String)): For dirPath, treat an
6315 empty String the same as `null'.
6317 2000-02-26 Anthony Green <green@cygnus.com>
6319 * gnu/gcj/io/MimeTypes.java: Test for null.
6321 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6322 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6324 * java/net/URLConnection.java: Update copyright notice.
6326 2000-02-25 Tom Tromey <tromey@cygnus.com>
6328 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6331 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6333 * java/net/URLConnection.java (initializeDateFormats): New
6335 (getHeaderFieldDate): Call initializeDateFormats if required.
6336 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6338 Fix for PR libgcj/38.
6340 2000-02-24 Warren Levy <warrenl@cygnus.com>
6342 * java/math/BigInteger.java(ival): Made private.
6346 2000-02-20 Anthony Green <green@cygnus.com>
6348 * Makefile.in: Rebuilt.
6349 * Makefile.am (ordinary_java_source_files): Add
6350 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6352 * scripts/MakeDefaultMimeTypes.java: New file.
6353 * scripts/mime.types: New file.
6354 * scripts/classes.pl: Moved from top level.
6355 * classes.pl: Moved to scripts directory.
6357 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6359 * gnu/gcj/io/MimeTypes.java: New file.
6360 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6362 2000-02-20 Tom Tromey <tromey@cygnus.com>
6364 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6366 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6368 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6371 2000-02-18 Tom Tromey <tromey@cygnus.com>
6373 * include/jvm.h (_Jv_GetJavaVM): Declare.
6374 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6375 (_Jv_MethodBase::get_method): New method.
6376 (_Jv_JNIMethod::set_function): New method.
6377 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6378 (_Jv_JNI_RegisterNatives): New function.
6379 (_Jv_JNIFunctions): Updated for new functions.
6380 (_Jv_GetJavaVM): New function.
6381 (_Jv_JNI_GetJavaVM): Use it. Now static.
6382 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6383 is already a Java thread but does not have a JNIEnv yet.
6385 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6388 2000-02-17 Tom Tromey <tromey@cygnus.com>
6390 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6393 2000-02-16 Tom Tromey <tromey@cygnus.com>
6395 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6397 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6398 (_Jv_JNI_NewObject): Likewise.
6399 (_Jv_JNI_NewObjectA): Likewise.
6400 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6401 as "return" type to _Jv_CallAnyMethodA.
6402 (_Jv_JNI_CallAnyMethodA): Likewise.
6403 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6405 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6408 2000-02-15 Tom Tromey <tromey@cygnus.com>
6410 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6412 (init_cif): Added `rtype_p' argument.
6413 * include/java-interp.h (class _Jv_MethodBase): Added
6415 (class _Jv_InterpMethod): Removed args_raw_size.
6416 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6417 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6418 class pointer as well as the ordinary arguments.
6420 * jni.cc (mangled_name): Skip leading `(' in signature.
6422 * jni.cc (add_char): Added missing `else'.
6424 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6427 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6431 * java/lang/natRuntime.cc (_load): Include library path with
6434 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6437 * java/lang/natThread.cc (dumpStack): Removed.
6438 * java/lang/Thread.java (dumpStack): Implemented.
6440 2000-02-15 Tom Tromey <tromey@cygnus.com>
6442 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6443 with `lib' for loadLibrary. Fixes PR gcj/150.
6445 2000-02-14 Warren Levy <warrenl@cygnus.com>
6447 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6449 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6453 (modPow): Rewritten to not use the naive, slow, brute force approach.
6454 (isProbablePrime): Implemented.
6455 (testBit): Implemented.
6456 (flipBit): Implemented.
6457 (getLowestSetBit): Implemented.
6459 2000-02-16 Anthony Green <green@redhat.com>
6461 * configure.host: Use the same options for i386 and i486 as we do
6464 2000-02-12 Tom Tromey <tromey@cygnus.com>
6466 * java/io/File.java (createTempFile): Use low bits from counter,
6469 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6471 * THANKS: More thanks.
6473 2000-02-11 Tom Tromey <tromey@cygnus.com>
6475 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6476 astore instruction. From Hans Boehm.
6478 2000-02-11 Warren Levy <warrenl@cygnus.com>
6480 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6481 (BigInteger(String)): New constructor.
6482 (not): Rewritten using version from Kawa's BitOps class.
6483 (valueOf): New private methods from Kawa's BitOps class.
6490 (andNot): Implemented.
6491 (clearBit): Implemented.
6492 (setBit): Implemented.
6493 (bitCount): Implemented.
6494 (toByteArray): Implemented.
6496 2000-02-11 Tom Tromey <tromey@cygnus.com>
6498 * java/io/File.java (nextValue): Now synchronized.
6500 2000-02-10 Tom Tromey <tromey@cygnus.com>
6502 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6503 * java/io/FileDescriptor.java (EXCL): New static field.
6504 * java/io/File.java (tmpdir): New static field.
6505 (createTempFile): New method.
6506 (nextValue): New method.
6507 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6510 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6511 (jboolean): Declare as an attributed int, not a bool.
6512 (_Jv_func): Declare differently for C.
6514 * gnu/gcj/jni/natNativeThread.cc: New file.
6515 * gnu/gcj/jni/NativeThread.java: New file.
6516 * java/lang/Thread.java (data): Now a RawData.
6517 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6519 * Makefile.in: Rebuilt.
6520 * Makefile.am (java/lang/Thread.h): New target.
6521 (ordinary_java_source_files): Added NativeThread.java.
6522 (nat_source_files): Added natNativeThread.cc.
6523 * java/lang/natThread.cc: Include <jni.h>
6524 (struct natThread): Added `jni_env' field.
6525 (_Jv_GetCurrentJNIEnv): New function.
6526 (_Jv_SetCurrentJNIEnv): Likewise.
6527 (initialize_native): Initialize jni_env.
6529 * jni.cc (ThreadGroupClass): New define.
6530 (_Jv_JNI_InvokeFunctions): New structure.
6531 (JNI_GetCreatedJavaVMs): New function.
6532 (the_vm): New global.
6533 (JNI_GetDefaultJavaVMInitArgs): New function.
6534 Include NativeThread.h.
6535 (NativeThreadClass): New define.
6536 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6537 (_Jv_JNI_DestroyJavaVM): New function.
6538 (_Jv_JNI_AttachCurrentThread): New function.
6539 (_Jv_JNI_DetachCurrentThread): New function.
6540 (_Jv_JNI_GetEnv): New function.
6541 (JNI_CreateJavaVM): New function.
6542 (_Jv_JNI_GetJavaVM): New function.
6543 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6544 * include/jni.h (JavaVMAttachArgs): New structure.
6545 (JNI_EDETACHED): New define.
6546 (JNI_EVERSION): Likewise.
6547 (JavaVM): Define properly.
6548 (struct JNIInvokeInterface): New structure.
6549 (class _Jv_JavaVM): New class.
6550 (JNI_OnLoad, JNI_OnUnload): Declare.
6551 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6552 JNI_GetCreatedJavaVMs): Declare.
6553 (JavaVMInitArgs): New typedef.
6554 (JavaVMOption): Likewise.
6555 (JNI_ERR): New define.
6558 2000-02-10 Andrew Haley <aph@cygnus.com>
6560 * interpret.cc: Don't include fdlibm.h.
6561 Replace #if with #ifdef throughout.
6562 Declare extern __ieee754_fmod.
6563 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6565 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6566 Search class hierarchy for superclass vtable.
6568 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6569 off the end of a pointer list.
6571 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6575 2000-02-09 Tom Tromey <tromey@cygnus.com>
6577 * java/lang/natRuntime.cc (_load): Call add_library.
6578 (loadLibraryInternal): Likewise.
6580 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6581 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6582 (Output_iconv::finalize): Likewise.
6584 2000-02-08 Tom Tromey <tromey@cygnus.com>
6586 * java/util/Properties.java (setProperty): New method.
6587 (store): New method.
6589 2000-02-07 Tom Tromey <tromey@cygnus.com>
6591 * java/lang/Runtime.java (_load): Declare.
6592 (load, loadLibrary): Wrote in terms of _load.
6593 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6595 (loadLibrary): Likewise.
6597 (_load): New method.
6598 (loadLibrary, load): Removed.
6600 * jni.cc (ThrowableClass): New define.
6601 (_Jv_JNI_Throw): Check argument.
6602 (_Jv_JNI_ThrowNew): Likewise.
6603 (wrap_value): Don't wrap object if it is NULL.
6604 (_Jv_JNI_DefineClass): Use wrap_value.
6605 (_Jv_JNI_FindClass): Likewise.
6606 (_Jv_JNI_GetSuperclass): Likewise.
6607 (_Jv_JNI_ExceptionOccurred): Likewise.
6608 (_Jv_JNI_AllocObject): Likewise.
6609 (_Jv_JNI_GetObjectClass): Likewise.
6610 (_Jv_JNI_NewString): Likewise.
6611 (_Jv_JNI_NewStringUTF): Likewise.
6612 (_Jv_JNI_NewObjectArray): Likewise.
6613 (_Jv_JNI_GetObjectArrayElement): Likewise.
6614 (_Jv_JNI_NewPrimitiveArray): Likewise.
6615 (_Jv_JNI_ToReflectedField): Likewise.
6616 (_Jv_JNI_ToReflectedMethod): Likewise.
6617 (_Jv_JNI_AllocObject): Check argument.
6618 (_Jv_JNI_NewObjectV): Likewise.
6619 (_Jv_JNI_NewObject): Likewise.
6620 (_Jv_JNI_NewObjectA): Likewise.
6621 (_Jv_JNI_GetObjectClass): Likewise.
6622 (_Jv_JNI_GetField): Likewise.
6623 (_Jv_JNI_SetField): Likewise.
6625 * interpret.cc (PUSHL): Don't use expression statement.
6630 * jni.cc (add_char): Conditional on INTERPRETER.
6631 (mangled_name): Likewise.
6633 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6635 (class _Jv_JNIMethod): Likewise.
6637 2000-02-04 Warren Levy <warrenl@cygnus.com>
6639 * Makefile.am: Added MPN.java and BigInteger.java.
6640 * Makefile.in: Rebuilt.
6641 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6643 * java/math/BigInteger.java: New file. Based primarily on
6644 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6646 2000-02-04 Tom Tromey <tromey@cygnus.com>
6648 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6650 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6651 if the method is native.
6652 * resolve.cc (ncode): Don't handle native methods.
6653 (_Jv_JNIMethod::ncode): New method.
6654 (_Jv_PrepareClass): Handle native methods.
6655 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6656 Include AbstractMethodError.h.
6657 (add_char): New function.
6658 (mangled_name): Likewise.
6659 * include/java-interp.h (class _Jv_JNIMethod): New class.
6660 (class _Jv_MethodBase): New class.
6661 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6662 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6665 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6666 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6667 libraries): New globals.
6668 (add_library): New function.
6669 (_Jv_FindSymbolInExecutable): New function.
6671 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6674 2000-02-04 Andrew Haley <aph@cygnus.com>
6676 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6677 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6678 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6679 printStackTrace to printRawStackTrace.
6681 2000-02-03 Tom Tromey <tromey@cygnus.com>
6683 * java/util/Calendar.java (toString): New method.
6684 * java/util/SimpleTimeZone.java (clone): New method.
6685 (toString): New method.
6686 * java/util/TimeZone.java (clone): New method.
6687 * java/text/SimpleDateFormat.java (clone): New method.
6688 * java/text/NumberFormat.java (clone): New method.
6689 (equals): New method.
6690 * java/text/Format.java (clone): New method.
6691 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6693 (clone): New method.
6694 * java/text/DateFormat.java (clone): New method.
6695 * java/text/Collator.java (clone): New method.
6697 2000-02-03 Tom Tromey <tromey@cygnus.com>
6699 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6702 2000-02-01 Tom Tromey <tromey@cygnus.com>
6704 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6705 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6706 constructing the closure if the function is native.
6707 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6708 a template function, #if'd out, or static.
6709 Include <java-interp.h>.
6711 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6713 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6715 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6716 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6718 (wrap_value): New function.
6719 (_Jv_JNI_CallAnyMethodV): Use it.
6720 (_Jv_JNI_CallAnyMethodA): Likewise.
6721 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6722 (_Jv_JNI_GetStaticField): Likewise.
6724 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6725 (_Jv_JNI_GetStaticField): Likewise.
6727 2000-01-31 Tom Tromey <tromey@cygnus.com>
6729 * prims.cc (_Jv_MallocUnchecked): New function.
6730 (main_init): Call _Jv_JNI_Init.
6731 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6732 (_Jv_JNI_Init): Declare.
6733 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6735 (_Jv_JNI_NewGlobalRef): New function.
6736 (_Jv_JNI_DeleteGlobalRef): New function.
6737 (_Jv_JNI_DeleteLocalRef): New function.
6738 (_Jv_JNI_conversion_call): Initialize and clear local reference
6740 (_Jv_JNI_NewLocalRef): New function.
6741 (struct _Jv_JNI_LocalFrame): New structure.
6742 (_Jv_JNI_PushLocalFrame): New function.
6743 (_Jv_JNI_EnsureLocalCapacity): New function.
6744 (FRAME_SIZE): New define.
6745 (_Jv_JNI_GetStringChars): Mark string, not characters.
6746 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6747 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6748 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6750 (_Jv_JNI_DefineClass): Make return value a local ref.
6751 (_Jv_JNI_FindClass): Likewise.
6752 (_Jv_JNI_GetSuperclass): Likewise.
6753 (_Jv_JNI_ExceptionOccurred): Likewise.
6754 (_Jv_JNI_AllocObject): Likewise.
6755 (_Jv_JNI_GetObjectClass): Likewise.
6756 (_Jv_JNI_CallAnyMethodV): Likewise.
6757 (_Jv_JNI_NewString): Likewise.
6758 (_Jv_JNI_NewStringUTF): Likewise.
6759 (_Jv_JNI_NewObjectArray): Likewise.
6760 (_Jv_JNI_GetObjectArrayElement): Likewise.
6761 (_Jv_JNI_ToReflectedField): Likewise.
6762 (_Jv_JNI_ToReflectedMethod): Likewise.
6763 (_Jv_JNIFunctions): Updated table for new functions.
6764 (_Jv_JNI_Init): New function.
6765 (mark_for_gc): Wrote.
6766 (unmark_for_gc): Wrote.
6767 * include/jni.h (struct JNINativeInterface): Removed name from
6768 PopLocalFrame parameter.
6769 (class _Jv_JNIEnv): Added `locals' field.
6771 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6773 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6776 2000-01-30 Tom Tromey <tromey@cygnus.com>
6778 * include/config.h.in: Rebuilt.
6779 * acconfig.h (HAVE_ICONV): Define.
6780 * configure: Rebuilt.
6781 * configure.in: Check for `iconv' function.
6782 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6783 no specific encoder exists.
6784 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6785 no specific encoder exists.
6786 * Makefile.in: Rebuilt.
6787 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6789 (nat_source_files): Added natIconv.cc.
6790 * gnu/gcj/convert/natIconv.cc: New file.
6791 * gnu/gcj/convert/Input_iconv.java: New file.
6792 * gnu/gcj/convert/Output_iconv.java: New file.
6794 2000-01-28 Tom Tromey <tromey@cygnus.com>
6796 * Makefile.in: Rebuilt.
6797 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6799 2000-01-26 Tom Tromey <tromey@cygnus.com>
6801 * gcj/method.h (JvNumMethods): Moved from Class.h.
6802 (JvGetFirstMethod): Likewise.
6803 * java/lang/Class.h (Object): Updated decl of
6804 _Jv_JNI_ToReflectedField.
6805 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6806 * Makefile.in: Rebuilt.
6807 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6808 argument of _Jv_JNI_ToReflectedField.
6809 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6811 (java/lang/reflect/Method.h): Likewise.
6812 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6814 (jweak): New typedef.
6815 (struct JNINativeInterface): Correctly declare remaining entries.
6816 * jni.cc: Include Class.h, ClassLoader.h.
6817 (_Jv_JNI_FindClass): New function.
6818 (_Jv_JNI_DefineClass): New function.
6819 (_Jv_JNI_conversion_call): New function.
6820 (_Jv_JNI_FindClass): Use current class loader to find class.
6821 (_Jv_JNI_ExceptionCheck): New function.
6822 (_Jv_JNI_FromReflectedField): Now static.
6823 (MethodClass): New define.
6824 (_Jv_JNI_FromReflectedMethod): New function.
6825 (_Jv_JNI_ToReflectedMethod): Likewise.
6827 (_Jv_JNI_IsAssignableFrom): Renamed.
6828 (_Jv_JNI_GetStringRegion): New function.
6829 Include StringIndexOutOfBoundsException.h.
6830 (_Jv_JNI_GetStringUTFRegion): New function.
6831 (_Jv_JNIFunctions): Updated for new functions.
6832 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6833 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6834 (_Jv_JNI_GetStringCritical): New function.
6835 (_Jv_JNI_ReleaseStringCritical): Likewise.
6836 (get_throwable): Removed.
6837 (GCJ_JV_JNIENV_FRIEND): Removed.
6838 (__GCJ_JNI_IMPL__): Define.
6841 * resolve.cc (get_ffi_type_from_signature): Handle case where
6844 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6846 * interpret.cc (run): Don't call println.
6847 Don't include PrintStream.h.
6849 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6850 nameIndex. Use "jint" as type for boffset.
6851 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6853 (Class): Likewise. Also changed type of method_count,
6854 vtable_method_count, size_in_bytes, field_count,
6855 static_field_count, interface_count.
6856 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6859 2000-01-21 Tom Tromey <tromey@cygnus.com>
6861 * java/lang/reflect/natConstructor.cc (newInstance): Use
6863 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6864 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6865 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6868 (invoke): Use _Jv_CallAnyMethodA.
6870 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6871 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6873 (struct _Jv_Method): Added getNextMethod method.
6874 (JvNumMethods): New function.
6875 (JvGetFirstMethod): Likewise.
6876 * gcj/field.h (JvGetFirstStaticField): New function.
6877 (JvNumStaticFields): Likewise.
6878 (getNextField): Renamed from getNextInstanceField.
6879 (struct _Jv_Field): New method getClass.
6880 * jni.cc: Wrote many new functions.
6881 * include/jni.h (JNI_TRUE): Define.
6882 (JNI_FALSE): Likewise.
6883 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6884 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6885 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6886 (jfieldID, jmethodID): Likewise.
6887 (JNI_COMMIT, JNI_ABORT): New defines.
6888 (JNINativeMethod): New struct.
6889 (struct JNINativeInterface): Correctly declared more entries.
6890 (class _Jv_JNIEnv): Added `ex' member.
6891 (JNI_VERSION_1_1): New define.
6892 (JNI_VERSION_1_2): Likewise.
6894 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6895 getNextInstanceField.
6897 2000-01-20 Tom Tromey <tromey@cygnus.com>
6899 * resolve.cc (StringClass): Removed.
6900 * defineclass.cc (StringClass): Removed.
6902 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6906 2000-01-19 Tom Tromey <tromey@cygnus.com>
6908 * interpret.cc (PC_REGISTER_ASM): Removed.
6910 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6911 From Bryce McKinlay.
6913 * All files: Updated copyright to reflect Cygnus purchase.
6915 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6917 * configure: Rebuilt.
6918 * configure.in: Recognize --disable-interpreter.
6920 2000-01-18 Andrew Haley <aph@cygnus.com>
6922 * name-finder.cc (lookup): Check for dladdr function.
6923 acconfig.h (HAVE_DLADDR): Add.
6924 configure.in: Check for HAVE_DLADDR
6926 include/config.h.in: Rebuilt.
6928 2000-01-17 Andrew Haley <aph@cygnus.com>
6930 * prims.cc (_Jv_RunMain): Set the name of this executable.
6932 2000-01-17 Tom Tromey <tromey@cygnus.com>
6934 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6935 when backtrace can't be computed.
6937 * configure: Rebuilt.
6938 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6940 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6941 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6942 (_Jv_FindClassInCache): Likewise.
6943 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6944 (findSystemClass): Try to load class from compiled module.
6946 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6947 (loadLibrary): Likewise.
6948 (lt_preloaded_symbols): Define.
6949 (loadLibraryInternal): New method.
6950 * include/config.h.in: Rebuilt.
6951 * acconfig.h (USE_LTDL): Added.
6952 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6953 (INCLUDES): Added $(INCLTDL).
6954 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6955 (libgcj_la_LIBADD): Likewise.
6956 * aclocal.m4, configure: Rebuilt.
6957 * configure.in: Added libltdl support.
6959 2000-01-15 Tom Tromey <tromey@cygnus.com>
6961 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6963 2000-01-14 Andrew Haley <aph@cygnus.com>
6965 * java/lang/natThrowable.cc: New file.
6967 * java/lang/Throwable.java (fillInStackTrace): Make native.
6968 (printStackTrace): Call native method to do this.
6969 (Throwable): Call fillInStackTrace.
6970 (stackTrace): New variable.
6972 * include/jvm.h: Add _Jv_ThisExecutable functions.
6974 * prims.cc: (_Jv_execName): New variable.
6975 (catch_segv): Call fillInStackTrace.
6977 (_Jv_ThisExecutable): New functions.
6978 (JvRunMain): Set the name of this executable.
6980 * Makefile.am: Add java/lang/natThrowable.cc.
6982 * Makefile.in: Rebuilt.
6984 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6986 * configure.in: Force link with __frame_state_for in
6987 FORCELIBGCCSPEC. Add new checks for backtrace.
6988 * include/config.h.in: Rebuilt.
6990 * name-finder.cc: New file.
6991 * include/name-finder.h: New file.
6993 2000-01-16 Anthony Green <green@cygnus.com>
6995 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6998 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7000 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7002 2000-01-13 Tom Tromey <tromey@cygnus.com>
7004 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7005 not system loader, as initiating loader.
7007 2000-01-11 Tom Tromey <tromey@cygnus.com>
7009 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7010 HP/UX. From David Scott Urban.
7012 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7014 * java/lang/natMath.cc (pow): Cast args to `double', not
7017 (IEEEremainder): Likewise.
7018 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7019 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7021 2000-01-09 Anthony Green <green@cygnus.com>
7023 * java/lang/natString.cc (init): Test for overflow condition
7024 during out of bounds check.
7025 (getChars): Throw StringIndexOutOfBoundsException, not
7026 ArrayIndexOutOfBoundsException.
7028 (regionMatches): Obey case option during string comparison.
7030 * configure.host (ligcj_interpreter): New variable. Enable
7031 interpreter by default on IA-32.
7032 * configure.in: Examine libgcj_interpreter.
7033 * configure: Rebuilt.
7035 2000-01-07 Tom Tromey <tromey@cygnus.com>
7037 * mauve-libgcj: Don't disable ClassTest.
7039 * java/lang/natClass.cc (getClasses): Wrote.
7041 2000-01-06 Tom Tromey <tromey@cygnus.com>
7043 * java/lang/natClass.cc (_getConstructors): Correctly check
7044 whether method name is the init name.
7045 (getMethod): Look at accflags on method in `klass', not `this'.
7047 2000-01-05 Tom Tromey <tromey@cygnus.com>
7049 * java/lang/natClass.cc (getMethod): Compute offset relative to
7050 `klass's methods table, not `this's table.
7052 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7053 In unwrapping/widening case, check whether `k' is null, not
7054 whether it is primitive. Initialize `num' from `argelts', not
7055 `paramelts'. Correct create and pass arguments to ffi_call.
7056 Don't let presence of `this' argument affect index used to look in
7058 (COPY): Set appropriate element in `values' vector.
7060 * java/lang/natClass.cc: Include <gcj/method.h>.
7062 * java/lang/Class.h (_getMethods): Correctly declare as private,
7065 * java/lang/Class.h (_getMethods): Declare.
7066 * java/lang/Class.java (_getMethods): Declare.
7067 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7068 (getDeclaredClasses): Always return empty array.
7069 (_getMethods): New method.
7070 (getMethods): Wrote.
7071 (getDeclaredMethod): Return `rmethod'.
7072 (finit_name): New global.
7073 (getDeclaredMethods): Check for finit_name.
7074 (_getMethods): Likewise.
7075 (getMethod): Only return public methods.
7077 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7078 jboolean and select correct ffi type on that basis.
7079 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7080 Constructor call always has `void' return type.
7082 2000-01-04 Tom Tromey <tromey@cygnus.com>
7084 * java/lang/Class.h (getSignature): Updated.
7085 * java/lang/Class.java (getSignature): Updated.
7086 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7088 (getConstructor): Ensure constructor is public.
7089 (_getConstructors): Check for public-ness of constructor when
7090 `declared' is false, not when it is true.
7092 2000-01-04 Warren Levy <warrenl@cygnus.com>
7094 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7096 (receive): Set the sender's address in the DatagramPacket.
7098 2000-01-04 Tom Tromey <tromey@cygnus.com>
7100 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7101 declaring class as return_type argument to
7102 _Jv_CallNonvirtualMethodA.
7103 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7104 constructor case, create object and use it as `this' argument.
7105 * java/lang/Class.h (_getConstructors): Declare.
7106 (_getFields): Declare.
7107 * java/lang/Class.java (getConstructors): Wrote.
7108 (_getConstructors): New native method.
7109 (getDeclaredConstructors): Wrote.
7110 (_getFields): Declare new native method.
7111 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7113 (getMethod): Work correctly when class is primitive.
7114 (getDeclaredMethods): Likewise. Compute offset using `method',
7116 (getDeclaredMethod): Likewise.
7117 (getConstructor): Wrote.
7118 (ConstructorClass): New define.
7119 (getDeclaredConstructor): Wrote.
7120 (_getConstructors): New method.
7121 (_getFields): New method.
7124 * Makefile.in: Rebuilt.
7125 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7127 * prims.cc: Remove `#pragma implementation'.
7128 * gcj/array.h: Remove `#pragma interface'.
7130 * prims.cc (_Jv_equaln): New function.
7131 * java/lang/Class.java (getSignature): Declare.
7132 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7133 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7135 (getSignature): New method.
7136 (getDeclaredMethod): Wrote.
7138 Include StringBuffer.h.
7139 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7140 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7142 (getSignature): Declare.
7143 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7144 (_Jv_equaln): Declare.
7145 (_Jv_CallNonvirtualMethodA): Declare.
7146 * Makefile.in: Rebuilt.
7147 * Makefile.am (nat_source_files): Added natConstructor.cc.
7148 (java/lang/reflect/Constructor.h): New target.
7149 * java/lang/reflect/natConstructor.cc: New file.
7150 * java/lang/reflect/Constructor.java (newInstance): Now native.
7151 (declaringClass): Renamed from decl_class.
7152 (offset): Renamed from index.
7153 (getType): New native method.
7154 (getModifiers): Now native.
7155 (getParameterTypes): Call getType if required.
7156 (hashCode): Include hash code from declaring class.
7157 (modifiers): Removed.
7158 (toString): Call getType if required.
7159 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7160 * java/lang/reflect/natMethod.cc (hack_call): New method.
7161 Removed `#if 0' around FFI code.
7162 Include <gnu/gcj/RawData.h>.
7163 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7164 IllegalArgumentException when argument object and class disagree.
7165 (_Jv_GetTypesFromSignature): New function.
7167 (ObjectClass): New define.
7168 (_Jv_CallNonvirtualMethodA): New function.
7169 * java/lang/reflect/Method.java (hack_trampoline): New method.
7170 (hack_call): New native method.