1 2001-08-15 Tom Tromey <tromey@redhat.com>
3 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
6 2001-08-09 Tom Tromey <tromey@redhat.com>
8 * java/awt/image/SampleModel.java (getPixel): Set correct array
9 element. From Chris Meyer.
11 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
13 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
14 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
16 2001-08-06 Tom Tromey <tromey@redhat.com>
18 * java/io/InputStreamReader.java (refill): Only call refill on
19 BufferedInputStream when appropriate constraints are met.
21 2001-08-05 Tom Tromey <tromey@redhat.com>
23 * java/io/StringWriter.java: Merged with Classpath.
24 * java/io/InputStream.java: Merged with Classpath.
25 * java/io/OutputStream.java: Merged with Classpath.
26 * java/io/PushbackInputStream.java: Merged with Classpath.
27 * java/io/CharArrayReader.java: Merged with Classpath.
28 * java/io/CharArrayWriter.java: Merged with Classpath.
30 2001-08-02 Tom Tromey <tromey@redhat.com>
32 * prims.cc (JNI_OnLoad): Don't declare.
33 (_JNI_OnLoad): Don't define.
34 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
36 2001-08-02 Tom Tromey <tromey@redhat.com>
38 * java/io/RandomAccessFile.java (seek): Let seek go past end of
40 (skipBytes): Don't fail if seeking past end of file.
41 * java/io/FileInputStream.java (skip): Don't fail if seeking past
43 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
45 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
47 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
49 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
51 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
53 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
54 to initialize global_ref_table/local_ref_table.
56 2001-08-02 Tom Tromey <tromey@redhat.com>
59 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
62 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
64 * include/posix.h (_POSIX_PII_SOCKET): Define.
65 * configure.in (HAVE_SOCKLEN_T): Define.
66 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
68 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
69 (java::net::PlainSocketImpl::accept): Use it.
70 Fixes PRs libgcj/3694, libgcj/3696.
72 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
73 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
74 * configure, include/config.h.in: Regenerate.
75 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
77 (java::net::PlainDatagramSocketImpl::setOption): Guard against
78 missing IPV6_MULTICAST_IF.
81 2001-08-01 Jeff Sturm <jsturm@one-point.com>
83 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
85 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
87 * Makefile.in: Rebuilt.
88 * Makefile.am (GCJLINK): Added --tag=GCJ.
91 2001-07-30 Tom Tromey <tromey@redhat.com>
93 * java/util/Date.java: Re-merged with Classpath.
95 2001-07-30 Jeff Sturm <jsturm@one-point.com>
97 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
98 (_Jv_bind): New static function.
100 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
101 (_Jv_bind, _Jv_connect): New static functions.
102 (bind): Use _Jv_bind.
103 (connect): Use _Jv_connect.
105 2001-07-30 Tom Tromey <tromey@redhat.com>
106 Corey Minyard <minyard@acm.org>
108 * gnu/gcj/convert/natIconv.cc (done): New methods.
109 * gnu/gcj/convert/Output_iconv.java (done): New method.
110 * gnu/gcj/convert/Input_iconv.java (done): New method.
111 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
113 (getDefaultEncodingClass): Removed.
114 (getDefaultEncoder): Use getEncoder.
116 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
118 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
120 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
122 (getDefaultDecodingClass): Removed.
123 (getDefaultDecoder): Use getDecoder.
124 (getDecoder): Look up decoder in cache.
126 * java/lang/natString.cc (init): Call `done' on converter.
127 (getBytes): Likewise.
129 2001-07-30 Tom Tromey <tromey@redhat.com>
131 * java/lang/Integer.java: Merged with Classpath.
133 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
135 * java/util/GregorianCalendar.java (GregorianCalendar): Call
136 setTimeInMillis() to set the default/current time.
138 2001-07-29 Mark Wielaard <mark@klomp.org>
140 * HACKING: add description on updating namespace
142 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
144 * java/util/Calendar.java (set): Never recompute fields here. They
145 will already be set if someone set time explicitly, and it can cause
146 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
147 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
148 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
150 * java/text/SimpleDateFormat.java (defaultCentury): New field.
151 (readObject): Call set2DigitYearStart if appropriate so that
152 defaultCentury is calculated.
153 (SimpleDateFormat): Don't bother clearing calendar here. Call
154 computeCenturyStart().
155 (set2DigitYearStart): Calculate and set defaultCentury.
156 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
158 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
159 2 numeric digits, use the 80-20 heuristic to parse the value into a
160 default century based on defaultCenturyStart.
161 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
163 2001-07-25 Tom Tromey <tromey@redhat.com>
165 * Makefile.in: Rebuilt.
166 * Makefile.am (libgcj.jar): Correctly fail when bytecode
169 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
171 * prims.cc (_JNI_OnLoad): New function.
172 (JNI_OnLoad): Use it.
173 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
175 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
177 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
178 Makefile.in: Regenerate.
180 2001-07-24 Tom Tromey <tromey@redhat.com>
182 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
185 2001-07-23 Tom Tromey <tromey@redhat.com>
187 * gcj/javaprims.h: Rebuilt class list.
188 * Makefile.in: Rebuilt.
189 * Makefile.am (core_java_source_files): Added VMClassLoader.
190 * java/lang/VMClassLoader.java: New file.
191 * java/lang/Boolean.java: Merged with Classpath.
192 * java/lang/Byte.java: Merged with Classpath.
193 * java/lang/Integer.java: Merged with Classpath.
194 * java/lang/Long.java: Merged with Classpath.
195 * java/lang/Number.java: Merged with Classpath.
196 * java/lang/Short.java: Merged with Classpath.
198 2001-07-22 Jeff Sturm <jsturm@one-point.com>
200 * configure.host: Enable hash synchronization for alpha*-*.
201 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
203 * java/lang/natObject.cc (compare_and_swap, release_set,
204 compare_and_swap_release): Added inline functions for alpha.
206 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
208 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
209 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
210 back to old RFC 2133 variants if missing.
212 2001-07-18 Tom Tromey <tromey@redhat.com>
214 * java/io/natFileWin32.cc (_access): Renamed.
216 * java/io/natFile.cc (_access): Renamed.
218 * java/io/File.java (access, stat): Add leading `_' to name.
221 2001-07-18 Tom Tromey <tromey@redhat.com>
224 * libgcj.spec.in (*lib): Added LIBICONV.
225 * configure: Rebuilt.
226 * configure.in: Call AM_ICONV. Don't check for iconv function.
227 Add parameters to JV_HASH_SYNCHRONIZATION define.
228 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
230 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
232 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
233 not by setting its size field.
235 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
237 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
240 2001-07-12 Tom Tromey <tromey@redhat.com>
241 David Brownell <david-b@pacbell.net>
243 Fix for PR libgcj/3426:
244 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
246 (read): Throw exception if character conversion fails.
247 * java/io/BufferedInputStream.java (refill): Now package-private.
248 * java/io/InputStreamReader.java (ready): Simplified.
249 (refill): New method.
252 2001-07-12 Tom Tromey <tromey@redhat.com>
254 Report from Henner Zeller:
255 * java/io/FileOutputStream.java (FileOutputStream): Throw
256 FileNotFoundException, not IOException.
258 2001-07-10 Anthony Green <green@redhat.com>
260 * Makefile.in: Rebuilt.
261 * Makefile.am: Add new files.
262 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
263 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
264 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
265 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
266 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
267 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
268 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
269 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
270 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
271 org/w3c/dom/ranges/DocumentRange.java,
272 org/w3c/dom/ranges/Range.java,
273 org/w3c/dom/ranges/RangeException.java,
274 org/w3c/dom/traversal/DocumentTraversal.java,
275 org/w3c/dom/traversal/NodeFilter.java,
276 org/w3c/dom/traversal/NodeIterator.java,
277 org/w3c/dom/traversal/TreeWalker.java,
278 org/xml/sax/ext/DeclHandler.java,
279 org/xml/sax/ext/LexicalHandler.java,
280 org/xml/sax/helpers/AttributeListImpl.java,
281 org/xml/sax/helpers/AttributesImpl.java,
282 org/xml/sax/helpers/DefaultHandler.java,
283 org/xml/sax/helpers/LocatorImpl.java,
284 org/xml/sax/helpers/NamespaceSupport.java,
285 org/xml/sax/helpers/ParserAdapter.java,
286 org/xml/sax/helpers/ParserFactory.java,
287 org/xml/sax/helpers/XMLFilterImpl.java,
288 org/xml/sax/helpers/XMLReaderAdapter.java,
289 org/xml/sax/helpers/XMLReaderFactory.java,
290 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
291 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
292 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
293 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
294 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
295 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
296 org/xml/sax/SAXNotRecognizedException.java,
297 org/xml/sax/SAXNotSupportedException.java,
298 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
299 org/xml/sax/XMLReader.java: New files.
301 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
303 * Makefile.am: Added `java/lang/ThreadLocal.java'.
304 * Makefile.in: Regenerate.
305 * java/lang/ThreadLocal.java: Initial import.
307 2001-07-07 Jeff Sturm <jsturm@one-point.com>
309 * Makefile.am (libgcj.jar): Don't recursively make
310 built_java_source_files. Avoid long command lines.
311 Don't change to $(srcdir) to invoke javac.
312 (libgcj.la, libgcjx.la); Avoid long command lines.
313 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
314 * Makefile.in: Rebuilt.
316 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
318 * include/i386-signal.h: Don't do anything with unsigned divide
319 overflow except throw an exception.
321 2001-07-05 Tom Tromey <tromey@redhat.com>
324 * java/lang/Class.h (Class(void)): Now private. Removed
325 implementation. From dmorsberger@sensysdl.com.
327 2001-07-02 Tom Tromey <tromey@redhat.com>
329 Fix for PR bootstrap/3281:
330 * aclocal.m4, configure: Rebuilt.
331 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
332 Correctly compute libgcj_basedir.
333 (mkinstalldirs): Define and subst.
335 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
338 * java/io/LineNumberReader.java (reset): Pass correct arguments to
341 2001-06-27 Tom Tromey <tromey@redhat.com>
343 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
346 2001-06-25 Tom Tromey <tromey@redhat.com>
348 * scripts/encodings.pl: Generate lower-case names. Updated URL
349 for `character-sets' file.
350 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
352 Rebuilt list of aliases.
354 2001-06-25 Tom Tromey <tromey@redhat.com>
356 * java/io/natFileDescriptorPosix.cc (open): Change error message
357 formatting. From David Brownell.
359 2001-06-21 Tom Tromey <tromey@redhat.com>
361 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
364 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
366 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
367 extraneous/malformed sign word.
369 2001-06-15 Tom Tromey <tromey@redhat.com>
371 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
373 2001-06-15 Tom Tromey <tromey@redhat.com>
375 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
376 NULL if no library on the list has the symbol.
377 (init): Call add_library on the program itself.
378 * prims.cc (JvRunMain): Initialize Runtime before searching for
380 (_Jv_RunMain): Likewise.
382 2001-06-15 Tom Tromey <tromey@redhat.com>
384 * jni.cc (ClassClass): Removed; updated all users.
385 (ObjectClass): Likewise.
386 (ThrowableClass): Likewise.
387 (MethodClass): Likewise.
388 (ThreadGroupClass): Likewise.
389 (local_ref_table): Renamed from `ref_table'.
390 (global_ref_table): New global.
391 (_Jv_JNI_Init): Initialize both ref tables.
392 (mark_for_gc): Added `ref_table' parameter.
393 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
395 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
396 (_Jv_JNI_DeleteGlobalRef): Likewise.
397 (_Jv_JNI_DeleteLocalRef): Likewise.
398 (_Jv_JNI_NewLocalRef): Likewise.
399 (_Jv_JNI_PopLocalFrame): Likewise.
400 (_Jv_JNI_GetStringChars): Likewise.
401 (_Jv_JNI_ReleaseStringChars): Likewise.
402 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
403 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
405 2001-06-14 Tom Tromey <tromey@redhat.com>
407 Fix for PR libgcj/3144:
408 * java/util/Date.java: Merged with Classpath.
410 2001-06-12 Tom Tromey <tromey@redhat.com>
412 * aclocal.m4, configure: Rebuilt.
413 * acinclude.m4: Find configure.host in srcdir.
415 2001-06-07 Tom Tromey <tromey@redhat.com>
417 Fix for PR libgcj/3059:
418 * java/lang/natSystem.cc (init_properties): Define `java.home'.
419 * Makefile.in: Rebuilt.
420 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
422 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
424 * exception.cc (cstdlib): Replaces stdlib.h.
425 (_Jv_Throw): Use std::abort().
426 (PERSONALITY_FUNCTION): Likewise.
428 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
430 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
431 nothing, as in autoconf 2.50.
432 * aclocal.m4, configure: Rebuilt.
434 2001-06-08 Tom Tromey <tromey@redhat.com>
436 * configure: Rebuilt.
437 * configure.in: Compute new aux dir using `pwd'.
439 2001-06-07 Tom Tromey <tromey@redhat.com>
441 For PR bootstrap/3075:
442 * configure, aclocal.m4, Makefile.am: Rebuilt.
443 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
444 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
445 relative to libgcj_basedir.
446 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
447 AC_CANONICAL_SYSTEM here.
448 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
450 ($(extra_headers)): New target.
452 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
453 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
455 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
456 table index is within allowed bounds. Ensure that we dont try to access
457 class itable at a negative offset. Avoid an ancestor table lookup if
458 source is a primitive type class.
459 (isInstance): Remove redundant isPrimitive() check.
461 2001-06-04 Tom Tromey <tromey@redhat.com>
463 * java/security/PublicKey.java: Extend Key.
464 * java/security/PrivateKey.java: Extend Key.
466 2001-06-02 Anthony Green <green@redhat.com>
468 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
469 alternate when USE_LTDL not defined.
471 2001-06-02 Anthony Green <green@redhat.com>
473 * configure: Rebuild.
474 * configure.in: Remove data_start hack.
475 * libgcj.spec.in: Ditto.
476 * Makefile.in: Rebuild.
477 * Makefile.am: Ditto.
478 * libgcjdata.c: Remove.
480 2001-06-02 Anthony Green <green@redhat.com>
482 * configure: Rebuild.
483 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
484 --without-libffi option. Tweak --disable-java-net processing.
485 * Makefile.in: Rebuild.
486 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
487 * include/config.h.in: Rebuild.
488 * acconfig.h (USE_LIBFFI): Define.
489 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
491 2001-06-02 Anthony Green <green@redhat.com>
493 * configure: Rebuilt.
494 * configure.in: Test for sigaction on native builds.
495 * prims.cc: Check HAVE_SIGACTION.
496 * include/config.h.in: Rebuilt.
498 2001-05-31 Jeff Sturm <jsturm@one-point.com>
500 * natFile.cc (get_entry): Removed functions.
501 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
502 Allocate enough storage for d_name if using readdir_r.
504 2001-05-31 Tom Tromey <tromey@redhat.com>
506 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
508 (write): Loop until write completes. From Corey Minyard.
510 2001-05-29 Laurent Guerby <guerby@acm.org>
512 * java/awt/geom/Rectangle2D.java: fix doc typo.
514 2001-05-31 Tom Tromey <tromey@redhat.com>
516 * java/sql/DriverManager.java (getDrivers): Handle case where
517 driver's class loader is null. From Corey Minyard.
519 2001-05-29 Tom Tromey <tromey@redhat.com>
521 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
523 * configure: Rebuilt.
524 * configure.in: Only add multilib support code if we just rebuilt
527 2001-05-29 Andrew Haley <aph@redhat.com>
529 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
530 pointer: the dwarf unwinder in libgcc will do everything that's
532 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
533 more than we absolutely need to.
534 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
535 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
537 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
539 * configure: Rebuilt.
540 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
542 (SIGNAL_HANDLER): Use siginfo style handler.
543 (INIT_SEGV): Likewise.
544 (INIT_FPE): Likewise.
545 * include/ppc-signal.h: Delete whole file.
547 2001-05-24 Tom Tromey <tromey@redhat.com>
549 * java/lang/natString.cc (init): Throw
550 ArrayIndexOutOfBoundsException.
551 (getChars): Likewise.
552 (getBytes): Likewise.
555 * configure.in: Only allow hash synchronization when POSIX threads
557 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
560 2001-05-23 Tom Tromey <tromey@redhat.com>
562 * Makefile.in: Rebuilt.
563 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
565 Revert patch of 2001-05-21:
566 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
567 (libgcj_la_LIBADD): Likewise.
568 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
569 (libgcjx_la_LIBADD): Likewise.
571 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
572 * gcj/Makefile.in: Rebuilt.
573 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
574 * gcj/javaprims.h: Include gcj/libgcj-config.h.
575 * gcj/libgcj-config.h.in: New file.
576 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
577 * configure: Rebuilt.
578 * configure.in: Enable hash synchronization by default on some
580 (HASH_SYNC_SPEC): New subst.
581 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
582 Correctly use `test -z' instead of `test -n' in a couple places.
583 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
585 * configure.host (enable_java_net_default): Initialize.
586 (enable_hash_synchronization_default): New variable.
588 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
590 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
591 synchronization in use.
592 (_Jv_MarkArray): Likewise.
593 (_Jv_AllocBytes): Don't check return result.
594 (handle_out_of_memory): New function.
595 (_Jv_InitGC): Set GC_oom_fn.
596 (trace_one_vtable): New global.
597 (_Jv_AllocTraceOne): New function.
598 * configure.in: Added --enable-hash-synchronization.
599 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
600 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
601 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
602 (_Jv_AllocArray): Likewise.
603 (_Jv_AllocBytes): Likewise.
604 (_Jv_AllocPtrFreeObject): New function.
605 (_Jv_AllocTraceOne): Likewise.
606 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
608 (self_cache): New global.
609 (_Jv_ThreadSelf_out_of_line): New function.
610 * prims.cc (_Jv_AllocBytesChecked): Removed.
611 (_Jv_ThrowNoMemory): New function.
612 (_Jv_AllocObject): Don't check for null return from allocator.
613 (_Jv_NewObjectArray): Likewise.
614 (_Jv_AllocPtrFreeObject): New function.
615 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
616 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
617 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
618 * include/boehm-gc.h (_Jv_AllocObj): Define.
619 (_Jv_AllocPtrFreeObj): Define.
620 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
621 (_Jv_ThrowNoMemory): Declare.
622 (_Jv_AllocTraceOne): Declare.
623 (_Jv_AllocBytesChecked): Removed.
624 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
625 _Jv_MutexUnlock): Handle LOCK_DEBUG.
626 (_Jv_ThreadSelf): Handle case where system pthread_self() is
628 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
630 * java/lang/Object.h (sync_info): Conditional upon presence of
631 hash synchronization.
632 * java/lang/natObject.cc: Much new code to handle thin locks and
633 hash synchronization.
634 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
637 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
639 * gij.cc (version): Update copyright year.
641 2001-05-22 Anthony Green <green@redhat.com>
643 * configure.in: Tweak canadian cross test, and don't redefine GCJ
646 2001-05-21 Per Bothner <per@bothner.com>
648 Implement invocation interface; don't create new thread for main.
649 * java/lang/Thread.java (gen_name): Make native.
650 (<init>(Thread,THreadGroup,Runnable,String)): New private
651 constructor, used by other constructors, and _Jv_AttachCurrentThread.
652 * java/lang/natThread.cc (gen_name): New implementation.
653 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
654 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
655 (_Jv_CreateJavaVM): New runtime initialization procedure.
656 (runFirst): New proecdure - mostly code from old FirstThread::run.
657 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
658 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
659 JvDetachCurrentThread): New inline wrappers.
660 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
661 _Jv_DetachCurrentThread): New declarations.
662 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
663 (getMain): new static method.
664 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
665 by runFirst in prims.cc.
666 (java/lang/Thread.h): Update for new invocation interface.
667 * include/posix-threads.h (_Jv_ThreadRegister,
668 _Jv_ThreadUnRegister): New declarations.
669 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
670 (really_start): Use new _Jv_ThreadRegister.
671 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
672 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
673 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
674 Complain of called when _Jv_OnlyThread already set.
675 (_Jv_ThreadStart): Always JvFail.
676 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
677 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
678 * win32-threads.cc (struct starter): Remove objet field -
679 we use _Jv_Thread_t's new thread_obj field instead.
680 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
681 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
682 (really_start): Use new _Jv_ThreadRegister.
683 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
684 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
685 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
686 Removed - no longer needed with new invocation interface.
687 * Makefile.am: Update for removed/added files.
689 2001-05-21 Per Bothner <per@bothner.com>
691 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
692 (libgcj_la_LIBADD): Likewise.
693 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
695 2001-05-21 Per Bothner <per@bothner.com>
697 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
698 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
699 taken from old Integer.toString code.
700 (Integer::valueOf): Use _Jv_FormatInt.
701 * java/lang/Integer.java (toString): Just use call String.valueOf.
702 * java/lang/Long.java (toString): Fix typo in comment.
703 * java/lang/String.java (valueOf(int)): Make native.
704 * java/lang/StringBuffer.java (append(int)): Make native.
705 * java/lang/natStringBuffer.cc: New file, for append(jint).
706 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
708 2001-05-21 Tom Tromey <tromey@redhat.com>
710 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
712 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
714 * include/dwarf2-signal.h: New file.
715 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
716 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
717 * configure: Rebuilt.
719 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
721 * configure.in: Update boehm-gc include dir for new GC version.
722 * configure: Rebuilt.
723 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
725 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
726 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
727 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
730 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
732 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
733 (_Jv_MutexInit): Likewise.
735 2001-05-18 Tom Tromey <tromey@redhat.com>
737 * Makefile.in: Rebuilt.
738 * Makefile.am (awt_java_source_files): Added Polygon.java.
740 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
742 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
743 * gcj/javaprims.h: ... here.
744 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
746 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
748 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
749 with length of ioffset table.
750 (_Jv_IsAssignableFrom): Likewise.
752 2001-05-17 Per Bothner <per@bothner.com>
754 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
756 2001-05-16 Tom Tromey <tromey@redhat.com>
758 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
761 2001-05-15 Tom Tromey <tromey@redhat.com>
763 * java/util/GregorianCalendar.java (computeTime): Only call
766 2001-05-14 Tom Tromey <tromey@redhat.com>
768 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
769 ZONE_OFFSET just before computing the time.
771 2001-05-12 Zack Weinberg <zackw@stanford.edu>
773 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
774 * Makefile.in: Regenerate (by hand).
775 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
776 * doc/cni.sgml: Document #pragma GCC java_exceptions.
778 2001-05-11 Richard Henderson <rth@redhat.com>
780 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
781 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
783 2001-05-11 Richard Henderson <rth@redhat.com>
785 * exception.cc: Include unwind-pe.h. Remove all pointer
788 2001-05-10 Tom Tromey <tromey@redhat.com>
790 * Makefile.in: Rebuilt.
791 * Makefile.am (awt_java_source_files): Added Polygon.java.
792 * java/awt/Polygon.java: New file.
794 * java/awt/geom/AffineTransform.java
795 (setToRotation(double,double,double)): New method.
796 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
797 (setToShear): Likewise.
799 2001-05-10 Tom Tromey <tromey@redhat.com>
801 * java/util/GregorianCalendar.java: Imported from Classpath.
802 * gnu/java/locale/LocaleInformation_nl.java: New file from
804 * gnu/java/locale/LocaleInformation_en.java: Likewise.
805 * gnu/java/locale/LocaleInformation_de.java: Likewise.
806 * gnu/java/locale/LocaleInformation.java: Likewise.
807 * natGregorianCalendar.cc: Removed.
808 * Makefile.in: Rebuilt.
809 * Makefile.am (nat_source_files): Removed
810 natGregorianCalendar.cc.
812 2001-05-10 Tom Tromey <tromey@redhat.com>
814 * java/text/SimpleDateFormat.java (computeCenturyStart): New
816 (defaultCenturyStart): Use it.
817 (readObject): Likewise.
818 (SimpleDateFormat): Clear the calendar. Set the grouping on the
820 (parse): Copy the calendar before modifying it. Correctly handle
823 * java/util/Calendar.java (clear): Set field value(s) to 0.
825 2001-05-10 Jeff Sturm <jsturm@one-point.com>
827 * Calendar.java (get): Clear areFieldsSet if requested field
829 (set): Unset fields that depend on new value.
831 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
833 * java/lang/Class.h (_Jv_Self): New union type.
834 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
835 Jeff Sturm and Fergus Henderson.
837 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
839 * java/lang/ClassLoader.java: Remove dead code fragment.
841 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
843 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
845 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
847 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
849 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
850 * configure.host (EXCEPTIONSPEC): New.
851 * configure.in (EXCEPTIONSPEC): New.
852 * configure: Rebuilt.
854 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
856 * doc/*.texi: Remove generated documentation.
858 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
860 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
861 (performDelete): Fix #endif placement.
863 2001-04-27 Zack Weinberg <zackw@stanford.edu>
865 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
866 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
867 (_Jv_ThreadDestroyData): Use _Jv_Free.
868 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
871 2001-04-27 Tom Tromey <tromey@redhat.com>
873 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
875 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
877 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
879 * include/jni.h (struct JNINativeInterface): Fixed types in
880 Get/Set*ArrayRegion declarations.
881 (class _Jv_JNIEnv): Likewise.
883 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
885 * configure.in: Obtain THREADS with `gcc -v'.
886 * configure: Rebuilt.
888 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
891 * java/io/ObjectStreamClass.java (setClass): Calculate
892 serialVersionUID for local class and compare it against the UID
893 from the Object Stream. Throw InvalidClassException upon mismatch.
894 (setUID): Renamed to...
895 (getClassUID): this. Return the calculated class UID rather than
896 setting uid field directly.
897 (getDefinedSUID): Removed.
898 * java/io/ObjectInputStream.java (resolveClass): Use the
899 three-argument Class.forName().
900 * java/io/InvalidClassException (toString): Don't include classname in
901 result if it is null.
903 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
905 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
906 Wrap use of inet_pton in HAVE_INET6.
908 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
910 java.security merge and ClassLoader compliance fixes.
912 * java/lang/Class.h (Class): Include ProtectionDomain.h.
913 New protectionDomain field.
914 (forName): Add initialize parameter. Fixes declaration to comply with
916 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
917 variant. Honour "initialize" flag.
918 (getProtectionDomain0): New method.
919 * java/lang/Class.java: Fix forName() declaration.
920 (getPackage): New method based on Classpath implementation.
921 (getProtectionDomain0): New native method decl.
922 (getProtectionDomain): New method.
923 * java/lang/ClassLoader.java (getParent): Now final.
924 (definedPackages): New field.
926 (defineClass): New variant with protectionDomain argument.
927 (definePackage): New.
929 (findSystemClass): Now final.
930 (getSystemResourceAsStream): Remove redundant "final" modifier.
931 (getSystemResource): Remove redundant "final" modifier.
932 (getResources): Now final.
933 (protectionDomainPermission): New static field.
934 (unknownProtectionDomain): Ditto.
935 (defaultProtectionDomain): Ditto.
936 (getSystemClassLoader): Now non-native.
937 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
938 arguments for Class.forName().
939 * java/lang/Package.java: New file.
940 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
941 (instance): Static initialize singleton.
942 (findClass): Override this, not findSystemClass.
943 * java/lang/natClassLoader.cc (defineClass0): Set class's
944 protectionDomain field as specified.
945 (getSystemClassLoader): Removed.
946 (findClass): Renamed from findSystemClass. Call the interpreter via
947 URLClassLoader.findClass if loading class via dlopen fails.
949 * java/security/*.java: java.security import/merge with Classpath.
950 * java/security/acl/*.java: Likewise.
951 * java/security/interfaces/*.java: Likewise.
952 * java/security/spec/*.java: Likewise.
953 * java/net/NetPermission.java: Likewise.
954 * java/net/SocketPermission.java: Likewise.
955 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
957 * Makefile.am: Add new classes.
958 * Makefile.in: Rebuilt.
959 * gcj/javaprims.h: CNI namespace rebuild.
961 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
963 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
964 for libtool tests. Pre-create gnu/classpath/Configuration.java.
965 * configure: Rebuilt.
967 2001-04-21 Tom Tromey <tromey@redhat.com>
969 * Makefile.in: Rebuilt.
970 * Makefile.am (awt_java_source_files): Added Line2D.java.
971 * java/awt/geom/Line2D.java: Wrote.
973 * java/awt/Menu.java (addNotify): Wrote.
975 * java/awt/PopupMenu.java (addNotify): Implemented.
978 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
979 * java/awt/List.java (addNotify): Call super.addNotify.
980 * java/awt/Label.java (addNotify): Call super.addNotify.
981 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
982 * java/awt/Dialog.java (addNotify): Call super.addNotify.
983 * java/awt/Choice.java (addNotify): Call super.addNotify.
984 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
985 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
987 * java/awt/List.java (replaceItem): Notify peer.
989 * java/awt/geom/Rectangle2D.java
990 (Float.setRect(float,float,float,float)): New method.
992 * java/awt/event/ContainerEvent.java (getContainer): Now returns
995 * java/awt/RenderingHints.java (Key): Class now public.
997 * java/awt/Rectangle.java (Rectangle): Now implements
999 (getPathIterator): Removed.
1001 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1004 * java/awt/FileDialog.java: Wrote.
1006 * java/awt/EventQueue.java (isDispatchThread): Now public.
1007 (invokeLater): Likewise.
1009 * java/awt/Component.java (setCursor): Update peer.
1010 (getFontMetrics): Use peer.
1012 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1015 2001-04-20 Tom Tromey <tromey@redhat.com>
1017 * java/awt/List.java: Wrote.
1018 * java/awt/Dialog.java: Wrote.
1020 2001-04-20 Warren Levy <warrenl@redhat.com>
1022 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1023 * java/text/SimpleDateFormat.java
1024 (indexInArray): Removed private method.
1025 (processYear): Removed private method.
1026 (parseLenient): Removed private method.
1027 (parseLeadingZeros): Removed private method.
1028 (parseStrict): Removed private method.
1029 (expect): Added new private method.
1030 (parse): Reverted to pre-Classpath merge version with minor fixes.
1031 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1034 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1036 * java/io/File.java (normalizePath): New private method.
1037 (File (String)): Use normalizePath().
1038 (File (String, String)): Likewise.
1040 * Makefile.am (libffi_files): Removed.
1041 (libgcj.la): Link libffi as a convenience library instead of
1042 refering to its object files directly.
1043 * Makefile.in: Rebuilt.
1045 2001-04-08 Per Bothner <per@bothner.com>
1047 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1048 Recalculate hash, since Utf8Const's hash is only 16 bits.
1050 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1051 bits of hash to calculate step for chaining.
1053 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1054 when 2/3 full, rather than 3/4 full.
1056 2001-04-06 Tom Tromey <tromey@redhat.com>
1058 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1059 (wrap_value<T*>): New specialization.
1060 (_Jv_JNI_PopLocalFrame): Update env->locals.
1062 2001-04-05 Tom Tromey <tromey@redhat.com>
1064 * libtool-version: Updated current.
1066 2001-04-04 Andreas Jaeger <aj@suse.de>
1068 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1069 * gcj/Makefile.in: Rebuilt.
1070 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1071 * Makefile.in: Rebuilt.
1072 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1073 * testsuite/Makefile.in: Rebuild.
1074 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1075 * include/Makefile.in: Rebuild.
1077 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1079 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1080 compiled test', not 'execution from source compiled test'.
1081 Use UNTESTED, not XFAIL, for tests which are not run because
1082 they depend on a previous test which failed.
1084 2001-04-02 Richard Henderson <rth@redhat.com>
1086 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1087 the same tree as gcc.
1088 * configure: Rebuilt.
1090 * exception.cc (_Jv_Throw): Clarify commentary.
1092 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1094 * jni.cc (wrap_value<jclass>): New specialization.
1096 2001-04-02 Tom Tromey <tromey@redhat.com>
1098 * java/io/PrintStream.java (out): Removed field. Fixes PR
1100 (write): Call flush, not out.flush, per spec.
1101 (close): Flush output stream, per spec. Handle
1102 InterruptedIOException.
1103 (checkError): Likewise.
1104 (flush, print, write): Handle InterruptedIOException per spec.
1105 (PrintStream): Don't create BufferedOutputStream.
1106 (work_bytes): New field.
1107 (writeChars): Use work_bytes. Don't assume `out' is a
1108 BufferedOutputStream.
1110 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1112 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1115 2001-03-30 Tom Tromey <tromey@redhat.com>
1117 * jni.cc (add_char): Correctly encode non-ascii characters.
1118 (add_char): Define even when INTERPRETER not defined.
1119 (mangled_name): Likewise.
1120 (_Jv_GetJNIEnvNewFrame): Likewise.
1121 (_Jv_LookupJNIMethod): Likewise.
1123 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1125 * configure.host: Enable interpreter for PPC.
1127 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1129 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1130 to "file.separator", "path.separator", and "java.io.tmpdir" property
1132 * java/io/File.java: Likewise.
1133 * java/io/natFile.cc (init_native): Likewise.
1134 * java/io/natFileWin32.cc (init_native): Likewise.
1136 2001-04-01 Per Bothner <per@bothner.com>
1138 * java/lang/natString.cc (intern): If string's data does not point to
1139 this String, make a fresh String that does.
1141 * java/lang/natString.cc (unintern): Replace by static function.
1142 * java/lang/String.java (unintern): Remove method.
1144 2001-04-01 Per Bothner <per@bothner.com>
1146 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1147 (finish): def.deflate needs to be called in a loop.
1148 (inbuf, inbufLength): New private fields.
1149 (write(int)): Use inbuf.
1150 (write(byte[],int,int): Check if pending output in inbuf.
1151 * ZipOutputStream.java: Don't use Deflater if stored.
1152 Use a Checksum object directly, not via a CheckedOutputStream.
1153 (uncompressed_size): New field,
1154 (closeEntry): Only write data_directory if needed.
1155 (write): If STORED, write directly.
1156 Always update crc, and uncompressed_size.
1157 (write_entry): Fix lots of protocol erors.
1159 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1161 1.3-Compliant Implementation of java.io.File.
1162 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1163 "path.separator", and "java.io.tmpdir" from the File class, instead
1164 of setting them explicitly.
1165 * java/io/File.java: Do not canonicalize paths for security manager
1166 checks. Call init_native() from static initializer. Do not pass path
1167 argument to native methods. New native method declarations. Some
1168 security manager checks moved to checkWrite().
1169 (equals): Check file system case sensitivity and act appropriatly.
1170 (hashCode): Likewise.
1171 (isHidden): New method implemented.
1172 (performList): Changed prototype. Now takes a class argument specifying
1173 the class of the returned array: Strings or File objects. Also added
1174 FileFilter argument.
1175 (listFiles): New variants with "File" return type implemented.
1176 (createTempFile): Use createNewFile(). Use maxPathLen.
1177 (setReadOnly): New method implemented.
1178 (listRoots): Likewise.
1179 (compareTo): Likewise.
1180 (setLastModified): Likewise.
1181 (checkWrite): New method.
1183 * java/io/natFile.cc: Various functions no longer take canonical path
1185 (stat): Handle ISHIDDEN query.
1186 (isAbsolute): Remove WIN32 cruft.
1187 (performList): New arguments. Handle returning either File[] or String[]
1188 arrays. Check with FileFilter or FilenameFilter arguments as
1189 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1190 (performSetReadOnly): New method implemented.
1191 (performListRoots): Likewise.
1192 (performSetLastModified): Likewise.
1193 (performCreate): Likewise.
1194 (init_native): New initialization function.
1195 * java/io/natFileWin32.cc: Various functions no longer take canonical
1197 (stat): Add FIXME about ISHIDDEN query.
1198 (performList): New arguments. Handle returning either File[] or String[]
1199 arrays. Check with FileFilter or FilenameFilter arguments as
1200 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1201 (performSetReadOnly): New. Stubbed.
1202 (performListRoots): Likewise.
1203 (performSetLastModified): Likewise.
1204 (performCreate): Likewise.
1205 (init_native) New initialization function.
1206 * configure.in: Check for utime() and chmod().
1207 * configure: Rebuilt.
1208 * include/config.h.in: Rebuilt.
1210 Resolves PR libgcj/1759.
1212 2001-03-28 Richard Henderson <rth@redhat.com>
1214 IA-64 ABI Exception Handling:
1215 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1216 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1217 Remove EXCEPTIONSPEC.
1218 * configure.host (libgcj_sjlj): Remove.
1219 * configure.in (EXCEPTIONSPEC): Remove.
1220 (enable-sjlj-exceptions): Detect if not specified.
1221 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1222 what header we're looking for.
1223 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1224 * Makefile.in, configure: Regenerate.
1225 * exception.cc: Don't declare libgcc2 stuff.
1226 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1227 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1228 (win32_get_restart_frame): Remove.
1229 (struct java_exception_header): New.
1230 (__gcj_exception_class): New.
1231 (get_exception_header_from_ue): New.
1232 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1233 (size_of_encoded_value, read_encoded_value): New.
1234 (read_uleb128, read_sleb128, parse_lsda_header): New.
1235 (get_ttype_entry, __gcj_personality_sj0): New.
1236 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1238 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1240 * javax/naming/InitialContext.java (init): Fix typo.
1241 (composeName): Remove unnecessary semicolon.
1242 (addToEnvironment): Remove unnecessary semicolon.
1243 (addToEnvironment): Use put() instead of add().
1245 * javax/naming/InitialContext.java (InitialContext):
1247 (destroySubcontext): Method doesn't return a result.
1248 * javax/naming/Context.java: Import java.util.Hashtable.
1249 * javax/naming/Name.java: Import java.util.Enumeration.
1251 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1253 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1254 objects in subdirectories.
1255 * Makefile.in: Rebuilt.
1257 2001-03-25 Richard Henderson <rth@redhat.com>
1259 * exception.cc (java_eh_info): Make value type jthrowable.
1260 (_Jv_type_matcher): Remove now unneeded cast.
1261 (_Jv_Throw): Make argument type jthrowable. Munge name
1262 for SJLJ_EXCEPTIONS here ...
1263 * gcj/cni.h: ... not here.
1265 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1267 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1268 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1269 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1270 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1271 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1272 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1273 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1274 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1275 java/lang/natDouble.cc, java/lang/natObject.cc,
1276 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1277 java/lang/natString.cc, java/lang/natSystem.cc,
1278 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1279 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1280 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1281 java/util/zip/natInflater.cc:
1282 Use throw, not JvThrow or _Jv_Throw.
1284 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1286 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1287 paramater, bump it to 1.
1288 * java/util/Hashtable.java (Hashtable): Likewise.
1290 2001-03-23 Per Bothner <per@bothner.com>
1292 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1293 check for errors, since we don't want to throw exception on
1294 overflow/underflow. Instead, trim whitespace, and then check that
1295 _strtod_r uses up all the rest of the string.
1297 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1298 ancestors array is invalid for interfaces, so do that *after*
1299 check that the target type is not an interface.
1301 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1303 * prims.cc (_Jv_FindClassFromSignature): Check return of
1304 recursive call. Do not abort on invalid signature; return NULL
1307 2001-03-22 Tom Tromey <tromey@redhat.com>
1309 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1310 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1312 * include/jvm.h (_Jv_ResolveField): Declare.
1313 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1314 * resolve.cc (_Jv_ResolveField): No longer conditional on
1317 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1319 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1320 for libtool hacking.
1321 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1322 to a temporary file, then invoke libtool with the -objectlist
1324 (libgcjx.la): Likewise.
1325 * Makefile.in: Rebuilt.
1327 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1329 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1331 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1333 * jni.cc (add_char): Handle `.' like `/'.
1335 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1337 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1338 initialize if exception_types is null.
1339 * java/lang/reflect/Constructor.java: Likewise.
1340 * java/lang/reflect/natConstructor.cc (getType): Initialize
1341 exception_types to an empty Object array.
1343 2001-03-21 Tom Tromey <tromey@redhat.com>
1345 * configure: Rebuilt.
1346 * configure.in (GCJFLAGS): Subst.
1347 * Makefile.in: Rebuilt.
1348 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1349 (gij_LDFLAGS): Likewise.
1350 (JC1FLAGS): Added GCJFLAGS and removed -g.
1352 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1353 read/write case. Fixes PR libgcj/2338.
1355 2001-03-20 Warren Levy <warrenl@redhat.com>
1357 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1358 and corrected SimpleTimeZone's for the timezones hash table.
1360 2001-03-19 Per Bothner <per@bothner.com>
1362 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1363 "canonicalize" "../../xxx" to "/xxx".
1365 2001-03-19 Mark Wielaard <mark@klomp.org>
1367 * java/util/ArrayList.java: Remove RCS keywords from comments
1368 * java/util/BasicMapEntry.java: idem
1369 * java/util/Dictionary.java: idem
1370 * java/util/HashSet.java: idem
1372 * java/util/EventObject.java: reindent
1373 * java/util/Properties.java: idem
1374 * java/util/SortedMap.java: idem
1376 * java/util/Enumeration.java: Merge with Classpath
1377 * java/util/EventListener.java: idem
1378 * java/util/Observable.java: idem
1379 * java/util/Observer.java: idem
1380 * java/util/Stack.java: idem
1382 2001-03-17 Tom Tromey <tromey@redhat.com>
1384 * java/lang/natString.cc (rehash): Don't bother with memset;
1385 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1387 (UNMASK_PTR): New macro.
1388 (intern): Unmask pointer before returning it. Register finalizer
1390 (unintern): Handle case where
1391 (MASK_PTR): New macro.
1392 (PTR_MAKSED): Likewise.
1393 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1395 2001-03-01 Andrew Haley <aph@redhat.com>
1397 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1398 stackTrace buffer to a correctly aligned pointer array.
1400 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1402 * java/lang/Runtime.java (_exit): Declare new package-private native.
1403 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1404 without a security manager check.
1405 (exit): Call _exit after security check.
1406 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1408 * java/lang/System.java (setSecurityManager): If a security manager
1409 is already in place, call checkPermission.
1410 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1411 throws an exception, try to deal with it gracefully.
1412 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1413 Only try to print the subordinate stack trace if "exception" is set.
1414 Print our class name first.
1416 2001-03-08 Tom Tromey <tromey@redhat.com>
1418 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1419 info for array classes.
1420 Fixes PR libgcj/1971.
1422 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1424 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1427 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1429 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1430 instead of the new JDK1.2 API. This is simpler and makes
1431 back-porting the classes to JDK1.1 trivial.
1432 (readObject): likewise.
1434 2001-03-01 Per Bothner <per@bothner.com>
1436 Changes merged from Kawa's gnu.math.
1437 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1438 (rshift(int[],int[],int,int): Removed - not needed.
1439 (gcd): Use rshift0 rather than rshift.
1440 * java/math/BigInteger.java (setShiftRight): Likewise.
1441 (divide): Simplify by using rshift0.
1442 (divide): Zero-extend results if high-order bit set.
1444 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1446 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1449 2001-02-23 Per Bothner <per@bothner.com>
1451 Change to sometimes include class name in ClassFormatError message.
1452 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1453 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1454 boolean instead of throwing ClassFormatError on failure.
1455 (throw_class_format_error): Change static function to method.
1456 (_Jv_ClassReader): New inline methods verify_identifier,
1457 two overloads of verify_classname, verify_field_signature, and
1458 verify_method_signature
1459 * include/java-interp.h: Update declarations to return bool.
1460 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1461 ClassFormatError since _Jv_VerifyClassName now returns bool.
1463 2001-02-23 Per Bothner <per@bothner.com>
1465 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1466 c++filt to select java-style output.
1468 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1470 Fix for PR java/2040:
1471 * java/util/HashMap.java (HashMap): Don't throw exception for
1472 loadFactor > 1. Add exception messages.
1473 * java/util/Hashtable.java (Hashtable): Likewise.
1475 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1477 Disable libgcjx by default.
1478 * configure.in: Add support for --enable-java-awt configure option.
1479 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1480 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1481 * Makefile.in: Rebuilt.
1482 * configure: Rebuilt.
1484 2001-02-20 Tom Tromey <tromey@redhat.com>
1486 * java/io/PipedWriter.java (flush): Throw exception if stream
1488 * java/io/OutputStreamWriter.java (write): Throw exception if
1490 (writeChars): Don't throw exception if stream closed.
1491 * java/io/CharArrayWriter.java (closed): New field.
1493 (flush): Throw exception if stream closed.
1494 (reset): Synchronize on correct lock. Allow stream to be
1496 (toCharArray, toString, writeTo): Synchronize.
1497 (write): Throwe exception if stream closed.
1498 * java/io/BufferedWriter.java (close): Clear `buffer'.
1499 (flush): Throw IOException if stream is closed.
1502 2001-02-16 Tom Tromey <tromey@cygnus.com>
1504 * java/lang/ThreadGroup.java (activeCount): Only include threads
1506 (enumerate): Likewise.
1508 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1510 * java/lang/Integer.java (getInteger): Return default argument if
1511 property is not set. Don't call decode with null argument.
1512 * java/lang/Long.java (getLong): Likewise.
1514 * java/io/CharArrayReader.java (CharArrayReader): Throw
1515 IllegalArgumentException if constructor arguments are illegal.
1516 (ready): Return false if no more characters can be read.
1517 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1519 2001-02-17 Mark Wielaard <mark@klomp.org>
1521 * java/util/TimerTask.java: New version from Classpath.
1523 2001-02-17 Mark Wielaard <mark@klomp.org>
1525 Remerge with Classpath
1526 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1527 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1528 (readByte): Use convertToByte().
1529 (readChar): Use convertToChar().
1530 (readInt): Use convertToInt().
1531 (readLong): Use convertToLong().
1532 (readShort): Use convertToShort().
1533 (readUnsignedByte): Use convertToUnsignedByte().
1534 (readUnsignedShort): Use convertToUnsignedShort().
1535 (readUTF): Use convertToUTF().
1537 (convertToBoolean): Resurrected.
1538 (convertToByte): Ditto.
1539 (convertToChar): Ditto.
1540 (convertToInt): Ditto.
1541 (convertToLong): Ditto.
1542 (convertToShort): Ditto.
1543 (convertToUnsignedByte): Ditto.
1544 (convertToUnsignedShort): Ditto.
1545 (convertToUTF): Ditto.
1547 2001-02-17 Mark Wielaard <mark@klomp.org>
1551 2001-02-17 Mark Wielaard <mark@klomp.org>
1553 * java/io/DataInputStream.java: update copyright notice
1554 * java/io/PrintWriter.java: idem
1555 * java/io/Reader.java: idem
1556 * java/io/StreamTokenizer.java: idem
1557 * java/io/StringReader.java: idem
1558 * java/lang/reflect/ReflectPermission.java: idem
1560 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1562 * java/util/TreeSet.java (clone): Made subclass safe, use
1563 super.clone(), not new.
1564 * java/util/TreeMap.java (clone): Likewise.
1566 * java/util/TreeMap.java (nil): Made non-final.
1567 (clone): Create new nil node for copy.
1569 * java/util/HashSet.java (clone): Made subclass safe, use
1570 super.clone(), not new.
1572 2001-02-14 Andrew Haley <aph@redhat.com>
1574 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1577 2001-02-15 Anthony Green <green@redhat.com>
1579 * defineclass.cc: Don't include alloca.h.
1580 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1581 * interpret.cc (run_normal): Ditto.
1583 * java/lang/natDouble.cc (parseDouble): Ditto.
1585 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1587 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1589 * java/util/Collections.java (ReverseComparator): New static class.
1590 (reverseOrder): Return static instance of ReverseComparator.
1592 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1593 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1594 Rectangle.clone(), not Object.clone().
1596 * java/util/HashSet.java (clone): Remove try/catch.
1598 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1599 * java/util/Collection.java: Likewise.
1600 * java/util/Comparator.java: Likewise.
1601 * java/util/Dictionary.java: Likewise.
1602 * java/util/Iterator.java: Likewise.
1603 * java/util/ListIterator.java: Likewise.
1604 * java/util/Map.java: Likewise.
1605 * java/util/Set.java: Likewise.
1607 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1609 * java/util/TreeMap.java: New file.
1610 * java/util/TreeSet.java: New file.
1611 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1612 * Makefile.in: Rebuilt.
1613 * java/util/HashSet.java (clone): Use constructor instead of calling
1615 * java/util/SortedSet.java: Sync with classpath.
1616 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1619 * java/lang/natClass.cc (getSignature): Don't try to dereference
1620 param_types if it is null. Instead, take this to mean "no parameters".
1621 * java/lang/TreeMap.java (TreeIterator.next): Throw
1622 NoSuchElementException in preference to ConcurrentModificationException.
1623 (TreeIterator.remove): Throw IllegalStateException in preference to
1624 ConcurrentModificationException.
1625 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1626 throw a NoSuchElementException.
1627 (SubMap.lastKey): Likewise.
1629 2001-02-13 Tom Tromey <tromey@redhat.com>
1631 * java/io/PipedReader.java (ready): Throw IOException if pipe
1633 * java/io/FilterReader.java (close): Don't clear `in'.
1634 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1636 (read, ready, reset, skip): Added exception message.
1637 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1638 Perform checkStatus check inside synchronized block.
1640 2001-02-13 Tom Tromey <tromey@redhat.com>
1642 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1644 2001-02-13 Tom Tromey <tromey@redhat.com>
1646 Fix for PR libgcj/1351:
1647 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1649 Include Thread.h and InterruptedIOException.h.
1651 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1653 * java/io/BlockDataException.java: Removed.
1654 * java/io/ObjectInputStream.java (readObject): Throw
1655 StreamCorruptedException, not BlockDataException.
1656 * Makefile.am: Remove BlockDataException.
1657 * Makefile.in: Rebuild.
1659 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1660 Tom Tromey <tromey@redhat.com>
1662 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1665 2001-02-09 Tom Tromey <tromey@redhat.com>
1667 * java/util/Timer.java: New version from Classpath.
1669 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1671 * java/lang/Double.java (doubleToRawLongBits): Now native.
1672 * java/lang/Float.java (floatToRawIntBits): Likewise.
1673 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1674 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1676 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1678 * java/io/File.java (java.net): Imported.
1679 (getAbsoluteFile): Added.
1680 (getCanonicalPath): Likewise.
1683 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1685 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1686 * java/lang/Integer.java: Likewise.
1687 * java/lang/Long.java: Likewise.
1688 * java/lang/Short.java: Likewise.
1689 * java/lang/Double.java: Likewise.
1690 (doubleToRawLongBits): New method.
1691 * java/lang/Float.java: As above.
1692 (floatToRawIntBits): New method.
1694 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1695 IOException if stream closed.
1697 2001-02-08 Tom Tromey <tromey@redhat.com>
1699 * java/lang/Float.java (parseFloat): New method.
1701 2001-02-08 Tom Tromey <tromey@redhat.com>
1703 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1704 * java/io/InputStreamReader.java (ready, read): Throw IOException
1705 if stream has been closed.
1707 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1709 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1710 Change sources.redhat.com and sourceware.cygnus.com references to
1713 2001-02-07 Tom Tromey <tromey@redhat.com>
1715 Fix for PR libgcj/1906:
1716 * java/text/MessageFormat.java (setLocale): Use named class
1719 (format(Object,StringBuffer,FieldPosition)): Special case if
1720 argument is an Object[].
1722 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1724 * java/util/Arrays.java: Removed "cmp" methods.
1725 (qsort): Don't use "cmp".
1728 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1730 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1731 sort. Fix for PR java/1895.
1733 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1735 * configure.host: Use sjlj-exceptions for Alpha.
1737 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1739 * libgcj.spec.in: Don't force static libgcc into the executable.
1740 * configure.in (FORCELIBGCCSPEC): Removed.
1741 * configure: Rebuilt.
1743 2001-01-31 Tom Tromey <tromey@redhat.com>
1745 * Makefile.in: Rebuilt.
1746 * Makefile.am (LTCXXCOMPILE): New macro.
1748 2001-01-26 Andrew Haley <aph@redhat.com>
1750 (INIT_FPE): Use a direct system call to set the handler.
1752 2001-01-27 Richard Henderson <rth@redhat.com>
1754 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1756 2001-01-27 Tom Tromey <tromey@redhat.com>
1758 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1759 native interface structure.
1761 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1763 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1765 (read (byte[], int, int)): Only call readNextBlock() if the block
1766 buffer would actually be overrun. Increment blockDataPosition.
1767 (callReadMethod): Propagate exceptions from invocation target.
1768 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1769 exceptions from invocation target.
1771 2001-01-26 Tom Tromey <tromey@redhat.com>
1773 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1774 to internal representation.
1775 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1776 _Jv_FindClassFromSignature.
1778 2001-01-26 Warren Levy <warrenl@redhat.com>
1780 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1781 and timezone if they are available on the system.
1783 2001-01-24 Tom Tromey <tromey@redhat.com>
1785 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1787 2001-01-24 Tom Tromey <tromey@redhat.com>
1789 * Makefile.in: Rebuilt.
1790 * Makefile.am (c_source_files): Added sf_fabs.c.
1791 * java/lang/sf_fabs.c: New file.
1793 2001-01-19 Warren Levy <warrenl@redhat.com>
1795 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1796 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1797 correctly. Adjust properly from 0-23 clock hour.
1799 2001-01-17 Mark Wielaard <mark@klomp.org>
1801 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1803 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1805 * java/lang/Class.h (isInterface): Move implementation from
1806 natClass.cc. Declare inline.
1807 (Class): Add default constructor.
1808 * java/lang/Object.h: Update comments.
1809 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1810 initialize superclass, saving a call if super is already initialized.
1812 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1814 * prims.cc (init_prim_class): Deleted.
1815 (DECLARE_PRIM_TYPE): Rewritten.
1816 * java/lang/Class.h (stdio.h): Include removed.
1817 (stddef.h): Included.
1818 (java/lang/reflect/Modifier.h): Likewise.
1819 (Class): Contructor now takes arguments, initializes fields.
1820 (initializePrim): Prototype deleted.
1821 * java/lang/natClass.cc (initializePrim): Deleted.
1823 2001-01-16 Warren Levy <warrenl@redhat.com>
1825 * java/math/BigInteger.java: Update Copyright year.
1827 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1829 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1832 2001-01-14 Mark Wielaard <mark@klomp.org>
1833 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1834 (decode): Merge comments with Classpath, don't throw Exception
1836 2001-01-12 Tom Tromey <tromey@redhat.com>
1838 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1842 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1843 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1844 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1845 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1846 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1848 * java/lang/natSystem.cc: Include locale.h if it exists.
1849 * configure: Rebuilt.
1850 * configure.in: Check for locale.h.
1852 2001-01-11 Tom Tromey <tromey@redhat.com>
1854 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1855 (Cursor(int), getPredefinedCursor): Throw exception if argument
1858 2001-01-03 Tom Tromey <tromey@redhat.com>
1860 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1861 (getLocationOnScreen): Wrote.
1863 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1865 * Makefile.am: Re-enable dependencies.
1866 * Makefile.in: Rebuilt.
1868 2001-01-10 Warren Levy <warrenl@redhat.com>
1870 * java/math/BigDecimal.java (divide): Fixed comment.
1872 2001-01-10 Warren Levy <warrenl@redhat.com>
1874 Fix for PR libgcj/1596:
1875 * java/math/BigDecimal.java (divide): Check newScale for validity.
1876 Ensure that BigInteger.pow() is called with a non-negative value.
1877 (setScale (int)): New public method.
1878 (setScale (int,int)): New public method.
1880 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1882 Fix for PR libgcj/1338:
1883 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1884 commentChar. Fixed typos in comments.
1886 2001-01-08 Warren Levy <warrenl@redhat.com>
1888 Fix for PR libgcj/1411:
1889 * Makefile.am: Removed java/util/natTimeZone.cc.
1890 * Makefile.in: Rebuilt.
1891 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1892 missing localized timezone names.
1893 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1894 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1895 (init_properties): Set user.timezone property.
1896 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1897 default timezone names; removed non-standard ones. Use standard
1899 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1901 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1903 (getDefaultTimeZoneId): Removed.
1905 * java/util/natTimeZone.cc: Removed.
1907 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1909 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1910 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1911 (_Jv_GetArrayClass): New inline function.
1912 (arrayclass): New field.
1913 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1914 _Jv_GetArrayElementFromElementType.
1915 (_Jv_NewPrimArray): Ditto.
1916 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1917 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1918 Set Modifier::ABSTRACT.
1919 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1920 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1921 Now synchronized. Array classes are now referenced from
1922 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1923 Set array classes' accessibility flags correctly. Optimize so that
1924 all array classes share the same IDT.
1925 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1926 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1927 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1928 in superclasses from overwriting classes own fields.
1929 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1930 Modifier::isAbstract().
1931 (null_idt): New static field.
1932 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1934 (_Jv_IndexOf): Made inline.
1935 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1937 2001-01-08 Tom Tromey <tromey@redhat.com>
1939 Fix for PR java/1586:
1940 * Makefile.in: Rebuilt.
1941 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1943 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1945 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1946 from the c++ compiler.
1947 * Makefile.in: Rebuilt.
1949 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1951 All files with updated copyright.
1952 * prims.cc (class _Jv_PrimClass): Removed.
1953 (init_prim_class): New function.
1954 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1955 `_Jv_PrimClass' in primitive type declarations. Assign to the
1956 value returned by `init_prim_class.'
1957 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1958 primitive type declarations.
1959 (JvPrimClass): Cast to `jclass' removed.
1960 * java/lang/Class.h (Class): New constructor.
1961 (Class): New copy constructor.
1962 (initializePrim): New prototype.
1963 (_Jv_PrimClass): Field removed.
1964 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1965 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1966 (class java::lang::Object): `finalize' moved up front.
1967 * java/lang/natClass.cc
1968 (isAssignableFrom): Turned outline.
1969 (isInstance): Likewise.
1970 (isInterface): Likewise, fixed indentation.
1971 (initializePrim): New function.
1973 2001-01-07 Anthony Green <green@redhat.com>
1975 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1977 * Makefile.in: Rebuilt.
1979 * scripts/TexinfoDoclet.java: New file.
1981 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1982 doc/java-awt-color.texi, doc/java-lang.texi,
1983 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1984 doc/java-awt-event.texi, doc/java-net.texi,
1985 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1986 doc/java-awt-image.texi, doc/java-security.texi,
1987 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1988 doc/java-text.texi, doc/java-beans-beancontext.texi,
1989 doc/java-util-jar.texi, doc/java-beans.texi,
1990 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1991 doc/java-lang-ref.texi: New files.
1993 2001-01-07 Anthony Green <green@redhat.com>
1995 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1996 be used for both input and output, so don't clear doInput.
1998 * java/lang/StringBuffer.java: Fix comments.
2000 2001-01-06 Anthony Green <green@redhat.com>
2002 * java/beans/PropertyDescriptor.java: Fix comment.
2003 * java/io/PushbackReader.java: Fix comment.
2004 * java/io/ObjectStreamClass.java: Fix comment.
2005 * java/io/DataInputStream.java: Fix comment.
2006 * java/io/PipedInputStream.java: Fix comments.
2007 * java/io/PipedReader.java: Fix comments.
2008 * java/sql/DatabaseMetaData.java: Fix comments.
2010 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2012 * java/io/PipedReader: Synchronize on "lock" instead of this.
2014 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2016 * java/lang/Thread.java: Update comment.
2018 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2019 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2020 * java/io/PipedReader: New implementation based on new
2022 * java/io/PipedWriter: Updated to match new PipedReader.
2024 2001-01-03 Tom Tromey <tromey@redhat.com>
2026 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2027 (getViewportSize): Insets include scrollbar size.
2028 (doLayout): Finished.
2029 (getScrollPosition): Wrote.
2030 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2032 2001-01-02 Tom Tromey <tromey@redhat.com>
2034 * java/awt/ScrollPane.java: Wrote.
2035 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2038 * java/awt/Panel.java (Panel()): Fixed.
2040 * java/awt/Component.java (isShowing): Return false if no peer
2041 exists, and true if component is visible and no parent exists.
2042 (getLocationOnScreen): Wrote.
2043 (getPreferredSize): Removed FIXME comment.
2044 (getMinimumSize): Likewise.
2045 (getAlignmentX, getAlignmentY): Wrote.
2047 (requestFocus): Wrote.
2048 (transferFocus): Wrote.
2049 (findNextFocusComponent): New method.
2050 (hasFocus()): Wrote.
2051 (checkImage): Wrote.
2052 (enableEvents): Call setEventMask on the peer.
2054 * java/awt/Container.java (list): Use super.list() to print self.
2055 (findNextFocusComponent): New method.
2056 (setLayout): Call invalidate.
2057 (findComponentAt): Wrote.
2059 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2061 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2062 the correct versions of various linuxthreads functions get linked.
2063 * Makefile.in: Rebuilt.
2064 * java/lang/natThread.cc (finalize_native): New static function. Call
2065 _Jv_ThreadDestroyData.
2066 (initialize_native): Register finalizer for "data".
2067 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2068 (_Jv_ThreadDestroyData): New prototype.
2069 * include/win32-threads.h: Ditto.
2070 * include/no-threads.h: Ditto.
2071 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2072 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2073 move mutex and condition variable destroy code from:
2074 (really_start): ...here.
2075 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2076 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2077 (_Jv_ThreadDestroyData): Implemented.
2078 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2079 (_Jv_AllocArray): Ditto.
2081 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2083 * java/sql/DriverManager.java (getConnection): Don't set user/password
2086 2000-12-27 Warren Levy <warrenl@redhat.com>
2088 Fix for PR libgcj/1358:
2089 * java/lang/System.java: Update Copyright date properly.
2090 * java/util/Calendar.java: Fix typo in comment.
2091 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2092 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2093 initialize times. Spec says to set H:M:S values to zero only if
2095 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2096 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2097 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2098 timezones and GMT offsets, being careful to account for units of
2099 milliseconds vs. seconds.
2101 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2103 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2104 not be assigned to Object.
2106 Fix for PR libgcj/1516:
2107 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2109 (can_widen): Declared inline. Remove redundant checks for void
2110 arguments and char->short conversion. Add special case for boolean
2112 (ffi_type): Declared inline.
2113 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2115 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2117 * java/sql/SQLWarning.java: Fixed typo in comment.
2119 2000-12-26 Tom Tromey <tromey@redhat.com>
2121 * java/awt/MenuItem.java (paramString): Now protected.
2123 * java/awt/MenuShortcut.java: Implements Serializable.
2125 * java/awt/MenuBar.java: Rewrote from scratch.
2127 * java/awt/MenuComponent.java (removeNotify): Wrote.
2128 Implements Serializable.
2130 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2133 * java/awt/CheckboxMenuItem.java: Wrote.
2135 2000-12-25 Tom Tromey <tromey@redhat.com>
2137 * java/awt/MenuContainer.java: Fixed typo.
2139 * Makefile.in: Rebuilt.
2140 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2141 * java/awt/SystemColor.java: New file.
2143 * java/awt/Color.java (rgba): Now package-private.
2145 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2147 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2150 * java/awt/MenuItem.java (addNotify): New method.
2151 (MenuItem(String,MenuShortcut)): New constructor.
2152 (setLabel): Notify peer of change.
2153 (setEnabled): Likewise.
2155 * java/awt/GridLayout.java (toString): New method.
2157 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2158 (FlowLayout): Check for LEADING and TRAILING.
2159 (setAlignment): Likewise.
2160 (layoutContainer): Handle component orientation.
2162 * java/awt/Component.java (orientatin): New field.
2163 (setComponentOrientation): Wrote.
2164 (getComponentOrientation): Wrote.
2166 * java/awt/Event.java (Event): Implements Serializable.
2167 (consumed): New field for serialization.
2168 * java/awt/Dimension.java (Dimension): Implements Serializable.
2169 * java/awt/Cursor.java (Cursor): Implements Serializable.
2170 * java/awt/Container.java (Container): No longer abstract.
2172 * java/awt/Choice.java: Wrote.
2173 * java/awt/Checkbox.java: Wrote.
2174 * java/awt/ItemSelectable.java: Documented.
2175 * java/awt/CheckboxGroup.java: Wrote.
2177 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2179 (getSize): Likewise.
2181 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2183 * java/io/FileDescriptor.java: Initialize fd to -1.
2184 Remove default constructor.
2186 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2188 * java/lang/mprec.h: Change C9X reference to refer to C99.
2190 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2192 * java/lang/Throwable.java (trace_enabled): New static field.
2193 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2194 trace_enabled not set.
2195 * prims.cc (main_init): Turn off trace_enabled while creating
2196 default exception objects.
2198 2000-12-21 Tom Tromey <tromey@redhat.com>
2200 * java/beans/PropertyChangeListener.java: Extends EventListener.
2201 * java/beans/VetoableChangeListener.java: Extends EventListener.
2203 * java/util/zip/Deflater.java (update, init): Now private.
2205 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2207 * java/util/BasicMapEntry.java: Re-added.
2208 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2209 (putAll): Test for BasicMapEntry.
2210 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2211 (putAll): Test for BasicMapEntry.
2212 Change references from `HashMap.Entry' to `Entry' in various places.
2213 * Makefile.am: Add BasicMapEntry.java.
2214 * Makefile.in: Rebuilt.
2216 2000-12-18 Warren Levy <warrenl@redhat.com>
2218 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2219 need to set timezone to a valid non-null value. Partial fix for
2222 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2224 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2226 * java/awt/Button.java (addNotify): Likewise.
2227 * java/awt/Label.java (addNotify): Likewise.
2228 * java/awt/Panel.java (addNotify): Likewise.
2229 * java/awt/Scrollbar.java (addNotify): Likewise.
2230 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2231 Remove redundant null checks.
2233 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2235 * COPYING: Update to current
2236 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2237 to 19yy as example year in copyright notice).
2239 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2241 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2242 end-of-stream if avail_in is 0.
2244 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2246 * java/util/ArrayList.java (data): Declare transient.
2247 (serialPersistantFields): Removed.
2248 (readObject): Use defaultReadObject(), not readFields().
2249 (writeObject): Use defaultWriteObject(), not writeFields().
2251 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2253 * java/util/Hashtable.java (put): Remove `last' variable.
2254 Link new entry to head of list.
2255 * java/util/HashMap.java (put): Ditto.
2257 2000-12-15 Tom Tromey <tromey@redhat.com>
2259 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2260 loader to Class.forName.
2262 2000-12-14 Tom Tromey <tromey@redhat.com>
2264 * java/util/ResourceBundle.java
2265 (getBundle(String,Locale,ClassLoader)): New method.
2266 (trySomeGetBundle): Added `loader' argument.
2267 (partialGetBundle): Likewise.
2269 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2270 maximumFractionDigits, maximumIntegerDigits,
2271 minimumFractionDigits, minimumIntegerDigits): Now
2274 * java/lang/Thread.java (checkAccess): Now final.
2276 * java/lang/RuntimePermission.java: Class now final.
2278 * java/io/StringWriter.java (StringWriter(int)): Now public.
2280 * java/io/SerializablePermission.java (legal_names): Now private.
2282 * java/lang/Character.java: Updated UnicodeBlock constants.
2283 * scripts/blocks.pl: Special case private use and surrogate
2286 2000-12-12 Tom Tromey <tromey@redhat.com>
2288 * Makefile.in: Rebuilt.
2289 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2291 (GCJCOMPILE): Use it.
2294 2000-12-11 Tom Tromey <tromey@redhat.com>
2296 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2297 New static final fields.
2299 * scripts/classes.pl (scan): Skip lines with leading `*'.
2300 Fix for PR libgcj/378.
2302 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2304 * configure.in: Remove check for -fuse-divide-subroutine.
2305 * configure: Rebuilt.
2307 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2309 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2311 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2313 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2314 Remove BasicMapEntry.java and Bucket.java.
2315 * Makefile.in: Rebuilt.
2316 * java/util/HashMap.java: Rewritten.
2317 * java/util/HashSet.java: Imported from classpath.
2318 * java/util/WeakHashMap.java: Imported from classpath.
2319 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2320 * java/util/Bucket.java: Deleted.
2321 * java/util/BasicMapEntry.java: Deleted.
2322 * java/util/Collections.java (search): Use a for-loop, not iterator
2324 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2325 of elements in source.
2326 (max): Use a for-loop.
2328 (reverse): Keep track of positions instead of using Iterator's
2329 nextIndex() and previousIndex().
2330 (shuffle(List)): Initialize defaultRandom if required using
2331 double-check thread safety idiom. Call two-argument shuffle method
2332 using defaultRandom.
2333 (defaultRandom): New field.
2334 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2335 using previousIndex() and nextIndex().
2336 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2337 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2338 * java/util/AbstractMap.java (toString): Use StringBuffer.
2339 * java/lang/ref/PhantomReference.java: Imported from classpath.
2340 * java/lang/ref/SoftReference.java: Ditto.
2341 * java/lang/ref/Reference.java: Ditto.
2342 * java/lang/ref/WeakReference.java: Ditto.
2343 * java/lang/ref/ReferenceQueue.java: Ditto.
2345 2000-12-10 Richard Henderson <rth@redhat.com>
2347 * configure.host: Recognize alpha*-*, not alphaev6-*.
2349 2000-12-09 Anthony Green <green@redhat.com>
2351 * configure.host: Enable interpreter for Alpha.
2353 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2355 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2356 (ZIP): Points at fastjar instead of zip.
2357 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2358 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2359 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2360 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2361 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2362 ($(x_java_source_files:.java=.class):): Likewise.
2363 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2365 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2366 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2367 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2368 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2369 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2370 gnu/gcj/runtime/VMClassLoader.h:,
2371 java/io/ObjectInputStream$$GetField.h:,
2372 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2373 (Makefile.in): Rebuilt.
2375 2000-12-08 Tom Tromey <tromey@redhat.com>
2378 * configure: Rebuilt.
2379 * configure.in: Use echo, not `:', to create .d files.
2381 2000-12-08 Warren Levy <warrenl@redhat.com>
2383 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2384 NullPointerException so proper check of offset can be done.
2386 2000-12-08 Warren Levy <warrenl@redhat.com>
2388 * java/io/FileInputStream.java (close): Check if the fd is valid.
2389 * java/io/RandomAccessFile.java (close): Ditto.
2390 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2391 * java/net/PlainSocketImpl.java (close): Ditto.
2393 2000-12-06 Tom Tromey <tromey@redhat.com>
2395 * java/awt/GridBagConstraints.java: Filled in values for static
2398 * java/util/BitSet.java: Updated copyright notice.
2400 * Makefile.in: Rebuilt.
2401 * Makefile.am (awt_java_source_files): Added new file.
2402 * java/awt/GridBagConstraints.java: New file.
2404 2000-12-05 Tom Tromey <tromey@redhat.com>
2406 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2407 Now package-private, not protected.
2408 * java/text/DateFormatSymbols.java (equals): Now private.
2409 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2410 * java/util/BitSet.java: Class no longer final.
2412 2000-12-04 Warren Levy <warrenl@redhat.com>
2414 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2415 out code dependent on compiler and library changes.
2417 2000-12-04 Warren Levy <warrenl@redhat.com>
2419 * java/io/FilePermission.java: Made class final per spec.
2420 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2421 method name to match spec (fixed typo).
2422 * java/util/LinkedList.java: Implements List.
2424 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2426 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2427 Edgar Villanueva <edgarvil@home.com>.
2429 2000-12-03 Tom Tromey <tromey@redhat.com>
2431 * java/awt/geom/Point2D.java: Added protected constructor.
2432 (equals): New method.
2433 (Float.setLocation(float,float)): New method.
2434 * java/awt/geom/Dimension2D.java: Added protected constructor.
2435 * java/awt/geom/AffineTransform.java: Made all constants public.
2436 (concatenate): Fixed typo in name.
2437 * java/awt/event/WindowAdapter.java: Class now abstract.
2438 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2439 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2442 * java/awt/AWTError.java: Extend Error, not
2443 IllegalStateException.
2445 * Makefile.in: Rebuilt.
2446 * Makefile.am (awt_java_source_files): Added new file.
2447 * java/awt/geom/RoundRectangle2D.java: New file.
2449 * Makefile.in: Rebuilt.
2450 * Makefile.am (awt_java_source_files): Added new file.
2451 * java/awt/FlowLayout.java: New file.
2453 * Makefile.in: Rebuilt.
2454 * Makefile.am (awt_java_source_files): Added new file.
2455 * java/awt/GridLayout.java: New file.
2457 2000-12-02 Tom Tromey <tromey@redhat.com>
2459 * Makefile.in: Rebuilt.
2460 * Makefile.am (awt_java_source_files): Added new files.
2461 * java/awt/CardLayout.java: New file.
2462 * java/awt/AWTPermission.java: New file.
2464 2000-12-01 Tom Tromey <tromey@redhat.com>
2466 * java/util/Vector.java (insertElementAt): Unconditionally
2467 increment elementCount.
2468 (removeRange): Clear unused slots in vector.
2470 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2472 * java/lang/natMath.cc: Declare fabsf() function.
2473 * java/lang/mprec.h: Don't include math.h.
2474 * java/lang/dtoa.c: Include string.h.
2475 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2478 From Adam Welc <welc@cs.purdue.edu>:
2479 * java/util/LinkedList.java (removeFirst): Update `first' field.
2480 Handle the last == first case.
2481 (removeLast): Update `last' field. Handle the last == first case.
2483 2000-12-01 Warren Levy <warrenl@cygnus.com>
2485 * Makefile.am: Added entries for new java.sql modules.
2486 * Makefile.in: Rebuilt.
2488 2000-12-01 Warren Levy <warrenl@cygnus.com>
2490 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2491 that aren't quite 1.2 compatible yet.
2493 2000-11-30 Warren Levy <warrenl@cygnus.com>
2495 * java/sql/Array.java: New file from classpath.
2496 * java/sql/BatchUpdateException.java: Ditto.
2497 * java/sql/Blob.java: Ditto.
2498 * java/sql/Clob.java: Ditto.
2499 * java/sql/Ref.java: Ditto.
2500 * java/sql/SQLData.java: Ditto.
2501 * java/sql/SQLInput.java: Ditto.
2502 * java/sql/SQLOutput.java: Ditto.
2503 * java/sql/Struct.java: Ditto.
2504 * java/sql/CallableStatement.java: Merged file from claspath.
2505 * java/sql/Connection.java: Ditto.
2506 * java/sql/DataTruncation.java: Ditto.
2507 * java/sql/DatabaseMetaData.java: Ditto.
2508 * java/sql/DriverManager.java: Ditto.
2509 * java/sql/PreparedStatement.java: Ditto.
2510 * java/sql/ResultSet.java: Ditto.
2511 * java/sql/ResultSetMetaData.java: Ditto.
2512 * java/sql/SQLException.java: Ditto.
2513 * java/sql/SQLWarning.java: Ditto.
2514 * java/sql/Statement.java: Ditto.
2515 * java/sql/Types.java: Ditto.
2517 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2519 * java/lang/natSystem.cc (init_properties): Set user.language and
2521 * configure.in: Check for setlocale.
2522 * configure: Rebuilt.
2523 * include/config.h.in: Rebuilt.
2525 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2526 the infate() call didn't deliver any output. Throw a ZipException if
2527 the needsDictionary() call returns true.
2528 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2529 * java/io/InputStreamReader: Use the default buffer size for the
2530 contained BufferedInputStream.
2532 2000-11-28 Warren Levy <warrenl@cygnus.com>
2534 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2535 more time zone entries.
2536 * java/text/SimpleDateFormat.java (format): Added case for
2539 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2541 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2542 directly rather than read() in all cases. Make primitive read
2543 implementations more efficient, as defined in JDK online docs.
2544 (skipBytes): Behave like the JDK's implementation.
2545 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2546 closed stream with checkStatus() whenever an IOException can be
2548 (checkStatus): New private method.
2550 2000-11-27 Warren Levy <warrenl@cygnus.com>
2552 * Makefile.am: Added natTimeZone.cc.
2553 * Makefile.in: Rebuilt.
2554 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2555 * java/text/DateFormatSymbols.java (ampms): Made package private.
2556 (eras): Made package private.
2557 (months): Made package private.
2558 (shortMonths): Made package private.
2559 (shortWeekdays): Made package private.
2560 (weekdays): Made package private.
2561 (formatPrefixes): New private field.
2562 (localPatternCharsDefault): Made private.
2563 (dateFormats): New package private field.
2564 (timeFormats): New package private field.
2565 (formatsForKey): New private method.
2566 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2567 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2568 * java/text/SimpleDateFormat.java: Merged with Classpath.
2569 * java/util/TimeZone.java: Merged with Classpath.
2570 * java/util/natTimeZone.cc: New file.
2572 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2574 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2575 (addElement): Don't increment elementCount twice. Doh.
2576 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2577 array needs to be expanded.
2579 * java/util/Collections.java (UnmodifiableCollection): Implement
2581 (UnmodifiableList): Throw UnsupportedOperationException from
2582 modification methods. Set `l' from the one-parameter constructor.
2583 (UnmodifiableMap): Implement toString().
2584 (SynchronizedCollection): Ditto.
2585 (SynchronizedList): Set `l' from the one-parameter constructor.
2586 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2587 (SynchronizedMap): Implement toString().
2589 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2591 * javax/naming/NameParser.java,
2592 javax/naming/directory/AttributeInUseException.java,
2593 javax/naming/directory/AttributeModificationException.java,
2594 javax/naming/directory/InvalidAttributeIdentifierException.java,
2595 javax/naming/directory/InvalidAttributesException.java,
2596 javax/naming/directory/InvalidAttributeValueException.java,
2597 javax/naming/directory/InvalidSearchControlsException.java,
2598 javax/naming/directory/InvalidSearchFilterException.java,
2599 javax/naming/directory/NoSuchAttributeException.java,
2600 javax/naming/directory/SchemaViolationException.java: New files.
2602 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2604 * javax/naming/InitialContext.java (rebind): Implement.
2605 (unbind): Implement.
2606 (rename): Implement.
2608 (listBindings): Implement.
2609 (destroySubcontext): Implement.
2610 (createSubcontext): Implement.
2611 (lookupLink): Implement.
2612 (getNameParser): Implement.
2613 (composeName): Implement.
2614 (addToEnvironment): Implement.
2616 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2618 * javax/naming/AuthenticationException.java,
2619 javax/naming/AuthenticationNotSupportedException.java,
2620 javax/naming/CannotProceedException.java,
2621 javax/naming/CommunicationException.java,
2622 javax/naming/ConfigurationException.java,
2623 javax/naming/ContextNotEmptyException.java,
2624 javax/naming/InsufficientResourcesException.java,
2625 javax/naming/InterruptedNamingException.java,
2626 javax/naming/InvalidNameException.java,
2627 javax/naming/LimitExceededException.java,
2628 javax/naming/LinkException.java,
2629 javax/naming/LinkLoopException.java,
2630 javax/naming/MalformedLinkException.java,
2631 javax/naming/NameAlreadyBoundException.java,
2632 javax/naming/NameNotFoundException.java,
2633 javax/naming/NamingSecurityException.java,
2634 javax/naming/NoPermissionException.java,
2635 javax/naming/NotContextException.java,
2636 javax/naming/PartialResultException.java,
2637 javax/naming/ReferralException.java,
2638 javax/naming/ServiceUnavailableException.java,
2639 javax/naming/SizeLimitExceededException.java,
2640 javax/naming/TimeLimitExceededException.java: New files.
2642 * javax/naming/Name.java (clone): New method.
2643 (compareTo): New method.
2644 (isEmpty): New method.
2645 (getAll): New method.
2646 (getPrefix): New method.
2647 (getSuffix): New method.
2648 (startsWith): New method.
2649 (endsWith): New method.
2650 (addAll): New method.
2651 (addAll): New method.
2654 (remove): New method.
2656 * javax/naming/Context.java (lookup): New method.
2657 (rebind): New method.
2658 (unbind): New method.
2659 (rename): New method.
2661 (listBindings): New method.
2662 (destroySubcontext): New method.
2663 (createSubcontext): New method.
2664 (lookupLink): New method.
2665 (getNameParser): New method.
2666 (composeName): New method.
2667 (addToEnvironment): New method.
2668 (removeFromEnvironment): New method.
2669 (getEnvironment): New method.
2670 (close): New method.
2671 (getNameInNamespace): New method.
2673 * javax/naming/InitialContext.java (lookup): New method.
2674 (rebind): New method.
2675 (unbind): New method.
2676 (rename): New method.
2678 (listBindings): New method.
2679 (destroySubcontext): New method.
2680 (createSubcontext): New method.
2681 (lookupLink): New method.
2682 (getNameParser): New method.
2683 (composeName): New method.
2684 (addToEnvironment): New method.
2685 (removeFromEnvironment): New method.
2686 (getEnvironment): New method.
2687 (close): New method.
2688 (getNameInNamespace): New method.
2690 2000-11-26 Tom Tromey <tromey@cygnus.com>
2692 * Makefile.in: Rebuilt.
2693 * Makefile.am (core_java_source_files): Added
2694 RuntimePermission.java.
2695 * java/lang/RuntimePermission.java: Imported from Classpath.
2696 * java/lang/Thread.java (getContextClassLoader): Now
2697 synchronized. Added security code.
2698 (setContextClassLoader): Likewise.
2700 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2701 length field of array.
2702 (_Jv_NewPrimArray): Likewise.
2703 * gcj/array.h (__JArray): `length' field now const. Added
2706 2000-11-26 Anthony Green <green@redhat.com>
2708 * javax/naming/spi/NamingManager.java,
2709 javax/naming/spi/ObjectFactory.java,
2710 javax/naming/spi/InitialContextFactory.java,
2711 javax/naming/spi/InitialContextFactoryBuilder.java,
2712 javax/naming/RefAddr.java, javax/naming/Reference.java,
2713 javax/naming/NamingException.java, javax/naming/Context.java,
2714 javax/naming/Referenceable.java,
2715 javax/naming/directory/InitialDirContext.java,
2716 javax/naming/directory/DirContext.java,
2717 javax/naming/directory/Attributes.java,
2718 javax/naming/directory/Attribute.java,
2719 javax/naming/StringRefAddr.java,
2720 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2721 javax/naming/InitialContext.java,
2722 javax/naming/NoInitialContextException.java: New files.
2724 2000-11-25 Anthony Green <green@redhat.com>
2726 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2727 (_Jv_NewPrimArray): Likewise.
2728 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2729 (class JArray): Removed constructor.
2731 * java/lang/Thread.java (context_class_loader): New private data.
2732 (getContextClassLoader): New method.
2733 (setContextClassLoader): New method.
2734 (Thread): Initialize context_class_loader.
2736 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2737 (getResource): Rename to findResource.
2738 (findResource): New method. Used to be getResource.
2739 (getResourceAsStream): Deleted.
2740 (jarFileize): Extracted logic from URLClassLoader constructor into
2741 this new private method.
2742 (addURL): New protected method.
2743 (URLClassLoader): Call jarFileize. Use addElement instead of
2745 (findResources): New method.
2747 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2748 (getResource): Implement correct logic.
2749 (findResource): New method.
2750 (getResources): New method.
2751 (findClass): Create a ClassNotFoundException with the name of the
2752 class rather than nothing at all.
2753 (defineClass) Only throw ClassFormatError.
2755 * java/lang/Class.java (forName): New method.
2756 * java/lang/Class.h (forName): New method.
2757 * java/lang/natClass.cc (forName): New method.
2759 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2761 * java/lang/System.java (setProperties): Only call init_properties()
2762 if properties is null.
2763 (getProperties): Ditto.
2764 (getProperty): Ditto.
2765 (setProperty): Call init_properties if properties are null.
2766 (prop_init): Remove field.
2767 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2768 method. Check for null properties after synchronizing instead of
2769 prop_init flag. Set the properties field last for thread safety.
2771 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2772 test for gcj.dumpobjects property and enable object stream dumping
2774 (dumpElement): No longer native.
2775 (dumpElementln): Ditto.
2776 (setDump): Do not define.
2777 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2778 (dumpElementln): Removed.
2781 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2783 * configure: Rebuilt.
2784 * Makefile.in: Rebuilt.
2785 * Makefile.am (built_java_source_files): Add Configuration.java.
2786 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2787 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2788 Create `gnu' directory in the build tree.
2789 * gnu/classpath/Configuration.java.in: New file.
2791 2000-11-24 Tom Tromey <tromey@cygnus.com>
2793 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2795 (_Jv_NewPrimArray): Likewise.
2797 * gcj/array.h (__JArray): `length' field now const. Added
2799 (class JArray): Added constructor.
2801 2000-11-23 Mark Wielaard <mark@klomp.org>
2803 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2806 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2808 * java/util/Vector.java: Improve exception messages.
2809 (Vector): Check initialCapacity for IllegalArgumentException.
2810 (tromToSize): Don't check for elementCount == elementData.length
2812 (toArray): Don't try to set null marker if target array is the same
2813 length as the vector.
2815 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2817 * Makefile.in: Rebuilt.
2818 * Makefile.am (core_java_source_files): Added Collections.java.
2819 * java/util/List.java: Merged from classpath.
2820 * java/util/Vector.java: Ditto.
2821 * java/util/Collections.java: From classpath.
2822 * java/util/ArrayList.java (addAll(Collection)): Call
2823 addAll(int,Collection) instead of duplicating code.
2824 (indexOf): Clean up int initialization.
2825 (clear): Set cleared array entries to null, to allow garbage
2827 * java/util/List.java: Minor formatting fixes.
2828 * java/util/SimpleTimeZone.java: ditto.
2830 2000-11-18 Tom Tromey <tromey@cygnus.com>
2832 * Makefile.in: Rebuilt.
2833 * Makefile.am (core_java_source_files): Added new files.
2834 * java/lang/reflect/ReflectPermission.java: New class.
2835 * java/io/FileFilter.java: From Classpath
2836 * java/io/FilePermission.java: From Classpath.
2838 2000-11-17 Tom Tromey <tromey@cygnus.com>
2840 * java/lang/reflect/AccessibleObject.java (isAccessible,
2841 setAccessible): Now public.
2843 * java/lang/natString.cc: Include Locale.h.
2844 (toUpperCase): Added `locale' argument. Handle locale
2846 (toLowerCase): Added `locale' argument. Handle locale
2848 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2849 CAPITAL_I): New defines.
2850 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2853 (toUpperCase, toLowerCase): New methods. Variants which accept
2856 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2859 * java/util/PropertyPermission.java: Re-merged from Classpath.
2861 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2863 * java/text/StringCharacterIterator.java: Reindented.
2864 (setText): New method.
2866 2000-11-17 Mark Wielaard <mark@klomp.org>
2868 Merge with Classpath (changes by Bryce McKinlay)
2869 * java/util/jar/*.java: Reformat all to unofficial standard coding
2870 style. No changes of substance.
2872 2000-11-17 Mark Wielaard <mark@klomp.org>
2874 * java/util/zip/*.java: Javadoc updates.
2876 2000-11-17 Tom Tromey <tromey@cygnus.com>
2878 * java/text/CollationKey.java: Implement Comparable.
2879 (compareTo(Object)): New method.
2880 * java/text/Collator.java (compare(Object,Object)): New method.
2881 Implement Comparator.
2883 * java/util/zip/InflaterInputStream.java (available): New method.
2884 (close): New method.
2885 (read, available, skip, fill): Throw exception if stream closed.
2886 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2887 getNextEntry): Throw exception if closed.
2889 2000-11-16 Tom Tromey <tromey@cygnus.com>
2891 * java/io/PushbackReader.java: Merged with Classpath.
2892 * java/util/Arrays.java: Updated from Classpath.
2894 * scripts/blocks.pl: New file.
2895 * java/lang/Character.java (Subset): New class.
2896 (UnicodeBlock): New class.
2898 * java/lang/Math.java (toDegrees, toRadians): New methods.
2900 * java/lang/Float.java: Implement Comparable.
2901 (compareTo): New methods.
2902 * java/lang/Double.java: Implement Comparable.
2903 (compareTo): New methods.
2905 2000-11-16 Warren Levy <warrenl@cygnus.com>
2907 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2909 (listeners): Made transient.
2910 (source): Renamed from 'bean'.
2911 (children): New field for serialization.
2912 (propertyChangeSupportSerializedDataVersion): Ditto.
2913 (serialVersionUID): Ditto.
2914 (writeObject): New serialization method.
2915 (readObject): New serialization method.
2916 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2918 (listeners): Made transient.
2919 (source): Renamed from 'bean'.
2920 (children): New field for serialization.
2921 (vetoableChangeSupportSerializedDataVersion): Ditto.
2922 (serialVersionUID): Ditto.
2923 (writeObject): New serialization method.
2924 (readObject): New serialization method.
2925 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2926 to allow constructor to have a return type (i.e. the class that the
2927 constructor constructs).
2929 2000-11-14 Tom Tromey <tromey@cygnus.com>
2931 * Makefile.in: Rebuilt.
2932 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2935 2000-11-02 Warren Levy <warrenl@cygnus.com>
2937 * java/io/ObjectInputStream.java (readObject): Added code to
2938 conditionally dump out the serialized data.
2939 Handle ENDBLOCKDATA case a bit more gracefully since the current
2940 behavior doesn't seem to work as expected.
2941 (readStreamHeader): Added code for serialized data dumper.
2942 (readNextBlock): Ditto.
2943 (readFields): Ditto.
2944 (dump): New private static field for turning on/off dumper.
2945 (setDump): New native method.
2946 (dumpElement): New native method.
2947 (dumpElementln): New native method.
2948 * java/io/natObjectInputStream.cc (setDump): New method.
2949 (dumpElement): New method.
2950 (dumpElementln): New method.
2952 2000-11-02 Warren Levy <warrenl@cygnus.com>
2954 * java/net/InetAddress.java (addr): Renamed from 'address'.
2955 (address): New field to match Serialized Form doc.
2956 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2957 (family): New serialization field.
2958 (serialVersionUID): New field.
2959 (readObject): New method.
2960 (writeObject): New method.
2961 (getFamily): New native method.
2962 (InetAddress): Set family.
2963 * java/net/natInetAddress.cc (getFamily): New method.
2964 (addr): Renamed from 'address'.
2965 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2966 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2967 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2969 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2971 * java/util/AbstractList.java (SubList): Make it a top-level private
2973 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2975 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2976 * Makefile.in: Rebuilt.
2978 2000-11-02 Tom Tromey <tromey@cygnus.com>
2980 * Makefile.in: Rebuilt.
2981 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2984 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2986 * java/util/AbstractList.java (remove): Comment out modCount increment
2987 to work around compiler bug.
2990 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2992 * java/util/AbstractList.java: Throw messages with
2993 IndexOutOfBoundsExceptions.
2994 (listIterator()): Call listIterator(0).
2995 (size): New field. Initialize to size().
2996 (hasNext): Test position against size, not size().
2997 (remove): Increment knownMod by one instead of resetting it from
3000 (SubList.upMod): Removed.
3001 (SubList.set): Don't call upMod() or update knownMod.
3002 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3003 (SubList.remove): Ditto.
3004 (SubList.addAll): Don't call backingList.size(). Increment size from
3006 (SubList.iterator): New method. Call listIterator(0).
3007 (SubList.listIterator): New method. Restore code to return an anonymous
3008 listIterator implementation (with some changes).
3009 * java/util/AbstractSequentialList.java: Throw messages with
3010 IndexOutOfBoundsExceptions.
3011 (addAll): Add a specnote.
3012 * java/util/ArrayList.java (removeRange): Get the math right.
3013 (addAll): Increment modCount _before_ creating iterator.
3014 * java/util/LinkedList.java: Rewritten, mostly.
3016 2000-11-01 Tom Tromey <tromey@cygnus.com>
3018 * scripts/encodings.pl: Added `ASCII' alias.
3019 * Makefile.in: Rebuilt.
3020 * Makefile.am (convert_source_files): Added new files.
3021 * gnu/gcj/convert/Input_ASCII.java: New file.
3022 * gnu/gcj/convert/Output_ASCII.java: New file.
3023 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3024 out-of-range characters.
3025 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3026 (read): Swap bytes if required. Treat `count' as character count,
3028 (write): Likewise. Also, handle case where iconv fails on a given
3030 (init): Put encoding into exception.
3031 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3032 (static): Call iconv_init. Rebuilt alias list.
3033 (iconv_init): New private method.
3035 2000-11-01 Tom Tromey <tromey@cygnus.com>
3037 * Makefile.in: Rebuilt.
3038 * Makefile.am (install-exec-hook): Only make a single symlink, and
3039 remove the destination before making the link.
3040 * configure: Rebuilt.
3041 * configure.in: Call AC_PROG_LN_S.
3043 2000-10-31 Warren Levy <warrenl@cygnus.com>
3045 * jni.cc: Added include of java/lang/ThreadGroup.h.
3046 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3047 per change of 2000-10-05.
3049 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3051 * java/util/BitSet.java: Updated @specnote.
3053 * java/io/Reader.java: Merge docs from classpath.
3054 (skip): Synchronize on `lock'.
3055 * java/io/FileReader.java: Import correct implementation from
3057 * java/io/StringReader.java: Merge docs from classpath.
3058 (ready): Throw IOException if stream is closed.
3060 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3062 * java/util/AbstractCollection.java (addAll): Use size() instead of
3063 hasNext() in iterator loop.
3065 (contains): Ditto. Simplify loop.
3066 (containsAll): Ditto.
3071 (toString): Ditto. Use string concatenation operators, not
3073 * java/util/AbstractList.java (addAll): Use size() instead of
3074 hasNext() in iterator loop.
3077 (indexOf): Ditto. Don't take null check outside of the loop.
3078 (iterator): Return an AbstractListItr instead of anonymous class.
3079 (lastIndexOf): Use a for loop bounded by size() instead of
3080 hasPrevious() in iterator loop.
3081 (listIterator): Return an AbstractListItr.
3082 (removeRange): Remove bounds checking code and docs.
3083 (AbstractListItr): New inner class. Code moved here from
3085 (SubList.iterator): Removed. Use default implementation from
3086 AbstractList instead.
3087 (SubList.listIterator): As above.
3088 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3089 instead of hasNext() in iterator loop.
3090 (containsValue): Ditto.
3096 (toString): Ditto. Use string concatenation operators, not
3098 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3099 bounded by size() instead of hasNext() in iterator loop.
3100 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3101 part of normal execution flow. Do an explicit null check instead.
3102 * java/util/ArrayList.java (_iSize): Rename to `size'.
3103 (_arData): Rename to `data'.
3104 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3107 (removeRange): Make protected. Don't check bounds.
3108 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3110 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3112 (addAll (int, Collection)): Check lower bounds. Simplify exception
3114 (clone): Clone the data array too.
3115 (indexOf): Inline doesEqual().
3116 (lastIndexOf): Ditto.
3117 (clear): Don't set array data to null.
3118 (set): Check lower bounds. Simplify exception string.
3119 (toArray): Correct comment.
3120 (trimToSize): Don't update modCount, this is not a structural change.
3123 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3125 (toString): Declare `bit' as long, not int.
3126 (data): Made package-private, not private.
3128 2000-10-27 Warren Levy <warrenl@cygnus.com>
3130 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3131 array elements to true.
3133 2000-10-27 Warren Levy <warrenl@cygnus.com>
3135 * Makefile.am: Added locale files from Classpath.
3136 * Makefile.in: Rebuilt.
3137 * gnu/java/locale/Calendar.java: New file.
3138 * gnu/java/locale/Calendar_de.java: New file.
3139 * gnu/java/locale/Calendar_en.java: New file.
3140 * gnu/java/locale/Calendar_nl.java: New file.
3141 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3142 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3143 serialization compatibility.
3144 (scale): Made private.
3145 (serialVersionUID): New field.
3146 * java/math/BigInteger.java (ival): Made transient.
3147 (words): Made transient.
3148 (bitCount): New serialization field.
3150 (firstNonzeroByteNum): Ditto.
3151 (lowestSetBit): Ditto.
3154 (serialVersionUID): New field.
3155 (readObject): New method.
3156 (writeObject): New method.
3157 * java/util/BitSet.java (serialVersionUID): New field.
3158 * java/util/Calendar.java: Replaced with Classpath file.
3159 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3160 of getDefault() for TimeZone or Locale instead of passing nulls.
3161 * java/util/Locale.java (serialVersionUID): New field.
3162 (writeObject): New method.
3163 (readObject): New method.
3164 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3166 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3168 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3169 (core_java_source_files): Put java.lang, java.io, and java.util here.
3170 (ordinary_java_source_files): Order so that core_java_source_files are
3172 (java_source_files): Reorder so that special_java_source_files are
3174 * configure.in: Don't pass -I flag to gcj.
3175 * Makefile.in: Rebuilt.
3176 * configure: Rebuilt.
3178 2000-10-25 Tom Tromey <tromey@cygnus.com>
3180 * Makefile.in: Rebuilt.
3181 * Makefile.am (install-exec-hook): New target.
3183 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3185 * java/util/EventObject.java: Merged from classpath.
3187 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3190 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3192 * java/util/AbstractSet.java (equals): Re-installed original code.
3194 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3196 * Makefile.am: Added rules for libgcjx library.
3197 * Makefile.in: Rebuilt.
3198 * configure.in: Added check for X.
3199 * configure: Rebuilt.
3200 * gnu/awt/LightweightRedirector.java: New file.
3201 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3202 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3203 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3204 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3205 * gnu/awt/j2d/MappedRaster.java: New file.
3206 * gnu/awt/xlib/XCanvasPeer.java: New file.
3207 * gnu/awt/xlib/XEventLoop.java: New file.
3208 * gnu/awt/xlib/XEventQueue.java: New file.
3209 * gnu/awt/xlib/XFontMetrics.java: New file.
3210 * gnu/awt/xlib/XFramePeer.java: New file.
3211 * gnu/awt/xlib/XGraphics.java: New file.
3212 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3213 * gnu/awt/xlib/XPanelPeer.java: New file.
3214 * gnu/awt/xlib/XToolkit.java: New file.
3215 * gnu/gcj/xlib/Clip.java: New file.
3216 * gnu/gcj/xlib/Colormap.java: New file.
3217 * gnu/gcj/xlib/Display.java: New file.
3218 * gnu/gcj/xlib/Drawable.java: New file.
3219 * gnu/gcj/xlib/Font.java: New file.
3220 * gnu/gcj/xlib/GC.java: New file.
3221 * gnu/gcj/xlib/Pixmap.java: New file.
3222 * gnu/gcj/xlib/Screen.java: New file.
3223 * gnu/gcj/xlib/Visual.java: New file.
3224 * gnu/gcj/xlib/WMSizeHints.java: New file.
3225 * gnu/gcj/xlib/Window.java: New file.
3226 * gnu/gcj/xlib/WindowAttributes.java: New file.
3227 * gnu/gcj/xlib/XAnyEvent.java: New file.
3228 * gnu/gcj/xlib/XButtonEvent.java: New file.
3229 * gnu/gcj/xlib/XColor.java: New file.
3230 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3231 * gnu/gcj/xlib/XConnectException.java: New file.
3232 * gnu/gcj/xlib/XEvent.java: New file.
3233 * gnu/gcj/xlib/XException.java: New file.
3234 * gnu/gcj/xlib/XExposeEvent.java: New file.
3235 * gnu/gcj/xlib/XID.java: New file.
3236 * gnu/gcj/xlib/XImage.java: New file.
3237 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3238 * gnu/gcj/xlib/natClip.cc: New file.
3239 * gnu/gcj/xlib/natColormap.cc: New file.
3240 * gnu/gcj/xlib/natDisplay.cc: New file.
3241 * gnu/gcj/xlib/natDrawable.cc: New file.
3242 * gnu/gcj/xlib/natFont.cc: New file.
3243 * gnu/gcj/xlib/natGC.cc: New file.
3244 * gnu/gcj/xlib/natPixmap.cc: New file.
3245 * gnu/gcj/xlib/natScreen.cc: New file.
3246 * gnu/gcj/xlib/natVisual.cc: New file.
3247 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3248 * gnu/gcj/xlib/natWindow.cc: New file.
3249 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3250 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3251 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3252 * gnu/gcj/xlib/natXColor.cc: New file.
3253 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3254 * gnu/gcj/xlib/natXException.cc: New file.
3255 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3256 * gnu/gcj/xlib/natXImage.cc: New file.
3257 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3258 * java/awt/EventDispatchThread.java: Start thead on creation.
3260 2000-10-20 Tom Tromey <tromey@cygnus.com>
3262 From Arno J. Klaassen:
3263 * interpret.cc: Include <stdlib.h> for alloca.
3264 * defineclass.cc: Include <stdlib.h> for alloca.
3266 * Makefile.in: Rebuilt.
3267 * Makefile.am: Include deps.mk.
3268 (GCJCOMPILE): Added -MD, -MT, and -MF.
3269 ($(javao_files)): Don't depend on libgcj.zip.
3270 (all-recursive): New target.
3271 (%.lo:%.cc): Do dependency tracking.
3272 ($(nat_headers)): Don't depend on libgcj.zip.
3273 * configure: Rebuilt.
3274 * configure.in: Make .d files and deps.mk.
3276 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3278 * exception.cc: Don't #include "exception".
3279 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3281 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3282 * Makefile.in: Updated.
3284 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3286 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3287 * java/awt/peer/ComponentPeer.java (disable): Removed.
3290 (minimumSize): Removed.
3291 (preferredSize): Removed.
3294 * java/awt/peer/ListPeer.java (addItem): Removed.
3296 (minimumSize): Removed.
3297 (preferredSize): Removed.
3298 (setMultipleSelections): Removed.
3299 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3300 (remove): Renamed from removeMenu.
3301 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3303 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3304 (remove): Renamed from removeItem.
3305 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3306 (getMinimumSize): Removed.
3307 (getPreferredSize): Removed.
3308 (minimumSize): Removed.
3309 (preferredSize): Removed.
3310 (replaceText): Removed.
3311 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3312 (preferredSize): Removed.
3313 (getMinimumSize): Removed.
3314 (getPreferredSize): Removed.
3315 (setEchoCharacter): Removed.
3317 2000-10-10 Warren Levy <warrenl@cygnus.com>
3319 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3320 * java/sql/Date.java (serialVersionUID): New field.
3321 * java/sql/Time.java (serialVersionUID): New field.
3322 * java/sql/Timestamp.java (serialVersionUID): New field.
3323 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3324 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3325 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3326 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3327 (readObject): New serialization method.
3328 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3329 (serialVersionOnStream): New field.
3330 (readObject): New serialization method.
3331 (getMonetaryDecimalSeparator): New method.
3332 (setMonetaryDecimalSeparator): New method.
3333 * java/text/NumberFormat.java (maxFractionDigits): New field.
3334 (maxIntegerDigits): New field.
3335 (minFractionDigits): New field.
3336 (minIntegerDigits): New field.
3337 (serialVersionOnStream): New field.
3338 (serialVersionUID): New field.
3339 (readObject): New serialization method.
3340 (writeObject): New serialization method.
3341 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3342 (serialVersionOnStream): New field.
3343 (serialVersionUID): New field.
3344 (readObject): New serialization method.
3346 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3348 * configure.in (GCJ): Avoid bogus error message when looking for
3349 (and not finding) gcj in the build tree.
3350 * configure: Rebuilt.
3352 2000-10-09 Tom Tromey <tromey@cygnus.com>
3354 * configure: Rebuilt.
3355 * configure.in: Include sys/types.h when checking for socklen_t.
3356 From Arno J. Klaassen.
3358 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3360 * include/jvm.h: Enable __builtin_expect().
3362 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3363 the main program. Fix for PR libgcj/341.
3365 2000-10-07 Tom Tromey <tromey@cygnus.com>
3367 * java/util/Properties.java: Merged with Classpath version.
3369 2000-10-05 Tom Tromey <tromey@cygnus.com>
3371 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3372 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3373 * java/lang/Class.h (Object): Added `class$' field.
3374 * java/lang/Object.h (Object): Added `class$' field.
3375 * defineclass.cc (ClassClass): Use `class$' form.
3376 (ClassObject): Likewise.
3377 * resolve.cc (ClassObject): Use `class$' form.
3378 (ObjectClass): Likewise.
3379 * interpret.cc (ClassError): Removed.
3380 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3382 (IntegerClass): Likewise.
3383 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3385 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3386 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3387 SerializableClass): Likewise.
3388 Include Serializable.h, Cloneable.h.
3389 * java/lang/natSystem.cc (SystemClass): Removed.
3390 (init_properties): Use `class$' form.
3391 * java/lang/natObject.cc (CloneableClass): Removed.
3392 (clone): Use `class$' form.
3393 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3394 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3395 ConstructorClass): Likewise.
3396 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3397 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3398 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3399 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3401 (ClassClass): Likewise.
3402 * include/jvm.h (StringClass): Use `class$' form.
3403 * prims.cc (ObjectClass): Removed.
3404 (_Jv_RunMain): Use `class$' form.
3405 (_Jv_AllocObject): Likewise.
3406 * jni.cc (ClassClass): Use `class$' form.
3407 (ThrowableClass): Likewise.
3408 (ObjectClass): Likewise.
3409 (MethodClass): Likewise.
3410 (ThreadGroupClass): Likewise.
3411 (NativeThreadClass): Likewise.
3412 * boehm.cc (ObjectClass): Removed.
3413 (ClassClass): Removed.
3414 (_Jv_MarkObj): Use `class$' form.
3415 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3418 2000-10-05 Warren Levy <warrenl@cygnus.com>
3420 * Makefile.am: Removed java/io/Replaceable.java and
3421 java/io/Resolvable.java.
3422 * Makefile.in: Rebuilt.
3423 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3425 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3427 (processResolution): Handle readResolve method via reflection with
3428 removal of Resolvable interface.
3429 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3430 method via reflection with removal of Replaceable interface.
3431 * java/io/Replaceable.java: Removed.
3432 * java/io/Resolvable.java: Removed.
3433 * java/security/Key.java (serialVersionUID): New field.
3434 * java/security/Provider.java (serialVersionUID): New field.
3435 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3437 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3439 * java/sql/DataTruncation.java (serialVersionUID): New field.
3440 * java/sql/SQLException.java (serialVersionUID): New field.
3441 * java/sql/SQLWarning.java (serialVersionUID): New field.
3442 * java/util/Date.java (serialVersionUID): New field.
3443 (millis): Made transient.
3444 (readObject): New method.
3445 (writeObject): New method.
3447 2000-10-05 Tom Tromey <tromey@cygnus.com>
3449 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3451 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3453 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3454 (JvRunMain): Set _Jv_argv and _Jv_argc.
3455 * java/awt/Component.java: Minor fixes.
3456 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3457 * java/awt/Toolkit.java (systemEventQueue): Removed.
3458 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3459 * java/awt/Window.java (getToolkit): Don't call super.
3460 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3461 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3462 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3463 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3464 * gnu/awt/gtk/GtkFramePeer.java: New file.
3465 * gnu/awt/gtk/GtkMainThread.java: New file.
3466 * gnu/awt/gtk/GtkToolkit.java: New file.
3467 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3468 * gnu/awt/gtk/gtkcommon.cc: New file.
3469 * gnu/awt/gtk/gtkcommon.h: New file.
3470 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3471 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3472 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3473 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3474 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3475 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3477 2000-09-30 Tom Tromey <tromey@cygnus.com>
3479 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3480 interrupted before modifying the cv's wait set.
3483 2000-09-30 Hans Boehm <boehm@acm.org>
3484 Bryce McKinlay <bryce@albatross.co.nz>
3486 Implement bitmap descriptor based marking for Boehm GC.
3488 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3489 * configure: Rebuilt.
3490 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3491 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3492 method get_finalizer().
3493 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3494 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3495 (_Jv_AllocObj): Add new jclass parameter.
3496 (_Jv_AllocArray): Ditto.
3497 (_Jv_BuildGCDescr): New prototype.
3498 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3499 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3500 get_finalizer() instead of direct finalizer vtable offset.
3501 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3502 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3503 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3504 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3505 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3506 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3507 (_Jv_DetermineVTableIndex): Ditto.
3508 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3509 calculations to account for new gc_descr field.
3510 * boehm.cc: #include gc_gcj.h.
3511 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3512 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3513 New commentary from HB. Mark the classes vtable.
3514 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3515 (GC_DEFAULT_DESCR): New #define.
3516 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3517 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3518 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3519 scan conservativly if size is less than min_heap_addr. Set vtable
3520 pointer of new object before returning.
3521 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3522 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3523 allocation for obj_kind_x.
3524 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3525 (_Jv_AllocObj): Set vtable on returned object.
3526 (_Jv_AllocArray): Ditto.
3527 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3528 (_Jv_NewPrimArray): Ditto.
3529 (_Jv_AllocObj): Declare as a friend.
3530 (_Jv_AllocArray): Ditto.
3531 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3532 from &ObjectClass into new array class. Remove offset-by-one
3533 adjustments from `method' size calculations to account for gc_descr
3536 2000-09-26 Tom Tromey <tromey@cygnus.com>
3538 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3539 `remove', not `add'.
3541 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3543 * java/lang/natSystem.cc (file_encoding): Added return statement.
3545 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3547 * Makefile.am: Re-work shell commands that exceeded command-line
3549 * Makefile.in: Rebuilt.
3551 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3553 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3554 * java/lang/natDouble.cc: Likewise.
3555 * java/lang/reflect/natMethod.cc: Likewise.
3556 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3558 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3560 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3562 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3563 * acinclude.m4: Arrange for automake to not bring in a new
3564 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3565 * Makefile.am: Leave it up to automake to subst GCJ.
3566 * aclocal.m4, configure, Makefile.in: Rebuilt.
3568 2000-09-13 Tom Tromey <tromey@cygnus.com>
3570 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3571 (get): Ensure Boolean class is initialized.
3572 * java/lang/reflect/natField.cc (BooleanClass): New define.
3573 (get): Ensure Boolean class is initialized.
3575 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3577 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3578 Initialize with anonymous class.
3579 (compareToIgnoreCase): New method.
3581 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3582 (uncaughtException): Set had_uncaught_exception.
3583 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3584 exit with error status if set.
3585 (_Jv_RunMain): Ditto.
3587 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3589 * configure: Rebuilt with new ../libtool.m4.
3591 2000-09-11 Tom Tromey <tromey@cygnus.com>
3593 * java/lang/reflect/Field.java (toString): Don't rely on
3596 2000-09-08 Tom Tromey <tromey@cygnus.com>
3598 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3599 default decoder use iconv.
3600 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3601 Let default encoder use iconv.
3602 * configure: Rebuilt.
3603 * configure.in: Check for nl_langinfo and <langinfo.h>.
3604 * java/lang/natSystem.cc (file_encoding): New function.
3605 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3607 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3609 * acinclude.m4: Simplify the tests for CC and CXX.
3610 * aclocal.m4, configure: Rebuilt.
3612 * acinclude.m4: Include libtool macros from the source tree.
3613 * aclocal.m4, configure: Rebuilt.
3615 2000-09-08 Warren Levy <warrenl@cygnus.com>
3617 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3618 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3619 * java/io/File.java (writeObject): Added.
3620 (readObject): Added.
3621 (serialVersionUID): Added.
3622 * java/io/ObjectOutputStream.java (writeObject): Initialized
3623 fieldsAlreadyWritten before recursion rather than after.
3624 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3625 * java/io/OptionalDataException.java (serialVersionUID): Added.
3626 (OptionalDataException): Made package private.
3627 * java/io/SyncFailedException.java (SyncFailedException): Removed
3628 default constructor to match spec.
3629 * java/lang/Boolean.java (serialVersionUID): Added.
3630 * java/lang/Byte.java (serialVersionUID): Added.
3631 * java/lang/Character.java (serialVersionUID): Added.
3632 * java/lang/Double.java (serialVersionUID): Added.
3633 * java/lang/Float.java (serialVersionUID): Added.
3634 * java/lang/Integer.java (serialVersionUID): Added.
3635 * java/lang/Long.java (serialVersionUID): Added.
3636 * java/lang/Number.java (serialVersionUID): Added.
3637 * java/lang/Short.java (serialVersionUID): Added.
3638 * java/lang/String.java (serialVersionUID): Added.
3639 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3641 * java/lang/reflect/InvocationTargetException.java
3642 (serialVersionUID): Added.
3643 * java/net/URL.java (handler): Made transient.
3644 (hashCode): Added field for serialization, per spec. and use
3645 cached value if available.
3646 (serialVersionUID): Added.
3647 (URL): Initialize hashCode.
3648 (set): Adjust hashCode.
3649 (readObject): New Method to initialize the protocol handler when
3651 (writeObject): New method.
3652 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3653 * java/text/Collator.java: Removed 'implements Serializable'.
3654 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3655 * java/util/Properties.java (serialVersionUID): Added.
3656 * java/util/Random.java (serialVersionUID): Added.
3657 (seed): Made private.
3658 (nextNextGaussian): Made private.
3659 (haveNextNextGaussian): Made private.
3660 * java/util/Stack.java (serialVersionUID): Added.
3661 * java/util/TimeZone.java (serialVersionUID): Added.
3662 * java/util/Vector.java (serialVersionUID): Added.
3664 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3666 * Makefile.am (Thread.h): Don't be friends with native threads
3668 * Makefile.in: Rebuilt.
3669 * java/lang/Thread.java (interrupt_flag): Make package-private.
3671 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3673 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3674 to avoid long long division.
3676 2000-09-06 Tom Tromey <tromey@cygnus.com>
3678 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3680 * java/lang/reflect/Method.java (toString): Use `getName' for
3683 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3684 `args' if method takes no parameters.
3686 Fix for PR java.lang/339:
3687 * java/lang/natPosixProcess.cc (fail): New function.
3688 (cleanup): New function.
3689 (startProcess): Use them. Create pipe so child can communicate
3690 exec failure back to parent.
3692 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3694 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3696 (send): Undo last patch. Remove the label only.
3698 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3700 * java/net/natInetAdress.cc: Ditto.
3702 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3704 2000-09-05 Tom Tromey <tromey@cygnus.com>
3706 * doc/cni.sgml: Updated from master copy.
3708 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3710 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3712 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3714 * java/lang/fdlibm.h: #undef __P if previously defined.
3715 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3716 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3720 2000-09-04 Tom Tromey <tromey@cygnus.com>
3722 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3725 2000-09-04 Anthony Green <green@redhat.com>
3727 Fix for PR java.io/203:
3728 * java/io/File.java (createTempFile): Obey directory argument.
3729 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3730 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3731 variable to set java.io.tmpdir on non-WIN32 systems.
3733 2000-09-04 Anthony Green <green@redhat.com>
3735 * java/io/File.java (deleteOnExit): New method.
3736 * gnu/gcj/runtime/FileDeleter.java: New class.
3737 * java/lang/natRuntime.cc (exit): Call
3738 FileDeleter.deleteOnExitNow()
3739 * Makefile.am: Add FileDeleter.java.
3740 * Makefile.in: Rebuilt.
3742 2000-09-02 Tom Tromey <tromey@cygnus.com>
3744 * Makefile.in: Rebuilt.
3745 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3746 environment variable.
3748 2000-09-01 Andrew Haley <aph@redhat.com>
3750 * java/io/StreamTokenizer.java: Don't throw a
3751 NumberFormatException if a field is numeric as far as the
3752 StreamTokenizer is concerned but not as far as Double.valueOf() is
3753 concerned: return a zero instead.
3755 2000-08-30 Tom Tromey <tromey@cygnus.com>
3757 * Makefile.in: Rebuilt.
3758 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3760 2000-08-28 Tom Tromey <tromey@cygnus.com>
3762 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3763 gnu/gcj/awt/ComponentDataBlitOp.java,
3764 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3765 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3766 java/awt/color/ICC_ColorSpace.java,
3767 java/awt/color/ICC_Profile.java,
3768 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3769 java/awt/image/ComponentColorModel.java,
3770 java/awt/image/ComponentSampleModel.java,
3771 java/awt/image/DataBuffer.java,
3772 java/awt/image/DataBufferByte.java,
3773 java/awt/image/DataBufferInt.java,
3774 java/awt/image/DataBufferUShort.java,
3775 java/awt/image/DirectColorModel.java,
3776 java/awt/image/IndexColorModel.java,
3777 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3778 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3779 java/awt/image/SinglePixelPackedSampleModel.java,
3780 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3781 Removed Latin-1 copyright symbols.
3782 * java/util/zip/ZipFile.java: Indentation fixes.
3784 2000-08-27 Mark Wielaard <mark@klomp.org>
3786 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3787 constructor, close can delete the file, finalize calls close.
3788 * java/util/jar/JarFile.java: Constructor that takes mode now
3791 2000-08-27 Anthony Green <green@redhat.com>
3793 * java/util/ArrayList.java, java/util/Timer.java,
3794 java/util/LinkedList.java, java/util/TimerTask.java,
3795 java/util/HashMap.java, java/util/AbstractMap.java,
3796 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3797 java/util/SortedSet.java: Imported from GNU Classpath.
3798 * Makefile.in: Rebuilt.
3799 * Makefile.am: Added new files.
3801 2000-08-26 Anthony Green <green@redhat.com>
3803 * Makefile.in: Rebuilt.
3804 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3807 * prims.cc: Include ClassLoader.h.
3808 (_Jv_RunMain): When executing jar files, classpath must be the jar
3809 file only. Lose our reference to the system ClassLoader in order
3810 to get a new one with the correct classpath.
3811 * java/lang/natSystem.cc (init_properties): When executing a jar
3812 file, only use the jar file for java.class.path.
3814 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3815 for bytecode archives.
3817 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3818 exists, but not Main-Class.
3820 2000-08-23 Mark Wielaard <mark@klomp.org>
3822 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3823 return -1 when fill() has no more data for the Inflater.
3825 2000-08-23 Mark Wielaard <mark@klomp.org>
3827 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3828 write(String) already does.
3830 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3832 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3833 to `alive_flag', call `init'.
3834 (init): New native method.
3835 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3838 2000-08-21 Mark Wielaard <mark@klomp.org>
3840 * Makefile.in: Rebuilt.
3841 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3843 (java/lang/reflect/Field.h): Likewise.
3844 (java/lang/reflect/Method.h): Likewise.
3845 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3848 2000-08-21 Tom Tromey <tromey@cygnus.com>
3850 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3853 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3855 * java/lang/natSystem.cc (init_properties): Change sourceware
3856 reference to sources.redhat.com.
3858 * include/java-props.h: Add _Jv_Jar_Class_Path.
3859 * prims.cc: Ditto. Set it from `gij -jar file' option.
3861 * java/lang/natSystem.cc (init_properties): Set java.class.path
3863 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3865 * java/util/PropertyPermission.java: Import from GNU Classpath.
3866 * Makefile.in: Rebuilt.
3867 * Makefile.am: Add java/util/PropertyPermission.java.
3868 * java/lang/System.java: Add setProperty method.
3870 * gij.cc (main): Add -jar option to execute jar files.
3871 (help): Describe -jar option.
3872 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3873 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3874 * gnu/gcj/runtime/FirstThread.java (main): New method.
3876 * java/util/jar/Attributes.java: Correct comment spelling.
3878 2000-08-20 Mark Wielaard <mark@klomp.org>
3880 * java/util/zip/Adler32.java: Make private variables really private
3881 * java/util/zip/CRC32.java: Make private variables really private
3882 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3884 * java/util/zip/InflaterInputStream.java: skip() could skip to
3886 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3887 * java/util/zip/ZipFile.java: size() new 1.2 method
3888 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3889 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3892 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3894 * java/util/jar/JarFile.java: Don't call
3895 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3898 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3900 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3901 Read the entire contents of the class file, not just what is
3904 * java/net/JarURLConnection.java: getEntry doesn't take any
3905 arguments. Return null if element is null.
3907 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3908 size from the archive, not the inflated size.
3910 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3911 java.util.zip.ZipFile.getEntry.
3913 * gij.cc (help): Change sourceware reference to
3916 2000-08-19 Tom Tromey <tromey@cygnus.com>
3918 * java/util/zip/ZipInputStream.java (createZipEntry):
3921 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3923 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3924 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3925 java/util/jar/JarInputStream.java,
3926 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3927 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3928 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3929 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3930 java/security/cert/Certificate.java,
3931 java/security/cert/CertificateEncodingException.java,
3932 java/security/cert/CertificateException.java,
3933 java/security/cert/CertificateExpiredException.java,
3934 java/security/cert/CertificateFactory.java,
3935 java/security/cert/CertificateFactorySpi.java,
3936 java/security/cert/CertificateNotYetValidException.java,
3937 java/security/cert/CertificateParsingException.java,
3938 java/security/cert/X509CRL.java,
3939 java/security/cert/X509CRLEntry.java,
3940 java/security/cert/X509Certificate.java,
3941 java/security/cert/X509Extension.java: Imported from Classpath.
3942 * java/util/Hashtable.java: Imported from Classpath.
3944 * java/util/zip/ZipInputStream.java: Create stub for
3947 * gcj/javaprims.h: Updated class list.
3949 * Makefile.in, gcj/Makefile.in: Rebuilt.
3950 * Makefile.am (ordinary_java_source_files): Add these new classes.
3952 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3954 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3955 * gnu/gcj/awt/GLightweightPeer.java: New file.
3956 * java/awt/BorderLayout.java: Implemented all methods.
3957 * java/awt/Button.java (actionListener, actionCommand): Renamed
3958 and modifier change.
3959 (addNotify): Call super.
3960 (dispatchEventImpl): New method.
3961 (getListeners): New method.
3962 (label): Made package-private, not private.
3963 * java/awt/Canvas.java: Implemented class body.
3964 * java/awt/Color.java (brighter): New method.
3965 (darker): New method.
3966 (hashCode): New method.
3967 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3968 (getGraphicsConfiguration): Delegate to
3969 getGraphicsConfigurationImpl().
3970 (getGraphicsConfigurationImpl): New method.
3971 (getToolkit): Only return value from peer if not null.
3972 (isDisplayable): Check with parent.
3973 (isShowing): No parent implies not showing.
3974 (getForeground): Check parent property if local is null.
3975 (getBackground): Likewise.
3976 (getFont): Likewise.
3977 (setForeground): Inform peer.
3978 (setBackground): Likewise
3979 (setLocale): Invalidate component.
3980 (getColorModel): Implemented.
3981 (setLocation): Invalidate, or ignore if no change.
3982 (setSize): Invalidate, or ignore if no change.
3983 (setBounds): Invalidate, or ignore if no change.
3984 (isOpaque): By default, heavyweight implies opaque.
3985 (isLightweight): Implemented.
3986 (getMaximumSize): Implemented.
3987 (doLayout): Implemented, NOP.
3988 (validate): Implemented, NOP.
3989 (invalidate): Only propagate to parent if parent was valid.
3990 (getGraphics): Implemented.
3991 (getFontMetrics): Implemented.
3992 (update): Implemented.
3993 (paintAll): Implemented.
3994 (repaint): Implemented all repaint methods.
3995 (print): Implemented.
3996 (printAll): Implemented.
3997 (createImage): Implemented.
3998 (dispatchEvent): Give the peer a chance to handle the event.
3999 (dispatchEventImpl): Dispatch paint events.
4000 (enableEvents): Lightweights enable events on parent component.
4001 (coalesceEvents): Coalesce paint events, and select event type
4003 (coalescePaintEvents): New method.
4004 (processEvent): Fix unfortunate ordering of statements, and call
4005 correct method for MOUSE_CLICKED.
4006 (processPaintEvent): New method.
4007 (addNotify): Allow container to notify children before event
4008 mask is set in peer.
4009 (addNotifyContainerChildren): New method.
4010 (removeNotify): Visibility should not change on removeNotify.
4011 (paramString): Implemented.
4012 (list): Implemented two of the list methods.
4013 * Container (myInsets): Removed, insets are managed by peer.
4014 (getInsets): Query peer.
4015 (addImpl): Fix reparenting, enable events for lightweights,
4016 initialize component array.
4017 (validate): Call doLayout in validateTree() instead.
4018 (validateTree): Do nothing if already valid. Call beginValidate(),
4019 endValidate() on peer. Call validateTree() instead of validate()
4020 for children that are containers. Mark valid after validation of
4022 (setFont): Partial implementation.
4023 (paint): Implemented.
4024 (visitChildren): New method.
4025 (visitChild): New method.
4026 (update): Implemented.
4027 (print): Implemented.
4028 (paintComponents): Implemented.
4029 (printComponents): Consider translation and clipping.
4030 (getComponentAt): Ignore invisible children. Return this if no
4032 (addNotify): Call super.
4033 (addNotifyContainerChildren): New method.
4034 (paramString): Implemented.
4035 (list): Implemented.
4036 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4038 (invokeLater): Likewise.
4039 (isDispatchThread): Likewise.
4040 * java/awt/FontMetrics (getLeading): Formula change.
4041 (getDescent): Consider leading also.
4042 (getMaxAscent): Default to getAscent().
4043 (getMaxDescent): Default to getDescent.
4044 (getMaxAdvance): Return value signifying unknown.
4045 (charWidth): Both methods implemented.
4046 (charsWidth): Implemented.
4047 (bytesWidth): Implemented.
4048 (getWidths): Implemented.
4049 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4051 (Frame): Rearragend constuctor chaining to disallow null being
4052 passed as a graphics configuration.
4053 (getTitle): Return empty string if null.
4055 (getIconImage): New method.
4056 (setIconImage): New method.
4057 (finalize): New method.
4058 (setMenuBar): Notify peer.
4059 (isResizable): New method.
4060 (setResizable): New method.
4061 (getState): New method.
4063 (remove): Implemented.
4064 (removeNotify): New method.
4065 (getFrames): New method.
4066 * java/awt/Graphics.java: Implemented body of class.
4067 * java/awt/Graphics2D.java: New file.
4068 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4069 * java/awt/Image.java: Implemented body of class.
4070 * java/awt/Panel.java (Panel): Call correct super constructor.
4071 (addNotify): Implemented.
4072 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4073 * java/awt/RenderingHints.java: New file.
4074 * java/awt/Toolkit.java (createComponent): Implemented.
4075 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4076 * java/awt/Window.java (Window): Two new constructors. Reordered
4077 constructor chaining.
4078 (getGraphicsConfigurationImpl): New method.
4079 (finalize): Call super.
4080 (addNotify): Call super.
4081 (pack): Do layout stuff.
4082 (show): Ensure that peer exists and that component is valid.
4083 (dispose): Dispose owned children.
4084 (getOwner): Simplify code, casting null pointers is valid.
4085 (getGraphicsConfiguration): Ask peer if local value is null.
4086 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4088 * java/awt/image/BufferedImage.java: New file.
4089 * java/awt/image/RasterOp.java: New file.
4090 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4091 More powerfull replacement for getColorModel().
4092 (getColorModel) Removed.
4093 (setEventMask) New method.
4094 * Makefile.am: Added new files.
4095 * Makefile.in: Rebuilt.
4097 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4099 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4100 (finit_leg_name): New global.
4101 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4102 `$finit$'. This is a backward compatibility hack.
4103 (java::lang::Class::_getMethods): Likewise.
4105 2000-08-15 Andrew Haley <aph@cygnus.com>
4107 * include/jvm.h (_Jv_HashCode): New hash code.
4109 2000-08-15 Tom Tromey <tromey@cygnus.com>
4111 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4113 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4115 * THANKS: More thanks.
4117 2000-08-10 Tom Tromey <tromey@cygnus.com>
4119 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4121 (connect): Likewise.
4123 (getOption): Likewise.
4124 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4125 case when errno not set.
4128 (receive): Likewise.
4129 (mcastGrp): Likewise.
4130 (setOption): Likewise.
4131 (getOption): Likewise.
4133 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4134 John Stracke <francis@ecal.com>
4136 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4137 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4139 (disconnect): Don't unset connected flag.
4140 (getHeaderField (String)): Call connect() if not connected.
4141 (getHeaderField (int)): Ditto.
4142 (getHeaderFieldKey): Ditto.
4143 (getHttpHeaders): Don't call connect().
4144 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4145 gotResponseVals): New fields.
4146 (getResponseCode): Call getResponseVals() conditionally.
4147 (getResponseMessage): Ditto.
4148 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4150 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4152 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4153 * Makefile.in: Rebuilt.
4154 * java/awt/Color.java (getTransparency): New method.
4155 * java/awt/Component.java: Various updates.
4156 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4157 after dealing with children.
4158 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4159 * java/awt/Window.java: Various new methods and updates.
4160 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4162 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4163 * java/awt/event/WindowEvent.java (paramString): Ditto.
4164 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4166 * java/awt/geom/Point2D.java (clone): Ditto.
4167 * java/awt/geom/RectangularShape.java (clone): Ditto.
4168 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4169 isAlphaPremultiplied): Make package-private, not private.
4171 2000-08-08 Tom Tromey <tromey@cygnus.com>
4173 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4174 surrogate characters.
4175 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4177 (write): Correct handling of surrogate characters.
4179 2000-08-07 Tom Tromey <tromey@cygnus.com>
4181 * java/lang/reflect/Method.java (hashCode): Use getName().
4182 (toString): Likewise.
4183 * java/lang/reflect/natMethod.cc (getType): Initialize
4186 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4188 * java/lang/reflect/Field.java (toString): Correct formatting.
4191 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4193 (receive): Streamlined.
4195 2000-08-05 Tom Tromey <tromey@cygnus.com>
4197 * java/io/PrintWriter.java: Merged comments from Classpath.
4198 (printlnUnsynchronized): Removed.
4199 (println()): Print the separator.
4200 (println): Call println(), not printlnUnsynchronized.
4201 (out): Now protected, to match spec.
4203 2000-08-04 Tom Tromey <tromey@cygnus.com>
4205 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4206 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4209 2000-08-03 Warren Levy <warrenl@cygnus.com>
4211 * java/io/ObjectInputStream.java (readFields): Turn off
4212 readDataFromBlock while reading via GetField.
4213 (GetField$1.get(String, Object)): Pass Class of default value to
4215 (getField): Allow for null default values.
4217 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4218 (PutField$1.put): Fixed calls of checkType in most of the put
4219 methods to pass the correct parameter.
4220 (PutField$1.put(String, Object)): Allow for null value arg.
4221 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4224 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4225 typo in spec'ed field name.
4226 (getSerialPersistentFields): Changed spelling of method to match
4227 the correct spelling of the spec'ed field name.
4229 2000-08-03 Tom Tromey <tromey@cygnus.com>
4231 * Makefile.in: Rebuilt.
4232 * Makefile.am (awt_java_source_files): Added new files.
4234 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4236 * Makefile.am: Add new AWT stubs.
4237 * java/awt/Canvas.java: New placeholder class.
4238 * java/awt/Checkbox.java: Ditto.
4239 * java/awt/CheckboxMenuItem.java: Ditto.
4240 * java/awt/Choice.java: Ditto.
4241 * java/awt/Dialog.java: Ditto.
4242 * java/awt/FileDialog.java: Ditto.
4243 * java/awt/List.java: Ditto.
4244 * java/awt/ScrollPane.java: Ditto.
4245 * java/awt/TextField.java: Ditto.
4246 * java/awt/datatransfer/Clipboard.java: Ditto.
4247 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4248 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4249 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4250 Some commented out. Partially implemented.
4251 * java/awt/natToolkit.cc: Removed file.
4253 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4255 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4256 Fixes "make -j" builds.
4257 * Makefile.in: Rebuild.
4259 2000-08-02 Tom Tromey <tromey@cygnus.com>
4261 * Makefile.in: Rebuilt.
4262 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4263 * java/net/natPlainSocketImpl.cc: Include posix.h.
4264 (accept): Use _Jv_select.
4265 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4266 (receive): Use _Jv_select.
4267 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4268 (available): Use _Jv_select.
4269 * java/lang/natSystem.cc: Include posix.h.
4270 (currentTimeMillis): Use _Jv_gettimeofday.
4271 * include/posix.h: New file.
4272 * posix.cc: New file.
4274 * scripts/encodings.pl: New file.
4275 * Makefile.in: Rebuilt.
4276 * Makefile.am (convert_source_files): Added IOConverter.java.
4277 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4279 (getDefaultDecodingClass): Canonicalize default encoding name.
4280 (getEncoder): Likewise.
4281 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4283 (getDefaultDecodingClass): Canonicalize default encoding name.
4284 (getDecoder): Likewise.
4285 * gnu/gcj/convert/IOConverter.java: New file.
4287 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4289 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4290 to match C declaration in ffi.h.
4291 * Makefile.am: Add java/awt/Button.java.
4292 * Makefile.in: Rebuilt.
4294 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4296 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4297 cast of the second argument to `ffi_raw_call' changed to match
4300 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4302 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4303 argument to `ffi_raw_call' changed to match prototype.
4305 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4307 * java/awt/Component.java (toString): Implemented.
4308 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4309 dispatchEvent() to dispatch the event.
4310 (removeImpl): Ditto.
4312 2000-07-30 Anthony Green <green@redhat.com>
4314 * java/awt/Component.java: Add treeLock object.
4315 (getTreeLock): Implement.
4316 (isShowing): Implement.
4318 2000-07-30 Tom Tromey <tromey@cygnus.com>
4320 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4322 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4324 * java/awt/Window.java (addNotify): Wrote.
4325 (addWindowListener): Wrote.
4327 (getWarningString): Wrote.
4328 (processEvent): Wrote.
4329 (processWindowEvent): Wrote.
4330 (removeWindowListener): Wrote.
4331 (show): Call validate(), setVisible().
4335 * java/awt/Toolkit.java (createWindow): Declare.
4337 * java/awt/Frame.java (addNotify): Use getToolkit to find
4340 * java/awt/Component.java (invalidate): Wrote.
4342 (getToolkit): Wrote.
4344 * java/awt/Container.java (addContainerListener): Removed
4346 (removeContainerListener): Likewise.
4348 (add(Component)): Use it.
4349 (add(String,Component)): Likewise.
4350 (add(Component,int)): Likewise.
4351 (add(Component,Object)): Likewise.
4352 (add(Component,Object,int)): Likewise.
4354 (getAlignmentX): Wrote.
4355 (getAlignmentY): Wrote.
4356 (getComponentAt): Wrote.
4357 (getMaximumSize): Wrote.
4358 (invalidate): Wrote.
4359 (list(PrintStream,int)): Wrote.
4360 (list(PrintWriter,int)): Wrote.
4361 (getMinimumSize): Wrote.
4362 (getPreferredSize): Wrote.
4363 (printComponents): Wrote.
4364 (processContainerEvent): Look at containerListener, not
4366 (remove): Added event processing and peer destruction.
4367 (removeAll): Use remove.
4368 (removeNotify): Wrote.
4370 (validateTree): Wrote.
4372 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4373 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4374 * java/awt/Container.java (addNotify): Don't create Container
4376 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4378 2000-07-30 Tom Tromey <tromey@cygnus.com>
4380 * java/awt/Container.java (remove(int)): Wrote.
4381 (remove(Component)): Wrote.
4382 (add(Component)): Wrote.
4383 (add(Component,int)): Wrote.
4385 (addNotify): Set our own peer.
4386 * java/awt/Scrollbar.java (listeners): Changed type.
4387 (Scrollbar): Don't initialize listeners.
4389 (setValue): Call setValues.
4390 (setMinimum): Likewise.
4391 (setMaxPriority): Likewise.
4392 (setVisibleAmount): Likewise.
4394 (setUnitIncrement): Forward to peer.
4395 (setLineIncrement): Call setUnitIncrement.
4396 (setPageIncrement): Call setBlockIncrement.
4397 (setBlockIncrement): Forward to peer.
4398 (addAdjustmentListener): Rewrote.
4399 (removeAdjustmentListener): Rewrote.
4400 (processAdjustmentEvent): Rewrote.
4401 (paramString): Wrote.
4402 * Makefile.in: Rebuilt.
4403 * Makefile.am (awt_java_source_files): Added Button.java.
4404 * java/awt/Button.java: New file.
4405 * java/awt/Toolkit.java (createLabel): Declare.
4406 (createButton): Likewise.
4407 (createScrollbar): Likewise.
4408 (createContainer): Likewise.
4409 * java/awt/Label.java (addNotify): Wrote.
4410 (setAlignment): Call setAlignment in the peer.
4411 (setText): Call setText in the peer.
4413 2000-07-28 Warren Levy <warrenl@cygnus.com>
4415 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4416 NotSerializableException with just the class name.
4418 2000-07-26 Andrew Haley <aph@cygnus.com>
4420 * interpret.cc (continue1): Insert missing break into switch.
4422 2000-07-28 Warren Levy <warrenl@cygnus.com>
4424 * java/io/ObjectStreamException.java: Made constructors protected.
4426 2000-07-27 Tom Tromey <tromey@cygnus.com>
4428 * java/io/OutputStreamWriter.java (close): Only flush if not
4431 2000-07-27 Warren Levy <warrenl@cygnus.com>
4433 * mauve-libgcj: Activated serialization tests.
4434 * gcj/field.h (getModifiers): Mask off unknown flags.
4435 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4436 spurious bits don't cause discrepancies.
4437 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4438 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4439 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4440 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4441 * java/lang/Throwable.java (serialVersionUID): New field.
4442 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4443 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4445 * java/lang/reflect/natMethod.cc: Ditto.
4446 * java/security/Key.java (serialVersionUID): Removed field for now.
4447 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4448 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4450 2000-07-22 Tom Tromey <tromey@cygnus.com>
4452 * java/awt/geom/RectangularShape.java (getPathIterator):
4455 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4457 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4458 stub libjava/java/awt/ColorModel.java which was located in the
4460 * libjava/java/awt/image/ComponentColorModel.java: New file.
4461 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4462 * libjava/java/awt/image/DataBuffer.java: New file.
4463 * libjava/java/awt/image/DataBufferByte.java: New file.
4464 * libjava/java/awt/image/DataBufferInt.java: New file.
4465 * libjava/java/awt/image/DataBufferUShort.java: New file.
4466 * libjava/java/awt/image/DirectColorModel.java: New file.
4467 * libjava/java/awt/image/PackedColorModel.java: New file.
4468 * libjava/java/awt/image/Raster.java: New file.
4469 * libjava/java/awt/image/SampleModel.java: New file.
4470 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4472 * libjava/java/awt/image/IndexColorModel.java: New file.
4473 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4474 java.awt.ColorModel stub.
4476 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4477 * gnu/gcj/util/Buffers.java: New file, utility class.
4479 * libjava/Makefile.am: Updated to include new files.
4480 * libjava/Makefile.in: Rebuilt.
4482 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4484 * java/io/StreamTokenizer.java: Merged with classpath.
4486 2000-07-20 Tom Tromey <tromey@cygnus.com>
4488 * Makefile.in: Rebuilt.
4489 * Makefile.am (awt_java_source_files): Updated for new files.
4490 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4491 * java/awt/Label.java: New file.
4492 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4493 (createIntersection, createUnion, getBounds2D): New methods.
4494 * java/awt/Scrollbar.java: New file.
4495 * java/awt/Shape.java: Updated to 1.2.
4496 * java/awt/geom/AffineTransform.java: New file.
4497 * java/awt/geom/Ellipse2D.java: New file.
4498 * java/awt/geom/NoninvertibleTransformException.java: New file.
4499 * java/awt/geom/PathIterator.java: New file.
4500 * java/awt/geom/Rectangle2D.java: New file.
4501 * java/awt/geom/RectangularShape.java: New file.
4502 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4503 * java/awt/geom/IllegalPathStateException.java: New file.
4505 * scripts/showval.java: New file.
4507 * scripts/classes.pl (scan): Print inner classes properly.
4508 * gcj/javaprims.h: Updated class list.
4510 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4511 initialize String fields for interpreted classes. Fixes bug
4512 reported by Hans Boehm.
4514 * java/io/File.java (getParentFile): New method, from Classpath
4515 via Oskar Liljeblad.
4517 * java/util/Vector.java (remove(Object)): Implemented.
4519 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4521 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4522 zero return from backtrace().
4524 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4526 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4528 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4529 before calling notifyAll().
4531 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4533 Add missing files from last check-in:
4534 * java/awt/image/ImageConsumer.java: New file.
4535 * java/awt/image/ImageProducer.java: New file.
4536 * java/awt/image/ImageObserver.java: New file.
4538 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4540 Merged implementation of java.applet from classpath:
4541 * java/applet/Applet.java: New file.
4542 * java/applet/AppletContext.java: New file.
4543 * java/applet/AppletStub.java: New file.
4544 * java/applet/AudioClip.java: New file.
4546 * Makefile.am: Added new java.applet classes.
4547 * Makefile.in: Rebuilt.
4549 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4552 * java/util/ResourceBundle.java (getLocale): stub.
4553 * Makefile.am: Added new AWT classes.
4554 * Makefile.in: Rebuilt.
4555 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4556 constructors. Fix toString() and paramString().
4557 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4558 * java/awt/CheckboxGroup.java: New class.
4559 * java/awt/ColorModel.java: New class.
4560 * java/awt/Component.java: Added stubs for most methods. Implemented
4562 * java/awt/Container.java: ditto.
4563 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4564 * java/awt/Cursor.java: ditto.
4565 * java/awt/Event.java: Fix paramString().
4566 * java/awt/EventQueue.java: New class. Implemented.
4567 * java/awt/Font.java: Added additional stub methods. Implemented
4569 * java/awt/FontMetrics.java: New class. Stubbed.
4570 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4572 * java/awt/Insets.java: New class. Implemented.
4573 * java/awt/Menu.java: Add new methods. Partially implemented.
4574 * java/awt/MenuItem.java: Add new methods and fields. Partially
4576 * java/awt/MenuShortcut.java: New class. Implemented.
4577 * java/awt/Panel.java: New class. Placeholder.
4578 * java/awt/PopupMenu.java: New class. Stubbed.
4579 * java/awt/Rectangle.java: New class. Implemented.
4580 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4581 * java/awt/event/ActionEvent.java: Implement paramString().
4582 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4583 * java/awt/event/ComponentEvent.java: Implement paramString().
4584 * java/awt/event/ContainerEvent.java: Implement paramString().
4585 * java/awt/event/FocusEvent.java: Implement paramString().
4586 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4587 * java/awt/event/HierarchyBoundsListener.java: New class.
4588 * java/awt/event/HierarchyEvent.java: New class.
4589 * java/awt/event/HierarchyListener.java: New class.
4590 * java/awt/event/InputMethodEvent.java: Implement paramString().
4591 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4592 exception if !catchExceptions.
4593 * java/awt/event/ItemEvent.java: Implement paramString().
4594 * java/awt/event/KeyEvent.java: Implement paramString().
4595 * java/awt/event/MouseEvent.java: Implement paramString().
4596 * java/awt/event/PaintEvent.java: Implement paramString().
4597 * java/awt/event/TextEvent.java: Implement paramString().
4598 * java/awt/event/WindowEvent.java: Implement paramString().
4600 AWT Peer interfaces:
4601 * java/awt/peer/ButtonPeer.java: New file.
4602 * java/awt/peer/ListPeer.java: New file.
4603 * java/awt/peer/CanvasPeer.java: New file.
4604 * java/awt/peer/MenuBarPeer.java: New file.
4605 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4606 * java/awt/peer/MenuComponentPeer.java: New file.
4607 * java/awt/peer/CheckboxPeer.java: New file.
4608 * java/awt/peer/MenuItemPeer.java: New file.
4609 * java/awt/peer/ChoicePeer.java: New file.
4610 * java/awt/peer/MenuPeer.java: New file.
4611 * java/awt/peer/ComponentPeer.java: Implemented.
4612 * java/awt/peer/PanelPeer.java: New file.
4613 * java/awt/peer/ContainerPeer.java: Implemented.
4614 * java/awt/peer/PopupMenuPeer.java: New file.
4615 * java/awt/peer/DialogPeer.java: New file.
4616 * java/awt/peer/ScrollPanePeer.java: New file.
4617 * java/awt/peer/FileDialogPeer.java: New file.
4618 * java/awt/peer/ScrollbarPeer.java: New file.
4619 * java/awt/peer/FontPeer.java: New file.
4620 * java/awt/peer/TextAreaPeer.java: New file.
4621 * java/awt/peer/FramePeer.java: Implemented.
4622 * java/awt/peer/TextComponentPeer.java: New file.
4623 * java/awt/peer/LabelPeer.java: New file.
4624 * java/awt/peer/TextFieldPeer.java: New file.
4625 * java/awt/peer/LightweightPeer.java: New file.
4626 * java/awt/peer/WindowPeer.java: Implemented.
4628 2000-07-06 Tom Tromey <tromey@cygnus.com>
4630 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4631 Initialize static final String fields.
4633 2000-07-03 Tom Tromey <tromey@cygnus.com>
4635 * java/io/PrintWriter.java (print): Call write(String), not
4636 print(String). See PR libgcj/277.
4637 (print(String)): Use write, not out.write.
4639 2000-06-30 Tom Tromey <tromey@cygnus.com>
4641 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4643 2000-06-27 Andrew Haley <aph@cygnus.com>
4645 * java/io/File.java (createTempFile): Close the FileDescriptor
4646 used to create a temp file. Fixes some of PR 203.
4647 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4648 collection if we run out of file handles.
4650 2000-06-28 Warren Levy <warrenl@cygnus.com>
4652 * gnu/java/security/provider/Gnu.java: New file.
4653 * gnu/java/security/provider/SHA.java: New file.
4654 * gnu/java/security/provider/SHA1PRNG.java: New file.
4655 * Makefile.am: Added the above files.
4656 * Makefile.in: Rebuilt.
4658 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4660 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4662 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4663 (destroyed_flag): Removed.
4664 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4665 (activeCount): Added spec note.
4667 2000-06-27 Warren Levy <warrenl@cygnus.com>
4669 * java/security/Principal.java: New file.
4670 * Makefile.am: Added Principal.java.
4671 * Makefile.in: Rebuilt.
4673 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4675 * java/awt/event/MouseEvent.java: Fixed coordinate space
4678 2000-06-27 Tom Tromey <tromey@cygnus.com>
4680 * java/io/PushbackInputStream.java (read): If there are characters
4681 in the buffer, don't also call super.read().
4682 * java/io/PushbackReader.java (read): If there are characters in
4683 the buffer, don't also call super.read().
4685 * java/lang/Double.java (valueOf): Call parseDouble().
4687 2000-06-26 Warren Levy <warrenl@cygnus.com>
4689 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4690 (newVal): Renamed to newValue.
4691 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4692 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4693 (revokeNow): Renamed to invalidateRefs.
4694 * java/io/OptionalDataException.java: Updated FIXME.
4695 (eof): New placeholder field.
4697 * java/io/WriteAbortedException.java (message): Made transient.
4698 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4699 * java/lang/Throwable.java (stackTrace): Made transient.
4700 * java/net/InetAddress.java: Made Serializable.
4701 * java/security/KeyPair.java: Made Serializable.
4702 * java/security/Provider.java: Replaced with Classpath version that
4703 implements serialization and proper methods.
4704 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4705 (limits): Renamed to choiceLimits.
4707 2000-06-24 Tom Tromey <tromey@cygnus.com>
4709 * java/lang/natDouble.cc (parseDouble): Renamed from
4711 * java/lang/Double.java (parseDouble): Renamed from
4712 doubleValueOf. Now public.
4714 2000-06-23 Andrew Haley <aph@cygnus.com>
4716 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4717 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4719 2000-06-23 Tom Tromey <tromey@cygnus.com>
4721 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4722 * java/lang/natDouble.cc: Always include <alloca.h>.
4723 Fix for PR libgcj/267.
4725 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4727 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4728 comply with classpath VM spec.
4729 (add(Group)): Rename to addGroup().
4730 * java/lang/Thread.java (Thread): Use addThread().
4731 * java/lang/natThread.cc (finish_): Use removeThread().
4733 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4735 * java/lang/ThreadGroup.java: Merged with classpath.
4736 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4737 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4739 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4740 ThreadGroup.root if Thread.currentThread is null. Honour the
4741 ThreadGroup's max priority setting.
4743 2000-06-18 Tom Tromey <tromey@cygnus.com>
4745 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4746 returned class. For PR gcj/260.
4748 2000-06-16 Tom Tromey <tromey@cygnus.com>
4750 Fix for PR libgcj/261:
4751 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4753 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4754 argument. (This is a patch from long ago that somehow went
4757 2000-06-15 Tom Tromey <tromey@cygnus.com>
4759 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4763 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4765 Fix for PR java.lang/258:
4766 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4767 JV_STATE_DONE, to prevent accidental initialization.
4768 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4769 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4770 interface or an abstract class. Remove redundant initializeClass calls.
4771 Remove duplicate if_idt test.
4772 (_Jv_InterfaceAssignableFrom): New function.
4773 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4775 2000-05-31 Tom Tromey <tromey@cygnus.com>
4777 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4778 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4779 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4780 (NUM_OBJECT_METHODS): New define.
4781 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4782 `array_vtable' parameter. Added assertion.
4783 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4786 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4788 * gcj/cni.h: Include <string.h>.
4789 * defineclass.cc: Include <alloca.h>.
4790 * interpret.cc: Ditto.
4791 * gij.cc: Include <stdlib.h>.
4793 2000-05-30 Tom Tromey <tromey@cygnus.com>
4795 * include/name-finder.h: Include <sys/wait.h>.
4796 (_Jv_name_finder::pid): Now of type `pid_t'.
4797 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4798 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4801 2000-05-24 Warren Levy <warrenl@cygnus.com>
4803 * java/io/ObjectOutputStream.java (writeObject): Use component type
4804 when writing arrays.
4807 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4809 Fix for PR libgcj/226:
4810 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4811 since this is an installed header.
4813 Fix for PR libgcj/228:
4814 * java/util/zip/ZipFile (getInputStream): Create inflater with
4817 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4818 with DataFormatException.
4820 2000-05-20 Tom Tromey <tromey@cygnus.com>
4822 * Makefile.in: Rebuilt.
4823 * Makefile.am (hack1): Removed.
4824 (awto_files): Likewise.
4825 (libgcjawt_la_SOURCES): Likewise.
4826 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4827 (libgcjawt_la_DEPENDENCIES): Likewise.
4828 (libgcjawt_la_LIBADD): Likewise.
4829 (libgcjawt_la_LDFLAGS): Likewise.
4830 (libgcjawt_la_LINK): Likewise.
4831 ($(awt_java_source_files:.java=.class)): Likewise.
4832 (libgcj.zip): Don't depend on AWT files.
4833 (MOSTLYCLEANFILES): Don't include AWT files.
4834 ($(awto_files)): Removed.
4835 (nat_headers): Removed AWT files.
4836 (cond_awt_java_source_files): Removed.
4837 (ordinary_java_source_files): Added awt_java_source_files.
4838 * libgcj.spec.in (*lib): Removed -lgcjawt.
4839 * configure: Rebuilt.
4840 * configure.in: Removed --enable-java-awt option.
4842 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4844 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4845 (ZipEntry): Copy the `name' field.
4846 (clone): Implement JDK1.2 method.
4847 (setCompressedSize): ditto.
4850 2000-05-19 Tom Tromey <tromey@cygnus.com>
4852 * java/io/BufferedWriter.java: Merged with Classpath.
4853 * java/io/BufferedOutputStream.java: Merged with Classpath.
4855 2000-05-16 Andrew Haley <aph@cygnus.com>
4857 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4858 build_ia64_frame_state.
4859 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4862 2000-05-15 Warren Levy <warrenl@cygnus.com>
4864 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4865 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4866 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4867 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4868 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4869 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4870 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4871 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4872 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4873 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4874 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4875 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4876 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4877 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4878 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4879 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4880 * gnu/gcj/io/NullOutputStream.java: Removed.
4881 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4882 * gnu/gcj/lang/ArrayHelper.java: Removed.
4883 * gnu/gcj/lang/ClassHelper.java: Removed.
4884 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4886 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4887 * gnu/java/beans/EmptyBeanInfo.java: New file.
4888 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4889 * gnu/java/beans/IntrospectionIncubator.java: New file.
4890 * gnu/java/beans/editors/ColorEditor.java: New file.
4891 * gnu/java/beans/editors/FontEditor.java: New file.
4892 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4893 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4894 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4895 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4896 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4897 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4898 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4899 * gnu/java/beans/editors/StringEditor.java: New file.
4900 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4901 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4902 * gnu/java/io/NullOutputStream.java: New file.
4903 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4904 * gnu/java/lang/ArrayHelper.java: New file.
4905 * gnu/java/lang/ClassHelper.java: New file.
4906 * gnu/java/lang/reflect/TypeSignature.java: New file.
4908 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4909 namespace back to the original Classpath gnu/java namespace.
4910 * Makefile.in: Rebuilt.
4912 * java/beans/Beans.java: Namespace change.
4913 * java/beans/EventSetDescriptor.java: Namespace change.
4914 * java/beans/Introspector.java: Namespace change.
4915 * java/beans/PropertyEditorManager.java: Namespace change.
4916 * java/io/ObjectInputStream.java: Namespace change.
4917 * java/io/ObjectOutputStream.java: Namespace change.
4918 * java/io/ObjectStreamClass.java: Namespace change.
4919 * java/io/ObjectStreamField.java: Namespace change.
4921 2000-04-21 Warren Levy <warrenl@cygnus.com>
4923 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4924 now that compiler patch is available.
4925 Removed unneeded System.loadLibrary.
4926 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4927 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4929 2000-04-19 Andrew Haley <aph@cygnus.com>
4931 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4932 and target classes have been initialized.
4934 2000-04-19 Andrew Haley <aph@cygnus.com>
4936 * java/lang/String.java: implement Serializable, Comparable.
4937 (compareTo (Object)): New method.
4939 2000-04-19 Warren Levy <warrenl@cygnus.com>
4941 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4942 instead of getField to retrieve non-public field.
4943 (getSerialPersistantFields): Ditto.
4945 2000-04-18 Warren Levy <warrenl@cygnus.com>
4947 * mauve-libgcj: Turned off object serialization tests temporarily
4948 due to compiler error.
4950 2000-04-17 Warren Levy <warrenl@cygnus.com>
4952 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4953 to avoid build problem.
4955 * mauve-libgcj: Turned on object serialization tests.
4957 2000-04-17 Tom Tromey <tromey@cygnus.com>
4959 * libgcj.spec.in (*lib): Added -lgcjawt.
4961 2000-04-17 Andrew Haley <aph@cygnus.com>
4963 * Makefile.am: Add new files:
4964 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4966 * Makefile.in: Rebuilt.
4968 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4969 interface that has no implementations.
4970 Check for an attempt to assign an abstract class to an interface.
4972 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4973 if we fail to find MessageDigest.getInstance ("SHA").
4975 * gnu/gcj/io/SimpleSHSStream.java: New file.
4976 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4977 * gnu/gcj/io/shs.cc: New file.
4978 * gnu/gcj/io/shs.h: new file.
4980 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4983 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4984 punctuation from the classname of an array element.
4986 * gcj/javaprims.h: Add SimpleDigestStream.
4988 2000-04-17 Andrew Haley <aph@cygnus.com>
4990 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4991 to getPrivateField for superclasses.
4993 2000-04-14 Andrew Haley <aph@cygnus.com>
4995 * Makefile.am: Add new files:
4996 java/io/ObjectOutputStream$PutField.h,
4997 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4998 java/io/natObjectOutputStream.cc
4999 * Makefile.in: Rebuilt.
5000 * gcj/Makefile.in: Rebuilt.
5001 * include/Makefile.in: Rebuilt.
5002 * java/lang/Class.h (getPrivateField): New method.
5003 (getPrivateMethod): Ditto.
5004 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5005 and java::io::ObjectStreamClass our friends.
5006 * java/lang/natClass.cc (getPrivateField): New method.
5007 (getPrivateMethod): Ditto.
5008 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5009 * gcj/javaprims.h: Add serialization classes.
5010 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5011 (setByteField): Ditto.
5012 (setCharField): Ditto.
5013 (setDoubleField): Ditto.
5014 (setFloatField): Ditto.
5015 (setIntField): Ditto.
5016 (setLongField): Ditto.
5017 (setShortField): Ditto.
5018 (setObjectField): Ditto.
5019 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5021 (getByteField): Ditto.
5022 (getCharField): Ditto.
5023 (getDoubleField): Ditto.
5024 (getFloatField): Ditto.
5025 (getIntField): Ditto.
5026 (getLongField): Ditto.
5027 (getShortField): Ditto.
5028 (getObjectField): Ditto.
5029 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5031 (getSerialPersistantFields): Ditto.
5032 (getDefinedSUID): Ditto.
5033 * java/io/natObjectOutputStream.cc: New file.
5034 * java/io/natObjectInputStream.cc: New file.
5036 2000-04-13 Warren Levy <warrenl@cygnus.com>
5038 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5039 problems. Revert to previous version to reproduce and when fixed.
5041 2000-04-13 Warren Levy <warrenl@cygnus.com>
5043 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5044 * gnu/gcj/io/NullOutputStream.java: New file.
5045 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5046 * java/io/BlockDataException.java: New file.
5047 * java/io/Externalizable.java: New file.
5048 * java/io/InvalidClassException.java: New file.
5049 * java/io/InvalidObjectException.java: New file.
5050 * java/io/NotActiveException.java: New file.
5051 * java/io/NotSerializableException.java: New file.
5052 * java/io/ObjectInput.java: New file.
5053 * java/io/ObjectInputStream.java: New file.
5054 * java/io/ObjectInputValidation.java: New file.
5055 * java/io/ObjectOutput.java: New file.
5056 * java/io/ObjectOutputStream.java: New file.
5057 * java/io/ObjectStreamClass.java: New file.
5058 * java/io/ObjectStreamConstants.java: New file.
5059 * java/io/ObjectStreamField.java: New file.
5060 * java/io/Replaceable.java: New file.
5061 * java/io/Resolvable.java: New file.
5062 * java/io/SerializablePermission.java: New file.
5063 * java/io/WriteAbortedException.java: New file.
5064 * java/security/BasicPermission.java: New file.
5065 * java/security/DigestOutputStream.java: New file.
5066 * java/security/Guard.java: New file.
5067 * java/security/Permission.java: New file.
5068 * java/security/PermissionCollection.java: New file.
5069 * Makefile.am: Added above files.
5070 * Makefile.in: Rebuilt.
5072 * java/beans/Beans.java (instantiate): Activated serialization code.
5073 * java/lang/SecurityManager.java (checkPermission): New method.
5075 2000-04-12 Warren Levy <warrenl@cygnus.com>
5077 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5078 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5079 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5080 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5081 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5082 * gnu/gcj/beans/editors/FontEditor.java: New file.
5083 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5084 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5085 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5086 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5087 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5088 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5089 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5090 * gnu/gcj/beans/editors/StringEditor.java: New file.
5091 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5092 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5093 * gnu/gcj/lang/ArrayHelper.java: New file.
5094 * gnu/gcj/lang/ClassHelper.java: New file.
5095 * java/beans/BeanDescriptor.java: New file.
5096 * java/beans/BeanInfo.java: New file.
5097 * java/beans/Beans.java: New file.
5098 * java/beans/Customizer.java: New file.
5099 * java/beans/DesignMode.java: New file.
5100 * java/beans/EventSetDescriptor.java: New file.
5101 * java/beans/FeatureDescriptor.java: New file.
5102 * java/beans/IndexedPropertyDescriptor.java: New file.
5103 * java/beans/IntrospectionException.java: New file.
5104 * java/beans/Introspector.java: New file.
5105 * java/beans/MethodDescriptor.java: New file.
5106 * java/beans/ParameterDescriptor.java: New file.
5107 * java/beans/PropertyChangeEvent.java: New file.
5108 * java/beans/PropertyChangeListener.java: New file.
5109 * java/beans/PropertyChangeSupport.java: New file.
5110 * java/beans/PropertyDescriptor.java: New file.
5111 * java/beans/PropertyEditor.java: New file.
5112 * java/beans/PropertyEditorManager.java: New file.
5113 * java/beans/PropertyEditorSupport.java: New file.
5114 * java/beans/PropertyVetoException.java: New file.
5115 * java/beans/SimpleBeanInfo.java: New file.
5116 * java/beans/VetoableChangeListener.java: New file.
5117 * java/beans/VetoableChangeSupport.java: New file.
5118 * java/beans/Visibility.java: New file.
5119 * java/beans/beancontext/BeanContext.java: New file.
5120 * java/beans/beancontext/BeanContextChild.java: New file.
5121 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5122 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5123 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5124 * java/beans/beancontext/BeanContextEvent.java: New file.
5125 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5126 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5127 * java/beans/beancontext/BeanContextProxy.java: New file.
5128 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5130 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5131 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5133 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5134 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5136 * java/beans/beancontext/BeanContextServices.java: New file.
5137 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5138 * java/util/AbstractCollection.java: New file.
5139 * java/util/AbstractList.java: New file.
5140 * java/util/Arrays.java: New file.
5141 * Makefile.am: Added above files.
5142 * Makefile.in: Rebuilt.
5144 2000-04-11 Warren Levy <warrenl@cygnus.com>
5146 * java/awt/AWTError.java: New file.
5147 * java/awt/AWTEvent.java: New file.
5148 * java/awt/AWTException.java: New file.
5149 * java/awt/ActiveEvent.java: New file.
5150 * java/awt/Adjustable.java: New file.
5151 * java/awt/BorderLayout.java: New file.
5152 * java/awt/Color.java: New file.
5153 * java/awt/Component.java: New file.
5154 * java/awt/Container.java: New file.
5155 * java/awt/Dimension.java: New file.
5156 * java/awt/Event.java: New file.
5157 * java/awt/Font.java: New file.
5158 * java/awt/Frame.java: New file.
5159 * java/awt/Graphics.java: New file.
5160 * java/awt/IllegalComponentStateException.java: New file.
5161 * java/awt/Image.java: New file.
5162 * java/awt/ItemSelectable.java: New file.
5163 * java/awt/LayoutManager.java: New file.
5164 * java/awt/LayoutManager2.java: New file.
5165 * java/awt/Menu.java: New file.
5166 * java/awt/MenuBar.java: New file.
5167 * java/awt/MenuComponent.java: New file.
5168 * java/awt/MenuContainer.java: New file.
5169 * java/awt/MenuItem.java: New file.
5170 * java/awt/Paint.java: New file.
5171 * java/awt/PaintContext.java: New file.
5172 * java/awt/Point.java: New file.
5173 * java/awt/Rectangle.java: New file.
5174 * java/awt/Shape.java: New file.
5175 * java/awt/TextArea.java: New file.
5176 * java/awt/TextComponent.java: New file.
5177 * java/awt/Toolkit.java: New file.
5178 * java/awt/Transparency.java: New file.
5179 * java/awt/Window.java: New file.
5180 * java/awt/natToolkit.cc: New file.
5181 * java/awt/event/AWTEventListener.java: New file.
5182 * java/awt/event/ActionEvent.java: New file.
5183 * java/awt/event/ActionListener.java: New file.
5184 * java/awt/event/AdjustmentEvent.java: New file.
5185 * java/awt/event/AdjustmentListener.java: New file.
5186 * java/awt/event/ComponentAdapter.java: New file.
5187 * java/awt/event/ComponentEvent.java: New file.
5188 * java/awt/event/ComponentListener.java: New file.
5189 * java/awt/event/ContainerAdapter.java: New file.
5190 * java/awt/event/ContainerEvent.java: New file.
5191 * java/awt/event/ContainerListener.java: New file.
5192 * java/awt/event/FocusAdapter.java: New file.
5193 * java/awt/event/FocusEvent.java: New file.
5194 * java/awt/event/FocusListener.java: New file.
5195 * java/awt/event/InputEvent.java: New file.
5196 * java/awt/event/InputMethodEvent.java: New file.
5197 * java/awt/event/InputMethodListener.java: New file.
5198 * java/awt/event/InvocationEvent.java: New file.
5199 * java/awt/event/ItemEvent.java: New file.
5200 * java/awt/event/ItemListener.java: New file.
5201 * java/awt/event/KeyAdapter.java: New file.
5202 * java/awt/event/KeyEvent.java: New file.
5203 * java/awt/event/KeyListener.java: New file.
5204 * java/awt/event/MouseAdapter.java: New file.
5205 * java/awt/event/MouseEvent.java: New file.
5206 * java/awt/event/MouseListener.java: New file.
5207 * java/awt/event/MouseMotionAdapter.java: New file.
5208 * java/awt/event/MouseMotionListener.java: New file.
5209 * java/awt/event/PaintEvent.java: New file.
5210 * java/awt/event/TextEvent.java: New file.
5211 * java/awt/event/TextListener.java: New file.
5212 * java/awt/event/WindowAdapter.java: New file.
5213 * java/awt/event/WindowEvent.java: New file.
5214 * java/awt/event/WindowListener.java: New file.
5215 * java/awt/geom/Dimension2D.java: New file.
5216 * java/awt/geom/Point2D.java: New file.
5217 * java/awt/peer/ComponentPeer.java: New file.
5218 * java/awt/peer/ContainerPeer.java: New file.
5219 * java/awt/peer/FramePeer.java: New file.
5220 * java/awt/peer/WindowPeer.java: New file.
5221 * java/util/Collection.java: New file.
5222 * java/util/Comparator.java: New file.
5223 * java/util/Iterator.java: New file.
5224 * java/util/List.java: New file.
5225 * java/util/ListIterator.java: New file.
5226 * Makefile.am: Added above files.
5227 * Makefile.in: Rebuilt.
5229 2000-04-10 Warren Levy <warrenl@cygnus.com>
5231 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5232 * java/lang/FirstThread.java: Ditto.
5233 * java/lang/StringBuffer.java: Ditto.
5234 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5236 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5237 Special case handled in java.math.BigInteger.
5238 * java/math/BigInteger.java (divide): Handle the special case when
5239 dividing by 1 and the high bit of the dividend is set.
5240 (setShiftRight): Handle case when count == 0.
5242 2000-04-05 Andrew Haley <aph@cygnus.com>
5244 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5247 2000-04-05 Andrew Haley <aph@cygnus.com>
5249 * sysdep/ia64.c (rse_address_add): Delete.
5250 (IS_NaT_COLLECTION_ADDR): Delete.
5251 (ia64_backtrace_helper): check for null unwind_info.
5253 * sysdep/ia64-frame.h: add calc_caller_bsp.
5255 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5258 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5259 (_Jv_remI): Likewise.
5260 (_Jv_divJ): Likewise.
5261 (_Jv_remJ): Likewise.
5263 * interpret.cc (continue1): Use divide subroutines to guarantee
5264 correct Java standard behaviour.
5265 Floating-point division should not abort; make it so.
5267 2000-03-29 Tom Tromey <tromey@cygnus.com>
5269 * configure: Rebuilt.
5270 * configure.in: Test against `libgcj_sjlj', not
5271 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5272 to be set even when using sjlj.
5274 2000-03-24 Andrew Haley <aph@cygnus.com>
5276 * Makefile.am: Add file addr2name.awk.
5277 * Makefile.in: Rebuilt.
5278 * addr2name.awk: New file.
5279 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5281 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5284 2000-03-22 Andrew Haley <aph@cygnus.com>
5286 * configure.host: Add -funwind-tables for IA64.
5287 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5288 * Makefile.in: Rebuilt.
5289 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5290 * sysdep/ia64.c: New file.
5291 * sysdep/ia64-frame.h: New file.
5292 * configure.in: Add sysdep/ia64.c for ia64.
5293 * configure: Rebuilt.
5295 2000-03-17 Andrew Haley <aph@cygnus.com>
5297 * java/lang/natString.cc: Remove `register' keyword.
5298 interpret.cc: ditto.
5300 2000-03-16 Andrew Haley <aph@cygnus.com>
5302 * configure.host (ia64): Enable interpreter.
5304 2000-03-14 Hans Boehm <boehm@acm.org>
5306 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5308 2000-03-14 Andrew Haley <aph@cygnus.com>
5310 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5313 2000-03-10 Andrew Haley <aph@cygnus.com>
5315 * java/lang/ieeefp.h: Import latest version from fdlibm.
5317 2000-03-14 Andrew Haley <aph@cygnus.com>
5319 * prims.cc (_Jv_ThrowSignal): New function.
5320 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5322 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5323 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5324 * include/ppc-signal.h: New file.
5326 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5328 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5329 * java/lang/natThread.java (initialize_native): Cast `data' to
5331 * gnu/gcj/RawData.java: Clarify documentation.
5333 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5334 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5335 `jarFile', not `jarFileURL'.
5337 2000-05-15 Andrew Haley <aph@cygnus.com>
5339 * include/ppc-signal.h: New file.
5341 2000-05-11 Tom Tromey <tromey@cygnus.com>
5343 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5344 file headers, don't include `size' in the skip call.
5346 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5348 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5349 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5351 (replace): Reimplemented. Fix javadoc.
5352 (reverse): Call ensureCapacity_unsynchronized().
5353 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5355 (replace): Calculate length for arraycopy() correctly.
5357 2000-05-09 Tom Tromey <tromey@cygnus.com>
5359 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5361 (insert(int,char[],int,int): New method.
5362 (delete): New method from Classpath.
5363 (deleteCharAt): Likewise.
5364 (substring): Likewise.
5365 (shared): No longer private.
5366 Added JavaDoc comments from Classpath.
5367 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5370 2000-05-07 Tom Tromey <tromey@cygnus.com>
5372 * Makefile.in: Rebuilt.
5373 * Makefile.am (LIBLINK): New macro.
5374 (libgcj_la_LINK): Use it.
5375 (libgcjawt_la_LINK): Likewise.
5377 2000-05-06 Tom Tromey <tromey@cygnus.com>
5379 * Makefile.in: Rebuilt.
5380 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5382 2000-05-05 Tom Tromey <tromey@cygnus.com>
5384 Fix for PR libgcj/220:
5385 * Makefile.in: Rebuilt.
5386 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5387 (jv_convert_LDFLAGS): Likewise.
5388 (libgcj_la_LDFLAGS): Likewise.
5389 (GCJLINK): New macro.
5390 (jv_convert_LINK): Use it.
5391 (gij_LINK): Likewise.
5392 (libgcj_la_LINK): New macro.
5393 (libgcjawt_la_LINK): Likewise.
5395 2000-05-04 Tom Tromey <tromey@cygnus.com>
5397 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5399 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5403 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5405 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5406 (_Jv_IsAssignableFrom): Ditto.
5407 (_Jv_IsInstanceOf): Ditto.
5408 (_Jv_CheckCast): Ditto.
5409 (_Jv_CheckArrayStore): Ditto.
5410 * java/lang/Class.h (_Jv_InitClass): Ditto.
5411 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5416 (_Jv_MonitorExit): Ditto.
5417 * boehm.cc (_Jv_MarkObj): Ditto.
5418 (_Jv_MarkObj): Ditto.
5419 (_Jv_MarkArray): Ditto.
5420 * prims.cc (_Jv_AllocObject): Ditto.
5421 (_Jv_NewObjectArray): Ditto.
5422 (_Jv_NewPrimArray): Ditto.
5423 (_Jv_Malloc): Ditto.
5424 (_Jv_Realloc): Ditto.
5425 (_Jv_MallocUnchecked): Ditto.
5431 2000-05-04 Tom Tromey <tromey@cygnus.com>
5433 * java/util/Locale.java (Locale): Don't explicitly check for
5435 * java/util/Hashtable.java (containsKey): Don't explicitly check
5438 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5440 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5442 * java/text/StringCharacterIterator.java
5443 (StringCharacterIterator): Don't check for null.
5444 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5446 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5447 check for null pointer.
5448 (leaveGroup): Likewise.
5449 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5451 (setData): Likewise.
5452 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5455 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5457 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5458 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5459 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5460 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5461 -rpath for in-gcc builds.
5462 * Makefile.in: Rebuilt.
5464 2000-04-28 Tom Tromey <tromey@cygnus.com>
5466 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5469 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5471 * libjava/java/lang/String.java (toString): Remove `final' hack.
5473 2000-04-05 Tom Tromey <tromey@cygnus.com>
5475 Runtime support for PR gcj/2:
5476 * prims.cc (_Jv_ThrowNullPointerException): New function.
5477 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5479 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5481 * prims.cc (_Jv_NewObjectArray): Fix typo.
5483 2000-04-26 Tom Tromey <tromey@cygnus.com>
5485 * Makefile.in: Rebuilt.
5486 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5488 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5490 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5493 2000-04-22 Anthony Green <green@cygnus.com>
5495 * include/jvm.h (__builtin_expect): Define as unused for now.
5496 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5500 (_Jv_MonitorExit): Ditto.
5501 * boehm.cc (_Jv_MarkObj): Ditto.
5502 (_Jv_MarkObj): Ditto.
5503 (_Jv_MarkArray): Ditto.
5504 (_Jv_AllocBytes): Ditto.
5505 * prims.cc (_Jv_AllocObject): Ditto.
5506 (_Jv_NewObjectArray): Ditto.
5507 (_Jv_NewPrimArray): Ditto.
5508 (_Jv_Malloc): Ditto.
5509 (_Jv_Realloc): Ditto.
5510 (_Jv_MallocUnchecked): Ditto.
5516 * include/Makefile.in: Rebuilt.
5517 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5519 2000-04-21 Tom Tromey <tromey@cygnus.com>
5521 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5522 Yet another new version from Classpath.
5524 Fix for PR libgcj/15:
5525 * java/util/natGregorianCalendar.cc (_REENTRANT,
5526 _POSIX_PTHREAD_SEMANTICS): Don't define.
5527 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5528 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5530 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5532 * configure: Rebuilt.
5533 * configure.in: If using POSIX threads, define _REENTRANT if
5534 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5535 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5537 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5538 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5539 version from Classpath.
5541 Fix for PR libgcj/213:
5542 * Makefile.in: Rebuilt.
5543 * Makefile.am (gij_SOURCES): Added gij.cc.
5544 (EXTRA_gij_SOURCES): Removed.
5545 (gij_LDADD): Removed gij.lo.
5546 (gij_DEPENDENCIES): Likewise.
5547 ($(gij_OBJECTS)): Depend on nat_headers.
5549 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5550 `setURL', not `url.set'.
5552 2000-04-20 Tom Tromey <tromey@cygnus.com>
5554 Fix for PR java.io/204:
5555 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5556 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5559 Fix for PR libgcj/212:
5560 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5561 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5562 * java/lang/Class.h (_Jv_word): Declare.
5564 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5566 2000-04-19 Tom Tromey <tromey@cygnus.com>
5568 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5569 doesn't have a loader.
5571 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5573 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5574 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5576 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5578 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5580 (available): Initialize `where' to prevent bogus compiler warning.
5582 2000-04-12 Tom Tromey <tromey@cygnus.com>
5584 * java/lang/natString.cc (intern): Temporarily disable finalizer
5587 * java/lang/natString.cc (unintern): Added `obj' argument.
5588 (intern): Register finalizer for string.
5589 * java/lang/String.java (unintern): Now static; added obj
5592 2000-04-11 Tom Tromey <tromey@cygnus.com>
5594 * java/util/Vector.java (VectorEnumeration): Now `final'.
5595 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5596 (HashtableEnumeration): Likewise.
5597 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5598 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5600 2000-04-10 Warren Levy <warrenl@cygnus.com>
5602 * java/io/ObjectStreamException.java: New file.
5603 * java/io/OptionalDataException.java: New file.
5604 * java/io/StreamCorruptedException.java: New file.
5605 * java/math/BigDecimal.java: New file.
5606 * java/sql/CallableStatement.java: New file.
5607 * java/sql/Connection.java: New file.
5608 * java/sql/DataTruncation.java: New file.
5609 * java/sql/DatabaseMetaData.java: New file.
5610 * java/sql/Date.java: New file.
5611 * java/sql/Driver.java: New file.
5612 * java/sql/DriverManager.java: New file.
5613 * java/sql/DriverPropertyInfo.java: New file.
5614 * java/sql/PreparedStatement.java: New file.
5615 * java/sql/ResultSet.java: New file.
5616 * java/sql/ResultSetMetaData.java: New file.
5617 * java/sql/SQLException.java: New file.
5618 * java/sql/SQLWarning.java: New file.
5619 * java/sql/Statement.java: New file.
5620 * java/sql/Time.java: New file.
5621 * java/sql/Timestamp.java: New file.
5622 * java/sql/Types.java: New file.
5623 * Makefile.am: Added above new files.
5624 * Makefile.in: Rebuilt.
5626 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5627 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5628 DatagramSocket constructor instead of null.
5630 2000-04-08 Anthony Green <green@cygnus.com>
5632 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5635 2000-04-08 Anthony Green <green@cygnus.com>
5637 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5638 (_Jv_MutexUnlock): Ditto.
5639 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5640 (_Jv_MutexUnlock): Ditto.
5642 2000-04-08 Anthony Green <green@cygnus.com>
5644 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5645 (ensureCapacity_unsynchronized): New private method.
5646 (append): Use ensureCapacity_unsynchronized.
5648 2000-04-08 Tom Tromey <tromey@cygnus.com>
5650 * Makefile.in: Rebuilt.
5651 * Makefile.am (awt_java_source_files): Added new files.
5652 * java/awt/IllegalComponentStateException.java: New file.
5653 * java/awt/ItemSelectable.java: New file.
5654 * java/awt/event/WindowEvent.java: Finished.
5655 * java/awt/event/TextEvent.java: Finished.
5656 * java/awt/event/ContainerEvent.java: New file.
5657 * java/awt/Component.java (getX, getY): New methods.
5658 * java/awt/event/PaintEvent.java: New file.
5659 * java/awt/event/MouseEvent.java: New file.
5660 * java/awt/ActiveEvent.java: New file.
5661 * java/awt/event/KeyEvent.java: Finished.
5662 * java/awt/event/ItemEvent.java: New file.
5663 * java/awt/Adjustable.java: New file.
5664 * java/awt/event/InputMethodEvent.java: New file.
5665 * java/awt/event/InputEvent.java: Finished.
5666 * java/awt/event/FocusEvent.java: New file.
5667 * java/awt/event/MouseMotionAdapter.java: New file.
5668 * java/awt/event/MouseAdapter.java: New file.
5669 * java/awt/event/KeyAdapter.java: New file.
5670 * java/awt/event/FocusAdapter.java: New file.
5671 * java/awt/event/ContainerAdapter.java: New file.
5672 * java/awt/event/ComponentEvent.java: Finished.
5673 * java/awt/event/AdjustmentEvent.java: New file.
5674 * java/awt/event/ComponentAdapter.java: New file.
5675 * java/awt/event/ActionEvent.java: Finished.
5676 * java/awt/event/MouseMotionListener.java: New file.
5677 * java/awt/event/MouseListener.java: New file.
5678 * java/awt/event/ItemListener.java: New file.
5679 * java/awt/event/InputMethodListener.java: New file.
5680 * java/awt/event/ContainerListener.java: New file.
5681 * java/awt/event/FocusListener.java: New file.
5682 * java/awt/event/ComponentListener.java: New file.
5683 * java/awt/event/AWTEventListener.java: New file.
5684 * java/awt/event/AdjustmentListener.java: New file.
5686 2000-04-08 Anthony Green <green@cygnus.com>
5688 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5689 check when we have to.
5691 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5694 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5697 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5698 inline hasMoreElements.
5700 2000-04-05 Tom Tromey <tromey@cygnus.com>
5702 * configure: Rebuilt.
5703 * configure.in: Recognize --enable-java-awt.
5704 (AWT): New conditional.
5705 * Makefile.in: Rebuilt.
5706 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5708 (libgcjawt_la_SOURCES): New macro.
5709 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5710 (libgcjawt_la_DEPENDENCIES): Likewise.
5711 (libgcjawt_la_LIBADD): Likewise.
5712 (libgcjawt_la_LDFLAGS): Likewise.
5713 (libgcj.zip): Depend on cond_java_awt_source_files
5714 (cond_awt_java_source_files): New macro.
5715 (MOSTLYCLEANFILES): Added awto_files.
5716 (awto_files): New macro. Use where javao_files used.
5717 (nat_headers): Use cond_awt_java_source_files.
5719 2000-04-04 Tom Tromey <tromey@cygnus.com>
5721 * Makefile.in: Rebuilt.
5722 * Makefile.am (awt_java_source_files): Added AWTException.java.
5723 * java/awt/AWTException.java: New file.
5725 2000-04-03 Tom Tromey <tromey@cygnus.com>
5727 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5728 commentary from Alex.
5730 * Makefile.in: Rebuilt.
5731 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5734 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5736 * configure: Rebuilt.
5737 * configure.in: Add --disable-jvmpi.
5738 * include/config.h.in: Rebuilt.
5739 * acconfig.h: Add ENABLE_JVMPI.
5741 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5742 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5743 (_Jv_JVMPI_Notify_THREAD_END): New define.
5744 (_Jv_JVMPI_Notify_THREAD_END): New define.
5745 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5746 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5747 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5749 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5752 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5753 (finish_): Generate JVMPI thread end events.
5754 (run_): Generate JVMPI thread start events.
5755 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5756 preloaded JNI library.
5757 Include JVMPI headers if necessary.
5758 (run): Generate JVMPI thread start events.
5760 * boehm.cc: Define GC_disable and GC_enable.
5761 (_Jv_DisableGC): New function.
5762 (_Jv_EnableGC): New function.
5763 (disable_gc_mutex): Declare.
5764 * nogc.cc (_Jv_DisableGC): New function.
5765 (_Jv_EnableGC): New function.
5767 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5768 (_Jv_JVMPI_Interface): Define.
5769 (jvmpiEnableEvent): New function.
5770 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5772 * include/jvmpi.h: New file.
5774 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5776 * Makefile.in: New #defines and friends for Thread.h.
5777 * Makefile.am: Ditto.
5778 * posix-threads.cc: (struct starter): Remove `object'.
5779 (_Jv_CondWait): Use interruptable condition variables and new
5780 recursive mutexes. New return codes on interrupt or non-ownership
5782 (_Jv_CondNotify): Ditto.
5783 (_Jv_CondNotifyAll): Ditto.
5784 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5785 the target thread by signaling its wait condition.
5786 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5787 not the starter struct. Initialize wait_mutex and wait_cond.
5788 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5790 (_Jv_MutexUnlock): Ditto.
5791 (really_start): Set info->data->thread from pthread_self() to work
5792 around a race condition. Destroy wait_mutex and wait_cond when run()
5794 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5795 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5797 startable_flag: New private field.
5798 (Thread): Initialize `startable_flag'.
5799 (toString): Check for null thread group.
5800 * java/lang/natThread.cc: (struct natThread): New fields
5801 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5802 (class locker): Removed.
5803 (initialize_native): Initialize `join_cond' and `join_mutex'.
5804 (interrupt): Now just calls _Jv_ThreadInterrupt().
5805 (join): Simplified. Just wait on the target thread's join condition.
5806 (finish_): Remove join list code. Unset thread group. Signal
5807 potential joiners by notifying the dying threads join_cond.
5808 (start): Check for illegal restarts.
5809 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5811 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5812 #defines and #ifdefs.
5813 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5814 `wait_mutex', `next'.
5815 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5816 directly mapping to pthread_cond_t.
5817 (struct _Jv_Mutex_t): New recursive implementation.
5818 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5819 _Jv_HaveCondDestroy: Never define this for posix-threads.
5820 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5821 (_Jv_CondNotifyAll): Ditto.
5822 (_Jv_MutexLock): Ditto.
5823 (_Jv_MutexUnlock): Ditto.
5824 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5825 (_Jv_MutexDestroy): Ditto.
5826 (_Jv_CondDestroy): Removed.
5827 (_Jv_PthreadGetMutex): Removed.
5828 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5829 error. Add a FIXME about this.
5830 (_Jv_CondNotifyAll): Ditto.
5831 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5832 _JV_NOT_OWNER on other errors. Add FIXME.
5834 2000-03-26 Tom Tromey <tromey@cygnus.com>
5836 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5838 (call): Don't throw exception here.
5840 2000-03-26 Tom Tromey <tromey@cygnus.com>
5842 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5843 * interpret.cc: Use SIZEOF_VOID_P.
5844 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5845 (_Jv_loadLong): Likewise.
5846 (_Jv_storeDouble): Likewise.
5847 * configure: Rebuilt.
5848 * configure.in: Check size of void*.
5850 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5852 2000-03-26 Hans Boehm <boehm@acm.org>
5854 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5855 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5857 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5858 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5859 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5860 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5862 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5863 (FFI_RAW_SIZE): Likewise.
5864 (_Jv_InterpMethod::ncode): Use them.
5865 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5866 STORED): Define differently on a 64 bit machine.
5867 (continue1): Use ffi_java_raw_call when appropriate.
5869 2000-03-24 Warren Levy <warrenl@cygnus.com>
5871 * java/math/BigInteger.java(divide): Handle the special case when
5872 dividing by 1 and the high bit of the dividend is set.
5873 (setShiftRight): Handle case when count == 0.
5875 2000-03-24 Warren Levy <warrenl@cygnus.com>
5877 * java/awt/Font.java(isBold): Fix syntax error.
5879 * java/awt/Frame.java(postEvent): ditto.
5880 * java/awt/Menu.java(postEvent): ditto.
5881 * java/awt/MenuBar.java(postEvent): ditto.
5882 * java/awt/Toolkit.java(init): Included a stub.
5884 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5886 * java/awt/Event.java: Add all the event type constants.
5887 (Event): Implemented constructors.
5888 (controlDown): Implemented.
5889 (metaDown): Implemented.
5890 (paramString): Stubbed.
5891 (shiftDown): Implemented.
5892 (toString): Implemented.
5893 (translate): Implemented.
5895 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5897 * java/lang/natClass.cc (isInstance): Initialize `this'.
5898 (isAssignableFrom): Initialize `this' and `klass'.
5899 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5900 implemented by any loaded class, so return false.
5901 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5902 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5904 2000-03-19 Warren Levy <warrenl@cygnus.com>
5906 * java/awt/Color.java: Specified java.io for Serializable.
5907 * java/awt/Toolkit.java: Imported java.net.URL.
5909 2000-03-19 Warren Levy <warrenl@cygnus.com>
5911 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5913 2000-03-16 Warren Levy <warrenl@cygnus.com>
5915 * java/awt/Color.java: New file.
5916 * java/awt/Graphics.java: New file.
5917 * java/awt/Image.java: New file.
5918 * java/awt/Paint.java: New file.
5919 * java/awt/PaintContext.java: New file.
5920 * java/awt/Transparency.java: New file.
5921 * java/util/Collection.java: New file.
5922 * java/util/Comparator.java: New file.
5923 * java/util/Iterator.java: New file.
5924 * java/util/List.java: New file.
5925 * java/util/ListIterator.java: New file.
5926 * Makefile.am: Added above new files.
5927 * Makefile.in: Rebuilt.
5929 * java/awt/Font.java (PLAIN): New field.
5931 (ITALIC): New field.
5932 (ROMAN_BASELINE): New field.
5933 (CENTER_BASELINE): New field.
5934 (HANGING_BASELINE): New field.
5938 (pointSize): New field.
5939 (Font): Implemented constructor.
5940 (isPlain): Implemented method.
5941 (isBold): Implemented method.
5942 (isItalic): Implemented method.
5943 (getName): Implemented method.
5944 (getStyle): Implemented method.
5945 (getSize): Implemented method.
5946 (getSize2D): Implemented method.
5948 * java/awt/Frame.java (getFont): Stubbed.
5949 (postEvent): Stubbed.
5951 * java/awt/Menu.java (postEvent): Stubbed.
5952 * java/awt/MenuBar.java (getFont): Stubbed.
5953 (postEvent): Stubbed.
5954 * java/awt/Toolkit.java (getImage): Added abstract method.
5956 2000-03-15 Tom Tromey <tromey@cygnus.com>
5958 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5960 * prims.cc (win32_exception_handler): Reformatted.
5962 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5963 (_Jv_HaveMutexDestroy): Likewise.
5965 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5967 * java/io/natFileDescriptorWin32.cc: New file.
5968 * java/io/natFileWin32.cc: New file.
5969 * java/net/natInetAddress.cc: Added conditional inclusion of
5970 Windows / Winsock headers.
5971 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5972 inclusion of Windows / Winsock headers.
5973 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5974 Windows / Winsock headers.
5975 * include/win32-signal.h: New file.
5976 * include/win32-threads.h: New file.
5977 * win32-threads.cc: New file.
5978 * exception.cc (win32_get_restart_frame): New function.
5979 * prims.cc (win32_exception_handler): New function.
5980 (main_init) Performs Winsock initialisation.
5981 (main_init) Installs exeception handler.
5983 2000-03-14 Tom Tromey <tromey@cygnus.com>
5985 * jni.cc (mangled_name): Fixed assertion.
5986 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5987 turned assert into actual failure.
5989 2000-03-09 Warren Levy <warrenl@cygnus.com>
5991 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5992 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5993 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5995 2000-03-09 Warren Levy <warrenl@cygnus.com>
5997 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5998 * java/security/DigestException.java: New file.
5999 * java/security/GeneralSecurityException.java: New file.
6000 * java/security/InvalidAlgorithmParameterException.java: New file.
6001 * java/security/InvalidKeyException.java: New file.
6002 * java/security/InvalidParameterException.java: New file.
6003 * java/security/Key.java: New file.
6004 * java/security/KeyException.java: New file.
6005 * java/security/KeyPair.java: New file.
6006 * java/security/KeyPairGenerator.java: New file.
6007 * java/security/KeyPairGeneratorSpi.java: New file.
6008 * java/security/NoSuchProviderException.java: New file.
6009 * java/security/PrivateKey.java: New file.
6010 * java/security/Provider.java: New file.
6011 * java/security/PublicKey.java: New file.
6012 * java/security/SecureRandom.java: New file.
6013 * java/security/Security.java: New file.
6014 * java/security/Signature.java: New file.
6015 * java/security/SignatureException.java: New file.
6016 * java/security/interfaces/DSAKey.java: New file.
6017 * java/security/interfaces/DSAParams.java: New file.
6018 * java/security/interfaces/DSAPrivateKey.java: New file.
6019 * java/security/interfaces/DSAPublicKey.java: New file.
6020 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6021 * java/security/interfaces/RSAPrivateKey.java: New file.
6022 * java/security/interfaces/RSAPublicKey.java: New file.
6023 * java/security/spec/AlgorithmParameterSpec.java: New file.
6024 * java/security/spec/InvalidKeySpecException.java: New file.
6025 * java/security/spec/InvalidParameterSpecException.java: New file.
6026 * java/security/spec/KeySpec.java: New file.
6027 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6028 * java/security/spec/RSAPrivateKeySpec.java: New file.
6029 * java/security/spec/RSAPublicKeySpec.java: New file.
6030 * Makefile.am: Added above java.security files.
6031 * Makefile.in: Rebuilt.
6033 * java/security/MessageDigest.java: Rewritten.
6034 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6036 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6040 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6042 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6043 _Jv_PrepareConstantTimeTables.
6044 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6045 classes should have an IDT, so don't return if klass is an array
6048 2000-03-08 Tom Tromey <tromey@cygnus.com>
6050 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6051 of `void' to be created.
6053 2000-03-08 Warren Levy <warrenl@cygnus.com>
6055 * java/math/BigInteger.java(signum): Handle zero properly.
6057 2000-03-07 Tom Tromey <tromey@cygnus.com>
6059 * All files: Updated copyright information.
6060 * COPYING: New file.
6061 * COPYING.LIB: Removed.
6062 * LIBGCJ_LICENSE: We now use GPL + special exception.
6064 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6066 * resolve.cc (_Jv_SearchMethodInClass): New function.
6067 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6068 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6070 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6072 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6073 (struct _Jv_ifaces): New declaration.
6074 JV_CLASS: New macro definition.
6075 (getComponentType): Relocate below isArray() for inlining.
6076 (getModifiers): Declare `inline'.
6077 (getSuperclass): Ditto.
6079 (isPrimitive): Ditto.
6080 (_Jv_IsAssignableFrom): New prototype.
6081 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6083 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6084 Check for JV_STATE_DONE before invoking initializeClass().
6085 (_Jv_PrepareConstantTimeTables): New prototype.
6086 (_Jv_GetInterfaces): Ditto.
6087 (_Jv_GenerateITable): Ditto.
6088 (_Jv_GetMethodString): Ditto.
6089 (_Jv_AppendPartialITable): Ditto.
6090 (_Jv_FindIIndex): Ditto.
6091 depth, ancestors, idt: New class fields.
6093 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6094 inline function `_Jv_IsAssignableFrom'. Use that function.
6095 (isInstance): Declare `inline'.
6096 (initializeClass): Get lock on class before checking `state'. Unlock
6097 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6099 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6100 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6101 class->depth and ancestor table.
6102 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6103 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6104 _Jv_IsAssignableFrom.
6105 (_Jv_CheckArrayStore): Ditto.
6106 (_Jv_LookupInterfaceMethodIdx): New function.
6107 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6108 (_Jv_PrepareConstantTimeTables): New function.
6109 (_Jv_IndexOf): Ditto.
6110 (_Jv_GetInterfaces): Ditto.
6111 (_Jv_GenerateITable): Ditto.
6112 (_Jv_GetMethodString): Ditto.
6113 (_Jv_AppendPartialITable): Ditto.
6114 iindex_mutex, iindex_mutex_initialized: New static fields.
6115 (_Jv_FindIIndex): New function.
6117 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6119 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6120 (_Jv_CheckArrayStore): Ditto.
6121 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6122 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6123 Moved to gcj/array.h.
6124 (_Jv_Realloc): New function.
6126 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6128 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6129 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6130 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6131 JvNewDoubleArray): Implementations moved from prims.cc and
6134 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6136 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6138 2000-03-06 Tom Tromey <tromey@cygnus.com>
6140 * jni.cc (MARK_NONE): New define.
6141 (MARK_USER): Likewise.
6142 (MARK_SYSTEM): Likewise.
6143 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6145 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6146 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6147 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6148 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6150 (call): Use MARK_SYSTEM.
6151 (_Jv_GetJNIEnvNewFrame): New function.
6152 (_Jv_LookupJNIMethod): New function.
6153 (_Jv_JNI_PopSystemFrame): New function.
6154 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6156 2000-03-05 Tom Tromey <tromey@cygnus.com>
6158 Fix for PR libgcj/43:
6159 * include/Makefile.in: Rebuilt.
6160 * include/Makefile.am (include_HEADERS): New define.
6162 2000-03-05 Anthony Green <green@redhat.com>
6164 * gcj/javaprims.h ("Java"): Remove FirstThread.
6166 * configure.host: Fix __NO_MATH_INLNES botch.
6168 * Makefile.in: Rebuilt.
6169 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6170 (gnu/gcj/runtime/FirstThread.h): Moved.
6171 (ordinary_java_source_files): Move FirstThread.java.
6172 * prims.cc: Deal with FirstThread movement.
6174 (_Jv_RunMain): Ditto.
6176 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6177 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6179 2000-03-05 Warren Levy <warrenl@cygnus.com>
6181 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6182 Handle null addresses.
6184 2000-03-04 Anthony Green <green@redhat.com>
6186 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6189 2000-03-04 Anthony Green <green@redhat.com>
6191 * configure: Rebuilt.
6192 * configure.in (ZLIBTESTSPEC): New macro.
6193 (GCTESTSPEC): New macro.
6194 (LIBGCJTESTSPEC): New macro.
6195 * libgcj-test.spec.in: New file.
6197 2000-03-02 Tom Tromey <tromey@cygnus.com>
6199 * include/java-interp.h: Don't include MethodInvocation.h.
6200 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6201 * Makefile.in: Rebuilt.
6202 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6203 (ordinary_java_source_files): Don't mention
6204 MethodInvocation.java.
6205 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6206 * interpret.cc (MethodInvocation::continue1): Removed.
6207 (run): Handle exceptions here.
6208 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6210 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6212 (defineClass2): Removed.
6214 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6216 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6218 (hack_call): Removed.
6220 * java/lang/Class.h (Class): Removed hackRunInitializers,
6222 * java/lang/natClass.cc (hackRunInitializers): Removed.
6223 (initializeClass): Catch exceptions here.
6224 Include ExceptionInInitializerError.h.
6225 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6228 * java/lang/Object.h (Object): Don't mention hack12_6.
6229 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6231 * java/lang/Object.java (hack12_6): Removed.
6233 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6234 (start): Use run_, not run__.
6235 * java/lang/Thread.java (run_): Renamed from run__; old run_
6238 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6239 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6240 (_Jv_JNI_DefineClass): Likewise.
6241 (_Jv_JNI_ThrowNew): Likewise.
6242 (_Jv_JNI_AllocObject): Likewise.
6243 (_Jv_JNI_GetAnyMethodID): Likewise.
6244 (_Jv_JNI_CallAnyMethodV): Likewise.
6245 (_Jv_JNI_CallAnyMethodA): Likewise.
6246 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6247 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6248 (_Jv_JNI_GetAnyFieldID): Likewise.
6249 (_Jv_JNI_NewString): Likewise.
6250 (_Jv_JNI_NewStringUTF): Likewise.
6251 (_Jv_JNI_GetStringUTFChars): Likewise.
6252 (_Jv_JNI_NewObjectArray): Likewise.
6253 (_Jv_JNI_NewPrimitiveArray): Likewise.
6254 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6255 (_Jv_JNI_GetStringRegion): Likewise.
6256 (_Jv_JNI_GetStringUTFRegion): Likewise.
6257 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6258 (_Jv_JNI_MonitorEnter): Likewise.
6259 (_Jv_JNI_MonitorExit): Likewise.
6260 (_Jv_JNI_ToReflectedField): Likewise.
6261 (_Jv_JNI_ToReflectedMethod): Likewise.
6262 (_Jv_JNI_RegisterNatives): Likewise.
6263 (_Jv_JNI_AttachCurrentThread): Likewise.
6264 (_Jv_JNI_DestroyJavaVM): Likewise.
6266 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6268 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6269 error caused by the incorrect casting of a long to an int.
6271 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6273 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6274 SIGSEV caused by use of the wrong instance variable.
6276 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6278 * java/io/File.java (File(String, String)): For dirPath, treat an
6279 empty String the same as `null'.
6281 2000-02-26 Anthony Green <green@cygnus.com>
6283 * gnu/gcj/io/MimeTypes.java: Test for null.
6285 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6286 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6288 * java/net/URLConnection.java: Update copyright notice.
6290 2000-02-25 Tom Tromey <tromey@cygnus.com>
6292 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6295 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6297 * java/net/URLConnection.java (initializeDateFormats): New
6299 (getHeaderFieldDate): Call initializeDateFormats if required.
6300 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6302 Fix for PR libgcj/38.
6304 2000-02-24 Warren Levy <warrenl@cygnus.com>
6306 * java/math/BigInteger.java(ival): Made private.
6310 2000-02-20 Anthony Green <green@cygnus.com>
6312 * Makefile.in: Rebuilt.
6313 * Makefile.am (ordinary_java_source_files): Add
6314 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6316 * scripts/MakeDefaultMimeTypes.java: New file.
6317 * scripts/mime.types: New file.
6318 * scripts/classes.pl: Moved from top level.
6319 * classes.pl: Moved to scripts directory.
6321 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6323 * gnu/gcj/io/MimeTypes.java: New file.
6324 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6326 2000-02-20 Tom Tromey <tromey@cygnus.com>
6328 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6330 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6332 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6335 2000-02-18 Tom Tromey <tromey@cygnus.com>
6337 * include/jvm.h (_Jv_GetJavaVM): Declare.
6338 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6339 (_Jv_MethodBase::get_method): New method.
6340 (_Jv_JNIMethod::set_function): New method.
6341 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6342 (_Jv_JNI_RegisterNatives): New function.
6343 (_Jv_JNIFunctions): Updated for new functions.
6344 (_Jv_GetJavaVM): New function.
6345 (_Jv_JNI_GetJavaVM): Use it. Now static.
6346 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6347 is already a Java thread but does not have a JNIEnv yet.
6349 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6352 2000-02-17 Tom Tromey <tromey@cygnus.com>
6354 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6357 2000-02-16 Tom Tromey <tromey@cygnus.com>
6359 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6361 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6362 (_Jv_JNI_NewObject): Likewise.
6363 (_Jv_JNI_NewObjectA): Likewise.
6364 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6365 as "return" type to _Jv_CallAnyMethodA.
6366 (_Jv_JNI_CallAnyMethodA): Likewise.
6367 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6369 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6372 2000-02-15 Tom Tromey <tromey@cygnus.com>
6374 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6376 (init_cif): Added `rtype_p' argument.
6377 * include/java-interp.h (class _Jv_MethodBase): Added
6379 (class _Jv_InterpMethod): Removed args_raw_size.
6380 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6381 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6382 class pointer as well as the ordinary arguments.
6384 * jni.cc (mangled_name): Skip leading `(' in signature.
6386 * jni.cc (add_char): Added missing `else'.
6388 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6391 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6395 * java/lang/natRuntime.cc (_load): Include library path with
6398 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6401 * java/lang/natThread.cc (dumpStack): Removed.
6402 * java/lang/Thread.java (dumpStack): Implemented.
6404 2000-02-15 Tom Tromey <tromey@cygnus.com>
6406 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6407 with `lib' for loadLibrary. Fixes PR gcj/150.
6409 2000-02-14 Warren Levy <warrenl@cygnus.com>
6411 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6413 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6417 (modPow): Rewritten to not use the naive, slow, brute force approach.
6418 (isProbablePrime): Implemented.
6419 (testBit): Implemented.
6420 (flipBit): Implemented.
6421 (getLowestSetBit): Implemented.
6423 2000-02-16 Anthony Green <green@redhat.com>
6425 * configure.host: Use the same options for i386 and i486 as we do
6428 2000-02-12 Tom Tromey <tromey@cygnus.com>
6430 * java/io/File.java (createTempFile): Use low bits from counter,
6433 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6435 * THANKS: More thanks.
6437 2000-02-11 Tom Tromey <tromey@cygnus.com>
6439 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6440 astore instruction. From Hans Boehm.
6442 2000-02-11 Warren Levy <warrenl@cygnus.com>
6444 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6445 (BigInteger(String)): New constructor.
6446 (not): Rewritten using version from Kawa's BitOps class.
6447 (valueOf): New private methods from Kawa's BitOps class.
6454 (andNot): Implemented.
6455 (clearBit): Implemented.
6456 (setBit): Implemented.
6457 (bitCount): Implemented.
6458 (toByteArray): Implemented.
6460 2000-02-11 Tom Tromey <tromey@cygnus.com>
6462 * java/io/File.java (nextValue): Now synchronized.
6464 2000-02-10 Tom Tromey <tromey@cygnus.com>
6466 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6467 * java/io/FileDescriptor.java (EXCL): New static field.
6468 * java/io/File.java (tmpdir): New static field.
6469 (createTempFile): New method.
6470 (nextValue): New method.
6471 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6474 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6475 (jboolean): Declare as an attributed int, not a bool.
6476 (_Jv_func): Declare differently for C.
6478 * gnu/gcj/jni/natNativeThread.cc: New file.
6479 * gnu/gcj/jni/NativeThread.java: New file.
6480 * java/lang/Thread.java (data): Now a RawData.
6481 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6483 * Makefile.in: Rebuilt.
6484 * Makefile.am (java/lang/Thread.h): New target.
6485 (ordinary_java_source_files): Added NativeThread.java.
6486 (nat_source_files): Added natNativeThread.cc.
6487 * java/lang/natThread.cc: Include <jni.h>
6488 (struct natThread): Added `jni_env' field.
6489 (_Jv_GetCurrentJNIEnv): New function.
6490 (_Jv_SetCurrentJNIEnv): Likewise.
6491 (initialize_native): Initialize jni_env.
6493 * jni.cc (ThreadGroupClass): New define.
6494 (_Jv_JNI_InvokeFunctions): New structure.
6495 (JNI_GetCreatedJavaVMs): New function.
6496 (the_vm): New global.
6497 (JNI_GetDefaultJavaVMInitArgs): New function.
6498 Include NativeThread.h.
6499 (NativeThreadClass): New define.
6500 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6501 (_Jv_JNI_DestroyJavaVM): New function.
6502 (_Jv_JNI_AttachCurrentThread): New function.
6503 (_Jv_JNI_DetachCurrentThread): New function.
6504 (_Jv_JNI_GetEnv): New function.
6505 (JNI_CreateJavaVM): New function.
6506 (_Jv_JNI_GetJavaVM): New function.
6507 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6508 * include/jni.h (JavaVMAttachArgs): New structure.
6509 (JNI_EDETACHED): New define.
6510 (JNI_EVERSION): Likewise.
6511 (JavaVM): Define properly.
6512 (struct JNIInvokeInterface): New structure.
6513 (class _Jv_JavaVM): New class.
6514 (JNI_OnLoad, JNI_OnUnload): Declare.
6515 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6516 JNI_GetCreatedJavaVMs): Declare.
6517 (JavaVMInitArgs): New typedef.
6518 (JavaVMOption): Likewise.
6519 (JNI_ERR): New define.
6522 2000-02-10 Andrew Haley <aph@cygnus.com>
6524 * interpret.cc: Don't include fdlibm.h.
6525 Replace #if with #ifdef throughout.
6526 Declare extern __ieee754_fmod.
6527 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6529 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6530 Search class hierarchy for superclass vtable.
6532 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6533 off the end of a pointer list.
6535 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6539 2000-02-09 Tom Tromey <tromey@cygnus.com>
6541 * java/lang/natRuntime.cc (_load): Call add_library.
6542 (loadLibraryInternal): Likewise.
6544 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6545 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6546 (Output_iconv::finalize): Likewise.
6548 2000-02-08 Tom Tromey <tromey@cygnus.com>
6550 * java/util/Properties.java (setProperty): New method.
6551 (store): New method.
6553 2000-02-07 Tom Tromey <tromey@cygnus.com>
6555 * java/lang/Runtime.java (_load): Declare.
6556 (load, loadLibrary): Wrote in terms of _load.
6557 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6559 (loadLibrary): Likewise.
6561 (_load): New method.
6562 (loadLibrary, load): Removed.
6564 * jni.cc (ThrowableClass): New define.
6565 (_Jv_JNI_Throw): Check argument.
6566 (_Jv_JNI_ThrowNew): Likewise.
6567 (wrap_value): Don't wrap object if it is NULL.
6568 (_Jv_JNI_DefineClass): Use wrap_value.
6569 (_Jv_JNI_FindClass): Likewise.
6570 (_Jv_JNI_GetSuperclass): Likewise.
6571 (_Jv_JNI_ExceptionOccurred): Likewise.
6572 (_Jv_JNI_AllocObject): Likewise.
6573 (_Jv_JNI_GetObjectClass): Likewise.
6574 (_Jv_JNI_NewString): Likewise.
6575 (_Jv_JNI_NewStringUTF): Likewise.
6576 (_Jv_JNI_NewObjectArray): Likewise.
6577 (_Jv_JNI_GetObjectArrayElement): Likewise.
6578 (_Jv_JNI_NewPrimitiveArray): Likewise.
6579 (_Jv_JNI_ToReflectedField): Likewise.
6580 (_Jv_JNI_ToReflectedMethod): Likewise.
6581 (_Jv_JNI_AllocObject): Check argument.
6582 (_Jv_JNI_NewObjectV): Likewise.
6583 (_Jv_JNI_NewObject): Likewise.
6584 (_Jv_JNI_NewObjectA): Likewise.
6585 (_Jv_JNI_GetObjectClass): Likewise.
6586 (_Jv_JNI_GetField): Likewise.
6587 (_Jv_JNI_SetField): Likewise.
6589 * interpret.cc (PUSHL): Don't use expression statement.
6594 * jni.cc (add_char): Conditional on INTERPRETER.
6595 (mangled_name): Likewise.
6597 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6599 (class _Jv_JNIMethod): Likewise.
6601 2000-02-04 Warren Levy <warrenl@cygnus.com>
6603 * Makefile.am: Added MPN.java and BigInteger.java.
6604 * Makefile.in: Rebuilt.
6605 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6607 * java/math/BigInteger.java: New file. Based primarily on
6608 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6610 2000-02-04 Tom Tromey <tromey@cygnus.com>
6612 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6614 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6615 if the method is native.
6616 * resolve.cc (ncode): Don't handle native methods.
6617 (_Jv_JNIMethod::ncode): New method.
6618 (_Jv_PrepareClass): Handle native methods.
6619 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6620 Include AbstractMethodError.h.
6621 (add_char): New function.
6622 (mangled_name): Likewise.
6623 * include/java-interp.h (class _Jv_JNIMethod): New class.
6624 (class _Jv_MethodBase): New class.
6625 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6626 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6629 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6630 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6631 libraries): New globals.
6632 (add_library): New function.
6633 (_Jv_FindSymbolInExecutable): New function.
6635 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6638 2000-02-04 Andrew Haley <aph@cygnus.com>
6640 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6641 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6642 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6643 printStackTrace to printRawStackTrace.
6645 2000-02-03 Tom Tromey <tromey@cygnus.com>
6647 * java/util/Calendar.java (toString): New method.
6648 * java/util/SimpleTimeZone.java (clone): New method.
6649 (toString): New method.
6650 * java/util/TimeZone.java (clone): New method.
6651 * java/text/SimpleDateFormat.java (clone): New method.
6652 * java/text/NumberFormat.java (clone): New method.
6653 (equals): New method.
6654 * java/text/Format.java (clone): New method.
6655 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6657 (clone): New method.
6658 * java/text/DateFormat.java (clone): New method.
6659 * java/text/Collator.java (clone): New method.
6661 2000-02-03 Tom Tromey <tromey@cygnus.com>
6663 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6666 2000-02-01 Tom Tromey <tromey@cygnus.com>
6668 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6669 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6670 constructing the closure if the function is native.
6671 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6672 a template function, #if'd out, or static.
6673 Include <java-interp.h>.
6675 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6677 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6679 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6680 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6682 (wrap_value): New function.
6683 (_Jv_JNI_CallAnyMethodV): Use it.
6684 (_Jv_JNI_CallAnyMethodA): Likewise.
6685 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6686 (_Jv_JNI_GetStaticField): Likewise.
6688 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6689 (_Jv_JNI_GetStaticField): Likewise.
6691 2000-01-31 Tom Tromey <tromey@cygnus.com>
6693 * prims.cc (_Jv_MallocUnchecked): New function.
6694 (main_init): Call _Jv_JNI_Init.
6695 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6696 (_Jv_JNI_Init): Declare.
6697 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6699 (_Jv_JNI_NewGlobalRef): New function.
6700 (_Jv_JNI_DeleteGlobalRef): New function.
6701 (_Jv_JNI_DeleteLocalRef): New function.
6702 (_Jv_JNI_conversion_call): Initialize and clear local reference
6704 (_Jv_JNI_NewLocalRef): New function.
6705 (struct _Jv_JNI_LocalFrame): New structure.
6706 (_Jv_JNI_PushLocalFrame): New function.
6707 (_Jv_JNI_EnsureLocalCapacity): New function.
6708 (FRAME_SIZE): New define.
6709 (_Jv_JNI_GetStringChars): Mark string, not characters.
6710 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6711 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6712 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6714 (_Jv_JNI_DefineClass): Make return value a local ref.
6715 (_Jv_JNI_FindClass): Likewise.
6716 (_Jv_JNI_GetSuperclass): Likewise.
6717 (_Jv_JNI_ExceptionOccurred): Likewise.
6718 (_Jv_JNI_AllocObject): Likewise.
6719 (_Jv_JNI_GetObjectClass): Likewise.
6720 (_Jv_JNI_CallAnyMethodV): Likewise.
6721 (_Jv_JNI_NewString): Likewise.
6722 (_Jv_JNI_NewStringUTF): Likewise.
6723 (_Jv_JNI_NewObjectArray): Likewise.
6724 (_Jv_JNI_GetObjectArrayElement): Likewise.
6725 (_Jv_JNI_ToReflectedField): Likewise.
6726 (_Jv_JNI_ToReflectedMethod): Likewise.
6727 (_Jv_JNIFunctions): Updated table for new functions.
6728 (_Jv_JNI_Init): New function.
6729 (mark_for_gc): Wrote.
6730 (unmark_for_gc): Wrote.
6731 * include/jni.h (struct JNINativeInterface): Removed name from
6732 PopLocalFrame parameter.
6733 (class _Jv_JNIEnv): Added `locals' field.
6735 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6737 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6740 2000-01-30 Tom Tromey <tromey@cygnus.com>
6742 * include/config.h.in: Rebuilt.
6743 * acconfig.h (HAVE_ICONV): Define.
6744 * configure: Rebuilt.
6745 * configure.in: Check for `iconv' function.
6746 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6747 no specific encoder exists.
6748 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6749 no specific encoder exists.
6750 * Makefile.in: Rebuilt.
6751 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6753 (nat_source_files): Added natIconv.cc.
6754 * gnu/gcj/convert/natIconv.cc: New file.
6755 * gnu/gcj/convert/Input_iconv.java: New file.
6756 * gnu/gcj/convert/Output_iconv.java: New file.
6758 2000-01-28 Tom Tromey <tromey@cygnus.com>
6760 * Makefile.in: Rebuilt.
6761 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6763 2000-01-26 Tom Tromey <tromey@cygnus.com>
6765 * gcj/method.h (JvNumMethods): Moved from Class.h.
6766 (JvGetFirstMethod): Likewise.
6767 * java/lang/Class.h (Object): Updated decl of
6768 _Jv_JNI_ToReflectedField.
6769 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6770 * Makefile.in: Rebuilt.
6771 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6772 argument of _Jv_JNI_ToReflectedField.
6773 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6775 (java/lang/reflect/Method.h): Likewise.
6776 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6778 (jweak): New typedef.
6779 (struct JNINativeInterface): Correctly declare remaining entries.
6780 * jni.cc: Include Class.h, ClassLoader.h.
6781 (_Jv_JNI_FindClass): New function.
6782 (_Jv_JNI_DefineClass): New function.
6783 (_Jv_JNI_conversion_call): New function.
6784 (_Jv_JNI_FindClass): Use current class loader to find class.
6785 (_Jv_JNI_ExceptionCheck): New function.
6786 (_Jv_JNI_FromReflectedField): Now static.
6787 (MethodClass): New define.
6788 (_Jv_JNI_FromReflectedMethod): New function.
6789 (_Jv_JNI_ToReflectedMethod): Likewise.
6791 (_Jv_JNI_IsAssignableFrom): Renamed.
6792 (_Jv_JNI_GetStringRegion): New function.
6793 Include StringIndexOutOfBoundsException.h.
6794 (_Jv_JNI_GetStringUTFRegion): New function.
6795 (_Jv_JNIFunctions): Updated for new functions.
6796 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6797 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6798 (_Jv_JNI_GetStringCritical): New function.
6799 (_Jv_JNI_ReleaseStringCritical): Likewise.
6800 (get_throwable): Removed.
6801 (GCJ_JV_JNIENV_FRIEND): Removed.
6802 (__GCJ_JNI_IMPL__): Define.
6805 * resolve.cc (get_ffi_type_from_signature): Handle case where
6808 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6810 * interpret.cc (run): Don't call println.
6811 Don't include PrintStream.h.
6813 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6814 nameIndex. Use "jint" as type for boffset.
6815 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6817 (Class): Likewise. Also changed type of method_count,
6818 vtable_method_count, size_in_bytes, field_count,
6819 static_field_count, interface_count.
6820 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6823 2000-01-21 Tom Tromey <tromey@cygnus.com>
6825 * java/lang/reflect/natConstructor.cc (newInstance): Use
6827 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6828 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6829 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6832 (invoke): Use _Jv_CallAnyMethodA.
6834 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6835 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6837 (struct _Jv_Method): Added getNextMethod method.
6838 (JvNumMethods): New function.
6839 (JvGetFirstMethod): Likewise.
6840 * gcj/field.h (JvGetFirstStaticField): New function.
6841 (JvNumStaticFields): Likewise.
6842 (getNextField): Renamed from getNextInstanceField.
6843 (struct _Jv_Field): New method getClass.
6844 * jni.cc: Wrote many new functions.
6845 * include/jni.h (JNI_TRUE): Define.
6846 (JNI_FALSE): Likewise.
6847 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6848 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6849 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6850 (jfieldID, jmethodID): Likewise.
6851 (JNI_COMMIT, JNI_ABORT): New defines.
6852 (JNINativeMethod): New struct.
6853 (struct JNINativeInterface): Correctly declared more entries.
6854 (class _Jv_JNIEnv): Added `ex' member.
6855 (JNI_VERSION_1_1): New define.
6856 (JNI_VERSION_1_2): Likewise.
6858 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6859 getNextInstanceField.
6861 2000-01-20 Tom Tromey <tromey@cygnus.com>
6863 * resolve.cc (StringClass): Removed.
6864 * defineclass.cc (StringClass): Removed.
6866 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6870 2000-01-19 Tom Tromey <tromey@cygnus.com>
6872 * interpret.cc (PC_REGISTER_ASM): Removed.
6874 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6875 From Bryce McKinlay.
6877 * All files: Updated copyright to reflect Cygnus purchase.
6879 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6881 * configure: Rebuilt.
6882 * configure.in: Recognize --disable-interpreter.
6884 2000-01-18 Andrew Haley <aph@cygnus.com>
6886 * name-finder.cc (lookup): Check for dladdr function.
6887 acconfig.h (HAVE_DLADDR): Add.
6888 configure.in: Check for HAVE_DLADDR
6890 include/config.h.in: Rebuilt.
6892 2000-01-17 Andrew Haley <aph@cygnus.com>
6894 * prims.cc (_Jv_RunMain): Set the name of this executable.
6896 2000-01-17 Tom Tromey <tromey@cygnus.com>
6898 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6899 when backtrace can't be computed.
6901 * configure: Rebuilt.
6902 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6904 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6905 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6906 (_Jv_FindClassInCache): Likewise.
6907 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6908 (findSystemClass): Try to load class from compiled module.
6910 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6911 (loadLibrary): Likewise.
6912 (lt_preloaded_symbols): Define.
6913 (loadLibraryInternal): New method.
6914 * include/config.h.in: Rebuilt.
6915 * acconfig.h (USE_LTDL): Added.
6916 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6917 (INCLUDES): Added $(INCLTDL).
6918 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6919 (libgcj_la_LIBADD): Likewise.
6920 * aclocal.m4, configure: Rebuilt.
6921 * configure.in: Added libltdl support.
6923 2000-01-15 Tom Tromey <tromey@cygnus.com>
6925 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6927 2000-01-14 Andrew Haley <aph@cygnus.com>
6929 * java/lang/natThrowable.cc: New file.
6931 * java/lang/Throwable.java (fillInStackTrace): Make native.
6932 (printStackTrace): Call native method to do this.
6933 (Throwable): Call fillInStackTrace.
6934 (stackTrace): New variable.
6936 * include/jvm.h: Add _Jv_ThisExecutable functions.
6938 * prims.cc: (_Jv_execName): New variable.
6939 (catch_segv): Call fillInStackTrace.
6941 (_Jv_ThisExecutable): New functions.
6942 (JvRunMain): Set the name of this executable.
6944 * Makefile.am: Add java/lang/natThrowable.cc.
6946 * Makefile.in: Rebuilt.
6948 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6950 * configure.in: Force link with __frame_state_for in
6951 FORCELIBGCCSPEC. Add new checks for backtrace.
6952 * include/config.h.in: Rebuilt.
6954 * name-finder.cc: New file.
6955 * include/name-finder.h: New file.
6957 2000-01-16 Anthony Green <green@cygnus.com>
6959 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6962 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6964 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6966 2000-01-13 Tom Tromey <tromey@cygnus.com>
6968 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6969 not system loader, as initiating loader.
6971 2000-01-11 Tom Tromey <tromey@cygnus.com>
6973 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6974 HP/UX. From David Scott Urban.
6976 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6978 * java/lang/natMath.cc (pow): Cast args to `double', not
6981 (IEEEremainder): Likewise.
6982 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6983 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6985 2000-01-09 Anthony Green <green@cygnus.com>
6987 * java/lang/natString.cc (init): Test for overflow condition
6988 during out of bounds check.
6989 (getChars): Throw StringIndexOutOfBoundsException, not
6990 ArrayIndexOutOfBoundsException.
6992 (regionMatches): Obey case option during string comparison.
6994 * configure.host (ligcj_interpreter): New variable. Enable
6995 interpreter by default on IA-32.
6996 * configure.in: Examine libgcj_interpreter.
6997 * configure: Rebuilt.
6999 2000-01-07 Tom Tromey <tromey@cygnus.com>
7001 * mauve-libgcj: Don't disable ClassTest.
7003 * java/lang/natClass.cc (getClasses): Wrote.
7005 2000-01-06 Tom Tromey <tromey@cygnus.com>
7007 * java/lang/natClass.cc (_getConstructors): Correctly check
7008 whether method name is the init name.
7009 (getMethod): Look at accflags on method in `klass', not `this'.
7011 2000-01-05 Tom Tromey <tromey@cygnus.com>
7013 * java/lang/natClass.cc (getMethod): Compute offset relative to
7014 `klass's methods table, not `this's table.
7016 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7017 In unwrapping/widening case, check whether `k' is null, not
7018 whether it is primitive. Initialize `num' from `argelts', not
7019 `paramelts'. Correct create and pass arguments to ffi_call.
7020 Don't let presence of `this' argument affect index used to look in
7022 (COPY): Set appropriate element in `values' vector.
7024 * java/lang/natClass.cc: Include <gcj/method.h>.
7026 * java/lang/Class.h (_getMethods): Correctly declare as private,
7029 * java/lang/Class.h (_getMethods): Declare.
7030 * java/lang/Class.java (_getMethods): Declare.
7031 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7032 (getDeclaredClasses): Always return empty array.
7033 (_getMethods): New method.
7034 (getMethods): Wrote.
7035 (getDeclaredMethod): Return `rmethod'.
7036 (finit_name): New global.
7037 (getDeclaredMethods): Check for finit_name.
7038 (_getMethods): Likewise.
7039 (getMethod): Only return public methods.
7041 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7042 jboolean and select correct ffi type on that basis.
7043 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7044 Constructor call always has `void' return type.
7046 2000-01-04 Tom Tromey <tromey@cygnus.com>
7048 * java/lang/Class.h (getSignature): Updated.
7049 * java/lang/Class.java (getSignature): Updated.
7050 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7052 (getConstructor): Ensure constructor is public.
7053 (_getConstructors): Check for public-ness of constructor when
7054 `declared' is false, not when it is true.
7056 2000-01-04 Warren Levy <warrenl@cygnus.com>
7058 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7060 (receive): Set the sender's address in the DatagramPacket.
7062 2000-01-04 Tom Tromey <tromey@cygnus.com>
7064 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7065 declaring class as return_type argument to
7066 _Jv_CallNonvirtualMethodA.
7067 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7068 constructor case, create object and use it as `this' argument.
7069 * java/lang/Class.h (_getConstructors): Declare.
7070 (_getFields): Declare.
7071 * java/lang/Class.java (getConstructors): Wrote.
7072 (_getConstructors): New native method.
7073 (getDeclaredConstructors): Wrote.
7074 (_getFields): Declare new native method.
7075 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7077 (getMethod): Work correctly when class is primitive.
7078 (getDeclaredMethods): Likewise. Compute offset using `method',
7080 (getDeclaredMethod): Likewise.
7081 (getConstructor): Wrote.
7082 (ConstructorClass): New define.
7083 (getDeclaredConstructor): Wrote.
7084 (_getConstructors): New method.
7085 (_getFields): New method.
7088 * Makefile.in: Rebuilt.
7089 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7091 * prims.cc: Remove `#pragma implementation'.
7092 * gcj/array.h: Remove `#pragma interface'.
7094 * prims.cc (_Jv_equaln): New function.
7095 * java/lang/Class.java (getSignature): Declare.
7096 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7097 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7099 (getSignature): New method.
7100 (getDeclaredMethod): Wrote.
7102 Include StringBuffer.h.
7103 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7104 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7106 (getSignature): Declare.
7107 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7108 (_Jv_equaln): Declare.
7109 (_Jv_CallNonvirtualMethodA): Declare.
7110 * Makefile.in: Rebuilt.
7111 * Makefile.am (nat_source_files): Added natConstructor.cc.
7112 (java/lang/reflect/Constructor.h): New target.
7113 * java/lang/reflect/natConstructor.cc: New file.
7114 * java/lang/reflect/Constructor.java (newInstance): Now native.
7115 (declaringClass): Renamed from decl_class.
7116 (offset): Renamed from index.
7117 (getType): New native method.
7118 (getModifiers): Now native.
7119 (getParameterTypes): Call getType if required.
7120 (hashCode): Include hash code from declaring class.
7121 (modifiers): Removed.
7122 (toString): Call getType if required.
7123 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7124 * java/lang/reflect/natMethod.cc (hack_call): New method.
7125 Removed `#if 0' around FFI code.
7126 Include <gnu/gcj/RawData.h>.
7127 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7128 IllegalArgumentException when argument object and class disagree.
7129 (_Jv_GetTypesFromSignature): New function.
7131 (ObjectClass): New define.
7132 (_Jv_CallNonvirtualMethodA): New function.
7133 * java/lang/reflect/Method.java (hack_trampoline): New method.
7134 (hack_call): New native method.