1 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
3 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
4 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
6 2001-08-06 Tom Tromey <tromey@redhat.com>
8 * java/io/InputStreamReader.java (refill): Only call refill on
9 BufferedInputStream when appropriate constraints are met.
11 2001-08-05 Tom Tromey <tromey@redhat.com>
13 * java/io/StringWriter.java: Merged with Classpath.
14 * java/io/InputStream.java: Merged with Classpath.
15 * java/io/OutputStream.java: Merged with Classpath.
16 * java/io/PushbackInputStream.java: Merged with Classpath.
17 * java/io/CharArrayReader.java: Merged with Classpath.
18 * java/io/CharArrayWriter.java: Merged with Classpath.
20 2001-08-02 Tom Tromey <tromey@redhat.com>
22 * prims.cc (JNI_OnLoad): Don't declare.
23 (_JNI_OnLoad): Don't define.
24 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
26 2001-08-02 Tom Tromey <tromey@redhat.com>
28 * java/io/RandomAccessFile.java (seek): Let seek go past end of
30 (skipBytes): Don't fail if seeking past end of file.
31 * java/io/FileInputStream.java (skip): Don't fail if seeking past
33 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
35 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
37 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
39 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
41 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
43 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
44 to initialize global_ref_table/local_ref_table.
46 2001-08-02 Tom Tromey <tromey@redhat.com>
49 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
52 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
54 * include/posix.h (_POSIX_PII_SOCKET): Define.
55 * configure.in (HAVE_SOCKLEN_T): Define.
56 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
58 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
59 (java::net::PlainSocketImpl::accept): Use it.
60 Fixes PRs libgcj/3694, libgcj/3696.
62 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
63 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
64 * configure, include/config.h.in: Regenerate.
65 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
67 (java::net::PlainDatagramSocketImpl::setOption): Guard against
68 missing IPV6_MULTICAST_IF.
71 2001-08-01 Jeff Sturm <jsturm@one-point.com>
73 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
75 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
77 * Makefile.in: Rebuilt.
78 * Makefile.am (GCJLINK): Added --tag=GCJ.
81 2001-07-30 Tom Tromey <tromey@redhat.com>
83 * java/util/Date.java: Re-merged with Classpath.
85 2001-07-30 Jeff Sturm <jsturm@one-point.com>
87 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
88 (_Jv_bind): New static function.
90 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
91 (_Jv_bind, _Jv_connect): New static functions.
93 (connect): Use _Jv_connect.
95 2001-07-30 Tom Tromey <tromey@redhat.com>
96 Corey Minyard <minyard@acm.org>
98 * gnu/gcj/convert/natIconv.cc (done): New methods.
99 * gnu/gcj/convert/Output_iconv.java (done): New method.
100 * gnu/gcj/convert/Input_iconv.java (done): New method.
101 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
103 (getDefaultEncodingClass): Removed.
104 (getDefaultEncoder): Use getEncoder.
106 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
108 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
110 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
112 (getDefaultDecodingClass): Removed.
113 (getDefaultDecoder): Use getDecoder.
114 (getDecoder): Look up decoder in cache.
116 * java/lang/natString.cc (init): Call `done' on converter.
117 (getBytes): Likewise.
119 2001-07-30 Tom Tromey <tromey@redhat.com>
121 * java/lang/Integer.java: Merged with Classpath.
123 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
125 * java/util/GregorianCalendar.java (GregorianCalendar): Call
126 setTimeInMillis() to set the default/current time.
128 2001-07-29 Mark Wielaard <mark@klomp.org>
130 * HACKING: add description on updating namespace
132 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
134 * java/util/Calendar.java (set): Never recompute fields here. They
135 will already be set if someone set time explicitly, and it can cause
136 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
137 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
138 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
140 * java/text/SimpleDateFormat.java (defaultCentury): New field.
141 (readObject): Call set2DigitYearStart if appropriate so that
142 defaultCentury is calculated.
143 (SimpleDateFormat): Don't bother clearing calendar here. Call
144 computeCenturyStart().
145 (set2DigitYearStart): Calculate and set defaultCentury.
146 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
148 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
149 2 numeric digits, use the 80-20 heuristic to parse the value into a
150 default century based on defaultCenturyStart.
151 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
153 2001-07-25 Tom Tromey <tromey@redhat.com>
155 * Makefile.in: Rebuilt.
156 * Makefile.am (libgcj.jar): Correctly fail when bytecode
159 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
161 * prims.cc (_JNI_OnLoad): New function.
162 (JNI_OnLoad): Use it.
163 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
165 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
167 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
168 Makefile.in: Regenerate.
170 2001-07-24 Tom Tromey <tromey@redhat.com>
172 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
175 2001-07-23 Tom Tromey <tromey@redhat.com>
177 * gcj/javaprims.h: Rebuilt class list.
178 * Makefile.in: Rebuilt.
179 * Makefile.am (core_java_source_files): Added VMClassLoader.
180 * java/lang/VMClassLoader.java: New file.
181 * java/lang/Boolean.java: Merged with Classpath.
182 * java/lang/Byte.java: Merged with Classpath.
183 * java/lang/Integer.java: Merged with Classpath.
184 * java/lang/Long.java: Merged with Classpath.
185 * java/lang/Number.java: Merged with Classpath.
186 * java/lang/Short.java: Merged with Classpath.
188 2001-07-22 Jeff Sturm <jsturm@one-point.com>
190 * configure.host: Enable hash synchronization for alpha*-*.
191 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
193 * java/lang/natObject.cc (compare_and_swap, release_set,
194 compare_and_swap_release): Added inline functions for alpha.
196 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
198 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
199 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
200 back to old RFC 2133 variants if missing.
202 2001-07-18 Tom Tromey <tromey@redhat.com>
204 * java/io/natFileWin32.cc (_access): Renamed.
206 * java/io/natFile.cc (_access): Renamed.
208 * java/io/File.java (access, stat): Add leading `_' to name.
211 2001-07-18 Tom Tromey <tromey@redhat.com>
214 * libgcj.spec.in (*lib): Added LIBICONV.
215 * configure: Rebuilt.
216 * configure.in: Call AM_ICONV. Don't check for iconv function.
217 Add parameters to JV_HASH_SYNCHRONIZATION define.
218 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
220 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
222 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
223 not by setting its size field.
225 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
227 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
230 2001-07-12 Tom Tromey <tromey@redhat.com>
231 David Brownell <david-b@pacbell.net>
233 Fix for PR libgcj/3426:
234 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
236 (read): Throw exception if character conversion fails.
237 * java/io/BufferedInputStream.java (refill): Now package-private.
238 * java/io/InputStreamReader.java (ready): Simplified.
239 (refill): New method.
242 2001-07-12 Tom Tromey <tromey@redhat.com>
244 Report from Henner Zeller:
245 * java/io/FileOutputStream.java (FileOutputStream): Throw
246 FileNotFoundException, not IOException.
248 2001-07-10 Anthony Green <green@redhat.com>
250 * Makefile.in: Rebuilt.
251 * Makefile.am: Add new files.
252 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
253 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
254 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
255 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
256 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
257 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
258 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
259 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
260 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
261 org/w3c/dom/ranges/DocumentRange.java,
262 org/w3c/dom/ranges/Range.java,
263 org/w3c/dom/ranges/RangeException.java,
264 org/w3c/dom/traversal/DocumentTraversal.java,
265 org/w3c/dom/traversal/NodeFilter.java,
266 org/w3c/dom/traversal/NodeIterator.java,
267 org/w3c/dom/traversal/TreeWalker.java,
268 org/xml/sax/ext/DeclHandler.java,
269 org/xml/sax/ext/LexicalHandler.java,
270 org/xml/sax/helpers/AttributeListImpl.java,
271 org/xml/sax/helpers/AttributesImpl.java,
272 org/xml/sax/helpers/DefaultHandler.java,
273 org/xml/sax/helpers/LocatorImpl.java,
274 org/xml/sax/helpers/NamespaceSupport.java,
275 org/xml/sax/helpers/ParserAdapter.java,
276 org/xml/sax/helpers/ParserFactory.java,
277 org/xml/sax/helpers/XMLFilterImpl.java,
278 org/xml/sax/helpers/XMLReaderAdapter.java,
279 org/xml/sax/helpers/XMLReaderFactory.java,
280 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
281 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
282 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
283 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
284 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
285 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
286 org/xml/sax/SAXNotRecognizedException.java,
287 org/xml/sax/SAXNotSupportedException.java,
288 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
289 org/xml/sax/XMLReader.java: New files.
291 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
293 * Makefile.am: Added `java/lang/ThreadLocal.java'.
294 * Makefile.in: Regenerate.
295 * java/lang/ThreadLocal.java: Initial import.
297 2001-07-07 Jeff Sturm <jsturm@one-point.com>
299 * Makefile.am (libgcj.jar): Don't recursively make
300 built_java_source_files. Avoid long command lines.
301 Don't change to $(srcdir) to invoke javac.
302 (libgcj.la, libgcjx.la); Avoid long command lines.
303 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
304 * Makefile.in: Rebuilt.
306 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
308 * include/i386-signal.h: Don't do anything with unsigned divide
309 overflow except throw an exception.
311 2001-07-05 Tom Tromey <tromey@redhat.com>
314 * java/lang/Class.h (Class(void)): Now private. Removed
315 implementation. From dmorsberger@sensysdl.com.
317 2001-07-02 Tom Tromey <tromey@redhat.com>
319 Fix for PR bootstrap/3281:
320 * aclocal.m4, configure: Rebuilt.
321 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
322 Correctly compute libgcj_basedir.
323 (mkinstalldirs): Define and subst.
325 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
328 * java/io/LineNumberReader.java (reset): Pass correct arguments to
331 2001-06-27 Tom Tromey <tromey@redhat.com>
333 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
336 2001-06-25 Tom Tromey <tromey@redhat.com>
338 * scripts/encodings.pl: Generate lower-case names. Updated URL
339 for `character-sets' file.
340 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
342 Rebuilt list of aliases.
344 2001-06-25 Tom Tromey <tromey@redhat.com>
346 * java/io/natFileDescriptorPosix.cc (open): Change error message
347 formatting. From David Brownell.
349 2001-06-21 Tom Tromey <tromey@redhat.com>
351 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
354 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
356 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
357 extraneous/malformed sign word.
359 2001-06-15 Tom Tromey <tromey@redhat.com>
361 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
363 2001-06-15 Tom Tromey <tromey@redhat.com>
365 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
366 NULL if no library on the list has the symbol.
367 (init): Call add_library on the program itself.
368 * prims.cc (JvRunMain): Initialize Runtime before searching for
370 (_Jv_RunMain): Likewise.
372 2001-06-15 Tom Tromey <tromey@redhat.com>
374 * jni.cc (ClassClass): Removed; updated all users.
375 (ObjectClass): Likewise.
376 (ThrowableClass): Likewise.
377 (MethodClass): Likewise.
378 (ThreadGroupClass): Likewise.
379 (local_ref_table): Renamed from `ref_table'.
380 (global_ref_table): New global.
381 (_Jv_JNI_Init): Initialize both ref tables.
382 (mark_for_gc): Added `ref_table' parameter.
383 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
385 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
386 (_Jv_JNI_DeleteGlobalRef): Likewise.
387 (_Jv_JNI_DeleteLocalRef): Likewise.
388 (_Jv_JNI_NewLocalRef): Likewise.
389 (_Jv_JNI_PopLocalFrame): Likewise.
390 (_Jv_JNI_GetStringChars): Likewise.
391 (_Jv_JNI_ReleaseStringChars): Likewise.
392 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
393 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
395 2001-06-14 Tom Tromey <tromey@redhat.com>
397 Fix for PR libgcj/3144:
398 * java/util/Date.java: Merged with Classpath.
400 2001-06-12 Tom Tromey <tromey@redhat.com>
402 * aclocal.m4, configure: Rebuilt.
403 * acinclude.m4: Find configure.host in srcdir.
405 2001-06-07 Tom Tromey <tromey@redhat.com>
407 Fix for PR libgcj/3059:
408 * java/lang/natSystem.cc (init_properties): Define `java.home'.
409 * Makefile.in: Rebuilt.
410 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
412 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
414 * exception.cc (cstdlib): Replaces stdlib.h.
415 (_Jv_Throw): Use std::abort().
416 (PERSONALITY_FUNCTION): Likewise.
418 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
420 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
421 nothing, as in autoconf 2.50.
422 * aclocal.m4, configure: Rebuilt.
424 2001-06-08 Tom Tromey <tromey@redhat.com>
426 * configure: Rebuilt.
427 * configure.in: Compute new aux dir using `pwd'.
429 2001-06-07 Tom Tromey <tromey@redhat.com>
431 For PR bootstrap/3075:
432 * configure, aclocal.m4, Makefile.am: Rebuilt.
433 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
434 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
435 relative to libgcj_basedir.
436 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
437 AC_CANONICAL_SYSTEM here.
438 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
440 ($(extra_headers)): New target.
442 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
443 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
445 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
446 table index is within allowed bounds. Ensure that we dont try to access
447 class itable at a negative offset. Avoid an ancestor table lookup if
448 source is a primitive type class.
449 (isInstance): Remove redundant isPrimitive() check.
451 2001-06-04 Tom Tromey <tromey@redhat.com>
453 * java/security/PublicKey.java: Extend Key.
454 * java/security/PrivateKey.java: Extend Key.
456 2001-06-02 Anthony Green <green@redhat.com>
458 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
459 alternate when USE_LTDL not defined.
461 2001-06-02 Anthony Green <green@redhat.com>
463 * configure: Rebuild.
464 * configure.in: Remove data_start hack.
465 * libgcj.spec.in: Ditto.
466 * Makefile.in: Rebuild.
467 * Makefile.am: Ditto.
468 * libgcjdata.c: Remove.
470 2001-06-02 Anthony Green <green@redhat.com>
472 * configure: Rebuild.
473 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
474 --without-libffi option. Tweak --disable-java-net processing.
475 * Makefile.in: Rebuild.
476 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
477 * include/config.h.in: Rebuild.
478 * acconfig.h (USE_LIBFFI): Define.
479 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
481 2001-06-02 Anthony Green <green@redhat.com>
483 * configure: Rebuilt.
484 * configure.in: Test for sigaction on native builds.
485 * prims.cc: Check HAVE_SIGACTION.
486 * include/config.h.in: Rebuilt.
488 2001-05-31 Jeff Sturm <jsturm@one-point.com>
490 * natFile.cc (get_entry): Removed functions.
491 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
492 Allocate enough storage for d_name if using readdir_r.
494 2001-05-31 Tom Tromey <tromey@redhat.com>
496 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
498 (write): Loop until write completes. From Corey Minyard.
500 2001-05-29 Laurent Guerby <guerby@acm.org>
502 * java/awt/geom/Rectangle2D.java: fix doc typo.
504 2001-05-31 Tom Tromey <tromey@redhat.com>
506 * java/sql/DriverManager.java (getDrivers): Handle case where
507 driver's class loader is null. From Corey Minyard.
509 2001-05-29 Tom Tromey <tromey@redhat.com>
511 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
513 * configure: Rebuilt.
514 * configure.in: Only add multilib support code if we just rebuilt
517 2001-05-29 Andrew Haley <aph@redhat.com>
519 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
520 pointer: the dwarf unwinder in libgcc will do everything that's
522 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
523 more than we absolutely need to.
524 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
525 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
527 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
529 * configure: Rebuilt.
530 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
532 (SIGNAL_HANDLER): Use siginfo style handler.
533 (INIT_SEGV): Likewise.
534 (INIT_FPE): Likewise.
535 * include/ppc-signal.h: Delete whole file.
537 2001-05-24 Tom Tromey <tromey@redhat.com>
539 * java/lang/natString.cc (init): Throw
540 ArrayIndexOutOfBoundsException.
541 (getChars): Likewise.
542 (getBytes): Likewise.
545 * configure.in: Only allow hash synchronization when POSIX threads
547 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
550 2001-05-23 Tom Tromey <tromey@redhat.com>
552 * Makefile.in: Rebuilt.
553 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
555 Revert patch of 2001-05-21:
556 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
557 (libgcj_la_LIBADD): Likewise.
558 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
559 (libgcjx_la_LIBADD): Likewise.
561 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
562 * gcj/Makefile.in: Rebuilt.
563 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
564 * gcj/javaprims.h: Include gcj/libgcj-config.h.
565 * gcj/libgcj-config.h.in: New file.
566 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
567 * configure: Rebuilt.
568 * configure.in: Enable hash synchronization by default on some
570 (HASH_SYNC_SPEC): New subst.
571 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
572 Correctly use `test -z' instead of `test -n' in a couple places.
573 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
575 * configure.host (enable_java_net_default): Initialize.
576 (enable_hash_synchronization_default): New variable.
578 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
580 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
581 synchronization in use.
582 (_Jv_MarkArray): Likewise.
583 (_Jv_AllocBytes): Don't check return result.
584 (handle_out_of_memory): New function.
585 (_Jv_InitGC): Set GC_oom_fn.
586 (trace_one_vtable): New global.
587 (_Jv_AllocTraceOne): New function.
588 * configure.in: Added --enable-hash-synchronization.
589 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
590 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
591 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
592 (_Jv_AllocArray): Likewise.
593 (_Jv_AllocBytes): Likewise.
594 (_Jv_AllocPtrFreeObject): New function.
595 (_Jv_AllocTraceOne): Likewise.
596 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
598 (self_cache): New global.
599 (_Jv_ThreadSelf_out_of_line): New function.
600 * prims.cc (_Jv_AllocBytesChecked): Removed.
601 (_Jv_ThrowNoMemory): New function.
602 (_Jv_AllocObject): Don't check for null return from allocator.
603 (_Jv_NewObjectArray): Likewise.
604 (_Jv_AllocPtrFreeObject): New function.
605 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
606 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
607 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
608 * include/boehm-gc.h (_Jv_AllocObj): Define.
609 (_Jv_AllocPtrFreeObj): Define.
610 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
611 (_Jv_ThrowNoMemory): Declare.
612 (_Jv_AllocTraceOne): Declare.
613 (_Jv_AllocBytesChecked): Removed.
614 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
615 _Jv_MutexUnlock): Handle LOCK_DEBUG.
616 (_Jv_ThreadSelf): Handle case where system pthread_self() is
618 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
620 * java/lang/Object.h (sync_info): Conditional upon presence of
621 hash synchronization.
622 * java/lang/natObject.cc: Much new code to handle thin locks and
623 hash synchronization.
624 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
627 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
629 * gij.cc (version): Update copyright year.
631 2001-05-22 Anthony Green <green@redhat.com>
633 * configure.in: Tweak canadian cross test, and don't redefine GCJ
636 2001-05-21 Per Bothner <per@bothner.com>
638 Implement invocation interface; don't create new thread for main.
639 * java/lang/Thread.java (gen_name): Make native.
640 (<init>(Thread,THreadGroup,Runnable,String)): New private
641 constructor, used by other constructors, and _Jv_AttachCurrentThread.
642 * java/lang/natThread.cc (gen_name): New implementation.
643 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
644 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
645 (_Jv_CreateJavaVM): New runtime initialization procedure.
646 (runFirst): New proecdure - mostly code from old FirstThread::run.
647 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
648 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
649 JvDetachCurrentThread): New inline wrappers.
650 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
651 _Jv_DetachCurrentThread): New declarations.
652 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
653 (getMain): new static method.
654 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
655 by runFirst in prims.cc.
656 (java/lang/Thread.h): Update for new invocation interface.
657 * include/posix-threads.h (_Jv_ThreadRegister,
658 _Jv_ThreadUnRegister): New declarations.
659 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
660 (really_start): Use new _Jv_ThreadRegister.
661 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
662 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
663 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
664 Complain of called when _Jv_OnlyThread already set.
665 (_Jv_ThreadStart): Always JvFail.
666 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
667 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
668 * win32-threads.cc (struct starter): Remove objet field -
669 we use _Jv_Thread_t's new thread_obj field instead.
670 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
671 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
672 (really_start): Use new _Jv_ThreadRegister.
673 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
674 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
675 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
676 Removed - no longer needed with new invocation interface.
677 * Makefile.am: Update for removed/added files.
679 2001-05-21 Per Bothner <per@bothner.com>
681 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
682 (libgcj_la_LIBADD): Likewise.
683 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
685 2001-05-21 Per Bothner <per@bothner.com>
687 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
688 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
689 taken from old Integer.toString code.
690 (Integer::valueOf): Use _Jv_FormatInt.
691 * java/lang/Integer.java (toString): Just use call String.valueOf.
692 * java/lang/Long.java (toString): Fix typo in comment.
693 * java/lang/String.java (valueOf(int)): Make native.
694 * java/lang/StringBuffer.java (append(int)): Make native.
695 * java/lang/natStringBuffer.cc: New file, for append(jint).
696 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
698 2001-05-21 Tom Tromey <tromey@redhat.com>
700 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
702 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
704 * include/dwarf2-signal.h: New file.
705 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
706 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
707 * configure: Rebuilt.
709 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
711 * configure.in: Update boehm-gc include dir for new GC version.
712 * configure: Rebuilt.
713 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
715 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
716 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
717 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
720 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
722 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
723 (_Jv_MutexInit): Likewise.
725 2001-05-18 Tom Tromey <tromey@redhat.com>
727 * Makefile.in: Rebuilt.
728 * Makefile.am (awt_java_source_files): Added Polygon.java.
730 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
732 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
733 * gcj/javaprims.h: ... here.
734 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
736 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
738 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
739 with length of ioffset table.
740 (_Jv_IsAssignableFrom): Likewise.
742 2001-05-17 Per Bothner <per@bothner.com>
744 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
746 2001-05-16 Tom Tromey <tromey@redhat.com>
748 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
751 2001-05-15 Tom Tromey <tromey@redhat.com>
753 * java/util/GregorianCalendar.java (computeTime): Only call
756 2001-05-14 Tom Tromey <tromey@redhat.com>
758 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
759 ZONE_OFFSET just before computing the time.
761 2001-05-12 Zack Weinberg <zackw@stanford.edu>
763 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
764 * Makefile.in: Regenerate (by hand).
765 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
766 * doc/cni.sgml: Document #pragma GCC java_exceptions.
768 2001-05-11 Richard Henderson <rth@redhat.com>
770 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
771 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
773 2001-05-11 Richard Henderson <rth@redhat.com>
775 * exception.cc: Include unwind-pe.h. Remove all pointer
778 2001-05-10 Tom Tromey <tromey@redhat.com>
780 * Makefile.in: Rebuilt.
781 * Makefile.am (awt_java_source_files): Added Polygon.java.
782 * java/awt/Polygon.java: New file.
784 * java/awt/geom/AffineTransform.java
785 (setToRotation(double,double,double)): New method.
786 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
787 (setToShear): Likewise.
789 2001-05-10 Tom Tromey <tromey@redhat.com>
791 * java/util/GregorianCalendar.java: Imported from Classpath.
792 * gnu/java/locale/LocaleInformation_nl.java: New file from
794 * gnu/java/locale/LocaleInformation_en.java: Likewise.
795 * gnu/java/locale/LocaleInformation_de.java: Likewise.
796 * gnu/java/locale/LocaleInformation.java: Likewise.
797 * natGregorianCalendar.cc: Removed.
798 * Makefile.in: Rebuilt.
799 * Makefile.am (nat_source_files): Removed
800 natGregorianCalendar.cc.
802 2001-05-10 Tom Tromey <tromey@redhat.com>
804 * java/text/SimpleDateFormat.java (computeCenturyStart): New
806 (defaultCenturyStart): Use it.
807 (readObject): Likewise.
808 (SimpleDateFormat): Clear the calendar. Set the grouping on the
810 (parse): Copy the calendar before modifying it. Correctly handle
813 * java/util/Calendar.java (clear): Set field value(s) to 0.
815 2001-05-10 Jeff Sturm <jsturm@one-point.com>
817 * Calendar.java (get): Clear areFieldsSet if requested field
819 (set): Unset fields that depend on new value.
821 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
823 * java/lang/Class.h (_Jv_Self): New union type.
824 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
825 Jeff Sturm and Fergus Henderson.
827 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
829 * java/lang/ClassLoader.java: Remove dead code fragment.
831 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
833 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
835 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
837 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
839 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
840 * configure.host (EXCEPTIONSPEC): New.
841 * configure.in (EXCEPTIONSPEC): New.
842 * configure: Rebuilt.
844 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
846 * doc/*.texi: Remove generated documentation.
848 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
850 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
851 (performDelete): Fix #endif placement.
853 2001-04-27 Zack Weinberg <zackw@stanford.edu>
855 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
856 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
857 (_Jv_ThreadDestroyData): Use _Jv_Free.
858 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
861 2001-04-27 Tom Tromey <tromey@redhat.com>
863 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
865 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
867 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
869 * include/jni.h (struct JNINativeInterface): Fixed types in
870 Get/Set*ArrayRegion declarations.
871 (class _Jv_JNIEnv): Likewise.
873 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
875 * configure.in: Obtain THREADS with `gcc -v'.
876 * configure: Rebuilt.
878 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
881 * java/io/ObjectStreamClass.java (setClass): Calculate
882 serialVersionUID for local class and compare it against the UID
883 from the Object Stream. Throw InvalidClassException upon mismatch.
884 (setUID): Renamed to...
885 (getClassUID): this. Return the calculated class UID rather than
886 setting uid field directly.
887 (getDefinedSUID): Removed.
888 * java/io/ObjectInputStream.java (resolveClass): Use the
889 three-argument Class.forName().
890 * java/io/InvalidClassException (toString): Don't include classname in
891 result if it is null.
893 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
895 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
896 Wrap use of inet_pton in HAVE_INET6.
898 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
900 java.security merge and ClassLoader compliance fixes.
902 * java/lang/Class.h (Class): Include ProtectionDomain.h.
903 New protectionDomain field.
904 (forName): Add initialize parameter. Fixes declaration to comply with
906 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
907 variant. Honour "initialize" flag.
908 (getProtectionDomain0): New method.
909 * java/lang/Class.java: Fix forName() declaration.
910 (getPackage): New method based on Classpath implementation.
911 (getProtectionDomain0): New native method decl.
912 (getProtectionDomain): New method.
913 * java/lang/ClassLoader.java (getParent): Now final.
914 (definedPackages): New field.
916 (defineClass): New variant with protectionDomain argument.
917 (definePackage): New.
919 (findSystemClass): Now final.
920 (getSystemResourceAsStream): Remove redundant "final" modifier.
921 (getSystemResource): Remove redundant "final" modifier.
922 (getResources): Now final.
923 (protectionDomainPermission): New static field.
924 (unknownProtectionDomain): Ditto.
925 (defaultProtectionDomain): Ditto.
926 (getSystemClassLoader): Now non-native.
927 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
928 arguments for Class.forName().
929 * java/lang/Package.java: New file.
930 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
931 (instance): Static initialize singleton.
932 (findClass): Override this, not findSystemClass.
933 * java/lang/natClassLoader.cc (defineClass0): Set class's
934 protectionDomain field as specified.
935 (getSystemClassLoader): Removed.
936 (findClass): Renamed from findSystemClass. Call the interpreter via
937 URLClassLoader.findClass if loading class via dlopen fails.
939 * java/security/*.java: java.security import/merge with Classpath.
940 * java/security/acl/*.java: Likewise.
941 * java/security/interfaces/*.java: Likewise.
942 * java/security/spec/*.java: Likewise.
943 * java/net/NetPermission.java: Likewise.
944 * java/net/SocketPermission.java: Likewise.
945 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
947 * Makefile.am: Add new classes.
948 * Makefile.in: Rebuilt.
949 * gcj/javaprims.h: CNI namespace rebuild.
951 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
953 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
954 for libtool tests. Pre-create gnu/classpath/Configuration.java.
955 * configure: Rebuilt.
957 2001-04-21 Tom Tromey <tromey@redhat.com>
959 * Makefile.in: Rebuilt.
960 * Makefile.am (awt_java_source_files): Added Line2D.java.
961 * java/awt/geom/Line2D.java: Wrote.
963 * java/awt/Menu.java (addNotify): Wrote.
965 * java/awt/PopupMenu.java (addNotify): Implemented.
968 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
969 * java/awt/List.java (addNotify): Call super.addNotify.
970 * java/awt/Label.java (addNotify): Call super.addNotify.
971 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
972 * java/awt/Dialog.java (addNotify): Call super.addNotify.
973 * java/awt/Choice.java (addNotify): Call super.addNotify.
974 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
975 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
977 * java/awt/List.java (replaceItem): Notify peer.
979 * java/awt/geom/Rectangle2D.java
980 (Float.setRect(float,float,float,float)): New method.
982 * java/awt/event/ContainerEvent.java (getContainer): Now returns
985 * java/awt/RenderingHints.java (Key): Class now public.
987 * java/awt/Rectangle.java (Rectangle): Now implements
989 (getPathIterator): Removed.
991 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
994 * java/awt/FileDialog.java: Wrote.
996 * java/awt/EventQueue.java (isDispatchThread): Now public.
997 (invokeLater): Likewise.
999 * java/awt/Component.java (setCursor): Update peer.
1000 (getFontMetrics): Use peer.
1002 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1005 2001-04-20 Tom Tromey <tromey@redhat.com>
1007 * java/awt/List.java: Wrote.
1008 * java/awt/Dialog.java: Wrote.
1010 2001-04-20 Warren Levy <warrenl@redhat.com>
1012 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1013 * java/text/SimpleDateFormat.java
1014 (indexInArray): Removed private method.
1015 (processYear): Removed private method.
1016 (parseLenient): Removed private method.
1017 (parseLeadingZeros): Removed private method.
1018 (parseStrict): Removed private method.
1019 (expect): Added new private method.
1020 (parse): Reverted to pre-Classpath merge version with minor fixes.
1021 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1024 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1026 * java/io/File.java (normalizePath): New private method.
1027 (File (String)): Use normalizePath().
1028 (File (String, String)): Likewise.
1030 * Makefile.am (libffi_files): Removed.
1031 (libgcj.la): Link libffi as a convenience library instead of
1032 refering to its object files directly.
1033 * Makefile.in: Rebuilt.
1035 2001-04-08 Per Bothner <per@bothner.com>
1037 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1038 Recalculate hash, since Utf8Const's hash is only 16 bits.
1040 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1041 bits of hash to calculate step for chaining.
1043 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1044 when 2/3 full, rather than 3/4 full.
1046 2001-04-06 Tom Tromey <tromey@redhat.com>
1048 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1049 (wrap_value<T*>): New specialization.
1050 (_Jv_JNI_PopLocalFrame): Update env->locals.
1052 2001-04-05 Tom Tromey <tromey@redhat.com>
1054 * libtool-version: Updated current.
1056 2001-04-04 Andreas Jaeger <aj@suse.de>
1058 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1059 * gcj/Makefile.in: Rebuilt.
1060 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1061 * Makefile.in: Rebuilt.
1062 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1063 * testsuite/Makefile.in: Rebuild.
1064 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1065 * include/Makefile.in: Rebuild.
1067 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1069 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1070 compiled test', not 'execution from source compiled test'.
1071 Use UNTESTED, not XFAIL, for tests which are not run because
1072 they depend on a previous test which failed.
1074 2001-04-02 Richard Henderson <rth@redhat.com>
1076 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1077 the same tree as gcc.
1078 * configure: Rebuilt.
1080 * exception.cc (_Jv_Throw): Clarify commentary.
1082 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1084 * jni.cc (wrap_value<jclass>): New specialization.
1086 2001-04-02 Tom Tromey <tromey@redhat.com>
1088 * java/io/PrintStream.java (out): Removed field. Fixes PR
1090 (write): Call flush, not out.flush, per spec.
1091 (close): Flush output stream, per spec. Handle
1092 InterruptedIOException.
1093 (checkError): Likewise.
1094 (flush, print, write): Handle InterruptedIOException per spec.
1095 (PrintStream): Don't create BufferedOutputStream.
1096 (work_bytes): New field.
1097 (writeChars): Use work_bytes. Don't assume `out' is a
1098 BufferedOutputStream.
1100 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1102 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1105 2001-03-30 Tom Tromey <tromey@redhat.com>
1107 * jni.cc (add_char): Correctly encode non-ascii characters.
1108 (add_char): Define even when INTERPRETER not defined.
1109 (mangled_name): Likewise.
1110 (_Jv_GetJNIEnvNewFrame): Likewise.
1111 (_Jv_LookupJNIMethod): Likewise.
1113 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1115 * configure.host: Enable interpreter for PPC.
1117 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1119 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1120 to "file.separator", "path.separator", and "java.io.tmpdir" property
1122 * java/io/File.java: Likewise.
1123 * java/io/natFile.cc (init_native): Likewise.
1124 * java/io/natFileWin32.cc (init_native): Likewise.
1126 2001-04-01 Per Bothner <per@bothner.com>
1128 * java/lang/natString.cc (intern): If string's data does not point to
1129 this String, make a fresh String that does.
1131 * java/lang/natString.cc (unintern): Replace by static function.
1132 * java/lang/String.java (unintern): Remove method.
1134 2001-04-01 Per Bothner <per@bothner.com>
1136 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1137 (finish): def.deflate needs to be called in a loop.
1138 (inbuf, inbufLength): New private fields.
1139 (write(int)): Use inbuf.
1140 (write(byte[],int,int): Check if pending output in inbuf.
1141 * ZipOutputStream.java: Don't use Deflater if stored.
1142 Use a Checksum object directly, not via a CheckedOutputStream.
1143 (uncompressed_size): New field,
1144 (closeEntry): Only write data_directory if needed.
1145 (write): If STORED, write directly.
1146 Always update crc, and uncompressed_size.
1147 (write_entry): Fix lots of protocol erors.
1149 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1151 1.3-Compliant Implementation of java.io.File.
1152 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1153 "path.separator", and "java.io.tmpdir" from the File class, instead
1154 of setting them explicitly.
1155 * java/io/File.java: Do not canonicalize paths for security manager
1156 checks. Call init_native() from static initializer. Do not pass path
1157 argument to native methods. New native method declarations. Some
1158 security manager checks moved to checkWrite().
1159 (equals): Check file system case sensitivity and act appropriatly.
1160 (hashCode): Likewise.
1161 (isHidden): New method implemented.
1162 (performList): Changed prototype. Now takes a class argument specifying
1163 the class of the returned array: Strings or File objects. Also added
1164 FileFilter argument.
1165 (listFiles): New variants with "File" return type implemented.
1166 (createTempFile): Use createNewFile(). Use maxPathLen.
1167 (setReadOnly): New method implemented.
1168 (listRoots): Likewise.
1169 (compareTo): Likewise.
1170 (setLastModified): Likewise.
1171 (checkWrite): New method.
1173 * java/io/natFile.cc: Various functions no longer take canonical path
1175 (stat): Handle ISHIDDEN query.
1176 (isAbsolute): Remove WIN32 cruft.
1177 (performList): New arguments. Handle returning either File[] or String[]
1178 arrays. Check with FileFilter or FilenameFilter arguments as
1179 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1180 (performSetReadOnly): New method implemented.
1181 (performListRoots): Likewise.
1182 (performSetLastModified): Likewise.
1183 (performCreate): Likewise.
1184 (init_native): New initialization function.
1185 * java/io/natFileWin32.cc: Various functions no longer take canonical
1187 (stat): Add FIXME about ISHIDDEN query.
1188 (performList): New arguments. Handle returning either File[] or String[]
1189 arrays. Check with FileFilter or FilenameFilter arguments as
1190 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1191 (performSetReadOnly): New. Stubbed.
1192 (performListRoots): Likewise.
1193 (performSetLastModified): Likewise.
1194 (performCreate): Likewise.
1195 (init_native) New initialization function.
1196 * configure.in: Check for utime() and chmod().
1197 * configure: Rebuilt.
1198 * include/config.h.in: Rebuilt.
1200 Resolves PR libgcj/1759.
1202 2001-03-28 Richard Henderson <rth@redhat.com>
1204 IA-64 ABI Exception Handling:
1205 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1206 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1207 Remove EXCEPTIONSPEC.
1208 * configure.host (libgcj_sjlj): Remove.
1209 * configure.in (EXCEPTIONSPEC): Remove.
1210 (enable-sjlj-exceptions): Detect if not specified.
1211 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1212 what header we're looking for.
1213 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1214 * Makefile.in, configure: Regenerate.
1215 * exception.cc: Don't declare libgcc2 stuff.
1216 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1217 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1218 (win32_get_restart_frame): Remove.
1219 (struct java_exception_header): New.
1220 (__gcj_exception_class): New.
1221 (get_exception_header_from_ue): New.
1222 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1223 (size_of_encoded_value, read_encoded_value): New.
1224 (read_uleb128, read_sleb128, parse_lsda_header): New.
1225 (get_ttype_entry, __gcj_personality_sj0): New.
1226 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1228 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1230 * javax/naming/InitialContext.java (init): Fix typo.
1231 (composeName): Remove unnecessary semicolon.
1232 (addToEnvironment): Remove unnecessary semicolon.
1233 (addToEnvironment): Use put() instead of add().
1235 * javax/naming/InitialContext.java (InitialContext):
1237 (destroySubcontext): Method doesn't return a result.
1238 * javax/naming/Context.java: Import java.util.Hashtable.
1239 * javax/naming/Name.java: Import java.util.Enumeration.
1241 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1243 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1244 objects in subdirectories.
1245 * Makefile.in: Rebuilt.
1247 2001-03-25 Richard Henderson <rth@redhat.com>
1249 * exception.cc (java_eh_info): Make value type jthrowable.
1250 (_Jv_type_matcher): Remove now unneeded cast.
1251 (_Jv_Throw): Make argument type jthrowable. Munge name
1252 for SJLJ_EXCEPTIONS here ...
1253 * gcj/cni.h: ... not here.
1255 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1257 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1258 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1259 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1260 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1261 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1262 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1263 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1264 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1265 java/lang/natDouble.cc, java/lang/natObject.cc,
1266 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1267 java/lang/natString.cc, java/lang/natSystem.cc,
1268 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1269 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1270 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1271 java/util/zip/natInflater.cc:
1272 Use throw, not JvThrow or _Jv_Throw.
1274 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1276 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1277 paramater, bump it to 1.
1278 * java/util/Hashtable.java (Hashtable): Likewise.
1280 2001-03-23 Per Bothner <per@bothner.com>
1282 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1283 check for errors, since we don't want to throw exception on
1284 overflow/underflow. Instead, trim whitespace, and then check that
1285 _strtod_r uses up all the rest of the string.
1287 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1288 ancestors array is invalid for interfaces, so do that *after*
1289 check that the target type is not an interface.
1291 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1293 * prims.cc (_Jv_FindClassFromSignature): Check return of
1294 recursive call. Do not abort on invalid signature; return NULL
1297 2001-03-22 Tom Tromey <tromey@redhat.com>
1299 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1300 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1302 * include/jvm.h (_Jv_ResolveField): Declare.
1303 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1304 * resolve.cc (_Jv_ResolveField): No longer conditional on
1307 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1309 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1310 for libtool hacking.
1311 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1312 to a temporary file, then invoke libtool with the -objectlist
1314 (libgcjx.la): Likewise.
1315 * Makefile.in: Rebuilt.
1317 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1319 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1321 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1323 * jni.cc (add_char): Handle `.' like `/'.
1325 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1327 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1328 initialize if exception_types is null.
1329 * java/lang/reflect/Constructor.java: Likewise.
1330 * java/lang/reflect/natConstructor.cc (getType): Initialize
1331 exception_types to an empty Object array.
1333 2001-03-21 Tom Tromey <tromey@redhat.com>
1335 * configure: Rebuilt.
1336 * configure.in (GCJFLAGS): Subst.
1337 * Makefile.in: Rebuilt.
1338 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1339 (gij_LDFLAGS): Likewise.
1340 (JC1FLAGS): Added GCJFLAGS and removed -g.
1342 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1343 read/write case. Fixes PR libgcj/2338.
1345 2001-03-20 Warren Levy <warrenl@redhat.com>
1347 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1348 and corrected SimpleTimeZone's for the timezones hash table.
1350 2001-03-19 Per Bothner <per@bothner.com>
1352 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1353 "canonicalize" "../../xxx" to "/xxx".
1355 2001-03-19 Mark Wielaard <mark@klomp.org>
1357 * java/util/ArrayList.java: Remove RCS keywords from comments
1358 * java/util/BasicMapEntry.java: idem
1359 * java/util/Dictionary.java: idem
1360 * java/util/HashSet.java: idem
1362 * java/util/EventObject.java: reindent
1363 * java/util/Properties.java: idem
1364 * java/util/SortedMap.java: idem
1366 * java/util/Enumeration.java: Merge with Classpath
1367 * java/util/EventListener.java: idem
1368 * java/util/Observable.java: idem
1369 * java/util/Observer.java: idem
1370 * java/util/Stack.java: idem
1372 2001-03-17 Tom Tromey <tromey@redhat.com>
1374 * java/lang/natString.cc (rehash): Don't bother with memset;
1375 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1377 (UNMASK_PTR): New macro.
1378 (intern): Unmask pointer before returning it. Register finalizer
1380 (unintern): Handle case where
1381 (MASK_PTR): New macro.
1382 (PTR_MAKSED): Likewise.
1383 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1385 2001-03-01 Andrew Haley <aph@redhat.com>
1387 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1388 stackTrace buffer to a correctly aligned pointer array.
1390 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1392 * java/lang/Runtime.java (_exit): Declare new package-private native.
1393 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1394 without a security manager check.
1395 (exit): Call _exit after security check.
1396 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1398 * java/lang/System.java (setSecurityManager): If a security manager
1399 is already in place, call checkPermission.
1400 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1401 throws an exception, try to deal with it gracefully.
1402 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1403 Only try to print the subordinate stack trace if "exception" is set.
1404 Print our class name first.
1406 2001-03-08 Tom Tromey <tromey@redhat.com>
1408 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1409 info for array classes.
1410 Fixes PR libgcj/1971.
1412 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1414 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1417 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1419 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1420 instead of the new JDK1.2 API. This is simpler and makes
1421 back-porting the classes to JDK1.1 trivial.
1422 (readObject): likewise.
1424 2001-03-01 Per Bothner <per@bothner.com>
1426 Changes merged from Kawa's gnu.math.
1427 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1428 (rshift(int[],int[],int,int): Removed - not needed.
1429 (gcd): Use rshift0 rather than rshift.
1430 * java/math/BigInteger.java (setShiftRight): Likewise.
1431 (divide): Simplify by using rshift0.
1432 (divide): Zero-extend results if high-order bit set.
1434 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1436 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1439 2001-02-23 Per Bothner <per@bothner.com>
1441 Change to sometimes include class name in ClassFormatError message.
1442 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1443 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1444 boolean instead of throwing ClassFormatError on failure.
1445 (throw_class_format_error): Change static function to method.
1446 (_Jv_ClassReader): New inline methods verify_identifier,
1447 two overloads of verify_classname, verify_field_signature, and
1448 verify_method_signature
1449 * include/java-interp.h: Update declarations to return bool.
1450 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1451 ClassFormatError since _Jv_VerifyClassName now returns bool.
1453 2001-02-23 Per Bothner <per@bothner.com>
1455 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1456 c++filt to select java-style output.
1458 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1460 Fix for PR java/2040:
1461 * java/util/HashMap.java (HashMap): Don't throw exception for
1462 loadFactor > 1. Add exception messages.
1463 * java/util/Hashtable.java (Hashtable): Likewise.
1465 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1467 Disable libgcjx by default.
1468 * configure.in: Add support for --enable-java-awt configure option.
1469 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1470 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1471 * Makefile.in: Rebuilt.
1472 * configure: Rebuilt.
1474 2001-02-20 Tom Tromey <tromey@redhat.com>
1476 * java/io/PipedWriter.java (flush): Throw exception if stream
1478 * java/io/OutputStreamWriter.java (write): Throw exception if
1480 (writeChars): Don't throw exception if stream closed.
1481 * java/io/CharArrayWriter.java (closed): New field.
1483 (flush): Throw exception if stream closed.
1484 (reset): Synchronize on correct lock. Allow stream to be
1486 (toCharArray, toString, writeTo): Synchronize.
1487 (write): Throwe exception if stream closed.
1488 * java/io/BufferedWriter.java (close): Clear `buffer'.
1489 (flush): Throw IOException if stream is closed.
1492 2001-02-16 Tom Tromey <tromey@cygnus.com>
1494 * java/lang/ThreadGroup.java (activeCount): Only include threads
1496 (enumerate): Likewise.
1498 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1500 * java/lang/Integer.java (getInteger): Return default argument if
1501 property is not set. Don't call decode with null argument.
1502 * java/lang/Long.java (getLong): Likewise.
1504 * java/io/CharArrayReader.java (CharArrayReader): Throw
1505 IllegalArgumentException if constructor arguments are illegal.
1506 (ready): Return false if no more characters can be read.
1507 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1509 2001-02-17 Mark Wielaard <mark@klomp.org>
1511 * java/util/TimerTask.java: New version from Classpath.
1513 2001-02-17 Mark Wielaard <mark@klomp.org>
1515 Remerge with Classpath
1516 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1517 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1518 (readByte): Use convertToByte().
1519 (readChar): Use convertToChar().
1520 (readInt): Use convertToInt().
1521 (readLong): Use convertToLong().
1522 (readShort): Use convertToShort().
1523 (readUnsignedByte): Use convertToUnsignedByte().
1524 (readUnsignedShort): Use convertToUnsignedShort().
1525 (readUTF): Use convertToUTF().
1527 (convertToBoolean): Resurrected.
1528 (convertToByte): Ditto.
1529 (convertToChar): Ditto.
1530 (convertToInt): Ditto.
1531 (convertToLong): Ditto.
1532 (convertToShort): Ditto.
1533 (convertToUnsignedByte): Ditto.
1534 (convertToUnsignedShort): Ditto.
1535 (convertToUTF): Ditto.
1537 2001-02-17 Mark Wielaard <mark@klomp.org>
1541 2001-02-17 Mark Wielaard <mark@klomp.org>
1543 * java/io/DataInputStream.java: update copyright notice
1544 * java/io/PrintWriter.java: idem
1545 * java/io/Reader.java: idem
1546 * java/io/StreamTokenizer.java: idem
1547 * java/io/StringReader.java: idem
1548 * java/lang/reflect/ReflectPermission.java: idem
1550 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1552 * java/util/TreeSet.java (clone): Made subclass safe, use
1553 super.clone(), not new.
1554 * java/util/TreeMap.java (clone): Likewise.
1556 * java/util/TreeMap.java (nil): Made non-final.
1557 (clone): Create new nil node for copy.
1559 * java/util/HashSet.java (clone): Made subclass safe, use
1560 super.clone(), not new.
1562 2001-02-14 Andrew Haley <aph@redhat.com>
1564 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1567 2001-02-15 Anthony Green <green@redhat.com>
1569 * defineclass.cc: Don't include alloca.h.
1570 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1571 * interpret.cc (run_normal): Ditto.
1573 * java/lang/natDouble.cc (parseDouble): Ditto.
1575 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1577 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1579 * java/util/Collections.java (ReverseComparator): New static class.
1580 (reverseOrder): Return static instance of ReverseComparator.
1582 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1583 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1584 Rectangle.clone(), not Object.clone().
1586 * java/util/HashSet.java (clone): Remove try/catch.
1588 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1589 * java/util/Collection.java: Likewise.
1590 * java/util/Comparator.java: Likewise.
1591 * java/util/Dictionary.java: Likewise.
1592 * java/util/Iterator.java: Likewise.
1593 * java/util/ListIterator.java: Likewise.
1594 * java/util/Map.java: Likewise.
1595 * java/util/Set.java: Likewise.
1597 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1599 * java/util/TreeMap.java: New file.
1600 * java/util/TreeSet.java: New file.
1601 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1602 * Makefile.in: Rebuilt.
1603 * java/util/HashSet.java (clone): Use constructor instead of calling
1605 * java/util/SortedSet.java: Sync with classpath.
1606 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1609 * java/lang/natClass.cc (getSignature): Don't try to dereference
1610 param_types if it is null. Instead, take this to mean "no parameters".
1611 * java/lang/TreeMap.java (TreeIterator.next): Throw
1612 NoSuchElementException in preference to ConcurrentModificationException.
1613 (TreeIterator.remove): Throw IllegalStateException in preference to
1614 ConcurrentModificationException.
1615 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1616 throw a NoSuchElementException.
1617 (SubMap.lastKey): Likewise.
1619 2001-02-13 Tom Tromey <tromey@redhat.com>
1621 * java/io/PipedReader.java (ready): Throw IOException if pipe
1623 * java/io/FilterReader.java (close): Don't clear `in'.
1624 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1626 (read, ready, reset, skip): Added exception message.
1627 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1628 Perform checkStatus check inside synchronized block.
1630 2001-02-13 Tom Tromey <tromey@redhat.com>
1632 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1634 2001-02-13 Tom Tromey <tromey@redhat.com>
1636 Fix for PR libgcj/1351:
1637 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1639 Include Thread.h and InterruptedIOException.h.
1641 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1643 * java/io/BlockDataException.java: Removed.
1644 * java/io/ObjectInputStream.java (readObject): Throw
1645 StreamCorruptedException, not BlockDataException.
1646 * Makefile.am: Remove BlockDataException.
1647 * Makefile.in: Rebuild.
1649 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1650 Tom Tromey <tromey@redhat.com>
1652 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1655 2001-02-09 Tom Tromey <tromey@redhat.com>
1657 * java/util/Timer.java: New version from Classpath.
1659 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1661 * java/lang/Double.java (doubleToRawLongBits): Now native.
1662 * java/lang/Float.java (floatToRawIntBits): Likewise.
1663 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1664 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1666 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1668 * java/io/File.java (java.net): Imported.
1669 (getAbsoluteFile): Added.
1670 (getCanonicalPath): Likewise.
1673 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1675 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1676 * java/lang/Integer.java: Likewise.
1677 * java/lang/Long.java: Likewise.
1678 * java/lang/Short.java: Likewise.
1679 * java/lang/Double.java: Likewise.
1680 (doubleToRawLongBits): New method.
1681 * java/lang/Float.java: As above.
1682 (floatToRawIntBits): New method.
1684 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1685 IOException if stream closed.
1687 2001-02-08 Tom Tromey <tromey@redhat.com>
1689 * java/lang/Float.java (parseFloat): New method.
1691 2001-02-08 Tom Tromey <tromey@redhat.com>
1693 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1694 * java/io/InputStreamReader.java (ready, read): Throw IOException
1695 if stream has been closed.
1697 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1699 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1700 Change sources.redhat.com and sourceware.cygnus.com references to
1703 2001-02-07 Tom Tromey <tromey@redhat.com>
1705 Fix for PR libgcj/1906:
1706 * java/text/MessageFormat.java (setLocale): Use named class
1709 (format(Object,StringBuffer,FieldPosition)): Special case if
1710 argument is an Object[].
1712 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1714 * java/util/Arrays.java: Removed "cmp" methods.
1715 (qsort): Don't use "cmp".
1718 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1720 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1721 sort. Fix for PR java/1895.
1723 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1725 * configure.host: Use sjlj-exceptions for Alpha.
1727 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1729 * libgcj.spec.in: Don't force static libgcc into the executable.
1730 * configure.in (FORCELIBGCCSPEC): Removed.
1731 * configure: Rebuilt.
1733 2001-01-31 Tom Tromey <tromey@redhat.com>
1735 * Makefile.in: Rebuilt.
1736 * Makefile.am (LTCXXCOMPILE): New macro.
1738 2001-01-26 Andrew Haley <aph@redhat.com>
1740 (INIT_FPE): Use a direct system call to set the handler.
1742 2001-01-27 Richard Henderson <rth@redhat.com>
1744 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1746 2001-01-27 Tom Tromey <tromey@redhat.com>
1748 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1749 native interface structure.
1751 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1753 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1755 (read (byte[], int, int)): Only call readNextBlock() if the block
1756 buffer would actually be overrun. Increment blockDataPosition.
1757 (callReadMethod): Propagate exceptions from invocation target.
1758 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1759 exceptions from invocation target.
1761 2001-01-26 Tom Tromey <tromey@redhat.com>
1763 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1764 to internal representation.
1765 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1766 _Jv_FindClassFromSignature.
1768 2001-01-26 Warren Levy <warrenl@redhat.com>
1770 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1771 and timezone if they are available on the system.
1773 2001-01-24 Tom Tromey <tromey@redhat.com>
1775 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1777 2001-01-24 Tom Tromey <tromey@redhat.com>
1779 * Makefile.in: Rebuilt.
1780 * Makefile.am (c_source_files): Added sf_fabs.c.
1781 * java/lang/sf_fabs.c: New file.
1783 2001-01-19 Warren Levy <warrenl@redhat.com>
1785 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1786 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1787 correctly. Adjust properly from 0-23 clock hour.
1789 2001-01-17 Mark Wielaard <mark@klomp.org>
1791 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1793 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1795 * java/lang/Class.h (isInterface): Move implementation from
1796 natClass.cc. Declare inline.
1797 (Class): Add default constructor.
1798 * java/lang/Object.h: Update comments.
1799 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1800 initialize superclass, saving a call if super is already initialized.
1802 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1804 * prims.cc (init_prim_class): Deleted.
1805 (DECLARE_PRIM_TYPE): Rewritten.
1806 * java/lang/Class.h (stdio.h): Include removed.
1807 (stddef.h): Included.
1808 (java/lang/reflect/Modifier.h): Likewise.
1809 (Class): Contructor now takes arguments, initializes fields.
1810 (initializePrim): Prototype deleted.
1811 * java/lang/natClass.cc (initializePrim): Deleted.
1813 2001-01-16 Warren Levy <warrenl@redhat.com>
1815 * java/math/BigInteger.java: Update Copyright year.
1817 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1819 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1822 2001-01-14 Mark Wielaard <mark@klomp.org>
1823 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1824 (decode): Merge comments with Classpath, don't throw Exception
1826 2001-01-12 Tom Tromey <tromey@redhat.com>
1828 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1832 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1833 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1834 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1835 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1836 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1838 * java/lang/natSystem.cc: Include locale.h if it exists.
1839 * configure: Rebuilt.
1840 * configure.in: Check for locale.h.
1842 2001-01-11 Tom Tromey <tromey@redhat.com>
1844 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1845 (Cursor(int), getPredefinedCursor): Throw exception if argument
1848 2001-01-03 Tom Tromey <tromey@redhat.com>
1850 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1851 (getLocationOnScreen): Wrote.
1853 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1855 * Makefile.am: Re-enable dependencies.
1856 * Makefile.in: Rebuilt.
1858 2001-01-10 Warren Levy <warrenl@redhat.com>
1860 * java/math/BigDecimal.java (divide): Fixed comment.
1862 2001-01-10 Warren Levy <warrenl@redhat.com>
1864 Fix for PR libgcj/1596:
1865 * java/math/BigDecimal.java (divide): Check newScale for validity.
1866 Ensure that BigInteger.pow() is called with a non-negative value.
1867 (setScale (int)): New public method.
1868 (setScale (int,int)): New public method.
1870 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1872 Fix for PR libgcj/1338:
1873 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1874 commentChar. Fixed typos in comments.
1876 2001-01-08 Warren Levy <warrenl@redhat.com>
1878 Fix for PR libgcj/1411:
1879 * Makefile.am: Removed java/util/natTimeZone.cc.
1880 * Makefile.in: Rebuilt.
1881 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1882 missing localized timezone names.
1883 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1884 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1885 (init_properties): Set user.timezone property.
1886 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1887 default timezone names; removed non-standard ones. Use standard
1889 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1891 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1893 (getDefaultTimeZoneId): Removed.
1895 * java/util/natTimeZone.cc: Removed.
1897 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1899 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1900 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1901 (_Jv_GetArrayClass): New inline function.
1902 (arrayclass): New field.
1903 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1904 _Jv_GetArrayElementFromElementType.
1905 (_Jv_NewPrimArray): Ditto.
1906 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1907 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1908 Set Modifier::ABSTRACT.
1909 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1910 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1911 Now synchronized. Array classes are now referenced from
1912 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1913 Set array classes' accessibility flags correctly. Optimize so that
1914 all array classes share the same IDT.
1915 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1916 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1917 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1918 in superclasses from overwriting classes own fields.
1919 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1920 Modifier::isAbstract().
1921 (null_idt): New static field.
1922 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1924 (_Jv_IndexOf): Made inline.
1925 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1927 2001-01-08 Tom Tromey <tromey@redhat.com>
1929 Fix for PR java/1586:
1930 * Makefile.in: Rebuilt.
1931 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1933 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1935 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1936 from the c++ compiler.
1937 * Makefile.in: Rebuilt.
1939 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1941 All files with updated copyright.
1942 * prims.cc (class _Jv_PrimClass): Removed.
1943 (init_prim_class): New function.
1944 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1945 `_Jv_PrimClass' in primitive type declarations. Assign to the
1946 value returned by `init_prim_class.'
1947 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1948 primitive type declarations.
1949 (JvPrimClass): Cast to `jclass' removed.
1950 * java/lang/Class.h (Class): New constructor.
1951 (Class): New copy constructor.
1952 (initializePrim): New prototype.
1953 (_Jv_PrimClass): Field removed.
1954 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1955 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1956 (class java::lang::Object): `finalize' moved up front.
1957 * java/lang/natClass.cc
1958 (isAssignableFrom): Turned outline.
1959 (isInstance): Likewise.
1960 (isInterface): Likewise, fixed indentation.
1961 (initializePrim): New function.
1963 2001-01-07 Anthony Green <green@redhat.com>
1965 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1967 * Makefile.in: Rebuilt.
1969 * scripts/TexinfoDoclet.java: New file.
1971 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1972 doc/java-awt-color.texi, doc/java-lang.texi,
1973 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1974 doc/java-awt-event.texi, doc/java-net.texi,
1975 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1976 doc/java-awt-image.texi, doc/java-security.texi,
1977 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1978 doc/java-text.texi, doc/java-beans-beancontext.texi,
1979 doc/java-util-jar.texi, doc/java-beans.texi,
1980 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1981 doc/java-lang-ref.texi: New files.
1983 2001-01-07 Anthony Green <green@redhat.com>
1985 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1986 be used for both input and output, so don't clear doInput.
1988 * java/lang/StringBuffer.java: Fix comments.
1990 2001-01-06 Anthony Green <green@redhat.com>
1992 * java/beans/PropertyDescriptor.java: Fix comment.
1993 * java/io/PushbackReader.java: Fix comment.
1994 * java/io/ObjectStreamClass.java: Fix comment.
1995 * java/io/DataInputStream.java: Fix comment.
1996 * java/io/PipedInputStream.java: Fix comments.
1997 * java/io/PipedReader.java: Fix comments.
1998 * java/sql/DatabaseMetaData.java: Fix comments.
2000 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2002 * java/io/PipedReader: Synchronize on "lock" instead of this.
2004 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2006 * java/lang/Thread.java: Update comment.
2008 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2009 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2010 * java/io/PipedReader: New implementation based on new
2012 * java/io/PipedWriter: Updated to match new PipedReader.
2014 2001-01-03 Tom Tromey <tromey@redhat.com>
2016 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2017 (getViewportSize): Insets include scrollbar size.
2018 (doLayout): Finished.
2019 (getScrollPosition): Wrote.
2020 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2022 2001-01-02 Tom Tromey <tromey@redhat.com>
2024 * java/awt/ScrollPane.java: Wrote.
2025 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2028 * java/awt/Panel.java (Panel()): Fixed.
2030 * java/awt/Component.java (isShowing): Return false if no peer
2031 exists, and true if component is visible and no parent exists.
2032 (getLocationOnScreen): Wrote.
2033 (getPreferredSize): Removed FIXME comment.
2034 (getMinimumSize): Likewise.
2035 (getAlignmentX, getAlignmentY): Wrote.
2037 (requestFocus): Wrote.
2038 (transferFocus): Wrote.
2039 (findNextFocusComponent): New method.
2040 (hasFocus()): Wrote.
2041 (checkImage): Wrote.
2042 (enableEvents): Call setEventMask on the peer.
2044 * java/awt/Container.java (list): Use super.list() to print self.
2045 (findNextFocusComponent): New method.
2046 (setLayout): Call invalidate.
2047 (findComponentAt): Wrote.
2049 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2051 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2052 the correct versions of various linuxthreads functions get linked.
2053 * Makefile.in: Rebuilt.
2054 * java/lang/natThread.cc (finalize_native): New static function. Call
2055 _Jv_ThreadDestroyData.
2056 (initialize_native): Register finalizer for "data".
2057 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2058 (_Jv_ThreadDestroyData): New prototype.
2059 * include/win32-threads.h: Ditto.
2060 * include/no-threads.h: Ditto.
2061 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2062 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2063 move mutex and condition variable destroy code from:
2064 (really_start): ...here.
2065 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2066 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2067 (_Jv_ThreadDestroyData): Implemented.
2068 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2069 (_Jv_AllocArray): Ditto.
2071 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2073 * java/sql/DriverManager.java (getConnection): Don't set user/password
2076 2000-12-27 Warren Levy <warrenl@redhat.com>
2078 Fix for PR libgcj/1358:
2079 * java/lang/System.java: Update Copyright date properly.
2080 * java/util/Calendar.java: Fix typo in comment.
2081 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2082 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2083 initialize times. Spec says to set H:M:S values to zero only if
2085 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2086 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2087 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2088 timezones and GMT offsets, being careful to account for units of
2089 milliseconds vs. seconds.
2091 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2093 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2094 not be assigned to Object.
2096 Fix for PR libgcj/1516:
2097 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2099 (can_widen): Declared inline. Remove redundant checks for void
2100 arguments and char->short conversion. Add special case for boolean
2102 (ffi_type): Declared inline.
2103 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2105 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2107 * java/sql/SQLWarning.java: Fixed typo in comment.
2109 2000-12-26 Tom Tromey <tromey@redhat.com>
2111 * java/awt/MenuItem.java (paramString): Now protected.
2113 * java/awt/MenuShortcut.java: Implements Serializable.
2115 * java/awt/MenuBar.java: Rewrote from scratch.
2117 * java/awt/MenuComponent.java (removeNotify): Wrote.
2118 Implements Serializable.
2120 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2123 * java/awt/CheckboxMenuItem.java: Wrote.
2125 2000-12-25 Tom Tromey <tromey@redhat.com>
2127 * java/awt/MenuContainer.java: Fixed typo.
2129 * Makefile.in: Rebuilt.
2130 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2131 * java/awt/SystemColor.java: New file.
2133 * java/awt/Color.java (rgba): Now package-private.
2135 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2137 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2140 * java/awt/MenuItem.java (addNotify): New method.
2141 (MenuItem(String,MenuShortcut)): New constructor.
2142 (setLabel): Notify peer of change.
2143 (setEnabled): Likewise.
2145 * java/awt/GridLayout.java (toString): New method.
2147 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2148 (FlowLayout): Check for LEADING and TRAILING.
2149 (setAlignment): Likewise.
2150 (layoutContainer): Handle component orientation.
2152 * java/awt/Component.java (orientatin): New field.
2153 (setComponentOrientation): Wrote.
2154 (getComponentOrientation): Wrote.
2156 * java/awt/Event.java (Event): Implements Serializable.
2157 (consumed): New field for serialization.
2158 * java/awt/Dimension.java (Dimension): Implements Serializable.
2159 * java/awt/Cursor.java (Cursor): Implements Serializable.
2160 * java/awt/Container.java (Container): No longer abstract.
2162 * java/awt/Choice.java: Wrote.
2163 * java/awt/Checkbox.java: Wrote.
2164 * java/awt/ItemSelectable.java: Documented.
2165 * java/awt/CheckboxGroup.java: Wrote.
2167 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2169 (getSize): Likewise.
2171 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2173 * java/io/FileDescriptor.java: Initialize fd to -1.
2174 Remove default constructor.
2176 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2178 * java/lang/mprec.h: Change C9X reference to refer to C99.
2180 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2182 * java/lang/Throwable.java (trace_enabled): New static field.
2183 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2184 trace_enabled not set.
2185 * prims.cc (main_init): Turn off trace_enabled while creating
2186 default exception objects.
2188 2000-12-21 Tom Tromey <tromey@redhat.com>
2190 * java/beans/PropertyChangeListener.java: Extends EventListener.
2191 * java/beans/VetoableChangeListener.java: Extends EventListener.
2193 * java/util/zip/Deflater.java (update, init): Now private.
2195 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2197 * java/util/BasicMapEntry.java: Re-added.
2198 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2199 (putAll): Test for BasicMapEntry.
2200 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2201 (putAll): Test for BasicMapEntry.
2202 Change references from `HashMap.Entry' to `Entry' in various places.
2203 * Makefile.am: Add BasicMapEntry.java.
2204 * Makefile.in: Rebuilt.
2206 2000-12-18 Warren Levy <warrenl@redhat.com>
2208 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2209 need to set timezone to a valid non-null value. Partial fix for
2212 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2214 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2216 * java/awt/Button.java (addNotify): Likewise.
2217 * java/awt/Label.java (addNotify): Likewise.
2218 * java/awt/Panel.java (addNotify): Likewise.
2219 * java/awt/Scrollbar.java (addNotify): Likewise.
2220 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2221 Remove redundant null checks.
2223 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2225 * COPYING: Update to current
2226 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2227 to 19yy as example year in copyright notice).
2229 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2231 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2232 end-of-stream if avail_in is 0.
2234 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2236 * java/util/ArrayList.java (data): Declare transient.
2237 (serialPersistantFields): Removed.
2238 (readObject): Use defaultReadObject(), not readFields().
2239 (writeObject): Use defaultWriteObject(), not writeFields().
2241 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2243 * java/util/Hashtable.java (put): Remove `last' variable.
2244 Link new entry to head of list.
2245 * java/util/HashMap.java (put): Ditto.
2247 2000-12-15 Tom Tromey <tromey@redhat.com>
2249 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2250 loader to Class.forName.
2252 2000-12-14 Tom Tromey <tromey@redhat.com>
2254 * java/util/ResourceBundle.java
2255 (getBundle(String,Locale,ClassLoader)): New method.
2256 (trySomeGetBundle): Added `loader' argument.
2257 (partialGetBundle): Likewise.
2259 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2260 maximumFractionDigits, maximumIntegerDigits,
2261 minimumFractionDigits, minimumIntegerDigits): Now
2264 * java/lang/Thread.java (checkAccess): Now final.
2266 * java/lang/RuntimePermission.java: Class now final.
2268 * java/io/StringWriter.java (StringWriter(int)): Now public.
2270 * java/io/SerializablePermission.java (legal_names): Now private.
2272 * java/lang/Character.java: Updated UnicodeBlock constants.
2273 * scripts/blocks.pl: Special case private use and surrogate
2276 2000-12-12 Tom Tromey <tromey@redhat.com>
2278 * Makefile.in: Rebuilt.
2279 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2281 (GCJCOMPILE): Use it.
2284 2000-12-11 Tom Tromey <tromey@redhat.com>
2286 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2287 New static final fields.
2289 * scripts/classes.pl (scan): Skip lines with leading `*'.
2290 Fix for PR libgcj/378.
2292 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2294 * configure.in: Remove check for -fuse-divide-subroutine.
2295 * configure: Rebuilt.
2297 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2299 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2301 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2303 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2304 Remove BasicMapEntry.java and Bucket.java.
2305 * Makefile.in: Rebuilt.
2306 * java/util/HashMap.java: Rewritten.
2307 * java/util/HashSet.java: Imported from classpath.
2308 * java/util/WeakHashMap.java: Imported from classpath.
2309 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2310 * java/util/Bucket.java: Deleted.
2311 * java/util/BasicMapEntry.java: Deleted.
2312 * java/util/Collections.java (search): Use a for-loop, not iterator
2314 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2315 of elements in source.
2316 (max): Use a for-loop.
2318 (reverse): Keep track of positions instead of using Iterator's
2319 nextIndex() and previousIndex().
2320 (shuffle(List)): Initialize defaultRandom if required using
2321 double-check thread safety idiom. Call two-argument shuffle method
2322 using defaultRandom.
2323 (defaultRandom): New field.
2324 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2325 using previousIndex() and nextIndex().
2326 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2327 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2328 * java/util/AbstractMap.java (toString): Use StringBuffer.
2329 * java/lang/ref/PhantomReference.java: Imported from classpath.
2330 * java/lang/ref/SoftReference.java: Ditto.
2331 * java/lang/ref/Reference.java: Ditto.
2332 * java/lang/ref/WeakReference.java: Ditto.
2333 * java/lang/ref/ReferenceQueue.java: Ditto.
2335 2000-12-10 Richard Henderson <rth@redhat.com>
2337 * configure.host: Recognize alpha*-*, not alphaev6-*.
2339 2000-12-09 Anthony Green <green@redhat.com>
2341 * configure.host: Enable interpreter for Alpha.
2343 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2345 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2346 (ZIP): Points at fastjar instead of zip.
2347 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2348 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2349 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2350 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2351 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2352 ($(x_java_source_files:.java=.class):): Likewise.
2353 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2355 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2356 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2357 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2358 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2359 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2360 gnu/gcj/runtime/VMClassLoader.h:,
2361 java/io/ObjectInputStream$$GetField.h:,
2362 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2363 (Makefile.in): Rebuilt.
2365 2000-12-08 Tom Tromey <tromey@redhat.com>
2368 * configure: Rebuilt.
2369 * configure.in: Use echo, not `:', to create .d files.
2371 2000-12-08 Warren Levy <warrenl@redhat.com>
2373 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2374 NullPointerException so proper check of offset can be done.
2376 2000-12-08 Warren Levy <warrenl@redhat.com>
2378 * java/io/FileInputStream.java (close): Check if the fd is valid.
2379 * java/io/RandomAccessFile.java (close): Ditto.
2380 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2381 * java/net/PlainSocketImpl.java (close): Ditto.
2383 2000-12-06 Tom Tromey <tromey@redhat.com>
2385 * java/awt/GridBagConstraints.java: Filled in values for static
2388 * java/util/BitSet.java: Updated copyright notice.
2390 * Makefile.in: Rebuilt.
2391 * Makefile.am (awt_java_source_files): Added new file.
2392 * java/awt/GridBagConstraints.java: New file.
2394 2000-12-05 Tom Tromey <tromey@redhat.com>
2396 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2397 Now package-private, not protected.
2398 * java/text/DateFormatSymbols.java (equals): Now private.
2399 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2400 * java/util/BitSet.java: Class no longer final.
2402 2000-12-04 Warren Levy <warrenl@redhat.com>
2404 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2405 out code dependent on compiler and library changes.
2407 2000-12-04 Warren Levy <warrenl@redhat.com>
2409 * java/io/FilePermission.java: Made class final per spec.
2410 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2411 method name to match spec (fixed typo).
2412 * java/util/LinkedList.java: Implements List.
2414 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2416 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2417 Edgar Villanueva <edgarvil@home.com>.
2419 2000-12-03 Tom Tromey <tromey@redhat.com>
2421 * java/awt/geom/Point2D.java: Added protected constructor.
2422 (equals): New method.
2423 (Float.setLocation(float,float)): New method.
2424 * java/awt/geom/Dimension2D.java: Added protected constructor.
2425 * java/awt/geom/AffineTransform.java: Made all constants public.
2426 (concatenate): Fixed typo in name.
2427 * java/awt/event/WindowAdapter.java: Class now abstract.
2428 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2429 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2432 * java/awt/AWTError.java: Extend Error, not
2433 IllegalStateException.
2435 * Makefile.in: Rebuilt.
2436 * Makefile.am (awt_java_source_files): Added new file.
2437 * java/awt/geom/RoundRectangle2D.java: New file.
2439 * Makefile.in: Rebuilt.
2440 * Makefile.am (awt_java_source_files): Added new file.
2441 * java/awt/FlowLayout.java: New file.
2443 * Makefile.in: Rebuilt.
2444 * Makefile.am (awt_java_source_files): Added new file.
2445 * java/awt/GridLayout.java: New file.
2447 2000-12-02 Tom Tromey <tromey@redhat.com>
2449 * Makefile.in: Rebuilt.
2450 * Makefile.am (awt_java_source_files): Added new files.
2451 * java/awt/CardLayout.java: New file.
2452 * java/awt/AWTPermission.java: New file.
2454 2000-12-01 Tom Tromey <tromey@redhat.com>
2456 * java/util/Vector.java (insertElementAt): Unconditionally
2457 increment elementCount.
2458 (removeRange): Clear unused slots in vector.
2460 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2462 * java/lang/natMath.cc: Declare fabsf() function.
2463 * java/lang/mprec.h: Don't include math.h.
2464 * java/lang/dtoa.c: Include string.h.
2465 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2468 From Adam Welc <welc@cs.purdue.edu>:
2469 * java/util/LinkedList.java (removeFirst): Update `first' field.
2470 Handle the last == first case.
2471 (removeLast): Update `last' field. Handle the last == first case.
2473 2000-12-01 Warren Levy <warrenl@cygnus.com>
2475 * Makefile.am: Added entries for new java.sql modules.
2476 * Makefile.in: Rebuilt.
2478 2000-12-01 Warren Levy <warrenl@cygnus.com>
2480 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2481 that aren't quite 1.2 compatible yet.
2483 2000-11-30 Warren Levy <warrenl@cygnus.com>
2485 * java/sql/Array.java: New file from classpath.
2486 * java/sql/BatchUpdateException.java: Ditto.
2487 * java/sql/Blob.java: Ditto.
2488 * java/sql/Clob.java: Ditto.
2489 * java/sql/Ref.java: Ditto.
2490 * java/sql/SQLData.java: Ditto.
2491 * java/sql/SQLInput.java: Ditto.
2492 * java/sql/SQLOutput.java: Ditto.
2493 * java/sql/Struct.java: Ditto.
2494 * java/sql/CallableStatement.java: Merged file from claspath.
2495 * java/sql/Connection.java: Ditto.
2496 * java/sql/DataTruncation.java: Ditto.
2497 * java/sql/DatabaseMetaData.java: Ditto.
2498 * java/sql/DriverManager.java: Ditto.
2499 * java/sql/PreparedStatement.java: Ditto.
2500 * java/sql/ResultSet.java: Ditto.
2501 * java/sql/ResultSetMetaData.java: Ditto.
2502 * java/sql/SQLException.java: Ditto.
2503 * java/sql/SQLWarning.java: Ditto.
2504 * java/sql/Statement.java: Ditto.
2505 * java/sql/Types.java: Ditto.
2507 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2509 * java/lang/natSystem.cc (init_properties): Set user.language and
2511 * configure.in: Check for setlocale.
2512 * configure: Rebuilt.
2513 * include/config.h.in: Rebuilt.
2515 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2516 the infate() call didn't deliver any output. Throw a ZipException if
2517 the needsDictionary() call returns true.
2518 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2519 * java/io/InputStreamReader: Use the default buffer size for the
2520 contained BufferedInputStream.
2522 2000-11-28 Warren Levy <warrenl@cygnus.com>
2524 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2525 more time zone entries.
2526 * java/text/SimpleDateFormat.java (format): Added case for
2529 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2531 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2532 directly rather than read() in all cases. Make primitive read
2533 implementations more efficient, as defined in JDK online docs.
2534 (skipBytes): Behave like the JDK's implementation.
2535 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2536 closed stream with checkStatus() whenever an IOException can be
2538 (checkStatus): New private method.
2540 2000-11-27 Warren Levy <warrenl@cygnus.com>
2542 * Makefile.am: Added natTimeZone.cc.
2543 * Makefile.in: Rebuilt.
2544 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2545 * java/text/DateFormatSymbols.java (ampms): Made package private.
2546 (eras): Made package private.
2547 (months): Made package private.
2548 (shortMonths): Made package private.
2549 (shortWeekdays): Made package private.
2550 (weekdays): Made package private.
2551 (formatPrefixes): New private field.
2552 (localPatternCharsDefault): Made private.
2553 (dateFormats): New package private field.
2554 (timeFormats): New package private field.
2555 (formatsForKey): New private method.
2556 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2557 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2558 * java/text/SimpleDateFormat.java: Merged with Classpath.
2559 * java/util/TimeZone.java: Merged with Classpath.
2560 * java/util/natTimeZone.cc: New file.
2562 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2564 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2565 (addElement): Don't increment elementCount twice. Doh.
2566 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2567 array needs to be expanded.
2569 * java/util/Collections.java (UnmodifiableCollection): Implement
2571 (UnmodifiableList): Throw UnsupportedOperationException from
2572 modification methods. Set `l' from the one-parameter constructor.
2573 (UnmodifiableMap): Implement toString().
2574 (SynchronizedCollection): Ditto.
2575 (SynchronizedList): Set `l' from the one-parameter constructor.
2576 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2577 (SynchronizedMap): Implement toString().
2579 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2581 * javax/naming/NameParser.java,
2582 javax/naming/directory/AttributeInUseException.java,
2583 javax/naming/directory/AttributeModificationException.java,
2584 javax/naming/directory/InvalidAttributeIdentifierException.java,
2585 javax/naming/directory/InvalidAttributesException.java,
2586 javax/naming/directory/InvalidAttributeValueException.java,
2587 javax/naming/directory/InvalidSearchControlsException.java,
2588 javax/naming/directory/InvalidSearchFilterException.java,
2589 javax/naming/directory/NoSuchAttributeException.java,
2590 javax/naming/directory/SchemaViolationException.java: New files.
2592 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2594 * javax/naming/InitialContext.java (rebind): Implement.
2595 (unbind): Implement.
2596 (rename): Implement.
2598 (listBindings): Implement.
2599 (destroySubcontext): Implement.
2600 (createSubcontext): Implement.
2601 (lookupLink): Implement.
2602 (getNameParser): Implement.
2603 (composeName): Implement.
2604 (addToEnvironment): Implement.
2606 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2608 * javax/naming/AuthenticationException.java,
2609 javax/naming/AuthenticationNotSupportedException.java,
2610 javax/naming/CannotProceedException.java,
2611 javax/naming/CommunicationException.java,
2612 javax/naming/ConfigurationException.java,
2613 javax/naming/ContextNotEmptyException.java,
2614 javax/naming/InsufficientResourcesException.java,
2615 javax/naming/InterruptedNamingException.java,
2616 javax/naming/InvalidNameException.java,
2617 javax/naming/LimitExceededException.java,
2618 javax/naming/LinkException.java,
2619 javax/naming/LinkLoopException.java,
2620 javax/naming/MalformedLinkException.java,
2621 javax/naming/NameAlreadyBoundException.java,
2622 javax/naming/NameNotFoundException.java,
2623 javax/naming/NamingSecurityException.java,
2624 javax/naming/NoPermissionException.java,
2625 javax/naming/NotContextException.java,
2626 javax/naming/PartialResultException.java,
2627 javax/naming/ReferralException.java,
2628 javax/naming/ServiceUnavailableException.java,
2629 javax/naming/SizeLimitExceededException.java,
2630 javax/naming/TimeLimitExceededException.java: New files.
2632 * javax/naming/Name.java (clone): New method.
2633 (compareTo): New method.
2634 (isEmpty): New method.
2635 (getAll): New method.
2636 (getPrefix): New method.
2637 (getSuffix): New method.
2638 (startsWith): New method.
2639 (endsWith): New method.
2640 (addAll): New method.
2641 (addAll): New method.
2644 (remove): New method.
2646 * javax/naming/Context.java (lookup): New method.
2647 (rebind): New method.
2648 (unbind): New method.
2649 (rename): New method.
2651 (listBindings): New method.
2652 (destroySubcontext): New method.
2653 (createSubcontext): New method.
2654 (lookupLink): New method.
2655 (getNameParser): New method.
2656 (composeName): New method.
2657 (addToEnvironment): New method.
2658 (removeFromEnvironment): New method.
2659 (getEnvironment): New method.
2660 (close): New method.
2661 (getNameInNamespace): New method.
2663 * javax/naming/InitialContext.java (lookup): New method.
2664 (rebind): New method.
2665 (unbind): New method.
2666 (rename): New method.
2668 (listBindings): New method.
2669 (destroySubcontext): New method.
2670 (createSubcontext): New method.
2671 (lookupLink): New method.
2672 (getNameParser): New method.
2673 (composeName): New method.
2674 (addToEnvironment): New method.
2675 (removeFromEnvironment): New method.
2676 (getEnvironment): New method.
2677 (close): New method.
2678 (getNameInNamespace): New method.
2680 2000-11-26 Tom Tromey <tromey@cygnus.com>
2682 * Makefile.in: Rebuilt.
2683 * Makefile.am (core_java_source_files): Added
2684 RuntimePermission.java.
2685 * java/lang/RuntimePermission.java: Imported from Classpath.
2686 * java/lang/Thread.java (getContextClassLoader): Now
2687 synchronized. Added security code.
2688 (setContextClassLoader): Likewise.
2690 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2691 length field of array.
2692 (_Jv_NewPrimArray): Likewise.
2693 * gcj/array.h (__JArray): `length' field now const. Added
2696 2000-11-26 Anthony Green <green@redhat.com>
2698 * javax/naming/spi/NamingManager.java,
2699 javax/naming/spi/ObjectFactory.java,
2700 javax/naming/spi/InitialContextFactory.java,
2701 javax/naming/spi/InitialContextFactoryBuilder.java,
2702 javax/naming/RefAddr.java, javax/naming/Reference.java,
2703 javax/naming/NamingException.java, javax/naming/Context.java,
2704 javax/naming/Referenceable.java,
2705 javax/naming/directory/InitialDirContext.java,
2706 javax/naming/directory/DirContext.java,
2707 javax/naming/directory/Attributes.java,
2708 javax/naming/directory/Attribute.java,
2709 javax/naming/StringRefAddr.java,
2710 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2711 javax/naming/InitialContext.java,
2712 javax/naming/NoInitialContextException.java: New files.
2714 2000-11-25 Anthony Green <green@redhat.com>
2716 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2717 (_Jv_NewPrimArray): Likewise.
2718 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2719 (class JArray): Removed constructor.
2721 * java/lang/Thread.java (context_class_loader): New private data.
2722 (getContextClassLoader): New method.
2723 (setContextClassLoader): New method.
2724 (Thread): Initialize context_class_loader.
2726 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2727 (getResource): Rename to findResource.
2728 (findResource): New method. Used to be getResource.
2729 (getResourceAsStream): Deleted.
2730 (jarFileize): Extracted logic from URLClassLoader constructor into
2731 this new private method.
2732 (addURL): New protected method.
2733 (URLClassLoader): Call jarFileize. Use addElement instead of
2735 (findResources): New method.
2737 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2738 (getResource): Implement correct logic.
2739 (findResource): New method.
2740 (getResources): New method.
2741 (findClass): Create a ClassNotFoundException with the name of the
2742 class rather than nothing at all.
2743 (defineClass) Only throw ClassFormatError.
2745 * java/lang/Class.java (forName): New method.
2746 * java/lang/Class.h (forName): New method.
2747 * java/lang/natClass.cc (forName): New method.
2749 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2751 * java/lang/System.java (setProperties): Only call init_properties()
2752 if properties is null.
2753 (getProperties): Ditto.
2754 (getProperty): Ditto.
2755 (setProperty): Call init_properties if properties are null.
2756 (prop_init): Remove field.
2757 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2758 method. Check for null properties after synchronizing instead of
2759 prop_init flag. Set the properties field last for thread safety.
2761 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2762 test for gcj.dumpobjects property and enable object stream dumping
2764 (dumpElement): No longer native.
2765 (dumpElementln): Ditto.
2766 (setDump): Do not define.
2767 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2768 (dumpElementln): Removed.
2771 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2773 * configure: Rebuilt.
2774 * Makefile.in: Rebuilt.
2775 * Makefile.am (built_java_source_files): Add Configuration.java.
2776 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2777 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2778 Create `gnu' directory in the build tree.
2779 * gnu/classpath/Configuration.java.in: New file.
2781 2000-11-24 Tom Tromey <tromey@cygnus.com>
2783 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2785 (_Jv_NewPrimArray): Likewise.
2787 * gcj/array.h (__JArray): `length' field now const. Added
2789 (class JArray): Added constructor.
2791 2000-11-23 Mark Wielaard <mark@klomp.org>
2793 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2796 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2798 * java/util/Vector.java: Improve exception messages.
2799 (Vector): Check initialCapacity for IllegalArgumentException.
2800 (tromToSize): Don't check for elementCount == elementData.length
2802 (toArray): Don't try to set null marker if target array is the same
2803 length as the vector.
2805 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2807 * Makefile.in: Rebuilt.
2808 * Makefile.am (core_java_source_files): Added Collections.java.
2809 * java/util/List.java: Merged from classpath.
2810 * java/util/Vector.java: Ditto.
2811 * java/util/Collections.java: From classpath.
2812 * java/util/ArrayList.java (addAll(Collection)): Call
2813 addAll(int,Collection) instead of duplicating code.
2814 (indexOf): Clean up int initialization.
2815 (clear): Set cleared array entries to null, to allow garbage
2817 * java/util/List.java: Minor formatting fixes.
2818 * java/util/SimpleTimeZone.java: ditto.
2820 2000-11-18 Tom Tromey <tromey@cygnus.com>
2822 * Makefile.in: Rebuilt.
2823 * Makefile.am (core_java_source_files): Added new files.
2824 * java/lang/reflect/ReflectPermission.java: New class.
2825 * java/io/FileFilter.java: From Classpath
2826 * java/io/FilePermission.java: From Classpath.
2828 2000-11-17 Tom Tromey <tromey@cygnus.com>
2830 * java/lang/reflect/AccessibleObject.java (isAccessible,
2831 setAccessible): Now public.
2833 * java/lang/natString.cc: Include Locale.h.
2834 (toUpperCase): Added `locale' argument. Handle locale
2836 (toLowerCase): Added `locale' argument. Handle locale
2838 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2839 CAPITAL_I): New defines.
2840 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2843 (toUpperCase, toLowerCase): New methods. Variants which accept
2846 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2849 * java/util/PropertyPermission.java: Re-merged from Classpath.
2851 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2853 * java/text/StringCharacterIterator.java: Reindented.
2854 (setText): New method.
2856 2000-11-17 Mark Wielaard <mark@klomp.org>
2858 Merge with Classpath (changes by Bryce McKinlay)
2859 * java/util/jar/*.java: Reformat all to unofficial standard coding
2860 style. No changes of substance.
2862 2000-11-17 Mark Wielaard <mark@klomp.org>
2864 * java/util/zip/*.java: Javadoc updates.
2866 2000-11-17 Tom Tromey <tromey@cygnus.com>
2868 * java/text/CollationKey.java: Implement Comparable.
2869 (compareTo(Object)): New method.
2870 * java/text/Collator.java (compare(Object,Object)): New method.
2871 Implement Comparator.
2873 * java/util/zip/InflaterInputStream.java (available): New method.
2874 (close): New method.
2875 (read, available, skip, fill): Throw exception if stream closed.
2876 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2877 getNextEntry): Throw exception if closed.
2879 2000-11-16 Tom Tromey <tromey@cygnus.com>
2881 * java/io/PushbackReader.java: Merged with Classpath.
2882 * java/util/Arrays.java: Updated from Classpath.
2884 * scripts/blocks.pl: New file.
2885 * java/lang/Character.java (Subset): New class.
2886 (UnicodeBlock): New class.
2888 * java/lang/Math.java (toDegrees, toRadians): New methods.
2890 * java/lang/Float.java: Implement Comparable.
2891 (compareTo): New methods.
2892 * java/lang/Double.java: Implement Comparable.
2893 (compareTo): New methods.
2895 2000-11-16 Warren Levy <warrenl@cygnus.com>
2897 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2899 (listeners): Made transient.
2900 (source): Renamed from 'bean'.
2901 (children): New field for serialization.
2902 (propertyChangeSupportSerializedDataVersion): Ditto.
2903 (serialVersionUID): Ditto.
2904 (writeObject): New serialization method.
2905 (readObject): New serialization method.
2906 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2908 (listeners): Made transient.
2909 (source): Renamed from 'bean'.
2910 (children): New field for serialization.
2911 (vetoableChangeSupportSerializedDataVersion): Ditto.
2912 (serialVersionUID): Ditto.
2913 (writeObject): New serialization method.
2914 (readObject): New serialization method.
2915 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2916 to allow constructor to have a return type (i.e. the class that the
2917 constructor constructs).
2919 2000-11-14 Tom Tromey <tromey@cygnus.com>
2921 * Makefile.in: Rebuilt.
2922 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2925 2000-11-02 Warren Levy <warrenl@cygnus.com>
2927 * java/io/ObjectInputStream.java (readObject): Added code to
2928 conditionally dump out the serialized data.
2929 Handle ENDBLOCKDATA case a bit more gracefully since the current
2930 behavior doesn't seem to work as expected.
2931 (readStreamHeader): Added code for serialized data dumper.
2932 (readNextBlock): Ditto.
2933 (readFields): Ditto.
2934 (dump): New private static field for turning on/off dumper.
2935 (setDump): New native method.
2936 (dumpElement): New native method.
2937 (dumpElementln): New native method.
2938 * java/io/natObjectInputStream.cc (setDump): New method.
2939 (dumpElement): New method.
2940 (dumpElementln): New method.
2942 2000-11-02 Warren Levy <warrenl@cygnus.com>
2944 * java/net/InetAddress.java (addr): Renamed from 'address'.
2945 (address): New field to match Serialized Form doc.
2946 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2947 (family): New serialization field.
2948 (serialVersionUID): New field.
2949 (readObject): New method.
2950 (writeObject): New method.
2951 (getFamily): New native method.
2952 (InetAddress): Set family.
2953 * java/net/natInetAddress.cc (getFamily): New method.
2954 (addr): Renamed from 'address'.
2955 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2956 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2957 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2959 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2961 * java/util/AbstractList.java (SubList): Make it a top-level private
2963 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2965 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2966 * Makefile.in: Rebuilt.
2968 2000-11-02 Tom Tromey <tromey@cygnus.com>
2970 * Makefile.in: Rebuilt.
2971 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2974 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2976 * java/util/AbstractList.java (remove): Comment out modCount increment
2977 to work around compiler bug.
2980 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2982 * java/util/AbstractList.java: Throw messages with
2983 IndexOutOfBoundsExceptions.
2984 (listIterator()): Call listIterator(0).
2985 (size): New field. Initialize to size().
2986 (hasNext): Test position against size, not size().
2987 (remove): Increment knownMod by one instead of resetting it from
2990 (SubList.upMod): Removed.
2991 (SubList.set): Don't call upMod() or update knownMod.
2992 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2993 (SubList.remove): Ditto.
2994 (SubList.addAll): Don't call backingList.size(). Increment size from
2996 (SubList.iterator): New method. Call listIterator(0).
2997 (SubList.listIterator): New method. Restore code to return an anonymous
2998 listIterator implementation (with some changes).
2999 * java/util/AbstractSequentialList.java: Throw messages with
3000 IndexOutOfBoundsExceptions.
3001 (addAll): Add a specnote.
3002 * java/util/ArrayList.java (removeRange): Get the math right.
3003 (addAll): Increment modCount _before_ creating iterator.
3004 * java/util/LinkedList.java: Rewritten, mostly.
3006 2000-11-01 Tom Tromey <tromey@cygnus.com>
3008 * scripts/encodings.pl: Added `ASCII' alias.
3009 * Makefile.in: Rebuilt.
3010 * Makefile.am (convert_source_files): Added new files.
3011 * gnu/gcj/convert/Input_ASCII.java: New file.
3012 * gnu/gcj/convert/Output_ASCII.java: New file.
3013 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3014 out-of-range characters.
3015 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3016 (read): Swap bytes if required. Treat `count' as character count,
3018 (write): Likewise. Also, handle case where iconv fails on a given
3020 (init): Put encoding into exception.
3021 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3022 (static): Call iconv_init. Rebuilt alias list.
3023 (iconv_init): New private method.
3025 2000-11-01 Tom Tromey <tromey@cygnus.com>
3027 * Makefile.in: Rebuilt.
3028 * Makefile.am (install-exec-hook): Only make a single symlink, and
3029 remove the destination before making the link.
3030 * configure: Rebuilt.
3031 * configure.in: Call AC_PROG_LN_S.
3033 2000-10-31 Warren Levy <warrenl@cygnus.com>
3035 * jni.cc: Added include of java/lang/ThreadGroup.h.
3036 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3037 per change of 2000-10-05.
3039 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3041 * java/util/BitSet.java: Updated @specnote.
3043 * java/io/Reader.java: Merge docs from classpath.
3044 (skip): Synchronize on `lock'.
3045 * java/io/FileReader.java: Import correct implementation from
3047 * java/io/StringReader.java: Merge docs from classpath.
3048 (ready): Throw IOException if stream is closed.
3050 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3052 * java/util/AbstractCollection.java (addAll): Use size() instead of
3053 hasNext() in iterator loop.
3055 (contains): Ditto. Simplify loop.
3056 (containsAll): Ditto.
3061 (toString): Ditto. Use string concatenation operators, not
3063 * java/util/AbstractList.java (addAll): Use size() instead of
3064 hasNext() in iterator loop.
3067 (indexOf): Ditto. Don't take null check outside of the loop.
3068 (iterator): Return an AbstractListItr instead of anonymous class.
3069 (lastIndexOf): Use a for loop bounded by size() instead of
3070 hasPrevious() in iterator loop.
3071 (listIterator): Return an AbstractListItr.
3072 (removeRange): Remove bounds checking code and docs.
3073 (AbstractListItr): New inner class. Code moved here from
3075 (SubList.iterator): Removed. Use default implementation from
3076 AbstractList instead.
3077 (SubList.listIterator): As above.
3078 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3079 instead of hasNext() in iterator loop.
3080 (containsValue): Ditto.
3086 (toString): Ditto. Use string concatenation operators, not
3088 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3089 bounded by size() instead of hasNext() in iterator loop.
3090 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3091 part of normal execution flow. Do an explicit null check instead.
3092 * java/util/ArrayList.java (_iSize): Rename to `size'.
3093 (_arData): Rename to `data'.
3094 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3097 (removeRange): Make protected. Don't check bounds.
3098 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3100 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3102 (addAll (int, Collection)): Check lower bounds. Simplify exception
3104 (clone): Clone the data array too.
3105 (indexOf): Inline doesEqual().
3106 (lastIndexOf): Ditto.
3107 (clear): Don't set array data to null.
3108 (set): Check lower bounds. Simplify exception string.
3109 (toArray): Correct comment.
3110 (trimToSize): Don't update modCount, this is not a structural change.
3113 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3115 (toString): Declare `bit' as long, not int.
3116 (data): Made package-private, not private.
3118 2000-10-27 Warren Levy <warrenl@cygnus.com>
3120 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3121 array elements to true.
3123 2000-10-27 Warren Levy <warrenl@cygnus.com>
3125 * Makefile.am: Added locale files from Classpath.
3126 * Makefile.in: Rebuilt.
3127 * gnu/java/locale/Calendar.java: New file.
3128 * gnu/java/locale/Calendar_de.java: New file.
3129 * gnu/java/locale/Calendar_en.java: New file.
3130 * gnu/java/locale/Calendar_nl.java: New file.
3131 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3132 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3133 serialization compatibility.
3134 (scale): Made private.
3135 (serialVersionUID): New field.
3136 * java/math/BigInteger.java (ival): Made transient.
3137 (words): Made transient.
3138 (bitCount): New serialization field.
3140 (firstNonzeroByteNum): Ditto.
3141 (lowestSetBit): Ditto.
3144 (serialVersionUID): New field.
3145 (readObject): New method.
3146 (writeObject): New method.
3147 * java/util/BitSet.java (serialVersionUID): New field.
3148 * java/util/Calendar.java: Replaced with Classpath file.
3149 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3150 of getDefault() for TimeZone or Locale instead of passing nulls.
3151 * java/util/Locale.java (serialVersionUID): New field.
3152 (writeObject): New method.
3153 (readObject): New method.
3154 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3156 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3158 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3159 (core_java_source_files): Put java.lang, java.io, and java.util here.
3160 (ordinary_java_source_files): Order so that core_java_source_files are
3162 (java_source_files): Reorder so that special_java_source_files are
3164 * configure.in: Don't pass -I flag to gcj.
3165 * Makefile.in: Rebuilt.
3166 * configure: Rebuilt.
3168 2000-10-25 Tom Tromey <tromey@cygnus.com>
3170 * Makefile.in: Rebuilt.
3171 * Makefile.am (install-exec-hook): New target.
3173 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3175 * java/util/EventObject.java: Merged from classpath.
3177 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3180 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3182 * java/util/AbstractSet.java (equals): Re-installed original code.
3184 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3186 * Makefile.am: Added rules for libgcjx library.
3187 * Makefile.in: Rebuilt.
3188 * configure.in: Added check for X.
3189 * configure: Rebuilt.
3190 * gnu/awt/LightweightRedirector.java: New file.
3191 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3192 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3193 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3194 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3195 * gnu/awt/j2d/MappedRaster.java: New file.
3196 * gnu/awt/xlib/XCanvasPeer.java: New file.
3197 * gnu/awt/xlib/XEventLoop.java: New file.
3198 * gnu/awt/xlib/XEventQueue.java: New file.
3199 * gnu/awt/xlib/XFontMetrics.java: New file.
3200 * gnu/awt/xlib/XFramePeer.java: New file.
3201 * gnu/awt/xlib/XGraphics.java: New file.
3202 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3203 * gnu/awt/xlib/XPanelPeer.java: New file.
3204 * gnu/awt/xlib/XToolkit.java: New file.
3205 * gnu/gcj/xlib/Clip.java: New file.
3206 * gnu/gcj/xlib/Colormap.java: New file.
3207 * gnu/gcj/xlib/Display.java: New file.
3208 * gnu/gcj/xlib/Drawable.java: New file.
3209 * gnu/gcj/xlib/Font.java: New file.
3210 * gnu/gcj/xlib/GC.java: New file.
3211 * gnu/gcj/xlib/Pixmap.java: New file.
3212 * gnu/gcj/xlib/Screen.java: New file.
3213 * gnu/gcj/xlib/Visual.java: New file.
3214 * gnu/gcj/xlib/WMSizeHints.java: New file.
3215 * gnu/gcj/xlib/Window.java: New file.
3216 * gnu/gcj/xlib/WindowAttributes.java: New file.
3217 * gnu/gcj/xlib/XAnyEvent.java: New file.
3218 * gnu/gcj/xlib/XButtonEvent.java: New file.
3219 * gnu/gcj/xlib/XColor.java: New file.
3220 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3221 * gnu/gcj/xlib/XConnectException.java: New file.
3222 * gnu/gcj/xlib/XEvent.java: New file.
3223 * gnu/gcj/xlib/XException.java: New file.
3224 * gnu/gcj/xlib/XExposeEvent.java: New file.
3225 * gnu/gcj/xlib/XID.java: New file.
3226 * gnu/gcj/xlib/XImage.java: New file.
3227 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3228 * gnu/gcj/xlib/natClip.cc: New file.
3229 * gnu/gcj/xlib/natColormap.cc: New file.
3230 * gnu/gcj/xlib/natDisplay.cc: New file.
3231 * gnu/gcj/xlib/natDrawable.cc: New file.
3232 * gnu/gcj/xlib/natFont.cc: New file.
3233 * gnu/gcj/xlib/natGC.cc: New file.
3234 * gnu/gcj/xlib/natPixmap.cc: New file.
3235 * gnu/gcj/xlib/natScreen.cc: New file.
3236 * gnu/gcj/xlib/natVisual.cc: New file.
3237 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3238 * gnu/gcj/xlib/natWindow.cc: New file.
3239 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3240 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3241 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3242 * gnu/gcj/xlib/natXColor.cc: New file.
3243 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3244 * gnu/gcj/xlib/natXException.cc: New file.
3245 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3246 * gnu/gcj/xlib/natXImage.cc: New file.
3247 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3248 * java/awt/EventDispatchThread.java: Start thead on creation.
3250 2000-10-20 Tom Tromey <tromey@cygnus.com>
3252 From Arno J. Klaassen:
3253 * interpret.cc: Include <stdlib.h> for alloca.
3254 * defineclass.cc: Include <stdlib.h> for alloca.
3256 * Makefile.in: Rebuilt.
3257 * Makefile.am: Include deps.mk.
3258 (GCJCOMPILE): Added -MD, -MT, and -MF.
3259 ($(javao_files)): Don't depend on libgcj.zip.
3260 (all-recursive): New target.
3261 (%.lo:%.cc): Do dependency tracking.
3262 ($(nat_headers)): Don't depend on libgcj.zip.
3263 * configure: Rebuilt.
3264 * configure.in: Make .d files and deps.mk.
3266 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3268 * exception.cc: Don't #include "exception".
3269 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3271 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3272 * Makefile.in: Updated.
3274 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3276 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3277 * java/awt/peer/ComponentPeer.java (disable): Removed.
3280 (minimumSize): Removed.
3281 (preferredSize): Removed.
3284 * java/awt/peer/ListPeer.java (addItem): Removed.
3286 (minimumSize): Removed.
3287 (preferredSize): Removed.
3288 (setMultipleSelections): Removed.
3289 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3290 (remove): Renamed from removeMenu.
3291 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3293 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3294 (remove): Renamed from removeItem.
3295 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3296 (getMinimumSize): Removed.
3297 (getPreferredSize): Removed.
3298 (minimumSize): Removed.
3299 (preferredSize): Removed.
3300 (replaceText): Removed.
3301 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3302 (preferredSize): Removed.
3303 (getMinimumSize): Removed.
3304 (getPreferredSize): Removed.
3305 (setEchoCharacter): Removed.
3307 2000-10-10 Warren Levy <warrenl@cygnus.com>
3309 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3310 * java/sql/Date.java (serialVersionUID): New field.
3311 * java/sql/Time.java (serialVersionUID): New field.
3312 * java/sql/Timestamp.java (serialVersionUID): New field.
3313 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3314 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3315 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3316 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3317 (readObject): New serialization method.
3318 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3319 (serialVersionOnStream): New field.
3320 (readObject): New serialization method.
3321 (getMonetaryDecimalSeparator): New method.
3322 (setMonetaryDecimalSeparator): New method.
3323 * java/text/NumberFormat.java (maxFractionDigits): New field.
3324 (maxIntegerDigits): New field.
3325 (minFractionDigits): New field.
3326 (minIntegerDigits): New field.
3327 (serialVersionOnStream): New field.
3328 (serialVersionUID): New field.
3329 (readObject): New serialization method.
3330 (writeObject): New serialization method.
3331 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3332 (serialVersionOnStream): New field.
3333 (serialVersionUID): New field.
3334 (readObject): New serialization method.
3336 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3338 * configure.in (GCJ): Avoid bogus error message when looking for
3339 (and not finding) gcj in the build tree.
3340 * configure: Rebuilt.
3342 2000-10-09 Tom Tromey <tromey@cygnus.com>
3344 * configure: Rebuilt.
3345 * configure.in: Include sys/types.h when checking for socklen_t.
3346 From Arno J. Klaassen.
3348 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3350 * include/jvm.h: Enable __builtin_expect().
3352 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3353 the main program. Fix for PR libgcj/341.
3355 2000-10-07 Tom Tromey <tromey@cygnus.com>
3357 * java/util/Properties.java: Merged with Classpath version.
3359 2000-10-05 Tom Tromey <tromey@cygnus.com>
3361 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3362 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3363 * java/lang/Class.h (Object): Added `class$' field.
3364 * java/lang/Object.h (Object): Added `class$' field.
3365 * defineclass.cc (ClassClass): Use `class$' form.
3366 (ClassObject): Likewise.
3367 * resolve.cc (ClassObject): Use `class$' form.
3368 (ObjectClass): Likewise.
3369 * interpret.cc (ClassError): Removed.
3370 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3372 (IntegerClass): Likewise.
3373 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3375 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3376 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3377 SerializableClass): Likewise.
3378 Include Serializable.h, Cloneable.h.
3379 * java/lang/natSystem.cc (SystemClass): Removed.
3380 (init_properties): Use `class$' form.
3381 * java/lang/natObject.cc (CloneableClass): Removed.
3382 (clone): Use `class$' form.
3383 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3384 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3385 ConstructorClass): Likewise.
3386 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3387 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3388 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3389 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3391 (ClassClass): Likewise.
3392 * include/jvm.h (StringClass): Use `class$' form.
3393 * prims.cc (ObjectClass): Removed.
3394 (_Jv_RunMain): Use `class$' form.
3395 (_Jv_AllocObject): Likewise.
3396 * jni.cc (ClassClass): Use `class$' form.
3397 (ThrowableClass): Likewise.
3398 (ObjectClass): Likewise.
3399 (MethodClass): Likewise.
3400 (ThreadGroupClass): Likewise.
3401 (NativeThreadClass): Likewise.
3402 * boehm.cc (ObjectClass): Removed.
3403 (ClassClass): Removed.
3404 (_Jv_MarkObj): Use `class$' form.
3405 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3408 2000-10-05 Warren Levy <warrenl@cygnus.com>
3410 * Makefile.am: Removed java/io/Replaceable.java and
3411 java/io/Resolvable.java.
3412 * Makefile.in: Rebuilt.
3413 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3415 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3417 (processResolution): Handle readResolve method via reflection with
3418 removal of Resolvable interface.
3419 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3420 method via reflection with removal of Replaceable interface.
3421 * java/io/Replaceable.java: Removed.
3422 * java/io/Resolvable.java: Removed.
3423 * java/security/Key.java (serialVersionUID): New field.
3424 * java/security/Provider.java (serialVersionUID): New field.
3425 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3427 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3429 * java/sql/DataTruncation.java (serialVersionUID): New field.
3430 * java/sql/SQLException.java (serialVersionUID): New field.
3431 * java/sql/SQLWarning.java (serialVersionUID): New field.
3432 * java/util/Date.java (serialVersionUID): New field.
3433 (millis): Made transient.
3434 (readObject): New method.
3435 (writeObject): New method.
3437 2000-10-05 Tom Tromey <tromey@cygnus.com>
3439 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3441 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3443 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3444 (JvRunMain): Set _Jv_argv and _Jv_argc.
3445 * java/awt/Component.java: Minor fixes.
3446 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3447 * java/awt/Toolkit.java (systemEventQueue): Removed.
3448 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3449 * java/awt/Window.java (getToolkit): Don't call super.
3450 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3451 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3452 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3453 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3454 * gnu/awt/gtk/GtkFramePeer.java: New file.
3455 * gnu/awt/gtk/GtkMainThread.java: New file.
3456 * gnu/awt/gtk/GtkToolkit.java: New file.
3457 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3458 * gnu/awt/gtk/gtkcommon.cc: New file.
3459 * gnu/awt/gtk/gtkcommon.h: New file.
3460 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3461 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3462 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3463 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3464 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3465 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3467 2000-09-30 Tom Tromey <tromey@cygnus.com>
3469 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3470 interrupted before modifying the cv's wait set.
3473 2000-09-30 Hans Boehm <boehm@acm.org>
3474 Bryce McKinlay <bryce@albatross.co.nz>
3476 Implement bitmap descriptor based marking for Boehm GC.
3478 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3479 * configure: Rebuilt.
3480 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3481 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3482 method get_finalizer().
3483 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3484 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3485 (_Jv_AllocObj): Add new jclass parameter.
3486 (_Jv_AllocArray): Ditto.
3487 (_Jv_BuildGCDescr): New prototype.
3488 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3489 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3490 get_finalizer() instead of direct finalizer vtable offset.
3491 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3492 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3493 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3494 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3495 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3496 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3497 (_Jv_DetermineVTableIndex): Ditto.
3498 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3499 calculations to account for new gc_descr field.
3500 * boehm.cc: #include gc_gcj.h.
3501 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3502 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3503 New commentary from HB. Mark the classes vtable.
3504 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3505 (GC_DEFAULT_DESCR): New #define.
3506 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3507 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3508 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3509 scan conservativly if size is less than min_heap_addr. Set vtable
3510 pointer of new object before returning.
3511 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3512 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3513 allocation for obj_kind_x.
3514 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3515 (_Jv_AllocObj): Set vtable on returned object.
3516 (_Jv_AllocArray): Ditto.
3517 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3518 (_Jv_NewPrimArray): Ditto.
3519 (_Jv_AllocObj): Declare as a friend.
3520 (_Jv_AllocArray): Ditto.
3521 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3522 from &ObjectClass into new array class. Remove offset-by-one
3523 adjustments from `method' size calculations to account for gc_descr
3526 2000-09-26 Tom Tromey <tromey@cygnus.com>
3528 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3529 `remove', not `add'.
3531 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3533 * java/lang/natSystem.cc (file_encoding): Added return statement.
3535 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3537 * Makefile.am: Re-work shell commands that exceeded command-line
3539 * Makefile.in: Rebuilt.
3541 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3543 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3544 * java/lang/natDouble.cc: Likewise.
3545 * java/lang/reflect/natMethod.cc: Likewise.
3546 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3548 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3550 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3552 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3553 * acinclude.m4: Arrange for automake to not bring in a new
3554 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3555 * Makefile.am: Leave it up to automake to subst GCJ.
3556 * aclocal.m4, configure, Makefile.in: Rebuilt.
3558 2000-09-13 Tom Tromey <tromey@cygnus.com>
3560 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3561 (get): Ensure Boolean class is initialized.
3562 * java/lang/reflect/natField.cc (BooleanClass): New define.
3563 (get): Ensure Boolean class is initialized.
3565 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3567 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3568 Initialize with anonymous class.
3569 (compareToIgnoreCase): New method.
3571 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3572 (uncaughtException): Set had_uncaught_exception.
3573 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3574 exit with error status if set.
3575 (_Jv_RunMain): Ditto.
3577 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3579 * configure: Rebuilt with new ../libtool.m4.
3581 2000-09-11 Tom Tromey <tromey@cygnus.com>
3583 * java/lang/reflect/Field.java (toString): Don't rely on
3586 2000-09-08 Tom Tromey <tromey@cygnus.com>
3588 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3589 default decoder use iconv.
3590 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3591 Let default encoder use iconv.
3592 * configure: Rebuilt.
3593 * configure.in: Check for nl_langinfo and <langinfo.h>.
3594 * java/lang/natSystem.cc (file_encoding): New function.
3595 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3597 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3599 * acinclude.m4: Simplify the tests for CC and CXX.
3600 * aclocal.m4, configure: Rebuilt.
3602 * acinclude.m4: Include libtool macros from the source tree.
3603 * aclocal.m4, configure: Rebuilt.
3605 2000-09-08 Warren Levy <warrenl@cygnus.com>
3607 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3608 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3609 * java/io/File.java (writeObject): Added.
3610 (readObject): Added.
3611 (serialVersionUID): Added.
3612 * java/io/ObjectOutputStream.java (writeObject): Initialized
3613 fieldsAlreadyWritten before recursion rather than after.
3614 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3615 * java/io/OptionalDataException.java (serialVersionUID): Added.
3616 (OptionalDataException): Made package private.
3617 * java/io/SyncFailedException.java (SyncFailedException): Removed
3618 default constructor to match spec.
3619 * java/lang/Boolean.java (serialVersionUID): Added.
3620 * java/lang/Byte.java (serialVersionUID): Added.
3621 * java/lang/Character.java (serialVersionUID): Added.
3622 * java/lang/Double.java (serialVersionUID): Added.
3623 * java/lang/Float.java (serialVersionUID): Added.
3624 * java/lang/Integer.java (serialVersionUID): Added.
3625 * java/lang/Long.java (serialVersionUID): Added.
3626 * java/lang/Number.java (serialVersionUID): Added.
3627 * java/lang/Short.java (serialVersionUID): Added.
3628 * java/lang/String.java (serialVersionUID): Added.
3629 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3631 * java/lang/reflect/InvocationTargetException.java
3632 (serialVersionUID): Added.
3633 * java/net/URL.java (handler): Made transient.
3634 (hashCode): Added field for serialization, per spec. and use
3635 cached value if available.
3636 (serialVersionUID): Added.
3637 (URL): Initialize hashCode.
3638 (set): Adjust hashCode.
3639 (readObject): New Method to initialize the protocol handler when
3641 (writeObject): New method.
3642 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3643 * java/text/Collator.java: Removed 'implements Serializable'.
3644 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3645 * java/util/Properties.java (serialVersionUID): Added.
3646 * java/util/Random.java (serialVersionUID): Added.
3647 (seed): Made private.
3648 (nextNextGaussian): Made private.
3649 (haveNextNextGaussian): Made private.
3650 * java/util/Stack.java (serialVersionUID): Added.
3651 * java/util/TimeZone.java (serialVersionUID): Added.
3652 * java/util/Vector.java (serialVersionUID): Added.
3654 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3656 * Makefile.am (Thread.h): Don't be friends with native threads
3658 * Makefile.in: Rebuilt.
3659 * java/lang/Thread.java (interrupt_flag): Make package-private.
3661 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3663 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3664 to avoid long long division.
3666 2000-09-06 Tom Tromey <tromey@cygnus.com>
3668 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3670 * java/lang/reflect/Method.java (toString): Use `getName' for
3673 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3674 `args' if method takes no parameters.
3676 Fix for PR java.lang/339:
3677 * java/lang/natPosixProcess.cc (fail): New function.
3678 (cleanup): New function.
3679 (startProcess): Use them. Create pipe so child can communicate
3680 exec failure back to parent.
3682 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3684 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3686 (send): Undo last patch. Remove the label only.
3688 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3690 * java/net/natInetAdress.cc: Ditto.
3692 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3694 2000-09-05 Tom Tromey <tromey@cygnus.com>
3696 * doc/cni.sgml: Updated from master copy.
3698 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3700 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3702 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3704 * java/lang/fdlibm.h: #undef __P if previously defined.
3705 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3706 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3710 2000-09-04 Tom Tromey <tromey@cygnus.com>
3712 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3715 2000-09-04 Anthony Green <green@redhat.com>
3717 Fix for PR java.io/203:
3718 * java/io/File.java (createTempFile): Obey directory argument.
3719 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3720 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3721 variable to set java.io.tmpdir on non-WIN32 systems.
3723 2000-09-04 Anthony Green <green@redhat.com>
3725 * java/io/File.java (deleteOnExit): New method.
3726 * gnu/gcj/runtime/FileDeleter.java: New class.
3727 * java/lang/natRuntime.cc (exit): Call
3728 FileDeleter.deleteOnExitNow()
3729 * Makefile.am: Add FileDeleter.java.
3730 * Makefile.in: Rebuilt.
3732 2000-09-02 Tom Tromey <tromey@cygnus.com>
3734 * Makefile.in: Rebuilt.
3735 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3736 environment variable.
3738 2000-09-01 Andrew Haley <aph@redhat.com>
3740 * java/io/StreamTokenizer.java: Don't throw a
3741 NumberFormatException if a field is numeric as far as the
3742 StreamTokenizer is concerned but not as far as Double.valueOf() is
3743 concerned: return a zero instead.
3745 2000-08-30 Tom Tromey <tromey@cygnus.com>
3747 * Makefile.in: Rebuilt.
3748 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3750 2000-08-28 Tom Tromey <tromey@cygnus.com>
3752 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3753 gnu/gcj/awt/ComponentDataBlitOp.java,
3754 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3755 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3756 java/awt/color/ICC_ColorSpace.java,
3757 java/awt/color/ICC_Profile.java,
3758 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3759 java/awt/image/ComponentColorModel.java,
3760 java/awt/image/ComponentSampleModel.java,
3761 java/awt/image/DataBuffer.java,
3762 java/awt/image/DataBufferByte.java,
3763 java/awt/image/DataBufferInt.java,
3764 java/awt/image/DataBufferUShort.java,
3765 java/awt/image/DirectColorModel.java,
3766 java/awt/image/IndexColorModel.java,
3767 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3768 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3769 java/awt/image/SinglePixelPackedSampleModel.java,
3770 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3771 Removed Latin-1 copyright symbols.
3772 * java/util/zip/ZipFile.java: Indentation fixes.
3774 2000-08-27 Mark Wielaard <mark@klomp.org>
3776 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3777 constructor, close can delete the file, finalize calls close.
3778 * java/util/jar/JarFile.java: Constructor that takes mode now
3781 2000-08-27 Anthony Green <green@redhat.com>
3783 * java/util/ArrayList.java, java/util/Timer.java,
3784 java/util/LinkedList.java, java/util/TimerTask.java,
3785 java/util/HashMap.java, java/util/AbstractMap.java,
3786 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3787 java/util/SortedSet.java: Imported from GNU Classpath.
3788 * Makefile.in: Rebuilt.
3789 * Makefile.am: Added new files.
3791 2000-08-26 Anthony Green <green@redhat.com>
3793 * Makefile.in: Rebuilt.
3794 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3797 * prims.cc: Include ClassLoader.h.
3798 (_Jv_RunMain): When executing jar files, classpath must be the jar
3799 file only. Lose our reference to the system ClassLoader in order
3800 to get a new one with the correct classpath.
3801 * java/lang/natSystem.cc (init_properties): When executing a jar
3802 file, only use the jar file for java.class.path.
3804 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3805 for bytecode archives.
3807 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3808 exists, but not Main-Class.
3810 2000-08-23 Mark Wielaard <mark@klomp.org>
3812 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3813 return -1 when fill() has no more data for the Inflater.
3815 2000-08-23 Mark Wielaard <mark@klomp.org>
3817 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3818 write(String) already does.
3820 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3822 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3823 to `alive_flag', call `init'.
3824 (init): New native method.
3825 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3828 2000-08-21 Mark Wielaard <mark@klomp.org>
3830 * Makefile.in: Rebuilt.
3831 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3833 (java/lang/reflect/Field.h): Likewise.
3834 (java/lang/reflect/Method.h): Likewise.
3835 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3838 2000-08-21 Tom Tromey <tromey@cygnus.com>
3840 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3843 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3845 * java/lang/natSystem.cc (init_properties): Change sourceware
3846 reference to sources.redhat.com.
3848 * include/java-props.h: Add _Jv_Jar_Class_Path.
3849 * prims.cc: Ditto. Set it from `gij -jar file' option.
3851 * java/lang/natSystem.cc (init_properties): Set java.class.path
3853 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3855 * java/util/PropertyPermission.java: Import from GNU Classpath.
3856 * Makefile.in: Rebuilt.
3857 * Makefile.am: Add java/util/PropertyPermission.java.
3858 * java/lang/System.java: Add setProperty method.
3860 * gij.cc (main): Add -jar option to execute jar files.
3861 (help): Describe -jar option.
3862 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3863 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3864 * gnu/gcj/runtime/FirstThread.java (main): New method.
3866 * java/util/jar/Attributes.java: Correct comment spelling.
3868 2000-08-20 Mark Wielaard <mark@klomp.org>
3870 * java/util/zip/Adler32.java: Make private variables really private
3871 * java/util/zip/CRC32.java: Make private variables really private
3872 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3874 * java/util/zip/InflaterInputStream.java: skip() could skip to
3876 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3877 * java/util/zip/ZipFile.java: size() new 1.2 method
3878 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3879 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3882 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3884 * java/util/jar/JarFile.java: Don't call
3885 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3888 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3890 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3891 Read the entire contents of the class file, not just what is
3894 * java/net/JarURLConnection.java: getEntry doesn't take any
3895 arguments. Return null if element is null.
3897 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3898 size from the archive, not the inflated size.
3900 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3901 java.util.zip.ZipFile.getEntry.
3903 * gij.cc (help): Change sourceware reference to
3906 2000-08-19 Tom Tromey <tromey@cygnus.com>
3908 * java/util/zip/ZipInputStream.java (createZipEntry):
3911 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3913 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3914 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3915 java/util/jar/JarInputStream.java,
3916 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3917 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3918 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3919 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3920 java/security/cert/Certificate.java,
3921 java/security/cert/CertificateEncodingException.java,
3922 java/security/cert/CertificateException.java,
3923 java/security/cert/CertificateExpiredException.java,
3924 java/security/cert/CertificateFactory.java,
3925 java/security/cert/CertificateFactorySpi.java,
3926 java/security/cert/CertificateNotYetValidException.java,
3927 java/security/cert/CertificateParsingException.java,
3928 java/security/cert/X509CRL.java,
3929 java/security/cert/X509CRLEntry.java,
3930 java/security/cert/X509Certificate.java,
3931 java/security/cert/X509Extension.java: Imported from Classpath.
3932 * java/util/Hashtable.java: Imported from Classpath.
3934 * java/util/zip/ZipInputStream.java: Create stub for
3937 * gcj/javaprims.h: Updated class list.
3939 * Makefile.in, gcj/Makefile.in: Rebuilt.
3940 * Makefile.am (ordinary_java_source_files): Add these new classes.
3942 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3944 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3945 * gnu/gcj/awt/GLightweightPeer.java: New file.
3946 * java/awt/BorderLayout.java: Implemented all methods.
3947 * java/awt/Button.java (actionListener, actionCommand): Renamed
3948 and modifier change.
3949 (addNotify): Call super.
3950 (dispatchEventImpl): New method.
3951 (getListeners): New method.
3952 (label): Made package-private, not private.
3953 * java/awt/Canvas.java: Implemented class body.
3954 * java/awt/Color.java (brighter): New method.
3955 (darker): New method.
3956 (hashCode): New method.
3957 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3958 (getGraphicsConfiguration): Delegate to
3959 getGraphicsConfigurationImpl().
3960 (getGraphicsConfigurationImpl): New method.
3961 (getToolkit): Only return value from peer if not null.
3962 (isDisplayable): Check with parent.
3963 (isShowing): No parent implies not showing.
3964 (getForeground): Check parent property if local is null.
3965 (getBackground): Likewise.
3966 (getFont): Likewise.
3967 (setForeground): Inform peer.
3968 (setBackground): Likewise
3969 (setLocale): Invalidate component.
3970 (getColorModel): Implemented.
3971 (setLocation): Invalidate, or ignore if no change.
3972 (setSize): Invalidate, or ignore if no change.
3973 (setBounds): Invalidate, or ignore if no change.
3974 (isOpaque): By default, heavyweight implies opaque.
3975 (isLightweight): Implemented.
3976 (getMaximumSize): Implemented.
3977 (doLayout): Implemented, NOP.
3978 (validate): Implemented, NOP.
3979 (invalidate): Only propagate to parent if parent was valid.
3980 (getGraphics): Implemented.
3981 (getFontMetrics): Implemented.
3982 (update): Implemented.
3983 (paintAll): Implemented.
3984 (repaint): Implemented all repaint methods.
3985 (print): Implemented.
3986 (printAll): Implemented.
3987 (createImage): Implemented.
3988 (dispatchEvent): Give the peer a chance to handle the event.
3989 (dispatchEventImpl): Dispatch paint events.
3990 (enableEvents): Lightweights enable events on parent component.
3991 (coalesceEvents): Coalesce paint events, and select event type
3993 (coalescePaintEvents): New method.
3994 (processEvent): Fix unfortunate ordering of statements, and call
3995 correct method for MOUSE_CLICKED.
3996 (processPaintEvent): New method.
3997 (addNotify): Allow container to notify children before event
3998 mask is set in peer.
3999 (addNotifyContainerChildren): New method.
4000 (removeNotify): Visibility should not change on removeNotify.
4001 (paramString): Implemented.
4002 (list): Implemented two of the list methods.
4003 * Container (myInsets): Removed, insets are managed by peer.
4004 (getInsets): Query peer.
4005 (addImpl): Fix reparenting, enable events for lightweights,
4006 initialize component array.
4007 (validate): Call doLayout in validateTree() instead.
4008 (validateTree): Do nothing if already valid. Call beginValidate(),
4009 endValidate() on peer. Call validateTree() instead of validate()
4010 for children that are containers. Mark valid after validation of
4012 (setFont): Partial implementation.
4013 (paint): Implemented.
4014 (visitChildren): New method.
4015 (visitChild): New method.
4016 (update): Implemented.
4017 (print): Implemented.
4018 (paintComponents): Implemented.
4019 (printComponents): Consider translation and clipping.
4020 (getComponentAt): Ignore invisible children. Return this if no
4022 (addNotify): Call super.
4023 (addNotifyContainerChildren): New method.
4024 (paramString): Implemented.
4025 (list): Implemented.
4026 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4028 (invokeLater): Likewise.
4029 (isDispatchThread): Likewise.
4030 * java/awt/FontMetrics (getLeading): Formula change.
4031 (getDescent): Consider leading also.
4032 (getMaxAscent): Default to getAscent().
4033 (getMaxDescent): Default to getDescent.
4034 (getMaxAdvance): Return value signifying unknown.
4035 (charWidth): Both methods implemented.
4036 (charsWidth): Implemented.
4037 (bytesWidth): Implemented.
4038 (getWidths): Implemented.
4039 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4041 (Frame): Rearragend constuctor chaining to disallow null being
4042 passed as a graphics configuration.
4043 (getTitle): Return empty string if null.
4045 (getIconImage): New method.
4046 (setIconImage): New method.
4047 (finalize): New method.
4048 (setMenuBar): Notify peer.
4049 (isResizable): New method.
4050 (setResizable): New method.
4051 (getState): New method.
4053 (remove): Implemented.
4054 (removeNotify): New method.
4055 (getFrames): New method.
4056 * java/awt/Graphics.java: Implemented body of class.
4057 * java/awt/Graphics2D.java: New file.
4058 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4059 * java/awt/Image.java: Implemented body of class.
4060 * java/awt/Panel.java (Panel): Call correct super constructor.
4061 (addNotify): Implemented.
4062 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4063 * java/awt/RenderingHints.java: New file.
4064 * java/awt/Toolkit.java (createComponent): Implemented.
4065 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4066 * java/awt/Window.java (Window): Two new constructors. Reordered
4067 constructor chaining.
4068 (getGraphicsConfigurationImpl): New method.
4069 (finalize): Call super.
4070 (addNotify): Call super.
4071 (pack): Do layout stuff.
4072 (show): Ensure that peer exists and that component is valid.
4073 (dispose): Dispose owned children.
4074 (getOwner): Simplify code, casting null pointers is valid.
4075 (getGraphicsConfiguration): Ask peer if local value is null.
4076 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4078 * java/awt/image/BufferedImage.java: New file.
4079 * java/awt/image/RasterOp.java: New file.
4080 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4081 More powerfull replacement for getColorModel().
4082 (getColorModel) Removed.
4083 (setEventMask) New method.
4084 * Makefile.am: Added new files.
4085 * Makefile.in: Rebuilt.
4087 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4089 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4090 (finit_leg_name): New global.
4091 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4092 `$finit$'. This is a backward compatibility hack.
4093 (java::lang::Class::_getMethods): Likewise.
4095 2000-08-15 Andrew Haley <aph@cygnus.com>
4097 * include/jvm.h (_Jv_HashCode): New hash code.
4099 2000-08-15 Tom Tromey <tromey@cygnus.com>
4101 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4103 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4105 * THANKS: More thanks.
4107 2000-08-10 Tom Tromey <tromey@cygnus.com>
4109 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4111 (connect): Likewise.
4113 (getOption): Likewise.
4114 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4115 case when errno not set.
4118 (receive): Likewise.
4119 (mcastGrp): Likewise.
4120 (setOption): Likewise.
4121 (getOption): Likewise.
4123 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4124 John Stracke <francis@ecal.com>
4126 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4127 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4129 (disconnect): Don't unset connected flag.
4130 (getHeaderField (String)): Call connect() if not connected.
4131 (getHeaderField (int)): Ditto.
4132 (getHeaderFieldKey): Ditto.
4133 (getHttpHeaders): Don't call connect().
4134 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4135 gotResponseVals): New fields.
4136 (getResponseCode): Call getResponseVals() conditionally.
4137 (getResponseMessage): Ditto.
4138 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4140 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4142 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4143 * Makefile.in: Rebuilt.
4144 * java/awt/Color.java (getTransparency): New method.
4145 * java/awt/Component.java: Various updates.
4146 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4147 after dealing with children.
4148 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4149 * java/awt/Window.java: Various new methods and updates.
4150 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4152 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4153 * java/awt/event/WindowEvent.java (paramString): Ditto.
4154 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4156 * java/awt/geom/Point2D.java (clone): Ditto.
4157 * java/awt/geom/RectangularShape.java (clone): Ditto.
4158 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4159 isAlphaPremultiplied): Make package-private, not private.
4161 2000-08-08 Tom Tromey <tromey@cygnus.com>
4163 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4164 surrogate characters.
4165 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4167 (write): Correct handling of surrogate characters.
4169 2000-08-07 Tom Tromey <tromey@cygnus.com>
4171 * java/lang/reflect/Method.java (hashCode): Use getName().
4172 (toString): Likewise.
4173 * java/lang/reflect/natMethod.cc (getType): Initialize
4176 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4178 * java/lang/reflect/Field.java (toString): Correct formatting.
4181 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4183 (receive): Streamlined.
4185 2000-08-05 Tom Tromey <tromey@cygnus.com>
4187 * java/io/PrintWriter.java: Merged comments from Classpath.
4188 (printlnUnsynchronized): Removed.
4189 (println()): Print the separator.
4190 (println): Call println(), not printlnUnsynchronized.
4191 (out): Now protected, to match spec.
4193 2000-08-04 Tom Tromey <tromey@cygnus.com>
4195 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4196 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4199 2000-08-03 Warren Levy <warrenl@cygnus.com>
4201 * java/io/ObjectInputStream.java (readFields): Turn off
4202 readDataFromBlock while reading via GetField.
4203 (GetField$1.get(String, Object)): Pass Class of default value to
4205 (getField): Allow for null default values.
4207 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4208 (PutField$1.put): Fixed calls of checkType in most of the put
4209 methods to pass the correct parameter.
4210 (PutField$1.put(String, Object)): Allow for null value arg.
4211 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4214 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4215 typo in spec'ed field name.
4216 (getSerialPersistentFields): Changed spelling of method to match
4217 the correct spelling of the spec'ed field name.
4219 2000-08-03 Tom Tromey <tromey@cygnus.com>
4221 * Makefile.in: Rebuilt.
4222 * Makefile.am (awt_java_source_files): Added new files.
4224 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4226 * Makefile.am: Add new AWT stubs.
4227 * java/awt/Canvas.java: New placeholder class.
4228 * java/awt/Checkbox.java: Ditto.
4229 * java/awt/CheckboxMenuItem.java: Ditto.
4230 * java/awt/Choice.java: Ditto.
4231 * java/awt/Dialog.java: Ditto.
4232 * java/awt/FileDialog.java: Ditto.
4233 * java/awt/List.java: Ditto.
4234 * java/awt/ScrollPane.java: Ditto.
4235 * java/awt/TextField.java: Ditto.
4236 * java/awt/datatransfer/Clipboard.java: Ditto.
4237 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4238 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4239 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4240 Some commented out. Partially implemented.
4241 * java/awt/natToolkit.cc: Removed file.
4243 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4245 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4246 Fixes "make -j" builds.
4247 * Makefile.in: Rebuild.
4249 2000-08-02 Tom Tromey <tromey@cygnus.com>
4251 * Makefile.in: Rebuilt.
4252 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4253 * java/net/natPlainSocketImpl.cc: Include posix.h.
4254 (accept): Use _Jv_select.
4255 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4256 (receive): Use _Jv_select.
4257 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4258 (available): Use _Jv_select.
4259 * java/lang/natSystem.cc: Include posix.h.
4260 (currentTimeMillis): Use _Jv_gettimeofday.
4261 * include/posix.h: New file.
4262 * posix.cc: New file.
4264 * scripts/encodings.pl: New file.
4265 * Makefile.in: Rebuilt.
4266 * Makefile.am (convert_source_files): Added IOConverter.java.
4267 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4269 (getDefaultDecodingClass): Canonicalize default encoding name.
4270 (getEncoder): Likewise.
4271 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4273 (getDefaultDecodingClass): Canonicalize default encoding name.
4274 (getDecoder): Likewise.
4275 * gnu/gcj/convert/IOConverter.java: New file.
4277 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4279 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4280 to match C declaration in ffi.h.
4281 * Makefile.am: Add java/awt/Button.java.
4282 * Makefile.in: Rebuilt.
4284 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4286 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4287 cast of the second argument to `ffi_raw_call' changed to match
4290 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4292 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4293 argument to `ffi_raw_call' changed to match prototype.
4295 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4297 * java/awt/Component.java (toString): Implemented.
4298 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4299 dispatchEvent() to dispatch the event.
4300 (removeImpl): Ditto.
4302 2000-07-30 Anthony Green <green@redhat.com>
4304 * java/awt/Component.java: Add treeLock object.
4305 (getTreeLock): Implement.
4306 (isShowing): Implement.
4308 2000-07-30 Tom Tromey <tromey@cygnus.com>
4310 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4312 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4314 * java/awt/Window.java (addNotify): Wrote.
4315 (addWindowListener): Wrote.
4317 (getWarningString): Wrote.
4318 (processEvent): Wrote.
4319 (processWindowEvent): Wrote.
4320 (removeWindowListener): Wrote.
4321 (show): Call validate(), setVisible().
4325 * java/awt/Toolkit.java (createWindow): Declare.
4327 * java/awt/Frame.java (addNotify): Use getToolkit to find
4330 * java/awt/Component.java (invalidate): Wrote.
4332 (getToolkit): Wrote.
4334 * java/awt/Container.java (addContainerListener): Removed
4336 (removeContainerListener): Likewise.
4338 (add(Component)): Use it.
4339 (add(String,Component)): Likewise.
4340 (add(Component,int)): Likewise.
4341 (add(Component,Object)): Likewise.
4342 (add(Component,Object,int)): Likewise.
4344 (getAlignmentX): Wrote.
4345 (getAlignmentY): Wrote.
4346 (getComponentAt): Wrote.
4347 (getMaximumSize): Wrote.
4348 (invalidate): Wrote.
4349 (list(PrintStream,int)): Wrote.
4350 (list(PrintWriter,int)): Wrote.
4351 (getMinimumSize): Wrote.
4352 (getPreferredSize): Wrote.
4353 (printComponents): Wrote.
4354 (processContainerEvent): Look at containerListener, not
4356 (remove): Added event processing and peer destruction.
4357 (removeAll): Use remove.
4358 (removeNotify): Wrote.
4360 (validateTree): Wrote.
4362 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4363 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4364 * java/awt/Container.java (addNotify): Don't create Container
4366 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4368 2000-07-30 Tom Tromey <tromey@cygnus.com>
4370 * java/awt/Container.java (remove(int)): Wrote.
4371 (remove(Component)): Wrote.
4372 (add(Component)): Wrote.
4373 (add(Component,int)): Wrote.
4375 (addNotify): Set our own peer.
4376 * java/awt/Scrollbar.java (listeners): Changed type.
4377 (Scrollbar): Don't initialize listeners.
4379 (setValue): Call setValues.
4380 (setMinimum): Likewise.
4381 (setMaxPriority): Likewise.
4382 (setVisibleAmount): Likewise.
4384 (setUnitIncrement): Forward to peer.
4385 (setLineIncrement): Call setUnitIncrement.
4386 (setPageIncrement): Call setBlockIncrement.
4387 (setBlockIncrement): Forward to peer.
4388 (addAdjustmentListener): Rewrote.
4389 (removeAdjustmentListener): Rewrote.
4390 (processAdjustmentEvent): Rewrote.
4391 (paramString): Wrote.
4392 * Makefile.in: Rebuilt.
4393 * Makefile.am (awt_java_source_files): Added Button.java.
4394 * java/awt/Button.java: New file.
4395 * java/awt/Toolkit.java (createLabel): Declare.
4396 (createButton): Likewise.
4397 (createScrollbar): Likewise.
4398 (createContainer): Likewise.
4399 * java/awt/Label.java (addNotify): Wrote.
4400 (setAlignment): Call setAlignment in the peer.
4401 (setText): Call setText in the peer.
4403 2000-07-28 Warren Levy <warrenl@cygnus.com>
4405 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4406 NotSerializableException with just the class name.
4408 2000-07-26 Andrew Haley <aph@cygnus.com>
4410 * interpret.cc (continue1): Insert missing break into switch.
4412 2000-07-28 Warren Levy <warrenl@cygnus.com>
4414 * java/io/ObjectStreamException.java: Made constructors protected.
4416 2000-07-27 Tom Tromey <tromey@cygnus.com>
4418 * java/io/OutputStreamWriter.java (close): Only flush if not
4421 2000-07-27 Warren Levy <warrenl@cygnus.com>
4423 * mauve-libgcj: Activated serialization tests.
4424 * gcj/field.h (getModifiers): Mask off unknown flags.
4425 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4426 spurious bits don't cause discrepancies.
4427 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4428 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4429 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4430 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4431 * java/lang/Throwable.java (serialVersionUID): New field.
4432 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4433 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4435 * java/lang/reflect/natMethod.cc: Ditto.
4436 * java/security/Key.java (serialVersionUID): Removed field for now.
4437 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4438 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4440 2000-07-22 Tom Tromey <tromey@cygnus.com>
4442 * java/awt/geom/RectangularShape.java (getPathIterator):
4445 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4447 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4448 stub libjava/java/awt/ColorModel.java which was located in the
4450 * libjava/java/awt/image/ComponentColorModel.java: New file.
4451 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4452 * libjava/java/awt/image/DataBuffer.java: New file.
4453 * libjava/java/awt/image/DataBufferByte.java: New file.
4454 * libjava/java/awt/image/DataBufferInt.java: New file.
4455 * libjava/java/awt/image/DataBufferUShort.java: New file.
4456 * libjava/java/awt/image/DirectColorModel.java: New file.
4457 * libjava/java/awt/image/PackedColorModel.java: New file.
4458 * libjava/java/awt/image/Raster.java: New file.
4459 * libjava/java/awt/image/SampleModel.java: New file.
4460 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4462 * libjava/java/awt/image/IndexColorModel.java: New file.
4463 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4464 java.awt.ColorModel stub.
4466 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4467 * gnu/gcj/util/Buffers.java: New file, utility class.
4469 * libjava/Makefile.am: Updated to include new files.
4470 * libjava/Makefile.in: Rebuilt.
4472 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4474 * java/io/StreamTokenizer.java: Merged with classpath.
4476 2000-07-20 Tom Tromey <tromey@cygnus.com>
4478 * Makefile.in: Rebuilt.
4479 * Makefile.am (awt_java_source_files): Updated for new files.
4480 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4481 * java/awt/Label.java: New file.
4482 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4483 (createIntersection, createUnion, getBounds2D): New methods.
4484 * java/awt/Scrollbar.java: New file.
4485 * java/awt/Shape.java: Updated to 1.2.
4486 * java/awt/geom/AffineTransform.java: New file.
4487 * java/awt/geom/Ellipse2D.java: New file.
4488 * java/awt/geom/NoninvertibleTransformException.java: New file.
4489 * java/awt/geom/PathIterator.java: New file.
4490 * java/awt/geom/Rectangle2D.java: New file.
4491 * java/awt/geom/RectangularShape.java: New file.
4492 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4493 * java/awt/geom/IllegalPathStateException.java: New file.
4495 * scripts/showval.java: New file.
4497 * scripts/classes.pl (scan): Print inner classes properly.
4498 * gcj/javaprims.h: Updated class list.
4500 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4501 initialize String fields for interpreted classes. Fixes bug
4502 reported by Hans Boehm.
4504 * java/io/File.java (getParentFile): New method, from Classpath
4505 via Oskar Liljeblad.
4507 * java/util/Vector.java (remove(Object)): Implemented.
4509 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4511 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4512 zero return from backtrace().
4514 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4516 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4518 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4519 before calling notifyAll().
4521 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4523 Add missing files from last check-in:
4524 * java/awt/image/ImageConsumer.java: New file.
4525 * java/awt/image/ImageProducer.java: New file.
4526 * java/awt/image/ImageObserver.java: New file.
4528 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4530 Merged implementation of java.applet from classpath:
4531 * java/applet/Applet.java: New file.
4532 * java/applet/AppletContext.java: New file.
4533 * java/applet/AppletStub.java: New file.
4534 * java/applet/AudioClip.java: New file.
4536 * Makefile.am: Added new java.applet classes.
4537 * Makefile.in: Rebuilt.
4539 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4542 * java/util/ResourceBundle.java (getLocale): stub.
4543 * Makefile.am: Added new AWT classes.
4544 * Makefile.in: Rebuilt.
4545 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4546 constructors. Fix toString() and paramString().
4547 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4548 * java/awt/CheckboxGroup.java: New class.
4549 * java/awt/ColorModel.java: New class.
4550 * java/awt/Component.java: Added stubs for most methods. Implemented
4552 * java/awt/Container.java: ditto.
4553 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4554 * java/awt/Cursor.java: ditto.
4555 * java/awt/Event.java: Fix paramString().
4556 * java/awt/EventQueue.java: New class. Implemented.
4557 * java/awt/Font.java: Added additional stub methods. Implemented
4559 * java/awt/FontMetrics.java: New class. Stubbed.
4560 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4562 * java/awt/Insets.java: New class. Implemented.
4563 * java/awt/Menu.java: Add new methods. Partially implemented.
4564 * java/awt/MenuItem.java: Add new methods and fields. Partially
4566 * java/awt/MenuShortcut.java: New class. Implemented.
4567 * java/awt/Panel.java: New class. Placeholder.
4568 * java/awt/PopupMenu.java: New class. Stubbed.
4569 * java/awt/Rectangle.java: New class. Implemented.
4570 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4571 * java/awt/event/ActionEvent.java: Implement paramString().
4572 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4573 * java/awt/event/ComponentEvent.java: Implement paramString().
4574 * java/awt/event/ContainerEvent.java: Implement paramString().
4575 * java/awt/event/FocusEvent.java: Implement paramString().
4576 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4577 * java/awt/event/HierarchyBoundsListener.java: New class.
4578 * java/awt/event/HierarchyEvent.java: New class.
4579 * java/awt/event/HierarchyListener.java: New class.
4580 * java/awt/event/InputMethodEvent.java: Implement paramString().
4581 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4582 exception if !catchExceptions.
4583 * java/awt/event/ItemEvent.java: Implement paramString().
4584 * java/awt/event/KeyEvent.java: Implement paramString().
4585 * java/awt/event/MouseEvent.java: Implement paramString().
4586 * java/awt/event/PaintEvent.java: Implement paramString().
4587 * java/awt/event/TextEvent.java: Implement paramString().
4588 * java/awt/event/WindowEvent.java: Implement paramString().
4590 AWT Peer interfaces:
4591 * java/awt/peer/ButtonPeer.java: New file.
4592 * java/awt/peer/ListPeer.java: New file.
4593 * java/awt/peer/CanvasPeer.java: New file.
4594 * java/awt/peer/MenuBarPeer.java: New file.
4595 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4596 * java/awt/peer/MenuComponentPeer.java: New file.
4597 * java/awt/peer/CheckboxPeer.java: New file.
4598 * java/awt/peer/MenuItemPeer.java: New file.
4599 * java/awt/peer/ChoicePeer.java: New file.
4600 * java/awt/peer/MenuPeer.java: New file.
4601 * java/awt/peer/ComponentPeer.java: Implemented.
4602 * java/awt/peer/PanelPeer.java: New file.
4603 * java/awt/peer/ContainerPeer.java: Implemented.
4604 * java/awt/peer/PopupMenuPeer.java: New file.
4605 * java/awt/peer/DialogPeer.java: New file.
4606 * java/awt/peer/ScrollPanePeer.java: New file.
4607 * java/awt/peer/FileDialogPeer.java: New file.
4608 * java/awt/peer/ScrollbarPeer.java: New file.
4609 * java/awt/peer/FontPeer.java: New file.
4610 * java/awt/peer/TextAreaPeer.java: New file.
4611 * java/awt/peer/FramePeer.java: Implemented.
4612 * java/awt/peer/TextComponentPeer.java: New file.
4613 * java/awt/peer/LabelPeer.java: New file.
4614 * java/awt/peer/TextFieldPeer.java: New file.
4615 * java/awt/peer/LightweightPeer.java: New file.
4616 * java/awt/peer/WindowPeer.java: Implemented.
4618 2000-07-06 Tom Tromey <tromey@cygnus.com>
4620 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4621 Initialize static final String fields.
4623 2000-07-03 Tom Tromey <tromey@cygnus.com>
4625 * java/io/PrintWriter.java (print): Call write(String), not
4626 print(String). See PR libgcj/277.
4627 (print(String)): Use write, not out.write.
4629 2000-06-30 Tom Tromey <tromey@cygnus.com>
4631 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4633 2000-06-27 Andrew Haley <aph@cygnus.com>
4635 * java/io/File.java (createTempFile): Close the FileDescriptor
4636 used to create a temp file. Fixes some of PR 203.
4637 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4638 collection if we run out of file handles.
4640 2000-06-28 Warren Levy <warrenl@cygnus.com>
4642 * gnu/java/security/provider/Gnu.java: New file.
4643 * gnu/java/security/provider/SHA.java: New file.
4644 * gnu/java/security/provider/SHA1PRNG.java: New file.
4645 * Makefile.am: Added the above files.
4646 * Makefile.in: Rebuilt.
4648 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4650 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4652 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4653 (destroyed_flag): Removed.
4654 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4655 (activeCount): Added spec note.
4657 2000-06-27 Warren Levy <warrenl@cygnus.com>
4659 * java/security/Principal.java: New file.
4660 * Makefile.am: Added Principal.java.
4661 * Makefile.in: Rebuilt.
4663 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4665 * java/awt/event/MouseEvent.java: Fixed coordinate space
4668 2000-06-27 Tom Tromey <tromey@cygnus.com>
4670 * java/io/PushbackInputStream.java (read): If there are characters
4671 in the buffer, don't also call super.read().
4672 * java/io/PushbackReader.java (read): If there are characters in
4673 the buffer, don't also call super.read().
4675 * java/lang/Double.java (valueOf): Call parseDouble().
4677 2000-06-26 Warren Levy <warrenl@cygnus.com>
4679 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4680 (newVal): Renamed to newValue.
4681 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4682 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4683 (revokeNow): Renamed to invalidateRefs.
4684 * java/io/OptionalDataException.java: Updated FIXME.
4685 (eof): New placeholder field.
4687 * java/io/WriteAbortedException.java (message): Made transient.
4688 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4689 * java/lang/Throwable.java (stackTrace): Made transient.
4690 * java/net/InetAddress.java: Made Serializable.
4691 * java/security/KeyPair.java: Made Serializable.
4692 * java/security/Provider.java: Replaced with Classpath version that
4693 implements serialization and proper methods.
4694 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4695 (limits): Renamed to choiceLimits.
4697 2000-06-24 Tom Tromey <tromey@cygnus.com>
4699 * java/lang/natDouble.cc (parseDouble): Renamed from
4701 * java/lang/Double.java (parseDouble): Renamed from
4702 doubleValueOf. Now public.
4704 2000-06-23 Andrew Haley <aph@cygnus.com>
4706 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4707 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4709 2000-06-23 Tom Tromey <tromey@cygnus.com>
4711 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4712 * java/lang/natDouble.cc: Always include <alloca.h>.
4713 Fix for PR libgcj/267.
4715 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4717 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4718 comply with classpath VM spec.
4719 (add(Group)): Rename to addGroup().
4720 * java/lang/Thread.java (Thread): Use addThread().
4721 * java/lang/natThread.cc (finish_): Use removeThread().
4723 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4725 * java/lang/ThreadGroup.java: Merged with classpath.
4726 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4727 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4729 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4730 ThreadGroup.root if Thread.currentThread is null. Honour the
4731 ThreadGroup's max priority setting.
4733 2000-06-18 Tom Tromey <tromey@cygnus.com>
4735 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4736 returned class. For PR gcj/260.
4738 2000-06-16 Tom Tromey <tromey@cygnus.com>
4740 Fix for PR libgcj/261:
4741 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4743 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4744 argument. (This is a patch from long ago that somehow went
4747 2000-06-15 Tom Tromey <tromey@cygnus.com>
4749 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4753 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4755 Fix for PR java.lang/258:
4756 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4757 JV_STATE_DONE, to prevent accidental initialization.
4758 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4759 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4760 interface or an abstract class. Remove redundant initializeClass calls.
4761 Remove duplicate if_idt test.
4762 (_Jv_InterfaceAssignableFrom): New function.
4763 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4765 2000-05-31 Tom Tromey <tromey@cygnus.com>
4767 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4768 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4769 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4770 (NUM_OBJECT_METHODS): New define.
4771 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4772 `array_vtable' parameter. Added assertion.
4773 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4776 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4778 * gcj/cni.h: Include <string.h>.
4779 * defineclass.cc: Include <alloca.h>.
4780 * interpret.cc: Ditto.
4781 * gij.cc: Include <stdlib.h>.
4783 2000-05-30 Tom Tromey <tromey@cygnus.com>
4785 * include/name-finder.h: Include <sys/wait.h>.
4786 (_Jv_name_finder::pid): Now of type `pid_t'.
4787 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4788 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4791 2000-05-24 Warren Levy <warrenl@cygnus.com>
4793 * java/io/ObjectOutputStream.java (writeObject): Use component type
4794 when writing arrays.
4797 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4799 Fix for PR libgcj/226:
4800 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4801 since this is an installed header.
4803 Fix for PR libgcj/228:
4804 * java/util/zip/ZipFile (getInputStream): Create inflater with
4807 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4808 with DataFormatException.
4810 2000-05-20 Tom Tromey <tromey@cygnus.com>
4812 * Makefile.in: Rebuilt.
4813 * Makefile.am (hack1): Removed.
4814 (awto_files): Likewise.
4815 (libgcjawt_la_SOURCES): Likewise.
4816 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4817 (libgcjawt_la_DEPENDENCIES): Likewise.
4818 (libgcjawt_la_LIBADD): Likewise.
4819 (libgcjawt_la_LDFLAGS): Likewise.
4820 (libgcjawt_la_LINK): Likewise.
4821 ($(awt_java_source_files:.java=.class)): Likewise.
4822 (libgcj.zip): Don't depend on AWT files.
4823 (MOSTLYCLEANFILES): Don't include AWT files.
4824 ($(awto_files)): Removed.
4825 (nat_headers): Removed AWT files.
4826 (cond_awt_java_source_files): Removed.
4827 (ordinary_java_source_files): Added awt_java_source_files.
4828 * libgcj.spec.in (*lib): Removed -lgcjawt.
4829 * configure: Rebuilt.
4830 * configure.in: Removed --enable-java-awt option.
4832 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4834 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4835 (ZipEntry): Copy the `name' field.
4836 (clone): Implement JDK1.2 method.
4837 (setCompressedSize): ditto.
4840 2000-05-19 Tom Tromey <tromey@cygnus.com>
4842 * java/io/BufferedWriter.java: Merged with Classpath.
4843 * java/io/BufferedOutputStream.java: Merged with Classpath.
4845 2000-05-16 Andrew Haley <aph@cygnus.com>
4847 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4848 build_ia64_frame_state.
4849 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4852 2000-05-15 Warren Levy <warrenl@cygnus.com>
4854 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4855 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4856 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4857 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4858 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4859 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4860 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4861 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4862 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4863 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4864 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4865 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4866 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4867 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4868 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4869 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4870 * gnu/gcj/io/NullOutputStream.java: Removed.
4871 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4872 * gnu/gcj/lang/ArrayHelper.java: Removed.
4873 * gnu/gcj/lang/ClassHelper.java: Removed.
4874 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4876 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4877 * gnu/java/beans/EmptyBeanInfo.java: New file.
4878 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4879 * gnu/java/beans/IntrospectionIncubator.java: New file.
4880 * gnu/java/beans/editors/ColorEditor.java: New file.
4881 * gnu/java/beans/editors/FontEditor.java: New file.
4882 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4883 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4884 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4885 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4886 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4887 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4888 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4889 * gnu/java/beans/editors/StringEditor.java: New file.
4890 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4891 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4892 * gnu/java/io/NullOutputStream.java: New file.
4893 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4894 * gnu/java/lang/ArrayHelper.java: New file.
4895 * gnu/java/lang/ClassHelper.java: New file.
4896 * gnu/java/lang/reflect/TypeSignature.java: New file.
4898 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4899 namespace back to the original Classpath gnu/java namespace.
4900 * Makefile.in: Rebuilt.
4902 * java/beans/Beans.java: Namespace change.
4903 * java/beans/EventSetDescriptor.java: Namespace change.
4904 * java/beans/Introspector.java: Namespace change.
4905 * java/beans/PropertyEditorManager.java: Namespace change.
4906 * java/io/ObjectInputStream.java: Namespace change.
4907 * java/io/ObjectOutputStream.java: Namespace change.
4908 * java/io/ObjectStreamClass.java: Namespace change.
4909 * java/io/ObjectStreamField.java: Namespace change.
4911 2000-04-21 Warren Levy <warrenl@cygnus.com>
4913 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4914 now that compiler patch is available.
4915 Removed unneeded System.loadLibrary.
4916 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4917 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4919 2000-04-19 Andrew Haley <aph@cygnus.com>
4921 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4922 and target classes have been initialized.
4924 2000-04-19 Andrew Haley <aph@cygnus.com>
4926 * java/lang/String.java: implement Serializable, Comparable.
4927 (compareTo (Object)): New method.
4929 2000-04-19 Warren Levy <warrenl@cygnus.com>
4931 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4932 instead of getField to retrieve non-public field.
4933 (getSerialPersistantFields): Ditto.
4935 2000-04-18 Warren Levy <warrenl@cygnus.com>
4937 * mauve-libgcj: Turned off object serialization tests temporarily
4938 due to compiler error.
4940 2000-04-17 Warren Levy <warrenl@cygnus.com>
4942 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4943 to avoid build problem.
4945 * mauve-libgcj: Turned on object serialization tests.
4947 2000-04-17 Tom Tromey <tromey@cygnus.com>
4949 * libgcj.spec.in (*lib): Added -lgcjawt.
4951 2000-04-17 Andrew Haley <aph@cygnus.com>
4953 * Makefile.am: Add new files:
4954 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4956 * Makefile.in: Rebuilt.
4958 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4959 interface that has no implementations.
4960 Check for an attempt to assign an abstract class to an interface.
4962 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4963 if we fail to find MessageDigest.getInstance ("SHA").
4965 * gnu/gcj/io/SimpleSHSStream.java: New file.
4966 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4967 * gnu/gcj/io/shs.cc: New file.
4968 * gnu/gcj/io/shs.h: new file.
4970 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4973 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4974 punctuation from the classname of an array element.
4976 * gcj/javaprims.h: Add SimpleDigestStream.
4978 2000-04-17 Andrew Haley <aph@cygnus.com>
4980 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4981 to getPrivateField for superclasses.
4983 2000-04-14 Andrew Haley <aph@cygnus.com>
4985 * Makefile.am: Add new files:
4986 java/io/ObjectOutputStream$PutField.h,
4987 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4988 java/io/natObjectOutputStream.cc
4989 * Makefile.in: Rebuilt.
4990 * gcj/Makefile.in: Rebuilt.
4991 * include/Makefile.in: Rebuilt.
4992 * java/lang/Class.h (getPrivateField): New method.
4993 (getPrivateMethod): Ditto.
4994 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4995 and java::io::ObjectStreamClass our friends.
4996 * java/lang/natClass.cc (getPrivateField): New method.
4997 (getPrivateMethod): Ditto.
4998 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4999 * gcj/javaprims.h: Add serialization classes.
5000 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5001 (setByteField): Ditto.
5002 (setCharField): Ditto.
5003 (setDoubleField): Ditto.
5004 (setFloatField): Ditto.
5005 (setIntField): Ditto.
5006 (setLongField): Ditto.
5007 (setShortField): Ditto.
5008 (setObjectField): Ditto.
5009 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5011 (getByteField): Ditto.
5012 (getCharField): Ditto.
5013 (getDoubleField): Ditto.
5014 (getFloatField): Ditto.
5015 (getIntField): Ditto.
5016 (getLongField): Ditto.
5017 (getShortField): Ditto.
5018 (getObjectField): Ditto.
5019 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5021 (getSerialPersistantFields): Ditto.
5022 (getDefinedSUID): Ditto.
5023 * java/io/natObjectOutputStream.cc: New file.
5024 * java/io/natObjectInputStream.cc: New file.
5026 2000-04-13 Warren Levy <warrenl@cygnus.com>
5028 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5029 problems. Revert to previous version to reproduce and when fixed.
5031 2000-04-13 Warren Levy <warrenl@cygnus.com>
5033 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5034 * gnu/gcj/io/NullOutputStream.java: New file.
5035 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5036 * java/io/BlockDataException.java: New file.
5037 * java/io/Externalizable.java: New file.
5038 * java/io/InvalidClassException.java: New file.
5039 * java/io/InvalidObjectException.java: New file.
5040 * java/io/NotActiveException.java: New file.
5041 * java/io/NotSerializableException.java: New file.
5042 * java/io/ObjectInput.java: New file.
5043 * java/io/ObjectInputStream.java: New file.
5044 * java/io/ObjectInputValidation.java: New file.
5045 * java/io/ObjectOutput.java: New file.
5046 * java/io/ObjectOutputStream.java: New file.
5047 * java/io/ObjectStreamClass.java: New file.
5048 * java/io/ObjectStreamConstants.java: New file.
5049 * java/io/ObjectStreamField.java: New file.
5050 * java/io/Replaceable.java: New file.
5051 * java/io/Resolvable.java: New file.
5052 * java/io/SerializablePermission.java: New file.
5053 * java/io/WriteAbortedException.java: New file.
5054 * java/security/BasicPermission.java: New file.
5055 * java/security/DigestOutputStream.java: New file.
5056 * java/security/Guard.java: New file.
5057 * java/security/Permission.java: New file.
5058 * java/security/PermissionCollection.java: New file.
5059 * Makefile.am: Added above files.
5060 * Makefile.in: Rebuilt.
5062 * java/beans/Beans.java (instantiate): Activated serialization code.
5063 * java/lang/SecurityManager.java (checkPermission): New method.
5065 2000-04-12 Warren Levy <warrenl@cygnus.com>
5067 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5068 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5069 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5070 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5071 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5072 * gnu/gcj/beans/editors/FontEditor.java: New file.
5073 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5074 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5075 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5076 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5077 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5078 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5079 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5080 * gnu/gcj/beans/editors/StringEditor.java: New file.
5081 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5082 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5083 * gnu/gcj/lang/ArrayHelper.java: New file.
5084 * gnu/gcj/lang/ClassHelper.java: New file.
5085 * java/beans/BeanDescriptor.java: New file.
5086 * java/beans/BeanInfo.java: New file.
5087 * java/beans/Beans.java: New file.
5088 * java/beans/Customizer.java: New file.
5089 * java/beans/DesignMode.java: New file.
5090 * java/beans/EventSetDescriptor.java: New file.
5091 * java/beans/FeatureDescriptor.java: New file.
5092 * java/beans/IndexedPropertyDescriptor.java: New file.
5093 * java/beans/IntrospectionException.java: New file.
5094 * java/beans/Introspector.java: New file.
5095 * java/beans/MethodDescriptor.java: New file.
5096 * java/beans/ParameterDescriptor.java: New file.
5097 * java/beans/PropertyChangeEvent.java: New file.
5098 * java/beans/PropertyChangeListener.java: New file.
5099 * java/beans/PropertyChangeSupport.java: New file.
5100 * java/beans/PropertyDescriptor.java: New file.
5101 * java/beans/PropertyEditor.java: New file.
5102 * java/beans/PropertyEditorManager.java: New file.
5103 * java/beans/PropertyEditorSupport.java: New file.
5104 * java/beans/PropertyVetoException.java: New file.
5105 * java/beans/SimpleBeanInfo.java: New file.
5106 * java/beans/VetoableChangeListener.java: New file.
5107 * java/beans/VetoableChangeSupport.java: New file.
5108 * java/beans/Visibility.java: New file.
5109 * java/beans/beancontext/BeanContext.java: New file.
5110 * java/beans/beancontext/BeanContextChild.java: New file.
5111 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5112 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5113 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5114 * java/beans/beancontext/BeanContextEvent.java: New file.
5115 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5116 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5117 * java/beans/beancontext/BeanContextProxy.java: New file.
5118 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5120 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5121 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5123 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5124 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5126 * java/beans/beancontext/BeanContextServices.java: New file.
5127 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5128 * java/util/AbstractCollection.java: New file.
5129 * java/util/AbstractList.java: New file.
5130 * java/util/Arrays.java: New file.
5131 * Makefile.am: Added above files.
5132 * Makefile.in: Rebuilt.
5134 2000-04-11 Warren Levy <warrenl@cygnus.com>
5136 * java/awt/AWTError.java: New file.
5137 * java/awt/AWTEvent.java: New file.
5138 * java/awt/AWTException.java: New file.
5139 * java/awt/ActiveEvent.java: New file.
5140 * java/awt/Adjustable.java: New file.
5141 * java/awt/BorderLayout.java: New file.
5142 * java/awt/Color.java: New file.
5143 * java/awt/Component.java: New file.
5144 * java/awt/Container.java: New file.
5145 * java/awt/Dimension.java: New file.
5146 * java/awt/Event.java: New file.
5147 * java/awt/Font.java: New file.
5148 * java/awt/Frame.java: New file.
5149 * java/awt/Graphics.java: New file.
5150 * java/awt/IllegalComponentStateException.java: New file.
5151 * java/awt/Image.java: New file.
5152 * java/awt/ItemSelectable.java: New file.
5153 * java/awt/LayoutManager.java: New file.
5154 * java/awt/LayoutManager2.java: New file.
5155 * java/awt/Menu.java: New file.
5156 * java/awt/MenuBar.java: New file.
5157 * java/awt/MenuComponent.java: New file.
5158 * java/awt/MenuContainer.java: New file.
5159 * java/awt/MenuItem.java: New file.
5160 * java/awt/Paint.java: New file.
5161 * java/awt/PaintContext.java: New file.
5162 * java/awt/Point.java: New file.
5163 * java/awt/Rectangle.java: New file.
5164 * java/awt/Shape.java: New file.
5165 * java/awt/TextArea.java: New file.
5166 * java/awt/TextComponent.java: New file.
5167 * java/awt/Toolkit.java: New file.
5168 * java/awt/Transparency.java: New file.
5169 * java/awt/Window.java: New file.
5170 * java/awt/natToolkit.cc: New file.
5171 * java/awt/event/AWTEventListener.java: New file.
5172 * java/awt/event/ActionEvent.java: New file.
5173 * java/awt/event/ActionListener.java: New file.
5174 * java/awt/event/AdjustmentEvent.java: New file.
5175 * java/awt/event/AdjustmentListener.java: New file.
5176 * java/awt/event/ComponentAdapter.java: New file.
5177 * java/awt/event/ComponentEvent.java: New file.
5178 * java/awt/event/ComponentListener.java: New file.
5179 * java/awt/event/ContainerAdapter.java: New file.
5180 * java/awt/event/ContainerEvent.java: New file.
5181 * java/awt/event/ContainerListener.java: New file.
5182 * java/awt/event/FocusAdapter.java: New file.
5183 * java/awt/event/FocusEvent.java: New file.
5184 * java/awt/event/FocusListener.java: New file.
5185 * java/awt/event/InputEvent.java: New file.
5186 * java/awt/event/InputMethodEvent.java: New file.
5187 * java/awt/event/InputMethodListener.java: New file.
5188 * java/awt/event/InvocationEvent.java: New file.
5189 * java/awt/event/ItemEvent.java: New file.
5190 * java/awt/event/ItemListener.java: New file.
5191 * java/awt/event/KeyAdapter.java: New file.
5192 * java/awt/event/KeyEvent.java: New file.
5193 * java/awt/event/KeyListener.java: New file.
5194 * java/awt/event/MouseAdapter.java: New file.
5195 * java/awt/event/MouseEvent.java: New file.
5196 * java/awt/event/MouseListener.java: New file.
5197 * java/awt/event/MouseMotionAdapter.java: New file.
5198 * java/awt/event/MouseMotionListener.java: New file.
5199 * java/awt/event/PaintEvent.java: New file.
5200 * java/awt/event/TextEvent.java: New file.
5201 * java/awt/event/TextListener.java: New file.
5202 * java/awt/event/WindowAdapter.java: New file.
5203 * java/awt/event/WindowEvent.java: New file.
5204 * java/awt/event/WindowListener.java: New file.
5205 * java/awt/geom/Dimension2D.java: New file.
5206 * java/awt/geom/Point2D.java: New file.
5207 * java/awt/peer/ComponentPeer.java: New file.
5208 * java/awt/peer/ContainerPeer.java: New file.
5209 * java/awt/peer/FramePeer.java: New file.
5210 * java/awt/peer/WindowPeer.java: New file.
5211 * java/util/Collection.java: New file.
5212 * java/util/Comparator.java: New file.
5213 * java/util/Iterator.java: New file.
5214 * java/util/List.java: New file.
5215 * java/util/ListIterator.java: New file.
5216 * Makefile.am: Added above files.
5217 * Makefile.in: Rebuilt.
5219 2000-04-10 Warren Levy <warrenl@cygnus.com>
5221 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5222 * java/lang/FirstThread.java: Ditto.
5223 * java/lang/StringBuffer.java: Ditto.
5224 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5226 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5227 Special case handled in java.math.BigInteger.
5228 * java/math/BigInteger.java (divide): Handle the special case when
5229 dividing by 1 and the high bit of the dividend is set.
5230 (setShiftRight): Handle case when count == 0.
5232 2000-04-05 Andrew Haley <aph@cygnus.com>
5234 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5237 2000-04-05 Andrew Haley <aph@cygnus.com>
5239 * sysdep/ia64.c (rse_address_add): Delete.
5240 (IS_NaT_COLLECTION_ADDR): Delete.
5241 (ia64_backtrace_helper): check for null unwind_info.
5243 * sysdep/ia64-frame.h: add calc_caller_bsp.
5245 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5248 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5249 (_Jv_remI): Likewise.
5250 (_Jv_divJ): Likewise.
5251 (_Jv_remJ): Likewise.
5253 * interpret.cc (continue1): Use divide subroutines to guarantee
5254 correct Java standard behaviour.
5255 Floating-point division should not abort; make it so.
5257 2000-03-29 Tom Tromey <tromey@cygnus.com>
5259 * configure: Rebuilt.
5260 * configure.in: Test against `libgcj_sjlj', not
5261 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5262 to be set even when using sjlj.
5264 2000-03-24 Andrew Haley <aph@cygnus.com>
5266 * Makefile.am: Add file addr2name.awk.
5267 * Makefile.in: Rebuilt.
5268 * addr2name.awk: New file.
5269 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5271 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5274 2000-03-22 Andrew Haley <aph@cygnus.com>
5276 * configure.host: Add -funwind-tables for IA64.
5277 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5278 * Makefile.in: Rebuilt.
5279 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5280 * sysdep/ia64.c: New file.
5281 * sysdep/ia64-frame.h: New file.
5282 * configure.in: Add sysdep/ia64.c for ia64.
5283 * configure: Rebuilt.
5285 2000-03-17 Andrew Haley <aph@cygnus.com>
5287 * java/lang/natString.cc: Remove `register' keyword.
5288 interpret.cc: ditto.
5290 2000-03-16 Andrew Haley <aph@cygnus.com>
5292 * configure.host (ia64): Enable interpreter.
5294 2000-03-14 Hans Boehm <boehm@acm.org>
5296 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5298 2000-03-14 Andrew Haley <aph@cygnus.com>
5300 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5303 2000-03-10 Andrew Haley <aph@cygnus.com>
5305 * java/lang/ieeefp.h: Import latest version from fdlibm.
5307 2000-03-14 Andrew Haley <aph@cygnus.com>
5309 * prims.cc (_Jv_ThrowSignal): New function.
5310 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5312 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5313 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5314 * include/ppc-signal.h: New file.
5316 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5318 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5319 * java/lang/natThread.java (initialize_native): Cast `data' to
5321 * gnu/gcj/RawData.java: Clarify documentation.
5323 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5324 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5325 `jarFile', not `jarFileURL'.
5327 2000-05-15 Andrew Haley <aph@cygnus.com>
5329 * include/ppc-signal.h: New file.
5331 2000-05-11 Tom Tromey <tromey@cygnus.com>
5333 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5334 file headers, don't include `size' in the skip call.
5336 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5338 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5339 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5341 (replace): Reimplemented. Fix javadoc.
5342 (reverse): Call ensureCapacity_unsynchronized().
5343 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5345 (replace): Calculate length for arraycopy() correctly.
5347 2000-05-09 Tom Tromey <tromey@cygnus.com>
5349 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5351 (insert(int,char[],int,int): New method.
5352 (delete): New method from Classpath.
5353 (deleteCharAt): Likewise.
5354 (substring): Likewise.
5355 (shared): No longer private.
5356 Added JavaDoc comments from Classpath.
5357 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5360 2000-05-07 Tom Tromey <tromey@cygnus.com>
5362 * Makefile.in: Rebuilt.
5363 * Makefile.am (LIBLINK): New macro.
5364 (libgcj_la_LINK): Use it.
5365 (libgcjawt_la_LINK): Likewise.
5367 2000-05-06 Tom Tromey <tromey@cygnus.com>
5369 * Makefile.in: Rebuilt.
5370 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5372 2000-05-05 Tom Tromey <tromey@cygnus.com>
5374 Fix for PR libgcj/220:
5375 * Makefile.in: Rebuilt.
5376 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5377 (jv_convert_LDFLAGS): Likewise.
5378 (libgcj_la_LDFLAGS): Likewise.
5379 (GCJLINK): New macro.
5380 (jv_convert_LINK): Use it.
5381 (gij_LINK): Likewise.
5382 (libgcj_la_LINK): New macro.
5383 (libgcjawt_la_LINK): Likewise.
5385 2000-05-04 Tom Tromey <tromey@cygnus.com>
5387 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5389 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5393 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5395 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5396 (_Jv_IsAssignableFrom): Ditto.
5397 (_Jv_IsInstanceOf): Ditto.
5398 (_Jv_CheckCast): Ditto.
5399 (_Jv_CheckArrayStore): Ditto.
5400 * java/lang/Class.h (_Jv_InitClass): Ditto.
5401 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5406 (_Jv_MonitorExit): Ditto.
5407 * boehm.cc (_Jv_MarkObj): Ditto.
5408 (_Jv_MarkObj): Ditto.
5409 (_Jv_MarkArray): Ditto.
5410 * prims.cc (_Jv_AllocObject): Ditto.
5411 (_Jv_NewObjectArray): Ditto.
5412 (_Jv_NewPrimArray): Ditto.
5413 (_Jv_Malloc): Ditto.
5414 (_Jv_Realloc): Ditto.
5415 (_Jv_MallocUnchecked): Ditto.
5421 2000-05-04 Tom Tromey <tromey@cygnus.com>
5423 * java/util/Locale.java (Locale): Don't explicitly check for
5425 * java/util/Hashtable.java (containsKey): Don't explicitly check
5428 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5430 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5432 * java/text/StringCharacterIterator.java
5433 (StringCharacterIterator): Don't check for null.
5434 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5436 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5437 check for null pointer.
5438 (leaveGroup): Likewise.
5439 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5441 (setData): Likewise.
5442 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5445 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5447 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5448 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5449 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5450 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5451 -rpath for in-gcc builds.
5452 * Makefile.in: Rebuilt.
5454 2000-04-28 Tom Tromey <tromey@cygnus.com>
5456 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5459 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5461 * libjava/java/lang/String.java (toString): Remove `final' hack.
5463 2000-04-05 Tom Tromey <tromey@cygnus.com>
5465 Runtime support for PR gcj/2:
5466 * prims.cc (_Jv_ThrowNullPointerException): New function.
5467 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5469 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5471 * prims.cc (_Jv_NewObjectArray): Fix typo.
5473 2000-04-26 Tom Tromey <tromey@cygnus.com>
5475 * Makefile.in: Rebuilt.
5476 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5478 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5480 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5483 2000-04-22 Anthony Green <green@cygnus.com>
5485 * include/jvm.h (__builtin_expect): Define as unused for now.
5486 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5490 (_Jv_MonitorExit): Ditto.
5491 * boehm.cc (_Jv_MarkObj): Ditto.
5492 (_Jv_MarkObj): Ditto.
5493 (_Jv_MarkArray): Ditto.
5494 (_Jv_AllocBytes): Ditto.
5495 * prims.cc (_Jv_AllocObject): Ditto.
5496 (_Jv_NewObjectArray): Ditto.
5497 (_Jv_NewPrimArray): Ditto.
5498 (_Jv_Malloc): Ditto.
5499 (_Jv_Realloc): Ditto.
5500 (_Jv_MallocUnchecked): Ditto.
5506 * include/Makefile.in: Rebuilt.
5507 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5509 2000-04-21 Tom Tromey <tromey@cygnus.com>
5511 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5512 Yet another new version from Classpath.
5514 Fix for PR libgcj/15:
5515 * java/util/natGregorianCalendar.cc (_REENTRANT,
5516 _POSIX_PTHREAD_SEMANTICS): Don't define.
5517 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5518 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5520 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5522 * configure: Rebuilt.
5523 * configure.in: If using POSIX threads, define _REENTRANT if
5524 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5525 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5527 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5528 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5529 version from Classpath.
5531 Fix for PR libgcj/213:
5532 * Makefile.in: Rebuilt.
5533 * Makefile.am (gij_SOURCES): Added gij.cc.
5534 (EXTRA_gij_SOURCES): Removed.
5535 (gij_LDADD): Removed gij.lo.
5536 (gij_DEPENDENCIES): Likewise.
5537 ($(gij_OBJECTS)): Depend on nat_headers.
5539 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5540 `setURL', not `url.set'.
5542 2000-04-20 Tom Tromey <tromey@cygnus.com>
5544 Fix for PR java.io/204:
5545 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5546 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5549 Fix for PR libgcj/212:
5550 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5551 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5552 * java/lang/Class.h (_Jv_word): Declare.
5554 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5556 2000-04-19 Tom Tromey <tromey@cygnus.com>
5558 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5559 doesn't have a loader.
5561 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5563 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5564 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5566 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5568 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5570 (available): Initialize `where' to prevent bogus compiler warning.
5572 2000-04-12 Tom Tromey <tromey@cygnus.com>
5574 * java/lang/natString.cc (intern): Temporarily disable finalizer
5577 * java/lang/natString.cc (unintern): Added `obj' argument.
5578 (intern): Register finalizer for string.
5579 * java/lang/String.java (unintern): Now static; added obj
5582 2000-04-11 Tom Tromey <tromey@cygnus.com>
5584 * java/util/Vector.java (VectorEnumeration): Now `final'.
5585 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5586 (HashtableEnumeration): Likewise.
5587 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5588 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5590 2000-04-10 Warren Levy <warrenl@cygnus.com>
5592 * java/io/ObjectStreamException.java: New file.
5593 * java/io/OptionalDataException.java: New file.
5594 * java/io/StreamCorruptedException.java: New file.
5595 * java/math/BigDecimal.java: New file.
5596 * java/sql/CallableStatement.java: New file.
5597 * java/sql/Connection.java: New file.
5598 * java/sql/DataTruncation.java: New file.
5599 * java/sql/DatabaseMetaData.java: New file.
5600 * java/sql/Date.java: New file.
5601 * java/sql/Driver.java: New file.
5602 * java/sql/DriverManager.java: New file.
5603 * java/sql/DriverPropertyInfo.java: New file.
5604 * java/sql/PreparedStatement.java: New file.
5605 * java/sql/ResultSet.java: New file.
5606 * java/sql/ResultSetMetaData.java: New file.
5607 * java/sql/SQLException.java: New file.
5608 * java/sql/SQLWarning.java: New file.
5609 * java/sql/Statement.java: New file.
5610 * java/sql/Time.java: New file.
5611 * java/sql/Timestamp.java: New file.
5612 * java/sql/Types.java: New file.
5613 * Makefile.am: Added above new files.
5614 * Makefile.in: Rebuilt.
5616 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5617 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5618 DatagramSocket constructor instead of null.
5620 2000-04-08 Anthony Green <green@cygnus.com>
5622 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5625 2000-04-08 Anthony Green <green@cygnus.com>
5627 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5628 (_Jv_MutexUnlock): Ditto.
5629 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5630 (_Jv_MutexUnlock): Ditto.
5632 2000-04-08 Anthony Green <green@cygnus.com>
5634 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5635 (ensureCapacity_unsynchronized): New private method.
5636 (append): Use ensureCapacity_unsynchronized.
5638 2000-04-08 Tom Tromey <tromey@cygnus.com>
5640 * Makefile.in: Rebuilt.
5641 * Makefile.am (awt_java_source_files): Added new files.
5642 * java/awt/IllegalComponentStateException.java: New file.
5643 * java/awt/ItemSelectable.java: New file.
5644 * java/awt/event/WindowEvent.java: Finished.
5645 * java/awt/event/TextEvent.java: Finished.
5646 * java/awt/event/ContainerEvent.java: New file.
5647 * java/awt/Component.java (getX, getY): New methods.
5648 * java/awt/event/PaintEvent.java: New file.
5649 * java/awt/event/MouseEvent.java: New file.
5650 * java/awt/ActiveEvent.java: New file.
5651 * java/awt/event/KeyEvent.java: Finished.
5652 * java/awt/event/ItemEvent.java: New file.
5653 * java/awt/Adjustable.java: New file.
5654 * java/awt/event/InputMethodEvent.java: New file.
5655 * java/awt/event/InputEvent.java: Finished.
5656 * java/awt/event/FocusEvent.java: New file.
5657 * java/awt/event/MouseMotionAdapter.java: New file.
5658 * java/awt/event/MouseAdapter.java: New file.
5659 * java/awt/event/KeyAdapter.java: New file.
5660 * java/awt/event/FocusAdapter.java: New file.
5661 * java/awt/event/ContainerAdapter.java: New file.
5662 * java/awt/event/ComponentEvent.java: Finished.
5663 * java/awt/event/AdjustmentEvent.java: New file.
5664 * java/awt/event/ComponentAdapter.java: New file.
5665 * java/awt/event/ActionEvent.java: Finished.
5666 * java/awt/event/MouseMotionListener.java: New file.
5667 * java/awt/event/MouseListener.java: New file.
5668 * java/awt/event/ItemListener.java: New file.
5669 * java/awt/event/InputMethodListener.java: New file.
5670 * java/awt/event/ContainerListener.java: New file.
5671 * java/awt/event/FocusListener.java: New file.
5672 * java/awt/event/ComponentListener.java: New file.
5673 * java/awt/event/AWTEventListener.java: New file.
5674 * java/awt/event/AdjustmentListener.java: New file.
5676 2000-04-08 Anthony Green <green@cygnus.com>
5678 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5679 check when we have to.
5681 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5684 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5687 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5688 inline hasMoreElements.
5690 2000-04-05 Tom Tromey <tromey@cygnus.com>
5692 * configure: Rebuilt.
5693 * configure.in: Recognize --enable-java-awt.
5694 (AWT): New conditional.
5695 * Makefile.in: Rebuilt.
5696 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5698 (libgcjawt_la_SOURCES): New macro.
5699 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5700 (libgcjawt_la_DEPENDENCIES): Likewise.
5701 (libgcjawt_la_LIBADD): Likewise.
5702 (libgcjawt_la_LDFLAGS): Likewise.
5703 (libgcj.zip): Depend on cond_java_awt_source_files
5704 (cond_awt_java_source_files): New macro.
5705 (MOSTLYCLEANFILES): Added awto_files.
5706 (awto_files): New macro. Use where javao_files used.
5707 (nat_headers): Use cond_awt_java_source_files.
5709 2000-04-04 Tom Tromey <tromey@cygnus.com>
5711 * Makefile.in: Rebuilt.
5712 * Makefile.am (awt_java_source_files): Added AWTException.java.
5713 * java/awt/AWTException.java: New file.
5715 2000-04-03 Tom Tromey <tromey@cygnus.com>
5717 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5718 commentary from Alex.
5720 * Makefile.in: Rebuilt.
5721 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5724 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5726 * configure: Rebuilt.
5727 * configure.in: Add --disable-jvmpi.
5728 * include/config.h.in: Rebuilt.
5729 * acconfig.h: Add ENABLE_JVMPI.
5731 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5732 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5733 (_Jv_JVMPI_Notify_THREAD_END): New define.
5734 (_Jv_JVMPI_Notify_THREAD_END): New define.
5735 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5736 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5737 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5739 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5742 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5743 (finish_): Generate JVMPI thread end events.
5744 (run_): Generate JVMPI thread start events.
5745 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5746 preloaded JNI library.
5747 Include JVMPI headers if necessary.
5748 (run): Generate JVMPI thread start events.
5750 * boehm.cc: Define GC_disable and GC_enable.
5751 (_Jv_DisableGC): New function.
5752 (_Jv_EnableGC): New function.
5753 (disable_gc_mutex): Declare.
5754 * nogc.cc (_Jv_DisableGC): New function.
5755 (_Jv_EnableGC): New function.
5757 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5758 (_Jv_JVMPI_Interface): Define.
5759 (jvmpiEnableEvent): New function.
5760 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5762 * include/jvmpi.h: New file.
5764 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5766 * Makefile.in: New #defines and friends for Thread.h.
5767 * Makefile.am: Ditto.
5768 * posix-threads.cc: (struct starter): Remove `object'.
5769 (_Jv_CondWait): Use interruptable condition variables and new
5770 recursive mutexes. New return codes on interrupt or non-ownership
5772 (_Jv_CondNotify): Ditto.
5773 (_Jv_CondNotifyAll): Ditto.
5774 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5775 the target thread by signaling its wait condition.
5776 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5777 not the starter struct. Initialize wait_mutex and wait_cond.
5778 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5780 (_Jv_MutexUnlock): Ditto.
5781 (really_start): Set info->data->thread from pthread_self() to work
5782 around a race condition. Destroy wait_mutex and wait_cond when run()
5784 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5785 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5787 startable_flag: New private field.
5788 (Thread): Initialize `startable_flag'.
5789 (toString): Check for null thread group.
5790 * java/lang/natThread.cc: (struct natThread): New fields
5791 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5792 (class locker): Removed.
5793 (initialize_native): Initialize `join_cond' and `join_mutex'.
5794 (interrupt): Now just calls _Jv_ThreadInterrupt().
5795 (join): Simplified. Just wait on the target thread's join condition.
5796 (finish_): Remove join list code. Unset thread group. Signal
5797 potential joiners by notifying the dying threads join_cond.
5798 (start): Check for illegal restarts.
5799 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5801 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5802 #defines and #ifdefs.
5803 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5804 `wait_mutex', `next'.
5805 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5806 directly mapping to pthread_cond_t.
5807 (struct _Jv_Mutex_t): New recursive implementation.
5808 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5809 _Jv_HaveCondDestroy: Never define this for posix-threads.
5810 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5811 (_Jv_CondNotifyAll): Ditto.
5812 (_Jv_MutexLock): Ditto.
5813 (_Jv_MutexUnlock): Ditto.
5814 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5815 (_Jv_MutexDestroy): Ditto.
5816 (_Jv_CondDestroy): Removed.
5817 (_Jv_PthreadGetMutex): Removed.
5818 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5819 error. Add a FIXME about this.
5820 (_Jv_CondNotifyAll): Ditto.
5821 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5822 _JV_NOT_OWNER on other errors. Add FIXME.
5824 2000-03-26 Tom Tromey <tromey@cygnus.com>
5826 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5828 (call): Don't throw exception here.
5830 2000-03-26 Tom Tromey <tromey@cygnus.com>
5832 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5833 * interpret.cc: Use SIZEOF_VOID_P.
5834 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5835 (_Jv_loadLong): Likewise.
5836 (_Jv_storeDouble): Likewise.
5837 * configure: Rebuilt.
5838 * configure.in: Check size of void*.
5840 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5842 2000-03-26 Hans Boehm <boehm@acm.org>
5844 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5845 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5847 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5848 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5849 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5850 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5852 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5853 (FFI_RAW_SIZE): Likewise.
5854 (_Jv_InterpMethod::ncode): Use them.
5855 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5856 STORED): Define differently on a 64 bit machine.
5857 (continue1): Use ffi_java_raw_call when appropriate.
5859 2000-03-24 Warren Levy <warrenl@cygnus.com>
5861 * java/math/BigInteger.java(divide): Handle the special case when
5862 dividing by 1 and the high bit of the dividend is set.
5863 (setShiftRight): Handle case when count == 0.
5865 2000-03-24 Warren Levy <warrenl@cygnus.com>
5867 * java/awt/Font.java(isBold): Fix syntax error.
5869 * java/awt/Frame.java(postEvent): ditto.
5870 * java/awt/Menu.java(postEvent): ditto.
5871 * java/awt/MenuBar.java(postEvent): ditto.
5872 * java/awt/Toolkit.java(init): Included a stub.
5874 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5876 * java/awt/Event.java: Add all the event type constants.
5877 (Event): Implemented constructors.
5878 (controlDown): Implemented.
5879 (metaDown): Implemented.
5880 (paramString): Stubbed.
5881 (shiftDown): Implemented.
5882 (toString): Implemented.
5883 (translate): Implemented.
5885 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5887 * java/lang/natClass.cc (isInstance): Initialize `this'.
5888 (isAssignableFrom): Initialize `this' and `klass'.
5889 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5890 implemented by any loaded class, so return false.
5891 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5892 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5894 2000-03-19 Warren Levy <warrenl@cygnus.com>
5896 * java/awt/Color.java: Specified java.io for Serializable.
5897 * java/awt/Toolkit.java: Imported java.net.URL.
5899 2000-03-19 Warren Levy <warrenl@cygnus.com>
5901 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5903 2000-03-16 Warren Levy <warrenl@cygnus.com>
5905 * java/awt/Color.java: New file.
5906 * java/awt/Graphics.java: New file.
5907 * java/awt/Image.java: New file.
5908 * java/awt/Paint.java: New file.
5909 * java/awt/PaintContext.java: New file.
5910 * java/awt/Transparency.java: New file.
5911 * java/util/Collection.java: New file.
5912 * java/util/Comparator.java: New file.
5913 * java/util/Iterator.java: New file.
5914 * java/util/List.java: New file.
5915 * java/util/ListIterator.java: New file.
5916 * Makefile.am: Added above new files.
5917 * Makefile.in: Rebuilt.
5919 * java/awt/Font.java (PLAIN): New field.
5921 (ITALIC): New field.
5922 (ROMAN_BASELINE): New field.
5923 (CENTER_BASELINE): New field.
5924 (HANGING_BASELINE): New field.
5928 (pointSize): New field.
5929 (Font): Implemented constructor.
5930 (isPlain): Implemented method.
5931 (isBold): Implemented method.
5932 (isItalic): Implemented method.
5933 (getName): Implemented method.
5934 (getStyle): Implemented method.
5935 (getSize): Implemented method.
5936 (getSize2D): Implemented method.
5938 * java/awt/Frame.java (getFont): Stubbed.
5939 (postEvent): Stubbed.
5941 * java/awt/Menu.java (postEvent): Stubbed.
5942 * java/awt/MenuBar.java (getFont): Stubbed.
5943 (postEvent): Stubbed.
5944 * java/awt/Toolkit.java (getImage): Added abstract method.
5946 2000-03-15 Tom Tromey <tromey@cygnus.com>
5948 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5950 * prims.cc (win32_exception_handler): Reformatted.
5952 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5953 (_Jv_HaveMutexDestroy): Likewise.
5955 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5957 * java/io/natFileDescriptorWin32.cc: New file.
5958 * java/io/natFileWin32.cc: New file.
5959 * java/net/natInetAddress.cc: Added conditional inclusion of
5960 Windows / Winsock headers.
5961 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5962 inclusion of Windows / Winsock headers.
5963 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5964 Windows / Winsock headers.
5965 * include/win32-signal.h: New file.
5966 * include/win32-threads.h: New file.
5967 * win32-threads.cc: New file.
5968 * exception.cc (win32_get_restart_frame): New function.
5969 * prims.cc (win32_exception_handler): New function.
5970 (main_init) Performs Winsock initialisation.
5971 (main_init) Installs exeception handler.
5973 2000-03-14 Tom Tromey <tromey@cygnus.com>
5975 * jni.cc (mangled_name): Fixed assertion.
5976 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5977 turned assert into actual failure.
5979 2000-03-09 Warren Levy <warrenl@cygnus.com>
5981 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5982 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5983 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5985 2000-03-09 Warren Levy <warrenl@cygnus.com>
5987 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5988 * java/security/DigestException.java: New file.
5989 * java/security/GeneralSecurityException.java: New file.
5990 * java/security/InvalidAlgorithmParameterException.java: New file.
5991 * java/security/InvalidKeyException.java: New file.
5992 * java/security/InvalidParameterException.java: New file.
5993 * java/security/Key.java: New file.
5994 * java/security/KeyException.java: New file.
5995 * java/security/KeyPair.java: New file.
5996 * java/security/KeyPairGenerator.java: New file.
5997 * java/security/KeyPairGeneratorSpi.java: New file.
5998 * java/security/NoSuchProviderException.java: New file.
5999 * java/security/PrivateKey.java: New file.
6000 * java/security/Provider.java: New file.
6001 * java/security/PublicKey.java: New file.
6002 * java/security/SecureRandom.java: New file.
6003 * java/security/Security.java: New file.
6004 * java/security/Signature.java: New file.
6005 * java/security/SignatureException.java: New file.
6006 * java/security/interfaces/DSAKey.java: New file.
6007 * java/security/interfaces/DSAParams.java: New file.
6008 * java/security/interfaces/DSAPrivateKey.java: New file.
6009 * java/security/interfaces/DSAPublicKey.java: New file.
6010 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6011 * java/security/interfaces/RSAPrivateKey.java: New file.
6012 * java/security/interfaces/RSAPublicKey.java: New file.
6013 * java/security/spec/AlgorithmParameterSpec.java: New file.
6014 * java/security/spec/InvalidKeySpecException.java: New file.
6015 * java/security/spec/InvalidParameterSpecException.java: New file.
6016 * java/security/spec/KeySpec.java: New file.
6017 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6018 * java/security/spec/RSAPrivateKeySpec.java: New file.
6019 * java/security/spec/RSAPublicKeySpec.java: New file.
6020 * Makefile.am: Added above java.security files.
6021 * Makefile.in: Rebuilt.
6023 * java/security/MessageDigest.java: Rewritten.
6024 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6026 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6030 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6032 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6033 _Jv_PrepareConstantTimeTables.
6034 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6035 classes should have an IDT, so don't return if klass is an array
6038 2000-03-08 Tom Tromey <tromey@cygnus.com>
6040 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6041 of `void' to be created.
6043 2000-03-08 Warren Levy <warrenl@cygnus.com>
6045 * java/math/BigInteger.java(signum): Handle zero properly.
6047 2000-03-07 Tom Tromey <tromey@cygnus.com>
6049 * All files: Updated copyright information.
6050 * COPYING: New file.
6051 * COPYING.LIB: Removed.
6052 * LIBGCJ_LICENSE: We now use GPL + special exception.
6054 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6056 * resolve.cc (_Jv_SearchMethodInClass): New function.
6057 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6058 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6060 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6062 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6063 (struct _Jv_ifaces): New declaration.
6064 JV_CLASS: New macro definition.
6065 (getComponentType): Relocate below isArray() for inlining.
6066 (getModifiers): Declare `inline'.
6067 (getSuperclass): Ditto.
6069 (isPrimitive): Ditto.
6070 (_Jv_IsAssignableFrom): New prototype.
6071 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6073 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6074 Check for JV_STATE_DONE before invoking initializeClass().
6075 (_Jv_PrepareConstantTimeTables): New prototype.
6076 (_Jv_GetInterfaces): Ditto.
6077 (_Jv_GenerateITable): Ditto.
6078 (_Jv_GetMethodString): Ditto.
6079 (_Jv_AppendPartialITable): Ditto.
6080 (_Jv_FindIIndex): Ditto.
6081 depth, ancestors, idt: New class fields.
6083 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6084 inline function `_Jv_IsAssignableFrom'. Use that function.
6085 (isInstance): Declare `inline'.
6086 (initializeClass): Get lock on class before checking `state'. Unlock
6087 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6089 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6090 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6091 class->depth and ancestor table.
6092 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6093 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6094 _Jv_IsAssignableFrom.
6095 (_Jv_CheckArrayStore): Ditto.
6096 (_Jv_LookupInterfaceMethodIdx): New function.
6097 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6098 (_Jv_PrepareConstantTimeTables): New function.
6099 (_Jv_IndexOf): Ditto.
6100 (_Jv_GetInterfaces): Ditto.
6101 (_Jv_GenerateITable): Ditto.
6102 (_Jv_GetMethodString): Ditto.
6103 (_Jv_AppendPartialITable): Ditto.
6104 iindex_mutex, iindex_mutex_initialized: New static fields.
6105 (_Jv_FindIIndex): New function.
6107 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6109 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6110 (_Jv_CheckArrayStore): Ditto.
6111 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6112 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6113 Moved to gcj/array.h.
6114 (_Jv_Realloc): New function.
6116 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6118 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6119 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6120 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6121 JvNewDoubleArray): Implementations moved from prims.cc and
6124 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6126 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6128 2000-03-06 Tom Tromey <tromey@cygnus.com>
6130 * jni.cc (MARK_NONE): New define.
6131 (MARK_USER): Likewise.
6132 (MARK_SYSTEM): Likewise.
6133 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6135 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6136 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6137 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6138 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6140 (call): Use MARK_SYSTEM.
6141 (_Jv_GetJNIEnvNewFrame): New function.
6142 (_Jv_LookupJNIMethod): New function.
6143 (_Jv_JNI_PopSystemFrame): New function.
6144 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6146 2000-03-05 Tom Tromey <tromey@cygnus.com>
6148 Fix for PR libgcj/43:
6149 * include/Makefile.in: Rebuilt.
6150 * include/Makefile.am (include_HEADERS): New define.
6152 2000-03-05 Anthony Green <green@redhat.com>
6154 * gcj/javaprims.h ("Java"): Remove FirstThread.
6156 * configure.host: Fix __NO_MATH_INLNES botch.
6158 * Makefile.in: Rebuilt.
6159 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6160 (gnu/gcj/runtime/FirstThread.h): Moved.
6161 (ordinary_java_source_files): Move FirstThread.java.
6162 * prims.cc: Deal with FirstThread movement.
6164 (_Jv_RunMain): Ditto.
6166 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6167 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6169 2000-03-05 Warren Levy <warrenl@cygnus.com>
6171 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6172 Handle null addresses.
6174 2000-03-04 Anthony Green <green@redhat.com>
6176 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6179 2000-03-04 Anthony Green <green@redhat.com>
6181 * configure: Rebuilt.
6182 * configure.in (ZLIBTESTSPEC): New macro.
6183 (GCTESTSPEC): New macro.
6184 (LIBGCJTESTSPEC): New macro.
6185 * libgcj-test.spec.in: New file.
6187 2000-03-02 Tom Tromey <tromey@cygnus.com>
6189 * include/java-interp.h: Don't include MethodInvocation.h.
6190 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6191 * Makefile.in: Rebuilt.
6192 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6193 (ordinary_java_source_files): Don't mention
6194 MethodInvocation.java.
6195 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6196 * interpret.cc (MethodInvocation::continue1): Removed.
6197 (run): Handle exceptions here.
6198 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6200 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6202 (defineClass2): Removed.
6204 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6206 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6208 (hack_call): Removed.
6210 * java/lang/Class.h (Class): Removed hackRunInitializers,
6212 * java/lang/natClass.cc (hackRunInitializers): Removed.
6213 (initializeClass): Catch exceptions here.
6214 Include ExceptionInInitializerError.h.
6215 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6218 * java/lang/Object.h (Object): Don't mention hack12_6.
6219 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6221 * java/lang/Object.java (hack12_6): Removed.
6223 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6224 (start): Use run_, not run__.
6225 * java/lang/Thread.java (run_): Renamed from run__; old run_
6228 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6229 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6230 (_Jv_JNI_DefineClass): Likewise.
6231 (_Jv_JNI_ThrowNew): Likewise.
6232 (_Jv_JNI_AllocObject): Likewise.
6233 (_Jv_JNI_GetAnyMethodID): Likewise.
6234 (_Jv_JNI_CallAnyMethodV): Likewise.
6235 (_Jv_JNI_CallAnyMethodA): Likewise.
6236 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6237 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6238 (_Jv_JNI_GetAnyFieldID): Likewise.
6239 (_Jv_JNI_NewString): Likewise.
6240 (_Jv_JNI_NewStringUTF): Likewise.
6241 (_Jv_JNI_GetStringUTFChars): Likewise.
6242 (_Jv_JNI_NewObjectArray): Likewise.
6243 (_Jv_JNI_NewPrimitiveArray): Likewise.
6244 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6245 (_Jv_JNI_GetStringRegion): Likewise.
6246 (_Jv_JNI_GetStringUTFRegion): Likewise.
6247 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6248 (_Jv_JNI_MonitorEnter): Likewise.
6249 (_Jv_JNI_MonitorExit): Likewise.
6250 (_Jv_JNI_ToReflectedField): Likewise.
6251 (_Jv_JNI_ToReflectedMethod): Likewise.
6252 (_Jv_JNI_RegisterNatives): Likewise.
6253 (_Jv_JNI_AttachCurrentThread): Likewise.
6254 (_Jv_JNI_DestroyJavaVM): Likewise.
6256 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6258 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6259 error caused by the incorrect casting of a long to an int.
6261 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6263 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6264 SIGSEV caused by use of the wrong instance variable.
6266 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6268 * java/io/File.java (File(String, String)): For dirPath, treat an
6269 empty String the same as `null'.
6271 2000-02-26 Anthony Green <green@cygnus.com>
6273 * gnu/gcj/io/MimeTypes.java: Test for null.
6275 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6276 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6278 * java/net/URLConnection.java: Update copyright notice.
6280 2000-02-25 Tom Tromey <tromey@cygnus.com>
6282 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6285 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6287 * java/net/URLConnection.java (initializeDateFormats): New
6289 (getHeaderFieldDate): Call initializeDateFormats if required.
6290 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6292 Fix for PR libgcj/38.
6294 2000-02-24 Warren Levy <warrenl@cygnus.com>
6296 * java/math/BigInteger.java(ival): Made private.
6300 2000-02-20 Anthony Green <green@cygnus.com>
6302 * Makefile.in: Rebuilt.
6303 * Makefile.am (ordinary_java_source_files): Add
6304 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6306 * scripts/MakeDefaultMimeTypes.java: New file.
6307 * scripts/mime.types: New file.
6308 * scripts/classes.pl: Moved from top level.
6309 * classes.pl: Moved to scripts directory.
6311 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6313 * gnu/gcj/io/MimeTypes.java: New file.
6314 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6316 2000-02-20 Tom Tromey <tromey@cygnus.com>
6318 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6320 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6322 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6325 2000-02-18 Tom Tromey <tromey@cygnus.com>
6327 * include/jvm.h (_Jv_GetJavaVM): Declare.
6328 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6329 (_Jv_MethodBase::get_method): New method.
6330 (_Jv_JNIMethod::set_function): New method.
6331 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6332 (_Jv_JNI_RegisterNatives): New function.
6333 (_Jv_JNIFunctions): Updated for new functions.
6334 (_Jv_GetJavaVM): New function.
6335 (_Jv_JNI_GetJavaVM): Use it. Now static.
6336 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6337 is already a Java thread but does not have a JNIEnv yet.
6339 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6342 2000-02-17 Tom Tromey <tromey@cygnus.com>
6344 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6347 2000-02-16 Tom Tromey <tromey@cygnus.com>
6349 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6351 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6352 (_Jv_JNI_NewObject): Likewise.
6353 (_Jv_JNI_NewObjectA): Likewise.
6354 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6355 as "return" type to _Jv_CallAnyMethodA.
6356 (_Jv_JNI_CallAnyMethodA): Likewise.
6357 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6359 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6362 2000-02-15 Tom Tromey <tromey@cygnus.com>
6364 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6366 (init_cif): Added `rtype_p' argument.
6367 * include/java-interp.h (class _Jv_MethodBase): Added
6369 (class _Jv_InterpMethod): Removed args_raw_size.
6370 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6371 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6372 class pointer as well as the ordinary arguments.
6374 * jni.cc (mangled_name): Skip leading `(' in signature.
6376 * jni.cc (add_char): Added missing `else'.
6378 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6381 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6385 * java/lang/natRuntime.cc (_load): Include library path with
6388 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6391 * java/lang/natThread.cc (dumpStack): Removed.
6392 * java/lang/Thread.java (dumpStack): Implemented.
6394 2000-02-15 Tom Tromey <tromey@cygnus.com>
6396 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6397 with `lib' for loadLibrary. Fixes PR gcj/150.
6399 2000-02-14 Warren Levy <warrenl@cygnus.com>
6401 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6403 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6407 (modPow): Rewritten to not use the naive, slow, brute force approach.
6408 (isProbablePrime): Implemented.
6409 (testBit): Implemented.
6410 (flipBit): Implemented.
6411 (getLowestSetBit): Implemented.
6413 2000-02-16 Anthony Green <green@redhat.com>
6415 * configure.host: Use the same options for i386 and i486 as we do
6418 2000-02-12 Tom Tromey <tromey@cygnus.com>
6420 * java/io/File.java (createTempFile): Use low bits from counter,
6423 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6425 * THANKS: More thanks.
6427 2000-02-11 Tom Tromey <tromey@cygnus.com>
6429 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6430 astore instruction. From Hans Boehm.
6432 2000-02-11 Warren Levy <warrenl@cygnus.com>
6434 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6435 (BigInteger(String)): New constructor.
6436 (not): Rewritten using version from Kawa's BitOps class.
6437 (valueOf): New private methods from Kawa's BitOps class.
6444 (andNot): Implemented.
6445 (clearBit): Implemented.
6446 (setBit): Implemented.
6447 (bitCount): Implemented.
6448 (toByteArray): Implemented.
6450 2000-02-11 Tom Tromey <tromey@cygnus.com>
6452 * java/io/File.java (nextValue): Now synchronized.
6454 2000-02-10 Tom Tromey <tromey@cygnus.com>
6456 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6457 * java/io/FileDescriptor.java (EXCL): New static field.
6458 * java/io/File.java (tmpdir): New static field.
6459 (createTempFile): New method.
6460 (nextValue): New method.
6461 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6464 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6465 (jboolean): Declare as an attributed int, not a bool.
6466 (_Jv_func): Declare differently for C.
6468 * gnu/gcj/jni/natNativeThread.cc: New file.
6469 * gnu/gcj/jni/NativeThread.java: New file.
6470 * java/lang/Thread.java (data): Now a RawData.
6471 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6473 * Makefile.in: Rebuilt.
6474 * Makefile.am (java/lang/Thread.h): New target.
6475 (ordinary_java_source_files): Added NativeThread.java.
6476 (nat_source_files): Added natNativeThread.cc.
6477 * java/lang/natThread.cc: Include <jni.h>
6478 (struct natThread): Added `jni_env' field.
6479 (_Jv_GetCurrentJNIEnv): New function.
6480 (_Jv_SetCurrentJNIEnv): Likewise.
6481 (initialize_native): Initialize jni_env.
6483 * jni.cc (ThreadGroupClass): New define.
6484 (_Jv_JNI_InvokeFunctions): New structure.
6485 (JNI_GetCreatedJavaVMs): New function.
6486 (the_vm): New global.
6487 (JNI_GetDefaultJavaVMInitArgs): New function.
6488 Include NativeThread.h.
6489 (NativeThreadClass): New define.
6490 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6491 (_Jv_JNI_DestroyJavaVM): New function.
6492 (_Jv_JNI_AttachCurrentThread): New function.
6493 (_Jv_JNI_DetachCurrentThread): New function.
6494 (_Jv_JNI_GetEnv): New function.
6495 (JNI_CreateJavaVM): New function.
6496 (_Jv_JNI_GetJavaVM): New function.
6497 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6498 * include/jni.h (JavaVMAttachArgs): New structure.
6499 (JNI_EDETACHED): New define.
6500 (JNI_EVERSION): Likewise.
6501 (JavaVM): Define properly.
6502 (struct JNIInvokeInterface): New structure.
6503 (class _Jv_JavaVM): New class.
6504 (JNI_OnLoad, JNI_OnUnload): Declare.
6505 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6506 JNI_GetCreatedJavaVMs): Declare.
6507 (JavaVMInitArgs): New typedef.
6508 (JavaVMOption): Likewise.
6509 (JNI_ERR): New define.
6512 2000-02-10 Andrew Haley <aph@cygnus.com>
6514 * interpret.cc: Don't include fdlibm.h.
6515 Replace #if with #ifdef throughout.
6516 Declare extern __ieee754_fmod.
6517 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6519 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6520 Search class hierarchy for superclass vtable.
6522 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6523 off the end of a pointer list.
6525 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6529 2000-02-09 Tom Tromey <tromey@cygnus.com>
6531 * java/lang/natRuntime.cc (_load): Call add_library.
6532 (loadLibraryInternal): Likewise.
6534 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6535 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6536 (Output_iconv::finalize): Likewise.
6538 2000-02-08 Tom Tromey <tromey@cygnus.com>
6540 * java/util/Properties.java (setProperty): New method.
6541 (store): New method.
6543 2000-02-07 Tom Tromey <tromey@cygnus.com>
6545 * java/lang/Runtime.java (_load): Declare.
6546 (load, loadLibrary): Wrote in terms of _load.
6547 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6549 (loadLibrary): Likewise.
6551 (_load): New method.
6552 (loadLibrary, load): Removed.
6554 * jni.cc (ThrowableClass): New define.
6555 (_Jv_JNI_Throw): Check argument.
6556 (_Jv_JNI_ThrowNew): Likewise.
6557 (wrap_value): Don't wrap object if it is NULL.
6558 (_Jv_JNI_DefineClass): Use wrap_value.
6559 (_Jv_JNI_FindClass): Likewise.
6560 (_Jv_JNI_GetSuperclass): Likewise.
6561 (_Jv_JNI_ExceptionOccurred): Likewise.
6562 (_Jv_JNI_AllocObject): Likewise.
6563 (_Jv_JNI_GetObjectClass): Likewise.
6564 (_Jv_JNI_NewString): Likewise.
6565 (_Jv_JNI_NewStringUTF): Likewise.
6566 (_Jv_JNI_NewObjectArray): Likewise.
6567 (_Jv_JNI_GetObjectArrayElement): Likewise.
6568 (_Jv_JNI_NewPrimitiveArray): Likewise.
6569 (_Jv_JNI_ToReflectedField): Likewise.
6570 (_Jv_JNI_ToReflectedMethod): Likewise.
6571 (_Jv_JNI_AllocObject): Check argument.
6572 (_Jv_JNI_NewObjectV): Likewise.
6573 (_Jv_JNI_NewObject): Likewise.
6574 (_Jv_JNI_NewObjectA): Likewise.
6575 (_Jv_JNI_GetObjectClass): Likewise.
6576 (_Jv_JNI_GetField): Likewise.
6577 (_Jv_JNI_SetField): Likewise.
6579 * interpret.cc (PUSHL): Don't use expression statement.
6584 * jni.cc (add_char): Conditional on INTERPRETER.
6585 (mangled_name): Likewise.
6587 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6589 (class _Jv_JNIMethod): Likewise.
6591 2000-02-04 Warren Levy <warrenl@cygnus.com>
6593 * Makefile.am: Added MPN.java and BigInteger.java.
6594 * Makefile.in: Rebuilt.
6595 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6597 * java/math/BigInteger.java: New file. Based primarily on
6598 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6600 2000-02-04 Tom Tromey <tromey@cygnus.com>
6602 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6604 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6605 if the method is native.
6606 * resolve.cc (ncode): Don't handle native methods.
6607 (_Jv_JNIMethod::ncode): New method.
6608 (_Jv_PrepareClass): Handle native methods.
6609 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6610 Include AbstractMethodError.h.
6611 (add_char): New function.
6612 (mangled_name): Likewise.
6613 * include/java-interp.h (class _Jv_JNIMethod): New class.
6614 (class _Jv_MethodBase): New class.
6615 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6616 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6619 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6620 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6621 libraries): New globals.
6622 (add_library): New function.
6623 (_Jv_FindSymbolInExecutable): New function.
6625 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6628 2000-02-04 Andrew Haley <aph@cygnus.com>
6630 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6631 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6632 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6633 printStackTrace to printRawStackTrace.
6635 2000-02-03 Tom Tromey <tromey@cygnus.com>
6637 * java/util/Calendar.java (toString): New method.
6638 * java/util/SimpleTimeZone.java (clone): New method.
6639 (toString): New method.
6640 * java/util/TimeZone.java (clone): New method.
6641 * java/text/SimpleDateFormat.java (clone): New method.
6642 * java/text/NumberFormat.java (clone): New method.
6643 (equals): New method.
6644 * java/text/Format.java (clone): New method.
6645 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6647 (clone): New method.
6648 * java/text/DateFormat.java (clone): New method.
6649 * java/text/Collator.java (clone): New method.
6651 2000-02-03 Tom Tromey <tromey@cygnus.com>
6653 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6656 2000-02-01 Tom Tromey <tromey@cygnus.com>
6658 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6659 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6660 constructing the closure if the function is native.
6661 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6662 a template function, #if'd out, or static.
6663 Include <java-interp.h>.
6665 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6667 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6669 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6670 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6672 (wrap_value): New function.
6673 (_Jv_JNI_CallAnyMethodV): Use it.
6674 (_Jv_JNI_CallAnyMethodA): Likewise.
6675 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6676 (_Jv_JNI_GetStaticField): Likewise.
6678 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6679 (_Jv_JNI_GetStaticField): Likewise.
6681 2000-01-31 Tom Tromey <tromey@cygnus.com>
6683 * prims.cc (_Jv_MallocUnchecked): New function.
6684 (main_init): Call _Jv_JNI_Init.
6685 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6686 (_Jv_JNI_Init): Declare.
6687 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6689 (_Jv_JNI_NewGlobalRef): New function.
6690 (_Jv_JNI_DeleteGlobalRef): New function.
6691 (_Jv_JNI_DeleteLocalRef): New function.
6692 (_Jv_JNI_conversion_call): Initialize and clear local reference
6694 (_Jv_JNI_NewLocalRef): New function.
6695 (struct _Jv_JNI_LocalFrame): New structure.
6696 (_Jv_JNI_PushLocalFrame): New function.
6697 (_Jv_JNI_EnsureLocalCapacity): New function.
6698 (FRAME_SIZE): New define.
6699 (_Jv_JNI_GetStringChars): Mark string, not characters.
6700 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6701 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6702 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6704 (_Jv_JNI_DefineClass): Make return value a local ref.
6705 (_Jv_JNI_FindClass): Likewise.
6706 (_Jv_JNI_GetSuperclass): Likewise.
6707 (_Jv_JNI_ExceptionOccurred): Likewise.
6708 (_Jv_JNI_AllocObject): Likewise.
6709 (_Jv_JNI_GetObjectClass): Likewise.
6710 (_Jv_JNI_CallAnyMethodV): Likewise.
6711 (_Jv_JNI_NewString): Likewise.
6712 (_Jv_JNI_NewStringUTF): Likewise.
6713 (_Jv_JNI_NewObjectArray): Likewise.
6714 (_Jv_JNI_GetObjectArrayElement): Likewise.
6715 (_Jv_JNI_ToReflectedField): Likewise.
6716 (_Jv_JNI_ToReflectedMethod): Likewise.
6717 (_Jv_JNIFunctions): Updated table for new functions.
6718 (_Jv_JNI_Init): New function.
6719 (mark_for_gc): Wrote.
6720 (unmark_for_gc): Wrote.
6721 * include/jni.h (struct JNINativeInterface): Removed name from
6722 PopLocalFrame parameter.
6723 (class _Jv_JNIEnv): Added `locals' field.
6725 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6727 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6730 2000-01-30 Tom Tromey <tromey@cygnus.com>
6732 * include/config.h.in: Rebuilt.
6733 * acconfig.h (HAVE_ICONV): Define.
6734 * configure: Rebuilt.
6735 * configure.in: Check for `iconv' function.
6736 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6737 no specific encoder exists.
6738 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6739 no specific encoder exists.
6740 * Makefile.in: Rebuilt.
6741 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6743 (nat_source_files): Added natIconv.cc.
6744 * gnu/gcj/convert/natIconv.cc: New file.
6745 * gnu/gcj/convert/Input_iconv.java: New file.
6746 * gnu/gcj/convert/Output_iconv.java: New file.
6748 2000-01-28 Tom Tromey <tromey@cygnus.com>
6750 * Makefile.in: Rebuilt.
6751 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6753 2000-01-26 Tom Tromey <tromey@cygnus.com>
6755 * gcj/method.h (JvNumMethods): Moved from Class.h.
6756 (JvGetFirstMethod): Likewise.
6757 * java/lang/Class.h (Object): Updated decl of
6758 _Jv_JNI_ToReflectedField.
6759 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6760 * Makefile.in: Rebuilt.
6761 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6762 argument of _Jv_JNI_ToReflectedField.
6763 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6765 (java/lang/reflect/Method.h): Likewise.
6766 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6768 (jweak): New typedef.
6769 (struct JNINativeInterface): Correctly declare remaining entries.
6770 * jni.cc: Include Class.h, ClassLoader.h.
6771 (_Jv_JNI_FindClass): New function.
6772 (_Jv_JNI_DefineClass): New function.
6773 (_Jv_JNI_conversion_call): New function.
6774 (_Jv_JNI_FindClass): Use current class loader to find class.
6775 (_Jv_JNI_ExceptionCheck): New function.
6776 (_Jv_JNI_FromReflectedField): Now static.
6777 (MethodClass): New define.
6778 (_Jv_JNI_FromReflectedMethod): New function.
6779 (_Jv_JNI_ToReflectedMethod): Likewise.
6781 (_Jv_JNI_IsAssignableFrom): Renamed.
6782 (_Jv_JNI_GetStringRegion): New function.
6783 Include StringIndexOutOfBoundsException.h.
6784 (_Jv_JNI_GetStringUTFRegion): New function.
6785 (_Jv_JNIFunctions): Updated for new functions.
6786 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6787 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6788 (_Jv_JNI_GetStringCritical): New function.
6789 (_Jv_JNI_ReleaseStringCritical): Likewise.
6790 (get_throwable): Removed.
6791 (GCJ_JV_JNIENV_FRIEND): Removed.
6792 (__GCJ_JNI_IMPL__): Define.
6795 * resolve.cc (get_ffi_type_from_signature): Handle case where
6798 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6800 * interpret.cc (run): Don't call println.
6801 Don't include PrintStream.h.
6803 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6804 nameIndex. Use "jint" as type for boffset.
6805 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6807 (Class): Likewise. Also changed type of method_count,
6808 vtable_method_count, size_in_bytes, field_count,
6809 static_field_count, interface_count.
6810 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6813 2000-01-21 Tom Tromey <tromey@cygnus.com>
6815 * java/lang/reflect/natConstructor.cc (newInstance): Use
6817 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6818 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6819 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6822 (invoke): Use _Jv_CallAnyMethodA.
6824 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6825 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6827 (struct _Jv_Method): Added getNextMethod method.
6828 (JvNumMethods): New function.
6829 (JvGetFirstMethod): Likewise.
6830 * gcj/field.h (JvGetFirstStaticField): New function.
6831 (JvNumStaticFields): Likewise.
6832 (getNextField): Renamed from getNextInstanceField.
6833 (struct _Jv_Field): New method getClass.
6834 * jni.cc: Wrote many new functions.
6835 * include/jni.h (JNI_TRUE): Define.
6836 (JNI_FALSE): Likewise.
6837 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6838 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6839 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6840 (jfieldID, jmethodID): Likewise.
6841 (JNI_COMMIT, JNI_ABORT): New defines.
6842 (JNINativeMethod): New struct.
6843 (struct JNINativeInterface): Correctly declared more entries.
6844 (class _Jv_JNIEnv): Added `ex' member.
6845 (JNI_VERSION_1_1): New define.
6846 (JNI_VERSION_1_2): Likewise.
6848 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6849 getNextInstanceField.
6851 2000-01-20 Tom Tromey <tromey@cygnus.com>
6853 * resolve.cc (StringClass): Removed.
6854 * defineclass.cc (StringClass): Removed.
6856 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6860 2000-01-19 Tom Tromey <tromey@cygnus.com>
6862 * interpret.cc (PC_REGISTER_ASM): Removed.
6864 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6865 From Bryce McKinlay.
6867 * All files: Updated copyright to reflect Cygnus purchase.
6869 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6871 * configure: Rebuilt.
6872 * configure.in: Recognize --disable-interpreter.
6874 2000-01-18 Andrew Haley <aph@cygnus.com>
6876 * name-finder.cc (lookup): Check for dladdr function.
6877 acconfig.h (HAVE_DLADDR): Add.
6878 configure.in: Check for HAVE_DLADDR
6880 include/config.h.in: Rebuilt.
6882 2000-01-17 Andrew Haley <aph@cygnus.com>
6884 * prims.cc (_Jv_RunMain): Set the name of this executable.
6886 2000-01-17 Tom Tromey <tromey@cygnus.com>
6888 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6889 when backtrace can't be computed.
6891 * configure: Rebuilt.
6892 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6894 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6895 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6896 (_Jv_FindClassInCache): Likewise.
6897 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6898 (findSystemClass): Try to load class from compiled module.
6900 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6901 (loadLibrary): Likewise.
6902 (lt_preloaded_symbols): Define.
6903 (loadLibraryInternal): New method.
6904 * include/config.h.in: Rebuilt.
6905 * acconfig.h (USE_LTDL): Added.
6906 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6907 (INCLUDES): Added $(INCLTDL).
6908 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6909 (libgcj_la_LIBADD): Likewise.
6910 * aclocal.m4, configure: Rebuilt.
6911 * configure.in: Added libltdl support.
6913 2000-01-15 Tom Tromey <tromey@cygnus.com>
6915 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6917 2000-01-14 Andrew Haley <aph@cygnus.com>
6919 * java/lang/natThrowable.cc: New file.
6921 * java/lang/Throwable.java (fillInStackTrace): Make native.
6922 (printStackTrace): Call native method to do this.
6923 (Throwable): Call fillInStackTrace.
6924 (stackTrace): New variable.
6926 * include/jvm.h: Add _Jv_ThisExecutable functions.
6928 * prims.cc: (_Jv_execName): New variable.
6929 (catch_segv): Call fillInStackTrace.
6931 (_Jv_ThisExecutable): New functions.
6932 (JvRunMain): Set the name of this executable.
6934 * Makefile.am: Add java/lang/natThrowable.cc.
6936 * Makefile.in: Rebuilt.
6938 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6940 * configure.in: Force link with __frame_state_for in
6941 FORCELIBGCCSPEC. Add new checks for backtrace.
6942 * include/config.h.in: Rebuilt.
6944 * name-finder.cc: New file.
6945 * include/name-finder.h: New file.
6947 2000-01-16 Anthony Green <green@cygnus.com>
6949 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6952 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6954 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6956 2000-01-13 Tom Tromey <tromey@cygnus.com>
6958 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6959 not system loader, as initiating loader.
6961 2000-01-11 Tom Tromey <tromey@cygnus.com>
6963 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6964 HP/UX. From David Scott Urban.
6966 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6968 * java/lang/natMath.cc (pow): Cast args to `double', not
6971 (IEEEremainder): Likewise.
6972 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6973 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6975 2000-01-09 Anthony Green <green@cygnus.com>
6977 * java/lang/natString.cc (init): Test for overflow condition
6978 during out of bounds check.
6979 (getChars): Throw StringIndexOutOfBoundsException, not
6980 ArrayIndexOutOfBoundsException.
6982 (regionMatches): Obey case option during string comparison.
6984 * configure.host (ligcj_interpreter): New variable. Enable
6985 interpreter by default on IA-32.
6986 * configure.in: Examine libgcj_interpreter.
6987 * configure: Rebuilt.
6989 2000-01-07 Tom Tromey <tromey@cygnus.com>
6991 * mauve-libgcj: Don't disable ClassTest.
6993 * java/lang/natClass.cc (getClasses): Wrote.
6995 2000-01-06 Tom Tromey <tromey@cygnus.com>
6997 * java/lang/natClass.cc (_getConstructors): Correctly check
6998 whether method name is the init name.
6999 (getMethod): Look at accflags on method in `klass', not `this'.
7001 2000-01-05 Tom Tromey <tromey@cygnus.com>
7003 * java/lang/natClass.cc (getMethod): Compute offset relative to
7004 `klass's methods table, not `this's table.
7006 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7007 In unwrapping/widening case, check whether `k' is null, not
7008 whether it is primitive. Initialize `num' from `argelts', not
7009 `paramelts'. Correct create and pass arguments to ffi_call.
7010 Don't let presence of `this' argument affect index used to look in
7012 (COPY): Set appropriate element in `values' vector.
7014 * java/lang/natClass.cc: Include <gcj/method.h>.
7016 * java/lang/Class.h (_getMethods): Correctly declare as private,
7019 * java/lang/Class.h (_getMethods): Declare.
7020 * java/lang/Class.java (_getMethods): Declare.
7021 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7022 (getDeclaredClasses): Always return empty array.
7023 (_getMethods): New method.
7024 (getMethods): Wrote.
7025 (getDeclaredMethod): Return `rmethod'.
7026 (finit_name): New global.
7027 (getDeclaredMethods): Check for finit_name.
7028 (_getMethods): Likewise.
7029 (getMethod): Only return public methods.
7031 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7032 jboolean and select correct ffi type on that basis.
7033 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7034 Constructor call always has `void' return type.
7036 2000-01-04 Tom Tromey <tromey@cygnus.com>
7038 * java/lang/Class.h (getSignature): Updated.
7039 * java/lang/Class.java (getSignature): Updated.
7040 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7042 (getConstructor): Ensure constructor is public.
7043 (_getConstructors): Check for public-ness of constructor when
7044 `declared' is false, not when it is true.
7046 2000-01-04 Warren Levy <warrenl@cygnus.com>
7048 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7050 (receive): Set the sender's address in the DatagramPacket.
7052 2000-01-04 Tom Tromey <tromey@cygnus.com>
7054 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7055 declaring class as return_type argument to
7056 _Jv_CallNonvirtualMethodA.
7057 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7058 constructor case, create object and use it as `this' argument.
7059 * java/lang/Class.h (_getConstructors): Declare.
7060 (_getFields): Declare.
7061 * java/lang/Class.java (getConstructors): Wrote.
7062 (_getConstructors): New native method.
7063 (getDeclaredConstructors): Wrote.
7064 (_getFields): Declare new native method.
7065 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7067 (getMethod): Work correctly when class is primitive.
7068 (getDeclaredMethods): Likewise. Compute offset using `method',
7070 (getDeclaredMethod): Likewise.
7071 (getConstructor): Wrote.
7072 (ConstructorClass): New define.
7073 (getDeclaredConstructor): Wrote.
7074 (_getConstructors): New method.
7075 (_getFields): New method.
7078 * Makefile.in: Rebuilt.
7079 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7081 * prims.cc: Remove `#pragma implementation'.
7082 * gcj/array.h: Remove `#pragma interface'.
7084 * prims.cc (_Jv_equaln): New function.
7085 * java/lang/Class.java (getSignature): Declare.
7086 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7087 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7089 (getSignature): New method.
7090 (getDeclaredMethod): Wrote.
7092 Include StringBuffer.h.
7093 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7094 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7096 (getSignature): Declare.
7097 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7098 (_Jv_equaln): Declare.
7099 (_Jv_CallNonvirtualMethodA): Declare.
7100 * Makefile.in: Rebuilt.
7101 * Makefile.am (nat_source_files): Added natConstructor.cc.
7102 (java/lang/reflect/Constructor.h): New target.
7103 * java/lang/reflect/natConstructor.cc: New file.
7104 * java/lang/reflect/Constructor.java (newInstance): Now native.
7105 (declaringClass): Renamed from decl_class.
7106 (offset): Renamed from index.
7107 (getType): New native method.
7108 (getModifiers): Now native.
7109 (getParameterTypes): Call getType if required.
7110 (hashCode): Include hash code from declaring class.
7111 (modifiers): Removed.
7112 (toString): Call getType if required.
7113 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7114 * java/lang/reflect/natMethod.cc (hack_call): New method.
7115 Removed `#if 0' around FFI code.
7116 Include <gnu/gcj/RawData.h>.
7117 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7118 IllegalArgumentException when argument object and class disagree.
7119 (_Jv_GetTypesFromSignature): New function.
7121 (ObjectClass): New define.
7122 (_Jv_CallNonvirtualMethodA): New function.
7123 * java/lang/reflect/Method.java (hack_trampoline): New method.
7124 (hack_call): New native method.