1 2001-07-23 Tom Tromey <tromey@redhat.com>
3 * gcj/javaprims.h: Rebuilt class list.
4 * Makefile.in: Rebuilt.
5 * Makefile.am (core_java_source_files): Added VMClassLoader.
6 * java/lang/VMClassLoader.java: New file.
7 * java/lang/Boolean.java: Merged with Classpath.
8 * java/lang/Byte.java: Merged with Classpath.
9 * java/lang/Integer.java: Merged with Classpath.
10 * java/lang/Long.java: Merged with Classpath.
11 * java/lang/Number.java: Merged with Classpath.
12 * java/lang/Short.java: Merged with Classpath.
14 2001-07-22 Jeff Sturm <jsturm@one-point.com>
16 * configure.host: Enable hash synchronization for alpha*-*.
17 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
19 * java/lang/natObject.cc (compare_and_swap, release_set,
20 compare_and_swap_release): Added inline functions for alpha.
22 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
25 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
26 back to old RFC 2133 variants if missing.
28 2001-07-18 Tom Tromey <tromey@redhat.com>
30 * java/io/natFileWin32.cc (_access): Renamed.
32 * java/io/natFile.cc (_access): Renamed.
34 * java/io/File.java (access, stat): Add leading `_' to name.
37 2001-07-18 Tom Tromey <tromey@redhat.com>
40 * libgcj.spec.in (*lib): Added LIBICONV.
42 * configure.in: Call AM_ICONV. Don't check for iconv function.
43 Add parameters to JV_HASH_SYNCHRONIZATION define.
44 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
46 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
48 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
49 not by setting its size field.
51 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
53 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
56 2001-07-12 Tom Tromey <tromey@redhat.com>
57 David Brownell <david-b@pacbell.net>
59 Fix for PR libgcj/3426:
60 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
62 (read): Throw exception if character conversion fails.
63 * java/io/BufferedInputStream.java (refill): Now package-private.
64 * java/io/InputStreamReader.java (ready): Simplified.
68 2001-07-12 Tom Tromey <tromey@redhat.com>
70 Report from Henner Zeller:
71 * java/io/FileOutputStream.java (FileOutputStream): Throw
72 FileNotFoundException, not IOException.
74 2001-07-10 Anthony Green <green@redhat.com>
76 * Makefile.in: Rebuilt.
77 * Makefile.am: Add new files.
78 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
79 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
80 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
81 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
82 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
83 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
84 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
85 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
86 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
87 org/w3c/dom/ranges/DocumentRange.java,
88 org/w3c/dom/ranges/Range.java,
89 org/w3c/dom/ranges/RangeException.java,
90 org/w3c/dom/traversal/DocumentTraversal.java,
91 org/w3c/dom/traversal/NodeFilter.java,
92 org/w3c/dom/traversal/NodeIterator.java,
93 org/w3c/dom/traversal/TreeWalker.java,
94 org/xml/sax/ext/DeclHandler.java,
95 org/xml/sax/ext/LexicalHandler.java,
96 org/xml/sax/helpers/AttributeListImpl.java,
97 org/xml/sax/helpers/AttributesImpl.java,
98 org/xml/sax/helpers/DefaultHandler.java,
99 org/xml/sax/helpers/LocatorImpl.java,
100 org/xml/sax/helpers/NamespaceSupport.java,
101 org/xml/sax/helpers/ParserAdapter.java,
102 org/xml/sax/helpers/ParserFactory.java,
103 org/xml/sax/helpers/XMLFilterImpl.java,
104 org/xml/sax/helpers/XMLReaderAdapter.java,
105 org/xml/sax/helpers/XMLReaderFactory.java,
106 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
107 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
108 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
109 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
110 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
111 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
112 org/xml/sax/SAXNotRecognizedException.java,
113 org/xml/sax/SAXNotSupportedException.java,
114 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
115 org/xml/sax/XMLReader.java: New files.
117 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
119 * Makefile.am: Added `java/lang/ThreadLocal.java'.
120 * Makefile.in: Regenerate.
121 * java/lang/ThreadLocal.java: Initial import.
123 2001-07-07 Jeff Sturm <jsturm@one-point.com>
125 * Makefile.am (libgcj.jar): Don't recursively make
126 built_java_source_files. Avoid long command lines.
127 Don't change to $(srcdir) to invoke javac.
128 (libgcj.la, libgcjx.la); Avoid long command lines.
129 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
130 * Makefile.in: Rebuilt.
132 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
134 * include/i386-signal.h: Don't do anything with unsigned divide
135 overflow except throw an exception.
137 2001-07-05 Tom Tromey <tromey@redhat.com>
140 * java/lang/Class.h (Class(void)): Now private. Removed
141 implementation. From dmorsberger@sensysdl.com.
143 2001-07-02 Tom Tromey <tromey@redhat.com>
145 Fix for PR bootstrap/3281:
146 * aclocal.m4, configure: Rebuilt.
147 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
148 Correctly compute libgcj_basedir.
149 (mkinstalldirs): Define and subst.
151 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
154 * java/io/LineNumberReader.java (reset): Pass correct arguments to
157 2001-06-27 Tom Tromey <tromey@redhat.com>
159 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
162 2001-06-25 Tom Tromey <tromey@redhat.com>
164 * scripts/encodings.pl: Generate lower-case names. Updated URL
165 for `character-sets' file.
166 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
168 Rebuilt list of aliases.
170 2001-06-25 Tom Tromey <tromey@redhat.com>
172 * java/io/natFileDescriptorPosix.cc (open): Change error message
173 formatting. From David Brownell.
175 2001-06-21 Tom Tromey <tromey@redhat.com>
177 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
180 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
182 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
183 extraneous/malformed sign word.
185 2001-06-15 Tom Tromey <tromey@redhat.com>
187 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
189 2001-06-15 Tom Tromey <tromey@redhat.com>
191 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
192 NULL if no library on the list has the symbol.
193 (init): Call add_library on the program itself.
194 * prims.cc (JvRunMain): Initialize Runtime before searching for
196 (_Jv_RunMain): Likewise.
198 2001-06-15 Tom Tromey <tromey@redhat.com>
200 * jni.cc (ClassClass): Removed; updated all users.
201 (ObjectClass): Likewise.
202 (ThrowableClass): Likewise.
203 (MethodClass): Likewise.
204 (ThreadGroupClass): Likewise.
205 (local_ref_table): Renamed from `ref_table'.
206 (global_ref_table): New global.
207 (_Jv_JNI_Init): Initialize both ref tables.
208 (mark_for_gc): Added `ref_table' parameter.
209 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
211 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
212 (_Jv_JNI_DeleteGlobalRef): Likewise.
213 (_Jv_JNI_DeleteLocalRef): Likewise.
214 (_Jv_JNI_NewLocalRef): Likewise.
215 (_Jv_JNI_PopLocalFrame): Likewise.
216 (_Jv_JNI_GetStringChars): Likewise.
217 (_Jv_JNI_ReleaseStringChars): Likewise.
218 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
219 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
221 2001-06-14 Tom Tromey <tromey@redhat.com>
223 Fix for PR libgcj/3144:
224 * java/util/Date.java: Merged with Classpath.
226 2001-06-12 Tom Tromey <tromey@redhat.com>
228 * aclocal.m4, configure: Rebuilt.
229 * acinclude.m4: Find configure.host in srcdir.
231 2001-06-07 Tom Tromey <tromey@redhat.com>
233 Fix for PR libgcj/3059:
234 * java/lang/natSystem.cc (init_properties): Define `java.home'.
235 * Makefile.in: Rebuilt.
236 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
238 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
240 * exception.cc (cstdlib): Replaces stdlib.h.
241 (_Jv_Throw): Use std::abort().
242 (PERSONALITY_FUNCTION): Likewise.
244 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
246 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
247 nothing, as in autoconf 2.50.
248 * aclocal.m4, configure: Rebuilt.
250 2001-06-08 Tom Tromey <tromey@redhat.com>
252 * configure: Rebuilt.
253 * configure.in: Compute new aux dir using `pwd'.
255 2001-06-07 Tom Tromey <tromey@redhat.com>
257 For PR bootstrap/3075:
258 * configure, aclocal.m4, Makefile.am: Rebuilt.
259 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
260 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
261 relative to libgcj_basedir.
262 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
263 AC_CANONICAL_SYSTEM here.
264 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
266 ($(extra_headers)): New target.
268 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
269 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
271 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
272 table index is within allowed bounds. Ensure that we dont try to access
273 class itable at a negative offset. Avoid an ancestor table lookup if
274 source is a primitive type class.
275 (isInstance): Remove redundant isPrimitive() check.
277 2001-06-04 Tom Tromey <tromey@redhat.com>
279 * java/security/PublicKey.java: Extend Key.
280 * java/security/PrivateKey.java: Extend Key.
282 2001-06-02 Anthony Green <green@redhat.com>
284 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
285 alternate when USE_LTDL not defined.
287 2001-06-02 Anthony Green <green@redhat.com>
289 * configure: Rebuild.
290 * configure.in: Remove data_start hack.
291 * libgcj.spec.in: Ditto.
292 * Makefile.in: Rebuild.
293 * Makefile.am: Ditto.
294 * libgcjdata.c: Remove.
296 2001-06-02 Anthony Green <green@redhat.com>
298 * configure: Rebuild.
299 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
300 --without-libffi option. Tweak --disable-java-net processing.
301 * Makefile.in: Rebuild.
302 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
303 * include/config.h.in: Rebuild.
304 * acconfig.h (USE_LIBFFI): Define.
305 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
307 2001-06-02 Anthony Green <green@redhat.com>
309 * configure: Rebuilt.
310 * configure.in: Test for sigaction on native builds.
311 * prims.cc: Check HAVE_SIGACTION.
312 * include/config.h.in: Rebuilt.
314 2001-05-31 Jeff Sturm <jsturm@one-point.com>
316 * natFile.cc (get_entry): Removed functions.
317 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
318 Allocate enough storage for d_name if using readdir_r.
320 2001-05-31 Tom Tromey <tromey@redhat.com>
322 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
324 (write): Loop until write completes. From Corey Minyard.
326 2001-05-29 Laurent Guerby <guerby@acm.org>
328 * java/awt/geom/Rectangle2D.java: fix doc typo.
330 2001-05-31 Tom Tromey <tromey@redhat.com>
332 * java/sql/DriverManager.java (getDrivers): Handle case where
333 driver's class loader is null. From Corey Minyard.
335 2001-05-29 Tom Tromey <tromey@redhat.com>
337 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
339 * configure: Rebuilt.
340 * configure.in: Only add multilib support code if we just rebuilt
343 2001-05-29 Andrew Haley <aph@redhat.com>
345 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
346 pointer: the dwarf unwinder in libgcc will do everything that's
348 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
349 more than we absolutely need to.
350 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
351 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
353 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
355 * configure: Rebuilt.
356 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
358 (SIGNAL_HANDLER): Use siginfo style handler.
359 (INIT_SEGV): Likewise.
360 (INIT_FPE): Likewise.
361 * include/ppc-signal.h: Delete whole file.
363 2001-05-24 Tom Tromey <tromey@redhat.com>
365 * java/lang/natString.cc (init): Throw
366 ArrayIndexOutOfBoundsException.
367 (getChars): Likewise.
368 (getBytes): Likewise.
371 * configure.in: Only allow hash synchronization when POSIX threads
373 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
376 2001-05-23 Tom Tromey <tromey@redhat.com>
378 * Makefile.in: Rebuilt.
379 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
381 Revert patch of 2001-05-21:
382 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
383 (libgcj_la_LIBADD): Likewise.
384 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
385 (libgcjx_la_LIBADD): Likewise.
387 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
388 * gcj/Makefile.in: Rebuilt.
389 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
390 * gcj/javaprims.h: Include gcj/libgcj-config.h.
391 * gcj/libgcj-config.h.in: New file.
392 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
393 * configure: Rebuilt.
394 * configure.in: Enable hash synchronization by default on some
396 (HASH_SYNC_SPEC): New subst.
397 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
398 Correctly use `test -z' instead of `test -n' in a couple places.
399 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
401 * configure.host (enable_java_net_default): Initialize.
402 (enable_hash_synchronization_default): New variable.
404 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
406 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
407 synchronization in use.
408 (_Jv_MarkArray): Likewise.
409 (_Jv_AllocBytes): Don't check return result.
410 (handle_out_of_memory): New function.
411 (_Jv_InitGC): Set GC_oom_fn.
412 (trace_one_vtable): New global.
413 (_Jv_AllocTraceOne): New function.
414 * configure.in: Added --enable-hash-synchronization.
415 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
416 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
417 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
418 (_Jv_AllocArray): Likewise.
419 (_Jv_AllocBytes): Likewise.
420 (_Jv_AllocPtrFreeObject): New function.
421 (_Jv_AllocTraceOne): Likewise.
422 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
424 (self_cache): New global.
425 (_Jv_ThreadSelf_out_of_line): New function.
426 * prims.cc (_Jv_AllocBytesChecked): Removed.
427 (_Jv_ThrowNoMemory): New function.
428 (_Jv_AllocObject): Don't check for null return from allocator.
429 (_Jv_NewObjectArray): Likewise.
430 (_Jv_AllocPtrFreeObject): New function.
431 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
432 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
433 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
434 * include/boehm-gc.h (_Jv_AllocObj): Define.
435 (_Jv_AllocPtrFreeObj): Define.
436 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
437 (_Jv_ThrowNoMemory): Declare.
438 (_Jv_AllocTraceOne): Declare.
439 (_Jv_AllocBytesChecked): Removed.
440 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
441 _Jv_MutexUnlock): Handle LOCK_DEBUG.
442 (_Jv_ThreadSelf): Handle case where system pthread_self() is
444 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
446 * java/lang/Object.h (sync_info): Conditional upon presence of
447 hash synchronization.
448 * java/lang/natObject.cc: Much new code to handle thin locks and
449 hash synchronization.
450 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
453 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
455 * gij.cc (version): Update copyright year.
457 2001-05-22 Anthony Green <green@redhat.com>
459 * configure.in: Tweak canadian cross test, and don't redefine GCJ
462 2001-05-21 Per Bothner <per@bothner.com>
464 Implement invocation interface; don't create new thread for main.
465 * java/lang/Thread.java (gen_name): Make native.
466 (<init>(Thread,THreadGroup,Runnable,String)): New private
467 constructor, used by other constructors, and _Jv_AttachCurrentThread.
468 * java/lang/natThread.cc (gen_name): New implementation.
469 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
470 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
471 (_Jv_CreateJavaVM): New runtime initialization procedure.
472 (runFirst): New proecdure - mostly code from old FirstThread::run.
473 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
474 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
475 JvDetachCurrentThread): New inline wrappers.
476 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
477 _Jv_DetachCurrentThread): New declarations.
478 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
479 (getMain): new static method.
480 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
481 by runFirst in prims.cc.
482 (java/lang/Thread.h): Update for new invocation interface.
483 * include/posix-threads.h (_Jv_ThreadRegister,
484 _Jv_ThreadUnRegister): New declarations.
485 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
486 (really_start): Use new _Jv_ThreadRegister.
487 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
488 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
489 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
490 Complain of called when _Jv_OnlyThread already set.
491 (_Jv_ThreadStart): Always JvFail.
492 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
493 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
494 * win32-threads.cc (struct starter): Remove objet field -
495 we use _Jv_Thread_t's new thread_obj field instead.
496 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
497 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
498 (really_start): Use new _Jv_ThreadRegister.
499 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
500 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
501 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
502 Removed - no longer needed with new invocation interface.
503 * Makefile.am: Update for removed/added files.
505 2001-05-21 Per Bothner <per@bothner.com>
507 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
508 (libgcj_la_LIBADD): Likewise.
509 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
511 2001-05-21 Per Bothner <per@bothner.com>
513 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
514 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
515 taken from old Integer.toString code.
516 (Integer::valueOf): Use _Jv_FormatInt.
517 * java/lang/Integer.java (toString): Just use call String.valueOf.
518 * java/lang/Long.java (toString): Fix typo in comment.
519 * java/lang/String.java (valueOf(int)): Make native.
520 * java/lang/StringBuffer.java (append(int)): Make native.
521 * java/lang/natStringBuffer.cc: New file, for append(jint).
522 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
524 2001-05-21 Tom Tromey <tromey@redhat.com>
526 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
528 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
530 * include/dwarf2-signal.h: New file.
531 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
532 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
533 * configure: Rebuilt.
535 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
537 * configure.in: Update boehm-gc include dir for new GC version.
538 * configure: Rebuilt.
539 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
541 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
542 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
543 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
546 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
548 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
549 (_Jv_MutexInit): Likewise.
551 2001-05-18 Tom Tromey <tromey@redhat.com>
553 * Makefile.in: Rebuilt.
554 * Makefile.am (awt_java_source_files): Added Polygon.java.
556 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
558 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
559 * gcj/javaprims.h: ... here.
560 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
562 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
564 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
565 with length of ioffset table.
566 (_Jv_IsAssignableFrom): Likewise.
568 2001-05-17 Per Bothner <per@bothner.com>
570 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
572 2001-05-16 Tom Tromey <tromey@redhat.com>
574 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
577 2001-05-15 Tom Tromey <tromey@redhat.com>
579 * java/util/GregorianCalendar.java (computeTime): Only call
582 2001-05-14 Tom Tromey <tromey@redhat.com>
584 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
585 ZONE_OFFSET just before computing the time.
587 2001-05-12 Zack Weinberg <zackw@stanford.edu>
589 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
590 * Makefile.in: Regenerate (by hand).
591 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
592 * doc/cni.sgml: Document #pragma GCC java_exceptions.
594 2001-05-11 Richard Henderson <rth@redhat.com>
596 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
597 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
599 2001-05-11 Richard Henderson <rth@redhat.com>
601 * exception.cc: Include unwind-pe.h. Remove all pointer
604 2001-05-10 Tom Tromey <tromey@redhat.com>
606 * Makefile.in: Rebuilt.
607 * Makefile.am (awt_java_source_files): Added Polygon.java.
608 * java/awt/Polygon.java: New file.
610 * java/awt/geom/AffineTransform.java
611 (setToRotation(double,double,double)): New method.
612 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
613 (setToShear): Likewise.
615 2001-05-10 Tom Tromey <tromey@redhat.com>
617 * java/util/GregorianCalendar.java: Imported from Classpath.
618 * gnu/java/locale/LocaleInformation_nl.java: New file from
620 * gnu/java/locale/LocaleInformation_en.java: Likewise.
621 * gnu/java/locale/LocaleInformation_de.java: Likewise.
622 * gnu/java/locale/LocaleInformation.java: Likewise.
623 * natGregorianCalendar.cc: Removed.
624 * Makefile.in: Rebuilt.
625 * Makefile.am (nat_source_files): Removed
626 natGregorianCalendar.cc.
628 2001-05-10 Tom Tromey <tromey@redhat.com>
630 * java/text/SimpleDateFormat.java (computeCenturyStart): New
632 (defaultCenturyStart): Use it.
633 (readObject): Likewise.
634 (SimpleDateFormat): Clear the calendar. Set the grouping on the
636 (parse): Copy the calendar before modifying it. Correctly handle
639 * java/util/Calendar.java (clear): Set field value(s) to 0.
641 2001-05-10 Jeff Sturm <jsturm@one-point.com>
643 * Calendar.java (get): Clear areFieldsSet if requested field
645 (set): Unset fields that depend on new value.
647 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
649 * java/lang/Class.h (_Jv_Self): New union type.
650 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
651 Jeff Sturm and Fergus Henderson.
653 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
655 * java/lang/ClassLoader.java: Remove dead code fragment.
657 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
659 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
661 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
663 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
665 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
666 * configure.host (EXCEPTIONSPEC): New.
667 * configure.in (EXCEPTIONSPEC): New.
668 * configure: Rebuilt.
670 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
672 * doc/*.texi: Remove generated documentation.
674 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
676 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
677 (performDelete): Fix #endif placement.
679 2001-04-27 Zack Weinberg <zackw@stanford.edu>
681 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
682 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
683 (_Jv_ThreadDestroyData): Use _Jv_Free.
684 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
687 2001-04-27 Tom Tromey <tromey@redhat.com>
689 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
691 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
693 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
695 * include/jni.h (struct JNINativeInterface): Fixed types in
696 Get/Set*ArrayRegion declarations.
697 (class _Jv_JNIEnv): Likewise.
699 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
701 * configure.in: Obtain THREADS with `gcc -v'.
702 * configure: Rebuilt.
704 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
707 * java/io/ObjectStreamClass.java (setClass): Calculate
708 serialVersionUID for local class and compare it against the UID
709 from the Object Stream. Throw InvalidClassException upon mismatch.
710 (setUID): Renamed to...
711 (getClassUID): this. Return the calculated class UID rather than
712 setting uid field directly.
713 (getDefinedSUID): Removed.
714 * java/io/ObjectInputStream.java (resolveClass): Use the
715 three-argument Class.forName().
716 * java/io/InvalidClassException (toString): Don't include classname in
717 result if it is null.
719 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
721 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
722 Wrap use of inet_pton in HAVE_INET6.
724 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
726 java.security merge and ClassLoader compliance fixes.
728 * java/lang/Class.h (Class): Include ProtectionDomain.h.
729 New protectionDomain field.
730 (forName): Add initialize parameter. Fixes declaration to comply with
732 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
733 variant. Honour "initialize" flag.
734 (getProtectionDomain0): New method.
735 * java/lang/Class.java: Fix forName() declaration.
736 (getPackage): New method based on Classpath implementation.
737 (getProtectionDomain0): New native method decl.
738 (getProtectionDomain): New method.
739 * java/lang/ClassLoader.java (getParent): Now final.
740 (definedPackages): New field.
742 (defineClass): New variant with protectionDomain argument.
743 (definePackage): New.
745 (findSystemClass): Now final.
746 (getSystemResourceAsStream): Remove redundant "final" modifier.
747 (getSystemResource): Remove redundant "final" modifier.
748 (getResources): Now final.
749 (protectionDomainPermission): New static field.
750 (unknownProtectionDomain): Ditto.
751 (defaultProtectionDomain): Ditto.
752 (getSystemClassLoader): Now non-native.
753 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
754 arguments for Class.forName().
755 * java/lang/Package.java: New file.
756 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
757 (instance): Static initialize singleton.
758 (findClass): Override this, not findSystemClass.
759 * java/lang/natClassLoader.cc (defineClass0): Set class's
760 protectionDomain field as specified.
761 (getSystemClassLoader): Removed.
762 (findClass): Renamed from findSystemClass. Call the interpreter via
763 URLClassLoader.findClass if loading class via dlopen fails.
765 * java/security/*.java: java.security import/merge with Classpath.
766 * java/security/acl/*.java: Likewise.
767 * java/security/interfaces/*.java: Likewise.
768 * java/security/spec/*.java: Likewise.
769 * java/net/NetPermission.java: Likewise.
770 * java/net/SocketPermission.java: Likewise.
771 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
773 * Makefile.am: Add new classes.
774 * Makefile.in: Rebuilt.
775 * gcj/javaprims.h: CNI namespace rebuild.
777 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
779 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
780 for libtool tests. Pre-create gnu/classpath/Configuration.java.
781 * configure: Rebuilt.
783 2001-04-21 Tom Tromey <tromey@redhat.com>
785 * Makefile.in: Rebuilt.
786 * Makefile.am (awt_java_source_files): Added Line2D.java.
787 * java/awt/geom/Line2D.java: Wrote.
789 * java/awt/Menu.java (addNotify): Wrote.
791 * java/awt/PopupMenu.java (addNotify): Implemented.
794 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
795 * java/awt/List.java (addNotify): Call super.addNotify.
796 * java/awt/Label.java (addNotify): Call super.addNotify.
797 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
798 * java/awt/Dialog.java (addNotify): Call super.addNotify.
799 * java/awt/Choice.java (addNotify): Call super.addNotify.
800 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
801 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
803 * java/awt/List.java (replaceItem): Notify peer.
805 * java/awt/geom/Rectangle2D.java
806 (Float.setRect(float,float,float,float)): New method.
808 * java/awt/event/ContainerEvent.java (getContainer): Now returns
811 * java/awt/RenderingHints.java (Key): Class now public.
813 * java/awt/Rectangle.java (Rectangle): Now implements
815 (getPathIterator): Removed.
817 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
820 * java/awt/FileDialog.java: Wrote.
822 * java/awt/EventQueue.java (isDispatchThread): Now public.
823 (invokeLater): Likewise.
825 * java/awt/Component.java (setCursor): Update peer.
826 (getFontMetrics): Use peer.
828 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
831 2001-04-20 Tom Tromey <tromey@redhat.com>
833 * java/awt/List.java: Wrote.
834 * java/awt/Dialog.java: Wrote.
836 2001-04-20 Warren Levy <warrenl@redhat.com>
838 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
839 * java/text/SimpleDateFormat.java
840 (indexInArray): Removed private method.
841 (processYear): Removed private method.
842 (parseLenient): Removed private method.
843 (parseLeadingZeros): Removed private method.
844 (parseStrict): Removed private method.
845 (expect): Added new private method.
846 (parse): Reverted to pre-Classpath merge version with minor fixes.
847 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
850 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
852 * java/io/File.java (normalizePath): New private method.
853 (File (String)): Use normalizePath().
854 (File (String, String)): Likewise.
856 * Makefile.am (libffi_files): Removed.
857 (libgcj.la): Link libffi as a convenience library instead of
858 refering to its object files directly.
859 * Makefile.in: Rebuilt.
861 2001-04-08 Per Bothner <per@bothner.com>
863 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
864 Recalculate hash, since Utf8Const's hash is only 16 bits.
866 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
867 bits of hash to calculate step for chaining.
869 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
870 when 2/3 full, rather than 3/4 full.
872 2001-04-06 Tom Tromey <tromey@redhat.com>
874 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
875 (wrap_value<T*>): New specialization.
876 (_Jv_JNI_PopLocalFrame): Update env->locals.
878 2001-04-05 Tom Tromey <tromey@redhat.com>
880 * libtool-version: Updated current.
882 2001-04-04 Andreas Jaeger <aj@suse.de>
884 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
885 * gcj/Makefile.in: Rebuilt.
886 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
887 * Makefile.in: Rebuilt.
888 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
889 * testsuite/Makefile.in: Rebuild.
890 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
891 * include/Makefile.in: Rebuild.
893 2001-04-02 Zack Weinberg <zackw@stanford.edu>
895 * testsuite/lib/libjava.exp: Correct typo: 'output from source
896 compiled test', not 'execution from source compiled test'.
897 Use UNTESTED, not XFAIL, for tests which are not run because
898 they depend on a previous test which failed.
900 2001-04-02 Richard Henderson <rth@redhat.com>
902 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
903 the same tree as gcc.
904 * configure: Rebuilt.
906 * exception.cc (_Jv_Throw): Clarify commentary.
908 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
910 * jni.cc (wrap_value<jclass>): New specialization.
912 2001-04-02 Tom Tromey <tromey@redhat.com>
914 * java/io/PrintStream.java (out): Removed field. Fixes PR
916 (write): Call flush, not out.flush, per spec.
917 (close): Flush output stream, per spec. Handle
918 InterruptedIOException.
919 (checkError): Likewise.
920 (flush, print, write): Handle InterruptedIOException per spec.
921 (PrintStream): Don't create BufferedOutputStream.
922 (work_bytes): New field.
923 (writeChars): Use work_bytes. Don't assume `out' is a
924 BufferedOutputStream.
926 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
928 * java/text/MessageFormat.java (setLocale): Added missing `else'.
931 2001-03-30 Tom Tromey <tromey@redhat.com>
933 * jni.cc (add_char): Correctly encode non-ascii characters.
934 (add_char): Define even when INTERPRETER not defined.
935 (mangled_name): Likewise.
936 (_Jv_GetJNIEnvNewFrame): Likewise.
937 (_Jv_LookupJNIMethod): Likewise.
939 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
941 * configure.host: Enable interpreter for PPC.
943 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
945 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
946 to "file.separator", "path.separator", and "java.io.tmpdir" property
948 * java/io/File.java: Likewise.
949 * java/io/natFile.cc (init_native): Likewise.
950 * java/io/natFileWin32.cc (init_native): Likewise.
952 2001-04-01 Per Bothner <per@bothner.com>
954 * java/lang/natString.cc (intern): If string's data does not point to
955 this String, make a fresh String that does.
957 * java/lang/natString.cc (unintern): Replace by static function.
958 * java/lang/String.java (unintern): Remove method.
960 2001-04-01 Per Bothner <per@bothner.com>
962 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
963 (finish): def.deflate needs to be called in a loop.
964 (inbuf, inbufLength): New private fields.
965 (write(int)): Use inbuf.
966 (write(byte[],int,int): Check if pending output in inbuf.
967 * ZipOutputStream.java: Don't use Deflater if stored.
968 Use a Checksum object directly, not via a CheckedOutputStream.
969 (uncompressed_size): New field,
970 (closeEntry): Only write data_directory if needed.
971 (write): If STORED, write directly.
972 Always update crc, and uncompressed_size.
973 (write_entry): Fix lots of protocol erors.
975 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
977 1.3-Compliant Implementation of java.io.File.
978 * java/lang/natSystem.cc (init_properties): Get "file.separator",
979 "path.separator", and "java.io.tmpdir" from the File class, instead
980 of setting them explicitly.
981 * java/io/File.java: Do not canonicalize paths for security manager
982 checks. Call init_native() from static initializer. Do not pass path
983 argument to native methods. New native method declarations. Some
984 security manager checks moved to checkWrite().
985 (equals): Check file system case sensitivity and act appropriatly.
986 (hashCode): Likewise.
987 (isHidden): New method implemented.
988 (performList): Changed prototype. Now takes a class argument specifying
989 the class of the returned array: Strings or File objects. Also added
991 (listFiles): New variants with "File" return type implemented.
992 (createTempFile): Use createNewFile(). Use maxPathLen.
993 (setReadOnly): New method implemented.
994 (listRoots): Likewise.
995 (compareTo): Likewise.
996 (setLastModified): Likewise.
997 (checkWrite): New method.
999 * java/io/natFile.cc: Various functions no longer take canonical path
1001 (stat): Handle ISHIDDEN query.
1002 (isAbsolute): Remove WIN32 cruft.
1003 (performList): New arguments. Handle returning either File[] or String[]
1004 arrays. Check with FileFilter or FilenameFilter arguments as
1005 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1006 (performSetReadOnly): New method implemented.
1007 (performListRoots): Likewise.
1008 (performSetLastModified): Likewise.
1009 (performCreate): Likewise.
1010 (init_native): New initialization function.
1011 * java/io/natFileWin32.cc: Various functions no longer take canonical
1013 (stat): Add FIXME about ISHIDDEN query.
1014 (performList): New arguments. Handle returning either File[] or String[]
1015 arrays. Check with FileFilter or FilenameFilter arguments as
1016 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1017 (performSetReadOnly): New. Stubbed.
1018 (performListRoots): Likewise.
1019 (performSetLastModified): Likewise.
1020 (performCreate): Likewise.
1021 (init_native) New initialization function.
1022 * configure.in: Check for utime() and chmod().
1023 * configure: Rebuilt.
1024 * include/config.h.in: Rebuilt.
1026 Resolves PR libgcj/1759.
1028 2001-03-28 Richard Henderson <rth@redhat.com>
1030 IA-64 ABI Exception Handling:
1031 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1032 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1033 Remove EXCEPTIONSPEC.
1034 * configure.host (libgcj_sjlj): Remove.
1035 * configure.in (EXCEPTIONSPEC): Remove.
1036 (enable-sjlj-exceptions): Detect if not specified.
1037 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1038 what header we're looking for.
1039 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1040 * Makefile.in, configure: Regenerate.
1041 * exception.cc: Don't declare libgcc2 stuff.
1042 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1043 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1044 (win32_get_restart_frame): Remove.
1045 (struct java_exception_header): New.
1046 (__gcj_exception_class): New.
1047 (get_exception_header_from_ue): New.
1048 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1049 (size_of_encoded_value, read_encoded_value): New.
1050 (read_uleb128, read_sleb128, parse_lsda_header): New.
1051 (get_ttype_entry, __gcj_personality_sj0): New.
1052 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1054 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1056 * javax/naming/InitialContext.java (init): Fix typo.
1057 (composeName): Remove unnecessary semicolon.
1058 (addToEnvironment): Remove unnecessary semicolon.
1059 (addToEnvironment): Use put() instead of add().
1061 * javax/naming/InitialContext.java (InitialContext):
1063 (destroySubcontext): Method doesn't return a result.
1064 * javax/naming/Context.java: Import java.util.Hashtable.
1065 * javax/naming/Name.java: Import java.util.Enumeration.
1067 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1069 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1070 objects in subdirectories.
1071 * Makefile.in: Rebuilt.
1073 2001-03-25 Richard Henderson <rth@redhat.com>
1075 * exception.cc (java_eh_info): Make value type jthrowable.
1076 (_Jv_type_matcher): Remove now unneeded cast.
1077 (_Jv_Throw): Make argument type jthrowable. Munge name
1078 for SJLJ_EXCEPTIONS here ...
1079 * gcj/cni.h: ... not here.
1081 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1083 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1084 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1085 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1086 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1087 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1088 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1089 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1090 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1091 java/lang/natDouble.cc, java/lang/natObject.cc,
1092 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1093 java/lang/natString.cc, java/lang/natSystem.cc,
1094 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1095 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1096 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1097 java/util/zip/natInflater.cc:
1098 Use throw, not JvThrow or _Jv_Throw.
1100 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1102 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1103 paramater, bump it to 1.
1104 * java/util/Hashtable.java (Hashtable): Likewise.
1106 2001-03-23 Per Bothner <per@bothner.com>
1108 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1109 check for errors, since we don't want to throw exception on
1110 overflow/underflow. Instead, trim whitespace, and then check that
1111 _strtod_r uses up all the rest of the string.
1113 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1114 ancestors array is invalid for interfaces, so do that *after*
1115 check that the target type is not an interface.
1117 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1119 * prims.cc (_Jv_FindClassFromSignature): Check return of
1120 recursive call. Do not abort on invalid signature; return NULL
1123 2001-03-22 Tom Tromey <tromey@redhat.com>
1125 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1126 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1128 * include/jvm.h (_Jv_ResolveField): Declare.
1129 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1130 * resolve.cc (_Jv_ResolveField): No longer conditional on
1133 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1135 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1136 for libtool hacking.
1137 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1138 to a temporary file, then invoke libtool with the -objectlist
1140 (libgcjx.la): Likewise.
1141 * Makefile.in: Rebuilt.
1143 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1145 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1147 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1149 * jni.cc (add_char): Handle `.' like `/'.
1151 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1153 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1154 initialize if exception_types is null.
1155 * java/lang/reflect/Constructor.java: Likewise.
1156 * java/lang/reflect/natConstructor.cc (getType): Initialize
1157 exception_types to an empty Object array.
1159 2001-03-21 Tom Tromey <tromey@redhat.com>
1161 * configure: Rebuilt.
1162 * configure.in (GCJFLAGS): Subst.
1163 * Makefile.in: Rebuilt.
1164 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1165 (gij_LDFLAGS): Likewise.
1166 (JC1FLAGS): Added GCJFLAGS and removed -g.
1168 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1169 read/write case. Fixes PR libgcj/2338.
1171 2001-03-20 Warren Levy <warrenl@redhat.com>
1173 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1174 and corrected SimpleTimeZone's for the timezones hash table.
1176 2001-03-19 Per Bothner <per@bothner.com>
1178 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1179 "canonicalize" "../../xxx" to "/xxx".
1181 2001-03-19 Mark Wielaard <mark@klomp.org>
1183 * java/util/ArrayList.java: Remove RCS keywords from comments
1184 * java/util/BasicMapEntry.java: idem
1185 * java/util/Dictionary.java: idem
1186 * java/util/HashSet.java: idem
1188 * java/util/EventObject.java: reindent
1189 * java/util/Properties.java: idem
1190 * java/util/SortedMap.java: idem
1192 * java/util/Enumeration.java: Merge with Classpath
1193 * java/util/EventListener.java: idem
1194 * java/util/Observable.java: idem
1195 * java/util/Observer.java: idem
1196 * java/util/Stack.java: idem
1198 2001-03-17 Tom Tromey <tromey@redhat.com>
1200 * java/lang/natString.cc (rehash): Don't bother with memset;
1201 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1203 (UNMASK_PTR): New macro.
1204 (intern): Unmask pointer before returning it. Register finalizer
1206 (unintern): Handle case where
1207 (MASK_PTR): New macro.
1208 (PTR_MAKSED): Likewise.
1209 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1211 2001-03-01 Andrew Haley <aph@redhat.com>
1213 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1214 stackTrace buffer to a correctly aligned pointer array.
1216 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1218 * java/lang/Runtime.java (_exit): Declare new package-private native.
1219 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1220 without a security manager check.
1221 (exit): Call _exit after security check.
1222 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1224 * java/lang/System.java (setSecurityManager): If a security manager
1225 is already in place, call checkPermission.
1226 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1227 throws an exception, try to deal with it gracefully.
1228 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1229 Only try to print the subordinate stack trace if "exception" is set.
1230 Print our class name first.
1232 2001-03-08 Tom Tromey <tromey@redhat.com>
1234 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1235 info for array classes.
1236 Fixes PR libgcj/1971.
1238 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1240 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1243 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1245 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1246 instead of the new JDK1.2 API. This is simpler and makes
1247 back-porting the classes to JDK1.1 trivial.
1248 (readObject): likewise.
1250 2001-03-01 Per Bothner <per@bothner.com>
1252 Changes merged from Kawa's gnu.math.
1253 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1254 (rshift(int[],int[],int,int): Removed - not needed.
1255 (gcd): Use rshift0 rather than rshift.
1256 * java/math/BigInteger.java (setShiftRight): Likewise.
1257 (divide): Simplify by using rshift0.
1258 (divide): Zero-extend results if high-order bit set.
1260 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1262 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1265 2001-02-23 Per Bothner <per@bothner.com>
1267 Change to sometimes include class name in ClassFormatError message.
1268 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1269 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1270 boolean instead of throwing ClassFormatError on failure.
1271 (throw_class_format_error): Change static function to method.
1272 (_Jv_ClassReader): New inline methods verify_identifier,
1273 two overloads of verify_classname, verify_field_signature, and
1274 verify_method_signature
1275 * include/java-interp.h: Update declarations to return bool.
1276 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1277 ClassFormatError since _Jv_VerifyClassName now returns bool.
1279 2001-02-23 Per Bothner <per@bothner.com>
1281 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1282 c++filt to select java-style output.
1284 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1286 Fix for PR java/2040:
1287 * java/util/HashMap.java (HashMap): Don't throw exception for
1288 loadFactor > 1. Add exception messages.
1289 * java/util/Hashtable.java (Hashtable): Likewise.
1291 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1293 Disable libgcjx by default.
1294 * configure.in: Add support for --enable-java-awt configure option.
1295 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1296 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1297 * Makefile.in: Rebuilt.
1298 * configure: Rebuilt.
1300 2001-02-20 Tom Tromey <tromey@redhat.com>
1302 * java/io/PipedWriter.java (flush): Throw exception if stream
1304 * java/io/OutputStreamWriter.java (write): Throw exception if
1306 (writeChars): Don't throw exception if stream closed.
1307 * java/io/CharArrayWriter.java (closed): New field.
1309 (flush): Throw exception if stream closed.
1310 (reset): Synchronize on correct lock. Allow stream to be
1312 (toCharArray, toString, writeTo): Synchronize.
1313 (write): Throwe exception if stream closed.
1314 * java/io/BufferedWriter.java (close): Clear `buffer'.
1315 (flush): Throw IOException if stream is closed.
1318 2001-02-16 Tom Tromey <tromey@cygnus.com>
1320 * java/lang/ThreadGroup.java (activeCount): Only include threads
1322 (enumerate): Likewise.
1324 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1326 * java/lang/Integer.java (getInteger): Return default argument if
1327 property is not set. Don't call decode with null argument.
1328 * java/lang/Long.java (getLong): Likewise.
1330 * java/io/CharArrayReader.java (CharArrayReader): Throw
1331 IllegalArgumentException if constructor arguments are illegal.
1332 (ready): Return false if no more characters can be read.
1333 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1335 2001-02-17 Mark Wielaard <mark@klomp.org>
1337 * java/util/TimerTask.java: New version from Classpath.
1339 2001-02-17 Mark Wielaard <mark@klomp.org>
1341 Remerge with Classpath
1342 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1343 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1344 (readByte): Use convertToByte().
1345 (readChar): Use convertToChar().
1346 (readInt): Use convertToInt().
1347 (readLong): Use convertToLong().
1348 (readShort): Use convertToShort().
1349 (readUnsignedByte): Use convertToUnsignedByte().
1350 (readUnsignedShort): Use convertToUnsignedShort().
1351 (readUTF): Use convertToUTF().
1353 (convertToBoolean): Resurrected.
1354 (convertToByte): Ditto.
1355 (convertToChar): Ditto.
1356 (convertToInt): Ditto.
1357 (convertToLong): Ditto.
1358 (convertToShort): Ditto.
1359 (convertToUnsignedByte): Ditto.
1360 (convertToUnsignedShort): Ditto.
1361 (convertToUTF): Ditto.
1363 2001-02-17 Mark Wielaard <mark@klomp.org>
1367 2001-02-17 Mark Wielaard <mark@klomp.org>
1369 * java/io/DataInputStream.java: update copyright notice
1370 * java/io/PrintWriter.java: idem
1371 * java/io/Reader.java: idem
1372 * java/io/StreamTokenizer.java: idem
1373 * java/io/StringReader.java: idem
1374 * java/lang/reflect/ReflectPermission.java: idem
1376 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1378 * java/util/TreeSet.java (clone): Made subclass safe, use
1379 super.clone(), not new.
1380 * java/util/TreeMap.java (clone): Likewise.
1382 * java/util/TreeMap.java (nil): Made non-final.
1383 (clone): Create new nil node for copy.
1385 * java/util/HashSet.java (clone): Made subclass safe, use
1386 super.clone(), not new.
1388 2001-02-14 Andrew Haley <aph@redhat.com>
1390 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1393 2001-02-15 Anthony Green <green@redhat.com>
1395 * defineclass.cc: Don't include alloca.h.
1396 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1397 * interpret.cc (run_normal): Ditto.
1399 * java/lang/natDouble.cc (parseDouble): Ditto.
1401 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1403 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1405 * java/util/Collections.java (ReverseComparator): New static class.
1406 (reverseOrder): Return static instance of ReverseComparator.
1408 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1409 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1410 Rectangle.clone(), not Object.clone().
1412 * java/util/HashSet.java (clone): Remove try/catch.
1414 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1415 * java/util/Collection.java: Likewise.
1416 * java/util/Comparator.java: Likewise.
1417 * java/util/Dictionary.java: Likewise.
1418 * java/util/Iterator.java: Likewise.
1419 * java/util/ListIterator.java: Likewise.
1420 * java/util/Map.java: Likewise.
1421 * java/util/Set.java: Likewise.
1423 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1425 * java/util/TreeMap.java: New file.
1426 * java/util/TreeSet.java: New file.
1427 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1428 * Makefile.in: Rebuilt.
1429 * java/util/HashSet.java (clone): Use constructor instead of calling
1431 * java/util/SortedSet.java: Sync with classpath.
1432 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1435 * java/lang/natClass.cc (getSignature): Don't try to dereference
1436 param_types if it is null. Instead, take this to mean "no parameters".
1437 * java/lang/TreeMap.java (TreeIterator.next): Throw
1438 NoSuchElementException in preference to ConcurrentModificationException.
1439 (TreeIterator.remove): Throw IllegalStateException in preference to
1440 ConcurrentModificationException.
1441 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1442 throw a NoSuchElementException.
1443 (SubMap.lastKey): Likewise.
1445 2001-02-13 Tom Tromey <tromey@redhat.com>
1447 * java/io/PipedReader.java (ready): Throw IOException if pipe
1449 * java/io/FilterReader.java (close): Don't clear `in'.
1450 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1452 (read, ready, reset, skip): Added exception message.
1453 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1454 Perform checkStatus check inside synchronized block.
1456 2001-02-13 Tom Tromey <tromey@redhat.com>
1458 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1460 2001-02-13 Tom Tromey <tromey@redhat.com>
1462 Fix for PR libgcj/1351:
1463 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1465 Include Thread.h and InterruptedIOException.h.
1467 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1469 * java/io/BlockDataException.java: Removed.
1470 * java/io/ObjectInputStream.java (readObject): Throw
1471 StreamCorruptedException, not BlockDataException.
1472 * Makefile.am: Remove BlockDataException.
1473 * Makefile.in: Rebuild.
1475 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1476 Tom Tromey <tromey@redhat.com>
1478 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1481 2001-02-09 Tom Tromey <tromey@redhat.com>
1483 * java/util/Timer.java: New version from Classpath.
1485 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1487 * java/lang/Double.java (doubleToRawLongBits): Now native.
1488 * java/lang/Float.java (floatToRawIntBits): Likewise.
1489 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1490 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1492 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1494 * java/io/File.java (java.net): Imported.
1495 (getAbsoluteFile): Added.
1496 (getCanonicalPath): Likewise.
1499 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1501 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1502 * java/lang/Integer.java: Likewise.
1503 * java/lang/Long.java: Likewise.
1504 * java/lang/Short.java: Likewise.
1505 * java/lang/Double.java: Likewise.
1506 (doubleToRawLongBits): New method.
1507 * java/lang/Float.java: As above.
1508 (floatToRawIntBits): New method.
1510 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1511 IOException if stream closed.
1513 2001-02-08 Tom Tromey <tromey@redhat.com>
1515 * java/lang/Float.java (parseFloat): New method.
1517 2001-02-08 Tom Tromey <tromey@redhat.com>
1519 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1520 * java/io/InputStreamReader.java (ready, read): Throw IOException
1521 if stream has been closed.
1523 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1525 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1526 Change sources.redhat.com and sourceware.cygnus.com references to
1529 2001-02-07 Tom Tromey <tromey@redhat.com>
1531 Fix for PR libgcj/1906:
1532 * java/text/MessageFormat.java (setLocale): Use named class
1535 (format(Object,StringBuffer,FieldPosition)): Special case if
1536 argument is an Object[].
1538 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1540 * java/util/Arrays.java: Removed "cmp" methods.
1541 (qsort): Don't use "cmp".
1544 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1546 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1547 sort. Fix for PR java/1895.
1549 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1551 * configure.host: Use sjlj-exceptions for Alpha.
1553 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1555 * libgcj.spec.in: Don't force static libgcc into the executable.
1556 * configure.in (FORCELIBGCCSPEC): Removed.
1557 * configure: Rebuilt.
1559 2001-01-31 Tom Tromey <tromey@redhat.com>
1561 * Makefile.in: Rebuilt.
1562 * Makefile.am (LTCXXCOMPILE): New macro.
1564 2001-01-26 Andrew Haley <aph@redhat.com>
1566 (INIT_FPE): Use a direct system call to set the handler.
1568 2001-01-27 Richard Henderson <rth@redhat.com>
1570 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1572 2001-01-27 Tom Tromey <tromey@redhat.com>
1574 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1575 native interface structure.
1577 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1579 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1581 (read (byte[], int, int)): Only call readNextBlock() if the block
1582 buffer would actually be overrun. Increment blockDataPosition.
1583 (callReadMethod): Propagate exceptions from invocation target.
1584 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1585 exceptions from invocation target.
1587 2001-01-26 Tom Tromey <tromey@redhat.com>
1589 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1590 to internal representation.
1591 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1592 _Jv_FindClassFromSignature.
1594 2001-01-26 Warren Levy <warrenl@redhat.com>
1596 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1597 and timezone if they are available on the system.
1599 2001-01-24 Tom Tromey <tromey@redhat.com>
1601 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1603 2001-01-24 Tom Tromey <tromey@redhat.com>
1605 * Makefile.in: Rebuilt.
1606 * Makefile.am (c_source_files): Added sf_fabs.c.
1607 * java/lang/sf_fabs.c: New file.
1609 2001-01-19 Warren Levy <warrenl@redhat.com>
1611 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1612 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1613 correctly. Adjust properly from 0-23 clock hour.
1615 2001-01-17 Mark Wielaard <mark@klomp.org>
1617 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1619 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1621 * java/lang/Class.h (isInterface): Move implementation from
1622 natClass.cc. Declare inline.
1623 (Class): Add default constructor.
1624 * java/lang/Object.h: Update comments.
1625 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1626 initialize superclass, saving a call if super is already initialized.
1628 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1630 * prims.cc (init_prim_class): Deleted.
1631 (DECLARE_PRIM_TYPE): Rewritten.
1632 * java/lang/Class.h (stdio.h): Include removed.
1633 (stddef.h): Included.
1634 (java/lang/reflect/Modifier.h): Likewise.
1635 (Class): Contructor now takes arguments, initializes fields.
1636 (initializePrim): Prototype deleted.
1637 * java/lang/natClass.cc (initializePrim): Deleted.
1639 2001-01-16 Warren Levy <warrenl@redhat.com>
1641 * java/math/BigInteger.java: Update Copyright year.
1643 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1645 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1648 2001-01-14 Mark Wielaard <mark@klomp.org>
1649 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1650 (decode): Merge comments with Classpath, don't throw Exception
1652 2001-01-12 Tom Tromey <tromey@redhat.com>
1654 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1658 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1659 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1660 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1661 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1662 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1664 * java/lang/natSystem.cc: Include locale.h if it exists.
1665 * configure: Rebuilt.
1666 * configure.in: Check for locale.h.
1668 2001-01-11 Tom Tromey <tromey@redhat.com>
1670 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1671 (Cursor(int), getPredefinedCursor): Throw exception if argument
1674 2001-01-03 Tom Tromey <tromey@redhat.com>
1676 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1677 (getLocationOnScreen): Wrote.
1679 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1681 * Makefile.am: Re-enable dependencies.
1682 * Makefile.in: Rebuilt.
1684 2001-01-10 Warren Levy <warrenl@redhat.com>
1686 * java/math/BigDecimal.java (divide): Fixed comment.
1688 2001-01-10 Warren Levy <warrenl@redhat.com>
1690 Fix for PR libgcj/1596:
1691 * java/math/BigDecimal.java (divide): Check newScale for validity.
1692 Ensure that BigInteger.pow() is called with a non-negative value.
1693 (setScale (int)): New public method.
1694 (setScale (int,int)): New public method.
1696 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1698 Fix for PR libgcj/1338:
1699 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1700 commentChar. Fixed typos in comments.
1702 2001-01-08 Warren Levy <warrenl@redhat.com>
1704 Fix for PR libgcj/1411:
1705 * Makefile.am: Removed java/util/natTimeZone.cc.
1706 * Makefile.in: Rebuilt.
1707 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1708 missing localized timezone names.
1709 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1710 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1711 (init_properties): Set user.timezone property.
1712 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1713 default timezone names; removed non-standard ones. Use standard
1715 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1717 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1719 (getDefaultTimeZoneId): Removed.
1721 * java/util/natTimeZone.cc: Removed.
1723 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1725 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1726 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1727 (_Jv_GetArrayClass): New inline function.
1728 (arrayclass): New field.
1729 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1730 _Jv_GetArrayElementFromElementType.
1731 (_Jv_NewPrimArray): Ditto.
1732 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1733 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1734 Set Modifier::ABSTRACT.
1735 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1736 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1737 Now synchronized. Array classes are now referenced from
1738 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1739 Set array classes' accessibility flags correctly. Optimize so that
1740 all array classes share the same IDT.
1741 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1742 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1743 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1744 in superclasses from overwriting classes own fields.
1745 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1746 Modifier::isAbstract().
1747 (null_idt): New static field.
1748 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1750 (_Jv_IndexOf): Made inline.
1751 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1753 2001-01-08 Tom Tromey <tromey@redhat.com>
1755 Fix for PR java/1586:
1756 * Makefile.in: Rebuilt.
1757 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1759 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1761 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1762 from the c++ compiler.
1763 * Makefile.in: Rebuilt.
1765 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1767 All files with updated copyright.
1768 * prims.cc (class _Jv_PrimClass): Removed.
1769 (init_prim_class): New function.
1770 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1771 `_Jv_PrimClass' in primitive type declarations. Assign to the
1772 value returned by `init_prim_class.'
1773 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1774 primitive type declarations.
1775 (JvPrimClass): Cast to `jclass' removed.
1776 * java/lang/Class.h (Class): New constructor.
1777 (Class): New copy constructor.
1778 (initializePrim): New prototype.
1779 (_Jv_PrimClass): Field removed.
1780 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1781 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1782 (class java::lang::Object): `finalize' moved up front.
1783 * java/lang/natClass.cc
1784 (isAssignableFrom): Turned outline.
1785 (isInstance): Likewise.
1786 (isInterface): Likewise, fixed indentation.
1787 (initializePrim): New function.
1789 2001-01-07 Anthony Green <green@redhat.com>
1791 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1793 * Makefile.in: Rebuilt.
1795 * scripts/TexinfoDoclet.java: New file.
1797 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1798 doc/java-awt-color.texi, doc/java-lang.texi,
1799 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1800 doc/java-awt-event.texi, doc/java-net.texi,
1801 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1802 doc/java-awt-image.texi, doc/java-security.texi,
1803 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1804 doc/java-text.texi, doc/java-beans-beancontext.texi,
1805 doc/java-util-jar.texi, doc/java-beans.texi,
1806 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1807 doc/java-lang-ref.texi: New files.
1809 2001-01-07 Anthony Green <green@redhat.com>
1811 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1812 be used for both input and output, so don't clear doInput.
1814 * java/lang/StringBuffer.java: Fix comments.
1816 2001-01-06 Anthony Green <green@redhat.com>
1818 * java/beans/PropertyDescriptor.java: Fix comment.
1819 * java/io/PushbackReader.java: Fix comment.
1820 * java/io/ObjectStreamClass.java: Fix comment.
1821 * java/io/DataInputStream.java: Fix comment.
1822 * java/io/PipedInputStream.java: Fix comments.
1823 * java/io/PipedReader.java: Fix comments.
1824 * java/sql/DatabaseMetaData.java: Fix comments.
1826 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1828 * java/io/PipedReader: Synchronize on "lock" instead of this.
1830 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1832 * java/lang/Thread.java: Update comment.
1834 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1835 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1836 * java/io/PipedReader: New implementation based on new
1838 * java/io/PipedWriter: Updated to match new PipedReader.
1840 2001-01-03 Tom Tromey <tromey@redhat.com>
1842 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1843 (getViewportSize): Insets include scrollbar size.
1844 (doLayout): Finished.
1845 (getScrollPosition): Wrote.
1846 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1848 2001-01-02 Tom Tromey <tromey@redhat.com>
1850 * java/awt/ScrollPane.java: Wrote.
1851 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1854 * java/awt/Panel.java (Panel()): Fixed.
1856 * java/awt/Component.java (isShowing): Return false if no peer
1857 exists, and true if component is visible and no parent exists.
1858 (getLocationOnScreen): Wrote.
1859 (getPreferredSize): Removed FIXME comment.
1860 (getMinimumSize): Likewise.
1861 (getAlignmentX, getAlignmentY): Wrote.
1863 (requestFocus): Wrote.
1864 (transferFocus): Wrote.
1865 (findNextFocusComponent): New method.
1866 (hasFocus()): Wrote.
1867 (checkImage): Wrote.
1868 (enableEvents): Call setEventMask on the peer.
1870 * java/awt/Container.java (list): Use super.list() to print self.
1871 (findNextFocusComponent): New method.
1872 (setLayout): Call invalidate.
1873 (findComponentAt): Wrote.
1875 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1877 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1878 the correct versions of various linuxthreads functions get linked.
1879 * Makefile.in: Rebuilt.
1880 * java/lang/natThread.cc (finalize_native): New static function. Call
1881 _Jv_ThreadDestroyData.
1882 (initialize_native): Register finalizer for "data".
1883 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1884 (_Jv_ThreadDestroyData): New prototype.
1885 * include/win32-threads.h: Ditto.
1886 * include/no-threads.h: Ditto.
1887 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1888 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1889 move mutex and condition variable destroy code from:
1890 (really_start): ...here.
1891 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1892 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1893 (_Jv_ThreadDestroyData): Implemented.
1894 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1895 (_Jv_AllocArray): Ditto.
1897 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1899 * java/sql/DriverManager.java (getConnection): Don't set user/password
1902 2000-12-27 Warren Levy <warrenl@redhat.com>
1904 Fix for PR libgcj/1358:
1905 * java/lang/System.java: Update Copyright date properly.
1906 * java/util/Calendar.java: Fix typo in comment.
1907 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1908 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1909 initialize times. Spec says to set H:M:S values to zero only if
1911 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1912 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1913 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1914 timezones and GMT offsets, being careful to account for units of
1915 milliseconds vs. seconds.
1917 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1919 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1920 not be assigned to Object.
1922 Fix for PR libgcj/1516:
1923 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1925 (can_widen): Declared inline. Remove redundant checks for void
1926 arguments and char->short conversion. Add special case for boolean
1928 (ffi_type): Declared inline.
1929 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1931 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1933 * java/sql/SQLWarning.java: Fixed typo in comment.
1935 2000-12-26 Tom Tromey <tromey@redhat.com>
1937 * java/awt/MenuItem.java (paramString): Now protected.
1939 * java/awt/MenuShortcut.java: Implements Serializable.
1941 * java/awt/MenuBar.java: Rewrote from scratch.
1943 * java/awt/MenuComponent.java (removeNotify): Wrote.
1944 Implements Serializable.
1946 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1949 * java/awt/CheckboxMenuItem.java: Wrote.
1951 2000-12-25 Tom Tromey <tromey@redhat.com>
1953 * java/awt/MenuContainer.java: Fixed typo.
1955 * Makefile.in: Rebuilt.
1956 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1957 * java/awt/SystemColor.java: New file.
1959 * java/awt/Color.java (rgba): Now package-private.
1961 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1963 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1966 * java/awt/MenuItem.java (addNotify): New method.
1967 (MenuItem(String,MenuShortcut)): New constructor.
1968 (setLabel): Notify peer of change.
1969 (setEnabled): Likewise.
1971 * java/awt/GridLayout.java (toString): New method.
1973 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1974 (FlowLayout): Check for LEADING and TRAILING.
1975 (setAlignment): Likewise.
1976 (layoutContainer): Handle component orientation.
1978 * java/awt/Component.java (orientatin): New field.
1979 (setComponentOrientation): Wrote.
1980 (getComponentOrientation): Wrote.
1982 * java/awt/Event.java (Event): Implements Serializable.
1983 (consumed): New field for serialization.
1984 * java/awt/Dimension.java (Dimension): Implements Serializable.
1985 * java/awt/Cursor.java (Cursor): Implements Serializable.
1986 * java/awt/Container.java (Container): No longer abstract.
1988 * java/awt/Choice.java: Wrote.
1989 * java/awt/Checkbox.java: Wrote.
1990 * java/awt/ItemSelectable.java: Documented.
1991 * java/awt/CheckboxGroup.java: Wrote.
1993 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1995 (getSize): Likewise.
1997 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1999 * java/io/FileDescriptor.java: Initialize fd to -1.
2000 Remove default constructor.
2002 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2004 * java/lang/mprec.h: Change C9X reference to refer to C99.
2006 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2008 * java/lang/Throwable.java (trace_enabled): New static field.
2009 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2010 trace_enabled not set.
2011 * prims.cc (main_init): Turn off trace_enabled while creating
2012 default exception objects.
2014 2000-12-21 Tom Tromey <tromey@redhat.com>
2016 * java/beans/PropertyChangeListener.java: Extends EventListener.
2017 * java/beans/VetoableChangeListener.java: Extends EventListener.
2019 * java/util/zip/Deflater.java (update, init): Now private.
2021 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2023 * java/util/BasicMapEntry.java: Re-added.
2024 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2025 (putAll): Test for BasicMapEntry.
2026 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2027 (putAll): Test for BasicMapEntry.
2028 Change references from `HashMap.Entry' to `Entry' in various places.
2029 * Makefile.am: Add BasicMapEntry.java.
2030 * Makefile.in: Rebuilt.
2032 2000-12-18 Warren Levy <warrenl@redhat.com>
2034 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2035 need to set timezone to a valid non-null value. Partial fix for
2038 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2040 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2042 * java/awt/Button.java (addNotify): Likewise.
2043 * java/awt/Label.java (addNotify): Likewise.
2044 * java/awt/Panel.java (addNotify): Likewise.
2045 * java/awt/Scrollbar.java (addNotify): Likewise.
2046 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2047 Remove redundant null checks.
2049 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2051 * COPYING: Update to current
2052 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2053 to 19yy as example year in copyright notice).
2055 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2057 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2058 end-of-stream if avail_in is 0.
2060 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2062 * java/util/ArrayList.java (data): Declare transient.
2063 (serialPersistantFields): Removed.
2064 (readObject): Use defaultReadObject(), not readFields().
2065 (writeObject): Use defaultWriteObject(), not writeFields().
2067 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2069 * java/util/Hashtable.java (put): Remove `last' variable.
2070 Link new entry to head of list.
2071 * java/util/HashMap.java (put): Ditto.
2073 2000-12-15 Tom Tromey <tromey@redhat.com>
2075 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2076 loader to Class.forName.
2078 2000-12-14 Tom Tromey <tromey@redhat.com>
2080 * java/util/ResourceBundle.java
2081 (getBundle(String,Locale,ClassLoader)): New method.
2082 (trySomeGetBundle): Added `loader' argument.
2083 (partialGetBundle): Likewise.
2085 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2086 maximumFractionDigits, maximumIntegerDigits,
2087 minimumFractionDigits, minimumIntegerDigits): Now
2090 * java/lang/Thread.java (checkAccess): Now final.
2092 * java/lang/RuntimePermission.java: Class now final.
2094 * java/io/StringWriter.java (StringWriter(int)): Now public.
2096 * java/io/SerializablePermission.java (legal_names): Now private.
2098 * java/lang/Character.java: Updated UnicodeBlock constants.
2099 * scripts/blocks.pl: Special case private use and surrogate
2102 2000-12-12 Tom Tromey <tromey@redhat.com>
2104 * Makefile.in: Rebuilt.
2105 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2107 (GCJCOMPILE): Use it.
2110 2000-12-11 Tom Tromey <tromey@redhat.com>
2112 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2113 New static final fields.
2115 * scripts/classes.pl (scan): Skip lines with leading `*'.
2116 Fix for PR libgcj/378.
2118 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2120 * configure.in: Remove check for -fuse-divide-subroutine.
2121 * configure: Rebuilt.
2123 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2125 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2127 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2129 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2130 Remove BasicMapEntry.java and Bucket.java.
2131 * Makefile.in: Rebuilt.
2132 * java/util/HashMap.java: Rewritten.
2133 * java/util/HashSet.java: Imported from classpath.
2134 * java/util/WeakHashMap.java: Imported from classpath.
2135 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2136 * java/util/Bucket.java: Deleted.
2137 * java/util/BasicMapEntry.java: Deleted.
2138 * java/util/Collections.java (search): Use a for-loop, not iterator
2140 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2141 of elements in source.
2142 (max): Use a for-loop.
2144 (reverse): Keep track of positions instead of using Iterator's
2145 nextIndex() and previousIndex().
2146 (shuffle(List)): Initialize defaultRandom if required using
2147 double-check thread safety idiom. Call two-argument shuffle method
2148 using defaultRandom.
2149 (defaultRandom): New field.
2150 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2151 using previousIndex() and nextIndex().
2152 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2153 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2154 * java/util/AbstractMap.java (toString): Use StringBuffer.
2155 * java/lang/ref/PhantomReference.java: Imported from classpath.
2156 * java/lang/ref/SoftReference.java: Ditto.
2157 * java/lang/ref/Reference.java: Ditto.
2158 * java/lang/ref/WeakReference.java: Ditto.
2159 * java/lang/ref/ReferenceQueue.java: Ditto.
2161 2000-12-10 Richard Henderson <rth@redhat.com>
2163 * configure.host: Recognize alpha*-*, not alphaev6-*.
2165 2000-12-09 Anthony Green <green@redhat.com>
2167 * configure.host: Enable interpreter for Alpha.
2169 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2171 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2172 (ZIP): Points at fastjar instead of zip.
2173 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2174 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2175 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2176 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2177 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2178 ($(x_java_source_files:.java=.class):): Likewise.
2179 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2181 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2182 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2183 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2184 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2185 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2186 gnu/gcj/runtime/VMClassLoader.h:,
2187 java/io/ObjectInputStream$$GetField.h:,
2188 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2189 (Makefile.in): Rebuilt.
2191 2000-12-08 Tom Tromey <tromey@redhat.com>
2194 * configure: Rebuilt.
2195 * configure.in: Use echo, not `:', to create .d files.
2197 2000-12-08 Warren Levy <warrenl@redhat.com>
2199 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2200 NullPointerException so proper check of offset can be done.
2202 2000-12-08 Warren Levy <warrenl@redhat.com>
2204 * java/io/FileInputStream.java (close): Check if the fd is valid.
2205 * java/io/RandomAccessFile.java (close): Ditto.
2206 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2207 * java/net/PlainSocketImpl.java (close): Ditto.
2209 2000-12-06 Tom Tromey <tromey@redhat.com>
2211 * java/awt/GridBagConstraints.java: Filled in values for static
2214 * java/util/BitSet.java: Updated copyright notice.
2216 * Makefile.in: Rebuilt.
2217 * Makefile.am (awt_java_source_files): Added new file.
2218 * java/awt/GridBagConstraints.java: New file.
2220 2000-12-05 Tom Tromey <tromey@redhat.com>
2222 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2223 Now package-private, not protected.
2224 * java/text/DateFormatSymbols.java (equals): Now private.
2225 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2226 * java/util/BitSet.java: Class no longer final.
2228 2000-12-04 Warren Levy <warrenl@redhat.com>
2230 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2231 out code dependent on compiler and library changes.
2233 2000-12-04 Warren Levy <warrenl@redhat.com>
2235 * java/io/FilePermission.java: Made class final per spec.
2236 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2237 method name to match spec (fixed typo).
2238 * java/util/LinkedList.java: Implements List.
2240 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2242 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2243 Edgar Villanueva <edgarvil@home.com>.
2245 2000-12-03 Tom Tromey <tromey@redhat.com>
2247 * java/awt/geom/Point2D.java: Added protected constructor.
2248 (equals): New method.
2249 (Float.setLocation(float,float)): New method.
2250 * java/awt/geom/Dimension2D.java: Added protected constructor.
2251 * java/awt/geom/AffineTransform.java: Made all constants public.
2252 (concatenate): Fixed typo in name.
2253 * java/awt/event/WindowAdapter.java: Class now abstract.
2254 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2255 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2258 * java/awt/AWTError.java: Extend Error, not
2259 IllegalStateException.
2261 * Makefile.in: Rebuilt.
2262 * Makefile.am (awt_java_source_files): Added new file.
2263 * java/awt/geom/RoundRectangle2D.java: New file.
2265 * Makefile.in: Rebuilt.
2266 * Makefile.am (awt_java_source_files): Added new file.
2267 * java/awt/FlowLayout.java: New file.
2269 * Makefile.in: Rebuilt.
2270 * Makefile.am (awt_java_source_files): Added new file.
2271 * java/awt/GridLayout.java: New file.
2273 2000-12-02 Tom Tromey <tromey@redhat.com>
2275 * Makefile.in: Rebuilt.
2276 * Makefile.am (awt_java_source_files): Added new files.
2277 * java/awt/CardLayout.java: New file.
2278 * java/awt/AWTPermission.java: New file.
2280 2000-12-01 Tom Tromey <tromey@redhat.com>
2282 * java/util/Vector.java (insertElementAt): Unconditionally
2283 increment elementCount.
2284 (removeRange): Clear unused slots in vector.
2286 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2288 * java/lang/natMath.cc: Declare fabsf() function.
2289 * java/lang/mprec.h: Don't include math.h.
2290 * java/lang/dtoa.c: Include string.h.
2291 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2294 From Adam Welc <welc@cs.purdue.edu>:
2295 * java/util/LinkedList.java (removeFirst): Update `first' field.
2296 Handle the last == first case.
2297 (removeLast): Update `last' field. Handle the last == first case.
2299 2000-12-01 Warren Levy <warrenl@cygnus.com>
2301 * Makefile.am: Added entries for new java.sql modules.
2302 * Makefile.in: Rebuilt.
2304 2000-12-01 Warren Levy <warrenl@cygnus.com>
2306 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2307 that aren't quite 1.2 compatible yet.
2309 2000-11-30 Warren Levy <warrenl@cygnus.com>
2311 * java/sql/Array.java: New file from classpath.
2312 * java/sql/BatchUpdateException.java: Ditto.
2313 * java/sql/Blob.java: Ditto.
2314 * java/sql/Clob.java: Ditto.
2315 * java/sql/Ref.java: Ditto.
2316 * java/sql/SQLData.java: Ditto.
2317 * java/sql/SQLInput.java: Ditto.
2318 * java/sql/SQLOutput.java: Ditto.
2319 * java/sql/Struct.java: Ditto.
2320 * java/sql/CallableStatement.java: Merged file from claspath.
2321 * java/sql/Connection.java: Ditto.
2322 * java/sql/DataTruncation.java: Ditto.
2323 * java/sql/DatabaseMetaData.java: Ditto.
2324 * java/sql/DriverManager.java: Ditto.
2325 * java/sql/PreparedStatement.java: Ditto.
2326 * java/sql/ResultSet.java: Ditto.
2327 * java/sql/ResultSetMetaData.java: Ditto.
2328 * java/sql/SQLException.java: Ditto.
2329 * java/sql/SQLWarning.java: Ditto.
2330 * java/sql/Statement.java: Ditto.
2331 * java/sql/Types.java: Ditto.
2333 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2335 * java/lang/natSystem.cc (init_properties): Set user.language and
2337 * configure.in: Check for setlocale.
2338 * configure: Rebuilt.
2339 * include/config.h.in: Rebuilt.
2341 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2342 the infate() call didn't deliver any output. Throw a ZipException if
2343 the needsDictionary() call returns true.
2344 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2345 * java/io/InputStreamReader: Use the default buffer size for the
2346 contained BufferedInputStream.
2348 2000-11-28 Warren Levy <warrenl@cygnus.com>
2350 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2351 more time zone entries.
2352 * java/text/SimpleDateFormat.java (format): Added case for
2355 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2357 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2358 directly rather than read() in all cases. Make primitive read
2359 implementations more efficient, as defined in JDK online docs.
2360 (skipBytes): Behave like the JDK's implementation.
2361 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2362 closed stream with checkStatus() whenever an IOException can be
2364 (checkStatus): New private method.
2366 2000-11-27 Warren Levy <warrenl@cygnus.com>
2368 * Makefile.am: Added natTimeZone.cc.
2369 * Makefile.in: Rebuilt.
2370 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2371 * java/text/DateFormatSymbols.java (ampms): Made package private.
2372 (eras): Made package private.
2373 (months): Made package private.
2374 (shortMonths): Made package private.
2375 (shortWeekdays): Made package private.
2376 (weekdays): Made package private.
2377 (formatPrefixes): New private field.
2378 (localPatternCharsDefault): Made private.
2379 (dateFormats): New package private field.
2380 (timeFormats): New package private field.
2381 (formatsForKey): New private method.
2382 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2383 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2384 * java/text/SimpleDateFormat.java: Merged with Classpath.
2385 * java/util/TimeZone.java: Merged with Classpath.
2386 * java/util/natTimeZone.cc: New file.
2388 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2390 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2391 (addElement): Don't increment elementCount twice. Doh.
2392 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2393 array needs to be expanded.
2395 * java/util/Collections.java (UnmodifiableCollection): Implement
2397 (UnmodifiableList): Throw UnsupportedOperationException from
2398 modification methods. Set `l' from the one-parameter constructor.
2399 (UnmodifiableMap): Implement toString().
2400 (SynchronizedCollection): Ditto.
2401 (SynchronizedList): Set `l' from the one-parameter constructor.
2402 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2403 (SynchronizedMap): Implement toString().
2405 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2407 * javax/naming/NameParser.java,
2408 javax/naming/directory/AttributeInUseException.java,
2409 javax/naming/directory/AttributeModificationException.java,
2410 javax/naming/directory/InvalidAttributeIdentifierException.java,
2411 javax/naming/directory/InvalidAttributesException.java,
2412 javax/naming/directory/InvalidAttributeValueException.java,
2413 javax/naming/directory/InvalidSearchControlsException.java,
2414 javax/naming/directory/InvalidSearchFilterException.java,
2415 javax/naming/directory/NoSuchAttributeException.java,
2416 javax/naming/directory/SchemaViolationException.java: New files.
2418 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2420 * javax/naming/InitialContext.java (rebind): Implement.
2421 (unbind): Implement.
2422 (rename): Implement.
2424 (listBindings): Implement.
2425 (destroySubcontext): Implement.
2426 (createSubcontext): Implement.
2427 (lookupLink): Implement.
2428 (getNameParser): Implement.
2429 (composeName): Implement.
2430 (addToEnvironment): Implement.
2432 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2434 * javax/naming/AuthenticationException.java,
2435 javax/naming/AuthenticationNotSupportedException.java,
2436 javax/naming/CannotProceedException.java,
2437 javax/naming/CommunicationException.java,
2438 javax/naming/ConfigurationException.java,
2439 javax/naming/ContextNotEmptyException.java,
2440 javax/naming/InsufficientResourcesException.java,
2441 javax/naming/InterruptedNamingException.java,
2442 javax/naming/InvalidNameException.java,
2443 javax/naming/LimitExceededException.java,
2444 javax/naming/LinkException.java,
2445 javax/naming/LinkLoopException.java,
2446 javax/naming/MalformedLinkException.java,
2447 javax/naming/NameAlreadyBoundException.java,
2448 javax/naming/NameNotFoundException.java,
2449 javax/naming/NamingSecurityException.java,
2450 javax/naming/NoPermissionException.java,
2451 javax/naming/NotContextException.java,
2452 javax/naming/PartialResultException.java,
2453 javax/naming/ReferralException.java,
2454 javax/naming/ServiceUnavailableException.java,
2455 javax/naming/SizeLimitExceededException.java,
2456 javax/naming/TimeLimitExceededException.java: New files.
2458 * javax/naming/Name.java (clone): New method.
2459 (compareTo): New method.
2460 (isEmpty): New method.
2461 (getAll): New method.
2462 (getPrefix): New method.
2463 (getSuffix): New method.
2464 (startsWith): New method.
2465 (endsWith): New method.
2466 (addAll): New method.
2467 (addAll): New method.
2470 (remove): New method.
2472 * javax/naming/Context.java (lookup): New method.
2473 (rebind): New method.
2474 (unbind): New method.
2475 (rename): New method.
2477 (listBindings): New method.
2478 (destroySubcontext): New method.
2479 (createSubcontext): New method.
2480 (lookupLink): New method.
2481 (getNameParser): New method.
2482 (composeName): New method.
2483 (addToEnvironment): New method.
2484 (removeFromEnvironment): New method.
2485 (getEnvironment): New method.
2486 (close): New method.
2487 (getNameInNamespace): New method.
2489 * javax/naming/InitialContext.java (lookup): New method.
2490 (rebind): New method.
2491 (unbind): New method.
2492 (rename): New method.
2494 (listBindings): New method.
2495 (destroySubcontext): New method.
2496 (createSubcontext): New method.
2497 (lookupLink): New method.
2498 (getNameParser): New method.
2499 (composeName): New method.
2500 (addToEnvironment): New method.
2501 (removeFromEnvironment): New method.
2502 (getEnvironment): New method.
2503 (close): New method.
2504 (getNameInNamespace): New method.
2506 2000-11-26 Tom Tromey <tromey@cygnus.com>
2508 * Makefile.in: Rebuilt.
2509 * Makefile.am (core_java_source_files): Added
2510 RuntimePermission.java.
2511 * java/lang/RuntimePermission.java: Imported from Classpath.
2512 * java/lang/Thread.java (getContextClassLoader): Now
2513 synchronized. Added security code.
2514 (setContextClassLoader): Likewise.
2516 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2517 length field of array.
2518 (_Jv_NewPrimArray): Likewise.
2519 * gcj/array.h (__JArray): `length' field now const. Added
2522 2000-11-26 Anthony Green <green@redhat.com>
2524 * javax/naming/spi/NamingManager.java,
2525 javax/naming/spi/ObjectFactory.java,
2526 javax/naming/spi/InitialContextFactory.java,
2527 javax/naming/spi/InitialContextFactoryBuilder.java,
2528 javax/naming/RefAddr.java, javax/naming/Reference.java,
2529 javax/naming/NamingException.java, javax/naming/Context.java,
2530 javax/naming/Referenceable.java,
2531 javax/naming/directory/InitialDirContext.java,
2532 javax/naming/directory/DirContext.java,
2533 javax/naming/directory/Attributes.java,
2534 javax/naming/directory/Attribute.java,
2535 javax/naming/StringRefAddr.java,
2536 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2537 javax/naming/InitialContext.java,
2538 javax/naming/NoInitialContextException.java: New files.
2540 2000-11-25 Anthony Green <green@redhat.com>
2542 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2543 (_Jv_NewPrimArray): Likewise.
2544 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2545 (class JArray): Removed constructor.
2547 * java/lang/Thread.java (context_class_loader): New private data.
2548 (getContextClassLoader): New method.
2549 (setContextClassLoader): New method.
2550 (Thread): Initialize context_class_loader.
2552 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2553 (getResource): Rename to findResource.
2554 (findResource): New method. Used to be getResource.
2555 (getResourceAsStream): Deleted.
2556 (jarFileize): Extracted logic from URLClassLoader constructor into
2557 this new private method.
2558 (addURL): New protected method.
2559 (URLClassLoader): Call jarFileize. Use addElement instead of
2561 (findResources): New method.
2563 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2564 (getResource): Implement correct logic.
2565 (findResource): New method.
2566 (getResources): New method.
2567 (findClass): Create a ClassNotFoundException with the name of the
2568 class rather than nothing at all.
2569 (defineClass) Only throw ClassFormatError.
2571 * java/lang/Class.java (forName): New method.
2572 * java/lang/Class.h (forName): New method.
2573 * java/lang/natClass.cc (forName): New method.
2575 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2577 * java/lang/System.java (setProperties): Only call init_properties()
2578 if properties is null.
2579 (getProperties): Ditto.
2580 (getProperty): Ditto.
2581 (setProperty): Call init_properties if properties are null.
2582 (prop_init): Remove field.
2583 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2584 method. Check for null properties after synchronizing instead of
2585 prop_init flag. Set the properties field last for thread safety.
2587 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2588 test for gcj.dumpobjects property and enable object stream dumping
2590 (dumpElement): No longer native.
2591 (dumpElementln): Ditto.
2592 (setDump): Do not define.
2593 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2594 (dumpElementln): Removed.
2597 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2599 * configure: Rebuilt.
2600 * Makefile.in: Rebuilt.
2601 * Makefile.am (built_java_source_files): Add Configuration.java.
2602 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2603 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2604 Create `gnu' directory in the build tree.
2605 * gnu/classpath/Configuration.java.in: New file.
2607 2000-11-24 Tom Tromey <tromey@cygnus.com>
2609 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2611 (_Jv_NewPrimArray): Likewise.
2613 * gcj/array.h (__JArray): `length' field now const. Added
2615 (class JArray): Added constructor.
2617 2000-11-23 Mark Wielaard <mark@klomp.org>
2619 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2622 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2624 * java/util/Vector.java: Improve exception messages.
2625 (Vector): Check initialCapacity for IllegalArgumentException.
2626 (tromToSize): Don't check for elementCount == elementData.length
2628 (toArray): Don't try to set null marker if target array is the same
2629 length as the vector.
2631 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2633 * Makefile.in: Rebuilt.
2634 * Makefile.am (core_java_source_files): Added Collections.java.
2635 * java/util/List.java: Merged from classpath.
2636 * java/util/Vector.java: Ditto.
2637 * java/util/Collections.java: From classpath.
2638 * java/util/ArrayList.java (addAll(Collection)): Call
2639 addAll(int,Collection) instead of duplicating code.
2640 (indexOf): Clean up int initialization.
2641 (clear): Set cleared array entries to null, to allow garbage
2643 * java/util/List.java: Minor formatting fixes.
2644 * java/util/SimpleTimeZone.java: ditto.
2646 2000-11-18 Tom Tromey <tromey@cygnus.com>
2648 * Makefile.in: Rebuilt.
2649 * Makefile.am (core_java_source_files): Added new files.
2650 * java/lang/reflect/ReflectPermission.java: New class.
2651 * java/io/FileFilter.java: From Classpath
2652 * java/io/FilePermission.java: From Classpath.
2654 2000-11-17 Tom Tromey <tromey@cygnus.com>
2656 * java/lang/reflect/AccessibleObject.java (isAccessible,
2657 setAccessible): Now public.
2659 * java/lang/natString.cc: Include Locale.h.
2660 (toUpperCase): Added `locale' argument. Handle locale
2662 (toLowerCase): Added `locale' argument. Handle locale
2664 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2665 CAPITAL_I): New defines.
2666 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2669 (toUpperCase, toLowerCase): New methods. Variants which accept
2672 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2675 * java/util/PropertyPermission.java: Re-merged from Classpath.
2677 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2679 * java/text/StringCharacterIterator.java: Reindented.
2680 (setText): New method.
2682 2000-11-17 Mark Wielaard <mark@klomp.org>
2684 Merge with Classpath (changes by Bryce McKinlay)
2685 * java/util/jar/*.java: Reformat all to unofficial standard coding
2686 style. No changes of substance.
2688 2000-11-17 Mark Wielaard <mark@klomp.org>
2690 * java/util/zip/*.java: Javadoc updates.
2692 2000-11-17 Tom Tromey <tromey@cygnus.com>
2694 * java/text/CollationKey.java: Implement Comparable.
2695 (compareTo(Object)): New method.
2696 * java/text/Collator.java (compare(Object,Object)): New method.
2697 Implement Comparator.
2699 * java/util/zip/InflaterInputStream.java (available): New method.
2700 (close): New method.
2701 (read, available, skip, fill): Throw exception if stream closed.
2702 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2703 getNextEntry): Throw exception if closed.
2705 2000-11-16 Tom Tromey <tromey@cygnus.com>
2707 * java/io/PushbackReader.java: Merged with Classpath.
2708 * java/util/Arrays.java: Updated from Classpath.
2710 * scripts/blocks.pl: New file.
2711 * java/lang/Character.java (Subset): New class.
2712 (UnicodeBlock): New class.
2714 * java/lang/Math.java (toDegrees, toRadians): New methods.
2716 * java/lang/Float.java: Implement Comparable.
2717 (compareTo): New methods.
2718 * java/lang/Double.java: Implement Comparable.
2719 (compareTo): New methods.
2721 2000-11-16 Warren Levy <warrenl@cygnus.com>
2723 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2725 (listeners): Made transient.
2726 (source): Renamed from 'bean'.
2727 (children): New field for serialization.
2728 (propertyChangeSupportSerializedDataVersion): Ditto.
2729 (serialVersionUID): Ditto.
2730 (writeObject): New serialization method.
2731 (readObject): New serialization method.
2732 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2734 (listeners): Made transient.
2735 (source): Renamed from 'bean'.
2736 (children): New field for serialization.
2737 (vetoableChangeSupportSerializedDataVersion): Ditto.
2738 (serialVersionUID): Ditto.
2739 (writeObject): New serialization method.
2740 (readObject): New serialization method.
2741 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2742 to allow constructor to have a return type (i.e. the class that the
2743 constructor constructs).
2745 2000-11-14 Tom Tromey <tromey@cygnus.com>
2747 * Makefile.in: Rebuilt.
2748 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2751 2000-11-02 Warren Levy <warrenl@cygnus.com>
2753 * java/io/ObjectInputStream.java (readObject): Added code to
2754 conditionally dump out the serialized data.
2755 Handle ENDBLOCKDATA case a bit more gracefully since the current
2756 behavior doesn't seem to work as expected.
2757 (readStreamHeader): Added code for serialized data dumper.
2758 (readNextBlock): Ditto.
2759 (readFields): Ditto.
2760 (dump): New private static field for turning on/off dumper.
2761 (setDump): New native method.
2762 (dumpElement): New native method.
2763 (dumpElementln): New native method.
2764 * java/io/natObjectInputStream.cc (setDump): New method.
2765 (dumpElement): New method.
2766 (dumpElementln): New method.
2768 2000-11-02 Warren Levy <warrenl@cygnus.com>
2770 * java/net/InetAddress.java (addr): Renamed from 'address'.
2771 (address): New field to match Serialized Form doc.
2772 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2773 (family): New serialization field.
2774 (serialVersionUID): New field.
2775 (readObject): New method.
2776 (writeObject): New method.
2777 (getFamily): New native method.
2778 (InetAddress): Set family.
2779 * java/net/natInetAddress.cc (getFamily): New method.
2780 (addr): Renamed from 'address'.
2781 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2782 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2783 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2785 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2787 * java/util/AbstractList.java (SubList): Make it a top-level private
2789 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2791 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2792 * Makefile.in: Rebuilt.
2794 2000-11-02 Tom Tromey <tromey@cygnus.com>
2796 * Makefile.in: Rebuilt.
2797 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2800 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2802 * java/util/AbstractList.java (remove): Comment out modCount increment
2803 to work around compiler bug.
2806 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2808 * java/util/AbstractList.java: Throw messages with
2809 IndexOutOfBoundsExceptions.
2810 (listIterator()): Call listIterator(0).
2811 (size): New field. Initialize to size().
2812 (hasNext): Test position against size, not size().
2813 (remove): Increment knownMod by one instead of resetting it from
2816 (SubList.upMod): Removed.
2817 (SubList.set): Don't call upMod() or update knownMod.
2818 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2819 (SubList.remove): Ditto.
2820 (SubList.addAll): Don't call backingList.size(). Increment size from
2822 (SubList.iterator): New method. Call listIterator(0).
2823 (SubList.listIterator): New method. Restore code to return an anonymous
2824 listIterator implementation (with some changes).
2825 * java/util/AbstractSequentialList.java: Throw messages with
2826 IndexOutOfBoundsExceptions.
2827 (addAll): Add a specnote.
2828 * java/util/ArrayList.java (removeRange): Get the math right.
2829 (addAll): Increment modCount _before_ creating iterator.
2830 * java/util/LinkedList.java: Rewritten, mostly.
2832 2000-11-01 Tom Tromey <tromey@cygnus.com>
2834 * scripts/encodings.pl: Added `ASCII' alias.
2835 * Makefile.in: Rebuilt.
2836 * Makefile.am (convert_source_files): Added new files.
2837 * gnu/gcj/convert/Input_ASCII.java: New file.
2838 * gnu/gcj/convert/Output_ASCII.java: New file.
2839 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2840 out-of-range characters.
2841 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2842 (read): Swap bytes if required. Treat `count' as character count,
2844 (write): Likewise. Also, handle case where iconv fails on a given
2846 (init): Put encoding into exception.
2847 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2848 (static): Call iconv_init. Rebuilt alias list.
2849 (iconv_init): New private method.
2851 2000-11-01 Tom Tromey <tromey@cygnus.com>
2853 * Makefile.in: Rebuilt.
2854 * Makefile.am (install-exec-hook): Only make a single symlink, and
2855 remove the destination before making the link.
2856 * configure: Rebuilt.
2857 * configure.in: Call AC_PROG_LN_S.
2859 2000-10-31 Warren Levy <warrenl@cygnus.com>
2861 * jni.cc: Added include of java/lang/ThreadGroup.h.
2862 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2863 per change of 2000-10-05.
2865 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2867 * java/util/BitSet.java: Updated @specnote.
2869 * java/io/Reader.java: Merge docs from classpath.
2870 (skip): Synchronize on `lock'.
2871 * java/io/FileReader.java: Import correct implementation from
2873 * java/io/StringReader.java: Merge docs from classpath.
2874 (ready): Throw IOException if stream is closed.
2876 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2878 * java/util/AbstractCollection.java (addAll): Use size() instead of
2879 hasNext() in iterator loop.
2881 (contains): Ditto. Simplify loop.
2882 (containsAll): Ditto.
2887 (toString): Ditto. Use string concatenation operators, not
2889 * java/util/AbstractList.java (addAll): Use size() instead of
2890 hasNext() in iterator loop.
2893 (indexOf): Ditto. Don't take null check outside of the loop.
2894 (iterator): Return an AbstractListItr instead of anonymous class.
2895 (lastIndexOf): Use a for loop bounded by size() instead of
2896 hasPrevious() in iterator loop.
2897 (listIterator): Return an AbstractListItr.
2898 (removeRange): Remove bounds checking code and docs.
2899 (AbstractListItr): New inner class. Code moved here from
2901 (SubList.iterator): Removed. Use default implementation from
2902 AbstractList instead.
2903 (SubList.listIterator): As above.
2904 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2905 instead of hasNext() in iterator loop.
2906 (containsValue): Ditto.
2912 (toString): Ditto. Use string concatenation operators, not
2914 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2915 bounded by size() instead of hasNext() in iterator loop.
2916 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2917 part of normal execution flow. Do an explicit null check instead.
2918 * java/util/ArrayList.java (_iSize): Rename to `size'.
2919 (_arData): Rename to `data'.
2920 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2923 (removeRange): Make protected. Don't check bounds.
2924 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2926 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2928 (addAll (int, Collection)): Check lower bounds. Simplify exception
2930 (clone): Clone the data array too.
2931 (indexOf): Inline doesEqual().
2932 (lastIndexOf): Ditto.
2933 (clear): Don't set array data to null.
2934 (set): Check lower bounds. Simplify exception string.
2935 (toArray): Correct comment.
2936 (trimToSize): Don't update modCount, this is not a structural change.
2939 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2941 (toString): Declare `bit' as long, not int.
2942 (data): Made package-private, not private.
2944 2000-10-27 Warren Levy <warrenl@cygnus.com>
2946 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2947 array elements to true.
2949 2000-10-27 Warren Levy <warrenl@cygnus.com>
2951 * Makefile.am: Added locale files from Classpath.
2952 * Makefile.in: Rebuilt.
2953 * gnu/java/locale/Calendar.java: New file.
2954 * gnu/java/locale/Calendar_de.java: New file.
2955 * gnu/java/locale/Calendar_en.java: New file.
2956 * gnu/java/locale/Calendar_nl.java: New file.
2957 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2958 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2959 serialization compatibility.
2960 (scale): Made private.
2961 (serialVersionUID): New field.
2962 * java/math/BigInteger.java (ival): Made transient.
2963 (words): Made transient.
2964 (bitCount): New serialization field.
2966 (firstNonzeroByteNum): Ditto.
2967 (lowestSetBit): Ditto.
2970 (serialVersionUID): New field.
2971 (readObject): New method.
2972 (writeObject): New method.
2973 * java/util/BitSet.java (serialVersionUID): New field.
2974 * java/util/Calendar.java: Replaced with Classpath file.
2975 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2976 of getDefault() for TimeZone or Locale instead of passing nulls.
2977 * java/util/Locale.java (serialVersionUID): New field.
2978 (writeObject): New method.
2979 (readObject): New method.
2980 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2982 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2984 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2985 (core_java_source_files): Put java.lang, java.io, and java.util here.
2986 (ordinary_java_source_files): Order so that core_java_source_files are
2988 (java_source_files): Reorder so that special_java_source_files are
2990 * configure.in: Don't pass -I flag to gcj.
2991 * Makefile.in: Rebuilt.
2992 * configure: Rebuilt.
2994 2000-10-25 Tom Tromey <tromey@cygnus.com>
2996 * Makefile.in: Rebuilt.
2997 * Makefile.am (install-exec-hook): New target.
2999 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3001 * java/util/EventObject.java: Merged from classpath.
3003 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3006 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3008 * java/util/AbstractSet.java (equals): Re-installed original code.
3010 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3012 * Makefile.am: Added rules for libgcjx library.
3013 * Makefile.in: Rebuilt.
3014 * configure.in: Added check for X.
3015 * configure: Rebuilt.
3016 * gnu/awt/LightweightRedirector.java: New file.
3017 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3018 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3019 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3020 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3021 * gnu/awt/j2d/MappedRaster.java: New file.
3022 * gnu/awt/xlib/XCanvasPeer.java: New file.
3023 * gnu/awt/xlib/XEventLoop.java: New file.
3024 * gnu/awt/xlib/XEventQueue.java: New file.
3025 * gnu/awt/xlib/XFontMetrics.java: New file.
3026 * gnu/awt/xlib/XFramePeer.java: New file.
3027 * gnu/awt/xlib/XGraphics.java: New file.
3028 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3029 * gnu/awt/xlib/XPanelPeer.java: New file.
3030 * gnu/awt/xlib/XToolkit.java: New file.
3031 * gnu/gcj/xlib/Clip.java: New file.
3032 * gnu/gcj/xlib/Colormap.java: New file.
3033 * gnu/gcj/xlib/Display.java: New file.
3034 * gnu/gcj/xlib/Drawable.java: New file.
3035 * gnu/gcj/xlib/Font.java: New file.
3036 * gnu/gcj/xlib/GC.java: New file.
3037 * gnu/gcj/xlib/Pixmap.java: New file.
3038 * gnu/gcj/xlib/Screen.java: New file.
3039 * gnu/gcj/xlib/Visual.java: New file.
3040 * gnu/gcj/xlib/WMSizeHints.java: New file.
3041 * gnu/gcj/xlib/Window.java: New file.
3042 * gnu/gcj/xlib/WindowAttributes.java: New file.
3043 * gnu/gcj/xlib/XAnyEvent.java: New file.
3044 * gnu/gcj/xlib/XButtonEvent.java: New file.
3045 * gnu/gcj/xlib/XColor.java: New file.
3046 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3047 * gnu/gcj/xlib/XConnectException.java: New file.
3048 * gnu/gcj/xlib/XEvent.java: New file.
3049 * gnu/gcj/xlib/XException.java: New file.
3050 * gnu/gcj/xlib/XExposeEvent.java: New file.
3051 * gnu/gcj/xlib/XID.java: New file.
3052 * gnu/gcj/xlib/XImage.java: New file.
3053 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3054 * gnu/gcj/xlib/natClip.cc: New file.
3055 * gnu/gcj/xlib/natColormap.cc: New file.
3056 * gnu/gcj/xlib/natDisplay.cc: New file.
3057 * gnu/gcj/xlib/natDrawable.cc: New file.
3058 * gnu/gcj/xlib/natFont.cc: New file.
3059 * gnu/gcj/xlib/natGC.cc: New file.
3060 * gnu/gcj/xlib/natPixmap.cc: New file.
3061 * gnu/gcj/xlib/natScreen.cc: New file.
3062 * gnu/gcj/xlib/natVisual.cc: New file.
3063 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3064 * gnu/gcj/xlib/natWindow.cc: New file.
3065 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3066 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3067 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3068 * gnu/gcj/xlib/natXColor.cc: New file.
3069 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3070 * gnu/gcj/xlib/natXException.cc: New file.
3071 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3072 * gnu/gcj/xlib/natXImage.cc: New file.
3073 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3074 * java/awt/EventDispatchThread.java: Start thead on creation.
3076 2000-10-20 Tom Tromey <tromey@cygnus.com>
3078 From Arno J. Klaassen:
3079 * interpret.cc: Include <stdlib.h> for alloca.
3080 * defineclass.cc: Include <stdlib.h> for alloca.
3082 * Makefile.in: Rebuilt.
3083 * Makefile.am: Include deps.mk.
3084 (GCJCOMPILE): Added -MD, -MT, and -MF.
3085 ($(javao_files)): Don't depend on libgcj.zip.
3086 (all-recursive): New target.
3087 (%.lo:%.cc): Do dependency tracking.
3088 ($(nat_headers)): Don't depend on libgcj.zip.
3089 * configure: Rebuilt.
3090 * configure.in: Make .d files and deps.mk.
3092 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3094 * exception.cc: Don't #include "exception".
3095 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3097 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3098 * Makefile.in: Updated.
3100 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3102 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3103 * java/awt/peer/ComponentPeer.java (disable): Removed.
3106 (minimumSize): Removed.
3107 (preferredSize): Removed.
3110 * java/awt/peer/ListPeer.java (addItem): Removed.
3112 (minimumSize): Removed.
3113 (preferredSize): Removed.
3114 (setMultipleSelections): Removed.
3115 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3116 (remove): Renamed from removeMenu.
3117 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3119 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3120 (remove): Renamed from removeItem.
3121 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3122 (getMinimumSize): Removed.
3123 (getPreferredSize): Removed.
3124 (minimumSize): Removed.
3125 (preferredSize): Removed.
3126 (replaceText): Removed.
3127 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3128 (preferredSize): Removed.
3129 (getMinimumSize): Removed.
3130 (getPreferredSize): Removed.
3131 (setEchoCharacter): Removed.
3133 2000-10-10 Warren Levy <warrenl@cygnus.com>
3135 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3136 * java/sql/Date.java (serialVersionUID): New field.
3137 * java/sql/Time.java (serialVersionUID): New field.
3138 * java/sql/Timestamp.java (serialVersionUID): New field.
3139 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3140 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3141 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3142 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3143 (readObject): New serialization method.
3144 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3145 (serialVersionOnStream): New field.
3146 (readObject): New serialization method.
3147 (getMonetaryDecimalSeparator): New method.
3148 (setMonetaryDecimalSeparator): New method.
3149 * java/text/NumberFormat.java (maxFractionDigits): New field.
3150 (maxIntegerDigits): New field.
3151 (minFractionDigits): New field.
3152 (minIntegerDigits): New field.
3153 (serialVersionOnStream): New field.
3154 (serialVersionUID): New field.
3155 (readObject): New serialization method.
3156 (writeObject): New serialization method.
3157 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3158 (serialVersionOnStream): New field.
3159 (serialVersionUID): New field.
3160 (readObject): New serialization method.
3162 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3164 * configure.in (GCJ): Avoid bogus error message when looking for
3165 (and not finding) gcj in the build tree.
3166 * configure: Rebuilt.
3168 2000-10-09 Tom Tromey <tromey@cygnus.com>
3170 * configure: Rebuilt.
3171 * configure.in: Include sys/types.h when checking for socklen_t.
3172 From Arno J. Klaassen.
3174 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3176 * include/jvm.h: Enable __builtin_expect().
3178 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3179 the main program. Fix for PR libgcj/341.
3181 2000-10-07 Tom Tromey <tromey@cygnus.com>
3183 * java/util/Properties.java: Merged with Classpath version.
3185 2000-10-05 Tom Tromey <tromey@cygnus.com>
3187 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3188 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3189 * java/lang/Class.h (Object): Added `class$' field.
3190 * java/lang/Object.h (Object): Added `class$' field.
3191 * defineclass.cc (ClassClass): Use `class$' form.
3192 (ClassObject): Likewise.
3193 * resolve.cc (ClassObject): Use `class$' form.
3194 (ObjectClass): Likewise.
3195 * interpret.cc (ClassError): Removed.
3196 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3198 (IntegerClass): Likewise.
3199 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3201 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3202 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3203 SerializableClass): Likewise.
3204 Include Serializable.h, Cloneable.h.
3205 * java/lang/natSystem.cc (SystemClass): Removed.
3206 (init_properties): Use `class$' form.
3207 * java/lang/natObject.cc (CloneableClass): Removed.
3208 (clone): Use `class$' form.
3209 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3210 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3211 ConstructorClass): Likewise.
3212 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3213 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3214 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3215 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3217 (ClassClass): Likewise.
3218 * include/jvm.h (StringClass): Use `class$' form.
3219 * prims.cc (ObjectClass): Removed.
3220 (_Jv_RunMain): Use `class$' form.
3221 (_Jv_AllocObject): Likewise.
3222 * jni.cc (ClassClass): Use `class$' form.
3223 (ThrowableClass): Likewise.
3224 (ObjectClass): Likewise.
3225 (MethodClass): Likewise.
3226 (ThreadGroupClass): Likewise.
3227 (NativeThreadClass): Likewise.
3228 * boehm.cc (ObjectClass): Removed.
3229 (ClassClass): Removed.
3230 (_Jv_MarkObj): Use `class$' form.
3231 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3234 2000-10-05 Warren Levy <warrenl@cygnus.com>
3236 * Makefile.am: Removed java/io/Replaceable.java and
3237 java/io/Resolvable.java.
3238 * Makefile.in: Rebuilt.
3239 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3241 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3243 (processResolution): Handle readResolve method via reflection with
3244 removal of Resolvable interface.
3245 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3246 method via reflection with removal of Replaceable interface.
3247 * java/io/Replaceable.java: Removed.
3248 * java/io/Resolvable.java: Removed.
3249 * java/security/Key.java (serialVersionUID): New field.
3250 * java/security/Provider.java (serialVersionUID): New field.
3251 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3253 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3255 * java/sql/DataTruncation.java (serialVersionUID): New field.
3256 * java/sql/SQLException.java (serialVersionUID): New field.
3257 * java/sql/SQLWarning.java (serialVersionUID): New field.
3258 * java/util/Date.java (serialVersionUID): New field.
3259 (millis): Made transient.
3260 (readObject): New method.
3261 (writeObject): New method.
3263 2000-10-05 Tom Tromey <tromey@cygnus.com>
3265 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3267 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3269 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3270 (JvRunMain): Set _Jv_argv and _Jv_argc.
3271 * java/awt/Component.java: Minor fixes.
3272 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3273 * java/awt/Toolkit.java (systemEventQueue): Removed.
3274 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3275 * java/awt/Window.java (getToolkit): Don't call super.
3276 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3277 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3278 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3279 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3280 * gnu/awt/gtk/GtkFramePeer.java: New file.
3281 * gnu/awt/gtk/GtkMainThread.java: New file.
3282 * gnu/awt/gtk/GtkToolkit.java: New file.
3283 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3284 * gnu/awt/gtk/gtkcommon.cc: New file.
3285 * gnu/awt/gtk/gtkcommon.h: New file.
3286 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3287 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3288 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3289 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3290 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3291 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3293 2000-09-30 Tom Tromey <tromey@cygnus.com>
3295 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3296 interrupted before modifying the cv's wait set.
3299 2000-09-30 Hans Boehm <boehm@acm.org>
3300 Bryce McKinlay <bryce@albatross.co.nz>
3302 Implement bitmap descriptor based marking for Boehm GC.
3304 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3305 * configure: Rebuilt.
3306 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3307 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3308 method get_finalizer().
3309 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3310 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3311 (_Jv_AllocObj): Add new jclass parameter.
3312 (_Jv_AllocArray): Ditto.
3313 (_Jv_BuildGCDescr): New prototype.
3314 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3315 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3316 get_finalizer() instead of direct finalizer vtable offset.
3317 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3318 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3319 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3320 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3321 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3322 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3323 (_Jv_DetermineVTableIndex): Ditto.
3324 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3325 calculations to account for new gc_descr field.
3326 * boehm.cc: #include gc_gcj.h.
3327 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3328 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3329 New commentary from HB. Mark the classes vtable.
3330 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3331 (GC_DEFAULT_DESCR): New #define.
3332 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3333 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3334 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3335 scan conservativly if size is less than min_heap_addr. Set vtable
3336 pointer of new object before returning.
3337 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3338 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3339 allocation for obj_kind_x.
3340 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3341 (_Jv_AllocObj): Set vtable on returned object.
3342 (_Jv_AllocArray): Ditto.
3343 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3344 (_Jv_NewPrimArray): Ditto.
3345 (_Jv_AllocObj): Declare as a friend.
3346 (_Jv_AllocArray): Ditto.
3347 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3348 from &ObjectClass into new array class. Remove offset-by-one
3349 adjustments from `method' size calculations to account for gc_descr
3352 2000-09-26 Tom Tromey <tromey@cygnus.com>
3354 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3355 `remove', not `add'.
3357 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3359 * java/lang/natSystem.cc (file_encoding): Added return statement.
3361 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3363 * Makefile.am: Re-work shell commands that exceeded command-line
3365 * Makefile.in: Rebuilt.
3367 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3369 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3370 * java/lang/natDouble.cc: Likewise.
3371 * java/lang/reflect/natMethod.cc: Likewise.
3372 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3374 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3376 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3378 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3379 * acinclude.m4: Arrange for automake to not bring in a new
3380 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3381 * Makefile.am: Leave it up to automake to subst GCJ.
3382 * aclocal.m4, configure, Makefile.in: Rebuilt.
3384 2000-09-13 Tom Tromey <tromey@cygnus.com>
3386 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3387 (get): Ensure Boolean class is initialized.
3388 * java/lang/reflect/natField.cc (BooleanClass): New define.
3389 (get): Ensure Boolean class is initialized.
3391 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3393 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3394 Initialize with anonymous class.
3395 (compareToIgnoreCase): New method.
3397 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3398 (uncaughtException): Set had_uncaught_exception.
3399 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3400 exit with error status if set.
3401 (_Jv_RunMain): Ditto.
3403 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3405 * configure: Rebuilt with new ../libtool.m4.
3407 2000-09-11 Tom Tromey <tromey@cygnus.com>
3409 * java/lang/reflect/Field.java (toString): Don't rely on
3412 2000-09-08 Tom Tromey <tromey@cygnus.com>
3414 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3415 default decoder use iconv.
3416 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3417 Let default encoder use iconv.
3418 * configure: Rebuilt.
3419 * configure.in: Check for nl_langinfo and <langinfo.h>.
3420 * java/lang/natSystem.cc (file_encoding): New function.
3421 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3423 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3425 * acinclude.m4: Simplify the tests for CC and CXX.
3426 * aclocal.m4, configure: Rebuilt.
3428 * acinclude.m4: Include libtool macros from the source tree.
3429 * aclocal.m4, configure: Rebuilt.
3431 2000-09-08 Warren Levy <warrenl@cygnus.com>
3433 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3434 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3435 * java/io/File.java (writeObject): Added.
3436 (readObject): Added.
3437 (serialVersionUID): Added.
3438 * java/io/ObjectOutputStream.java (writeObject): Initialized
3439 fieldsAlreadyWritten before recursion rather than after.
3440 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3441 * java/io/OptionalDataException.java (serialVersionUID): Added.
3442 (OptionalDataException): Made package private.
3443 * java/io/SyncFailedException.java (SyncFailedException): Removed
3444 default constructor to match spec.
3445 * java/lang/Boolean.java (serialVersionUID): Added.
3446 * java/lang/Byte.java (serialVersionUID): Added.
3447 * java/lang/Character.java (serialVersionUID): Added.
3448 * java/lang/Double.java (serialVersionUID): Added.
3449 * java/lang/Float.java (serialVersionUID): Added.
3450 * java/lang/Integer.java (serialVersionUID): Added.
3451 * java/lang/Long.java (serialVersionUID): Added.
3452 * java/lang/Number.java (serialVersionUID): Added.
3453 * java/lang/Short.java (serialVersionUID): Added.
3454 * java/lang/String.java (serialVersionUID): Added.
3455 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3457 * java/lang/reflect/InvocationTargetException.java
3458 (serialVersionUID): Added.
3459 * java/net/URL.java (handler): Made transient.
3460 (hashCode): Added field for serialization, per spec. and use
3461 cached value if available.
3462 (serialVersionUID): Added.
3463 (URL): Initialize hashCode.
3464 (set): Adjust hashCode.
3465 (readObject): New Method to initialize the protocol handler when
3467 (writeObject): New method.
3468 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3469 * java/text/Collator.java: Removed 'implements Serializable'.
3470 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3471 * java/util/Properties.java (serialVersionUID): Added.
3472 * java/util/Random.java (serialVersionUID): Added.
3473 (seed): Made private.
3474 (nextNextGaussian): Made private.
3475 (haveNextNextGaussian): Made private.
3476 * java/util/Stack.java (serialVersionUID): Added.
3477 * java/util/TimeZone.java (serialVersionUID): Added.
3478 * java/util/Vector.java (serialVersionUID): Added.
3480 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3482 * Makefile.am (Thread.h): Don't be friends with native threads
3484 * Makefile.in: Rebuilt.
3485 * java/lang/Thread.java (interrupt_flag): Make package-private.
3487 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3489 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3490 to avoid long long division.
3492 2000-09-06 Tom Tromey <tromey@cygnus.com>
3494 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3496 * java/lang/reflect/Method.java (toString): Use `getName' for
3499 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3500 `args' if method takes no parameters.
3502 Fix for PR java.lang/339:
3503 * java/lang/natPosixProcess.cc (fail): New function.
3504 (cleanup): New function.
3505 (startProcess): Use them. Create pipe so child can communicate
3506 exec failure back to parent.
3508 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3510 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3512 (send): Undo last patch. Remove the label only.
3514 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3516 * java/net/natInetAdress.cc: Ditto.
3518 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3520 2000-09-05 Tom Tromey <tromey@cygnus.com>
3522 * doc/cni.sgml: Updated from master copy.
3524 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3526 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3528 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3530 * java/lang/fdlibm.h: #undef __P if previously defined.
3531 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3532 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3536 2000-09-04 Tom Tromey <tromey@cygnus.com>
3538 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3541 2000-09-04 Anthony Green <green@redhat.com>
3543 Fix for PR java.io/203:
3544 * java/io/File.java (createTempFile): Obey directory argument.
3545 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3546 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3547 variable to set java.io.tmpdir on non-WIN32 systems.
3549 2000-09-04 Anthony Green <green@redhat.com>
3551 * java/io/File.java (deleteOnExit): New method.
3552 * gnu/gcj/runtime/FileDeleter.java: New class.
3553 * java/lang/natRuntime.cc (exit): Call
3554 FileDeleter.deleteOnExitNow()
3555 * Makefile.am: Add FileDeleter.java.
3556 * Makefile.in: Rebuilt.
3558 2000-09-02 Tom Tromey <tromey@cygnus.com>
3560 * Makefile.in: Rebuilt.
3561 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3562 environment variable.
3564 2000-09-01 Andrew Haley <aph@redhat.com>
3566 * java/io/StreamTokenizer.java: Don't throw a
3567 NumberFormatException if a field is numeric as far as the
3568 StreamTokenizer is concerned but not as far as Double.valueOf() is
3569 concerned: return a zero instead.
3571 2000-08-30 Tom Tromey <tromey@cygnus.com>
3573 * Makefile.in: Rebuilt.
3574 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3576 2000-08-28 Tom Tromey <tromey@cygnus.com>
3578 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3579 gnu/gcj/awt/ComponentDataBlitOp.java,
3580 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3581 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3582 java/awt/color/ICC_ColorSpace.java,
3583 java/awt/color/ICC_Profile.java,
3584 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3585 java/awt/image/ComponentColorModel.java,
3586 java/awt/image/ComponentSampleModel.java,
3587 java/awt/image/DataBuffer.java,
3588 java/awt/image/DataBufferByte.java,
3589 java/awt/image/DataBufferInt.java,
3590 java/awt/image/DataBufferUShort.java,
3591 java/awt/image/DirectColorModel.java,
3592 java/awt/image/IndexColorModel.java,
3593 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3594 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3595 java/awt/image/SinglePixelPackedSampleModel.java,
3596 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3597 Removed Latin-1 copyright symbols.
3598 * java/util/zip/ZipFile.java: Indentation fixes.
3600 2000-08-27 Mark Wielaard <mark@klomp.org>
3602 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3603 constructor, close can delete the file, finalize calls close.
3604 * java/util/jar/JarFile.java: Constructor that takes mode now
3607 2000-08-27 Anthony Green <green@redhat.com>
3609 * java/util/ArrayList.java, java/util/Timer.java,
3610 java/util/LinkedList.java, java/util/TimerTask.java,
3611 java/util/HashMap.java, java/util/AbstractMap.java,
3612 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3613 java/util/SortedSet.java: Imported from GNU Classpath.
3614 * Makefile.in: Rebuilt.
3615 * Makefile.am: Added new files.
3617 2000-08-26 Anthony Green <green@redhat.com>
3619 * Makefile.in: Rebuilt.
3620 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3623 * prims.cc: Include ClassLoader.h.
3624 (_Jv_RunMain): When executing jar files, classpath must be the jar
3625 file only. Lose our reference to the system ClassLoader in order
3626 to get a new one with the correct classpath.
3627 * java/lang/natSystem.cc (init_properties): When executing a jar
3628 file, only use the jar file for java.class.path.
3630 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3631 for bytecode archives.
3633 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3634 exists, but not Main-Class.
3636 2000-08-23 Mark Wielaard <mark@klomp.org>
3638 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3639 return -1 when fill() has no more data for the Inflater.
3641 2000-08-23 Mark Wielaard <mark@klomp.org>
3643 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3644 write(String) already does.
3646 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3648 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3649 to `alive_flag', call `init'.
3650 (init): New native method.
3651 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3654 2000-08-21 Mark Wielaard <mark@klomp.org>
3656 * Makefile.in: Rebuilt.
3657 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3659 (java/lang/reflect/Field.h): Likewise.
3660 (java/lang/reflect/Method.h): Likewise.
3661 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3664 2000-08-21 Tom Tromey <tromey@cygnus.com>
3666 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3669 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3671 * java/lang/natSystem.cc (init_properties): Change sourceware
3672 reference to sources.redhat.com.
3674 * include/java-props.h: Add _Jv_Jar_Class_Path.
3675 * prims.cc: Ditto. Set it from `gij -jar file' option.
3677 * java/lang/natSystem.cc (init_properties): Set java.class.path
3679 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3681 * java/util/PropertyPermission.java: Import from GNU Classpath.
3682 * Makefile.in: Rebuilt.
3683 * Makefile.am: Add java/util/PropertyPermission.java.
3684 * java/lang/System.java: Add setProperty method.
3686 * gij.cc (main): Add -jar option to execute jar files.
3687 (help): Describe -jar option.
3688 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3689 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3690 * gnu/gcj/runtime/FirstThread.java (main): New method.
3692 * java/util/jar/Attributes.java: Correct comment spelling.
3694 2000-08-20 Mark Wielaard <mark@klomp.org>
3696 * java/util/zip/Adler32.java: Make private variables really private
3697 * java/util/zip/CRC32.java: Make private variables really private
3698 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3700 * java/util/zip/InflaterInputStream.java: skip() could skip to
3702 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3703 * java/util/zip/ZipFile.java: size() new 1.2 method
3704 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3705 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3708 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3710 * java/util/jar/JarFile.java: Don't call
3711 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3714 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3716 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3717 Read the entire contents of the class file, not just what is
3720 * java/net/JarURLConnection.java: getEntry doesn't take any
3721 arguments. Return null if element is null.
3723 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3724 size from the archive, not the inflated size.
3726 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3727 java.util.zip.ZipFile.getEntry.
3729 * gij.cc (help): Change sourceware reference to
3732 2000-08-19 Tom Tromey <tromey@cygnus.com>
3734 * java/util/zip/ZipInputStream.java (createZipEntry):
3737 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3739 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3740 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3741 java/util/jar/JarInputStream.java,
3742 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3743 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3744 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3745 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3746 java/security/cert/Certificate.java,
3747 java/security/cert/CertificateEncodingException.java,
3748 java/security/cert/CertificateException.java,
3749 java/security/cert/CertificateExpiredException.java,
3750 java/security/cert/CertificateFactory.java,
3751 java/security/cert/CertificateFactorySpi.java,
3752 java/security/cert/CertificateNotYetValidException.java,
3753 java/security/cert/CertificateParsingException.java,
3754 java/security/cert/X509CRL.java,
3755 java/security/cert/X509CRLEntry.java,
3756 java/security/cert/X509Certificate.java,
3757 java/security/cert/X509Extension.java: Imported from Classpath.
3758 * java/util/Hashtable.java: Imported from Classpath.
3760 * java/util/zip/ZipInputStream.java: Create stub for
3763 * gcj/javaprims.h: Updated class list.
3765 * Makefile.in, gcj/Makefile.in: Rebuilt.
3766 * Makefile.am (ordinary_java_source_files): Add these new classes.
3768 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3770 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3771 * gnu/gcj/awt/GLightweightPeer.java: New file.
3772 * java/awt/BorderLayout.java: Implemented all methods.
3773 * java/awt/Button.java (actionListener, actionCommand): Renamed
3774 and modifier change.
3775 (addNotify): Call super.
3776 (dispatchEventImpl): New method.
3777 (getListeners): New method.
3778 (label): Made package-private, not private.
3779 * java/awt/Canvas.java: Implemented class body.
3780 * java/awt/Color.java (brighter): New method.
3781 (darker): New method.
3782 (hashCode): New method.
3783 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3784 (getGraphicsConfiguration): Delegate to
3785 getGraphicsConfigurationImpl().
3786 (getGraphicsConfigurationImpl): New method.
3787 (getToolkit): Only return value from peer if not null.
3788 (isDisplayable): Check with parent.
3789 (isShowing): No parent implies not showing.
3790 (getForeground): Check parent property if local is null.
3791 (getBackground): Likewise.
3792 (getFont): Likewise.
3793 (setForeground): Inform peer.
3794 (setBackground): Likewise
3795 (setLocale): Invalidate component.
3796 (getColorModel): Implemented.
3797 (setLocation): Invalidate, or ignore if no change.
3798 (setSize): Invalidate, or ignore if no change.
3799 (setBounds): Invalidate, or ignore if no change.
3800 (isOpaque): By default, heavyweight implies opaque.
3801 (isLightweight): Implemented.
3802 (getMaximumSize): Implemented.
3803 (doLayout): Implemented, NOP.
3804 (validate): Implemented, NOP.
3805 (invalidate): Only propagate to parent if parent was valid.
3806 (getGraphics): Implemented.
3807 (getFontMetrics): Implemented.
3808 (update): Implemented.
3809 (paintAll): Implemented.
3810 (repaint): Implemented all repaint methods.
3811 (print): Implemented.
3812 (printAll): Implemented.
3813 (createImage): Implemented.
3814 (dispatchEvent): Give the peer a chance to handle the event.
3815 (dispatchEventImpl): Dispatch paint events.
3816 (enableEvents): Lightweights enable events on parent component.
3817 (coalesceEvents): Coalesce paint events, and select event type
3819 (coalescePaintEvents): New method.
3820 (processEvent): Fix unfortunate ordering of statements, and call
3821 correct method for MOUSE_CLICKED.
3822 (processPaintEvent): New method.
3823 (addNotify): Allow container to notify children before event
3824 mask is set in peer.
3825 (addNotifyContainerChildren): New method.
3826 (removeNotify): Visibility should not change on removeNotify.
3827 (paramString): Implemented.
3828 (list): Implemented two of the list methods.
3829 * Container (myInsets): Removed, insets are managed by peer.
3830 (getInsets): Query peer.
3831 (addImpl): Fix reparenting, enable events for lightweights,
3832 initialize component array.
3833 (validate): Call doLayout in validateTree() instead.
3834 (validateTree): Do nothing if already valid. Call beginValidate(),
3835 endValidate() on peer. Call validateTree() instead of validate()
3836 for children that are containers. Mark valid after validation of
3838 (setFont): Partial implementation.
3839 (paint): Implemented.
3840 (visitChildren): New method.
3841 (visitChild): New method.
3842 (update): Implemented.
3843 (print): Implemented.
3844 (paintComponents): Implemented.
3845 (printComponents): Consider translation and clipping.
3846 (getComponentAt): Ignore invisible children. Return this if no
3848 (addNotify): Call super.
3849 (addNotifyContainerChildren): New method.
3850 (paramString): Implemented.
3851 (list): Implemented.
3852 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3854 (invokeLater): Likewise.
3855 (isDispatchThread): Likewise.
3856 * java/awt/FontMetrics (getLeading): Formula change.
3857 (getDescent): Consider leading also.
3858 (getMaxAscent): Default to getAscent().
3859 (getMaxDescent): Default to getDescent.
3860 (getMaxAdvance): Return value signifying unknown.
3861 (charWidth): Both methods implemented.
3862 (charsWidth): Implemented.
3863 (bytesWidth): Implemented.
3864 (getWidths): Implemented.
3865 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3867 (Frame): Rearragend constuctor chaining to disallow null being
3868 passed as a graphics configuration.
3869 (getTitle): Return empty string if null.
3871 (getIconImage): New method.
3872 (setIconImage): New method.
3873 (finalize): New method.
3874 (setMenuBar): Notify peer.
3875 (isResizable): New method.
3876 (setResizable): New method.
3877 (getState): New method.
3879 (remove): Implemented.
3880 (removeNotify): New method.
3881 (getFrames): New method.
3882 * java/awt/Graphics.java: Implemented body of class.
3883 * java/awt/Graphics2D.java: New file.
3884 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3885 * java/awt/Image.java: Implemented body of class.
3886 * java/awt/Panel.java (Panel): Call correct super constructor.
3887 (addNotify): Implemented.
3888 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3889 * java/awt/RenderingHints.java: New file.
3890 * java/awt/Toolkit.java (createComponent): Implemented.
3891 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3892 * java/awt/Window.java (Window): Two new constructors. Reordered
3893 constructor chaining.
3894 (getGraphicsConfigurationImpl): New method.
3895 (finalize): Call super.
3896 (addNotify): Call super.
3897 (pack): Do layout stuff.
3898 (show): Ensure that peer exists and that component is valid.
3899 (dispose): Dispose owned children.
3900 (getOwner): Simplify code, casting null pointers is valid.
3901 (getGraphicsConfiguration): Ask peer if local value is null.
3902 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3904 * java/awt/image/BufferedImage.java: New file.
3905 * java/awt/image/RasterOp.java: New file.
3906 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3907 More powerfull replacement for getColorModel().
3908 (getColorModel) Removed.
3909 (setEventMask) New method.
3910 * Makefile.am: Added new files.
3911 * Makefile.in: Rebuilt.
3913 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3915 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3916 (finit_leg_name): New global.
3917 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3918 `$finit$'. This is a backward compatibility hack.
3919 (java::lang::Class::_getMethods): Likewise.
3921 2000-08-15 Andrew Haley <aph@cygnus.com>
3923 * include/jvm.h (_Jv_HashCode): New hash code.
3925 2000-08-15 Tom Tromey <tromey@cygnus.com>
3927 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3929 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3931 * THANKS: More thanks.
3933 2000-08-10 Tom Tromey <tromey@cygnus.com>
3935 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3937 (connect): Likewise.
3939 (getOption): Likewise.
3940 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3941 case when errno not set.
3944 (receive): Likewise.
3945 (mcastGrp): Likewise.
3946 (setOption): Likewise.
3947 (getOption): Likewise.
3949 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3950 John Stracke <francis@ecal.com>
3952 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3953 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3955 (disconnect): Don't unset connected flag.
3956 (getHeaderField (String)): Call connect() if not connected.
3957 (getHeaderField (int)): Ditto.
3958 (getHeaderFieldKey): Ditto.
3959 (getHttpHeaders): Don't call connect().
3960 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3961 gotResponseVals): New fields.
3962 (getResponseCode): Call getResponseVals() conditionally.
3963 (getResponseMessage): Ditto.
3964 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3966 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3968 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3969 * Makefile.in: Rebuilt.
3970 * java/awt/Color.java (getTransparency): New method.
3971 * java/awt/Component.java: Various updates.
3972 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3973 after dealing with children.
3974 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3975 * java/awt/Window.java: Various new methods and updates.
3976 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3978 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3979 * java/awt/event/WindowEvent.java (paramString): Ditto.
3980 * java/awt/geom/Dimension2D.java (clone): Wrap super call with