1 2001-07-25 Tom Tromey <tromey@redhat.com>
3 * Makefile.in: Rebuilt.
4 * Makefile.am (libgcj.jar): Correctly fail when bytecode
7 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9 * prims.cc (_JNI_OnLoad): New function.
11 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
13 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
16 Makefile.in: Regenerate.
18 2001-07-24 Tom Tromey <tromey@redhat.com>
20 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
23 2001-07-23 Tom Tromey <tromey@redhat.com>
25 * gcj/javaprims.h: Rebuilt class list.
26 * Makefile.in: Rebuilt.
27 * Makefile.am (core_java_source_files): Added VMClassLoader.
28 * java/lang/VMClassLoader.java: New file.
29 * java/lang/Boolean.java: Merged with Classpath.
30 * java/lang/Byte.java: Merged with Classpath.
31 * java/lang/Integer.java: Merged with Classpath.
32 * java/lang/Long.java: Merged with Classpath.
33 * java/lang/Number.java: Merged with Classpath.
34 * java/lang/Short.java: Merged with Classpath.
36 2001-07-22 Jeff Sturm <jsturm@one-point.com>
38 * configure.host: Enable hash synchronization for alpha*-*.
39 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
41 * java/lang/natObject.cc (compare_and_swap, release_set,
42 compare_and_swap_release): Added inline functions for alpha.
44 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
46 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
47 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
48 back to old RFC 2133 variants if missing.
50 2001-07-18 Tom Tromey <tromey@redhat.com>
52 * java/io/natFileWin32.cc (_access): Renamed.
54 * java/io/natFile.cc (_access): Renamed.
56 * java/io/File.java (access, stat): Add leading `_' to name.
59 2001-07-18 Tom Tromey <tromey@redhat.com>
62 * libgcj.spec.in (*lib): Added LIBICONV.
64 * configure.in: Call AM_ICONV. Don't check for iconv function.
65 Add parameters to JV_HASH_SYNCHRONIZATION define.
66 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
68 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
70 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
71 not by setting its size field.
73 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
75 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
78 2001-07-12 Tom Tromey <tromey@redhat.com>
79 David Brownell <david-b@pacbell.net>
81 Fix for PR libgcj/3426:
82 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
84 (read): Throw exception if character conversion fails.
85 * java/io/BufferedInputStream.java (refill): Now package-private.
86 * java/io/InputStreamReader.java (ready): Simplified.
90 2001-07-12 Tom Tromey <tromey@redhat.com>
92 Report from Henner Zeller:
93 * java/io/FileOutputStream.java (FileOutputStream): Throw
94 FileNotFoundException, not IOException.
96 2001-07-10 Anthony Green <green@redhat.com>
98 * Makefile.in: Rebuilt.
99 * Makefile.am: Add new files.
100 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
101 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
102 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
103 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
104 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
105 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
106 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
107 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
108 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
109 org/w3c/dom/ranges/DocumentRange.java,
110 org/w3c/dom/ranges/Range.java,
111 org/w3c/dom/ranges/RangeException.java,
112 org/w3c/dom/traversal/DocumentTraversal.java,
113 org/w3c/dom/traversal/NodeFilter.java,
114 org/w3c/dom/traversal/NodeIterator.java,
115 org/w3c/dom/traversal/TreeWalker.java,
116 org/xml/sax/ext/DeclHandler.java,
117 org/xml/sax/ext/LexicalHandler.java,
118 org/xml/sax/helpers/AttributeListImpl.java,
119 org/xml/sax/helpers/AttributesImpl.java,
120 org/xml/sax/helpers/DefaultHandler.java,
121 org/xml/sax/helpers/LocatorImpl.java,
122 org/xml/sax/helpers/NamespaceSupport.java,
123 org/xml/sax/helpers/ParserAdapter.java,
124 org/xml/sax/helpers/ParserFactory.java,
125 org/xml/sax/helpers/XMLFilterImpl.java,
126 org/xml/sax/helpers/XMLReaderAdapter.java,
127 org/xml/sax/helpers/XMLReaderFactory.java,
128 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
129 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
130 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
131 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
132 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
133 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
134 org/xml/sax/SAXNotRecognizedException.java,
135 org/xml/sax/SAXNotSupportedException.java,
136 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
137 org/xml/sax/XMLReader.java: New files.
139 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
141 * Makefile.am: Added `java/lang/ThreadLocal.java'.
142 * Makefile.in: Regenerate.
143 * java/lang/ThreadLocal.java: Initial import.
145 2001-07-07 Jeff Sturm <jsturm@one-point.com>
147 * Makefile.am (libgcj.jar): Don't recursively make
148 built_java_source_files. Avoid long command lines.
149 Don't change to $(srcdir) to invoke javac.
150 (libgcj.la, libgcjx.la); Avoid long command lines.
151 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
152 * Makefile.in: Rebuilt.
154 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
156 * include/i386-signal.h: Don't do anything with unsigned divide
157 overflow except throw an exception.
159 2001-07-05 Tom Tromey <tromey@redhat.com>
162 * java/lang/Class.h (Class(void)): Now private. Removed
163 implementation. From dmorsberger@sensysdl.com.
165 2001-07-02 Tom Tromey <tromey@redhat.com>
167 Fix for PR bootstrap/3281:
168 * aclocal.m4, configure: Rebuilt.
169 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
170 Correctly compute libgcj_basedir.
171 (mkinstalldirs): Define and subst.
173 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
176 * java/io/LineNumberReader.java (reset): Pass correct arguments to
179 2001-06-27 Tom Tromey <tromey@redhat.com>
181 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
184 2001-06-25 Tom Tromey <tromey@redhat.com>
186 * scripts/encodings.pl: Generate lower-case names. Updated URL
187 for `character-sets' file.
188 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
190 Rebuilt list of aliases.
192 2001-06-25 Tom Tromey <tromey@redhat.com>
194 * java/io/natFileDescriptorPosix.cc (open): Change error message
195 formatting. From David Brownell.
197 2001-06-21 Tom Tromey <tromey@redhat.com>
199 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
202 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
204 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
205 extraneous/malformed sign word.
207 2001-06-15 Tom Tromey <tromey@redhat.com>
209 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
211 2001-06-15 Tom Tromey <tromey@redhat.com>
213 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
214 NULL if no library on the list has the symbol.
215 (init): Call add_library on the program itself.
216 * prims.cc (JvRunMain): Initialize Runtime before searching for
218 (_Jv_RunMain): Likewise.
220 2001-06-15 Tom Tromey <tromey@redhat.com>
222 * jni.cc (ClassClass): Removed; updated all users.
223 (ObjectClass): Likewise.
224 (ThrowableClass): Likewise.
225 (MethodClass): Likewise.
226 (ThreadGroupClass): Likewise.
227 (local_ref_table): Renamed from `ref_table'.
228 (global_ref_table): New global.
229 (_Jv_JNI_Init): Initialize both ref tables.
230 (mark_for_gc): Added `ref_table' parameter.
231 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
233 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
234 (_Jv_JNI_DeleteGlobalRef): Likewise.
235 (_Jv_JNI_DeleteLocalRef): Likewise.
236 (_Jv_JNI_NewLocalRef): Likewise.
237 (_Jv_JNI_PopLocalFrame): Likewise.
238 (_Jv_JNI_GetStringChars): Likewise.
239 (_Jv_JNI_ReleaseStringChars): Likewise.
240 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
241 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
243 2001-06-14 Tom Tromey <tromey@redhat.com>
245 Fix for PR libgcj/3144:
246 * java/util/Date.java: Merged with Classpath.
248 2001-06-12 Tom Tromey <tromey@redhat.com>
250 * aclocal.m4, configure: Rebuilt.
251 * acinclude.m4: Find configure.host in srcdir.
253 2001-06-07 Tom Tromey <tromey@redhat.com>
255 Fix for PR libgcj/3059:
256 * java/lang/natSystem.cc (init_properties): Define `java.home'.
257 * Makefile.in: Rebuilt.
258 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
260 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
262 * exception.cc (cstdlib): Replaces stdlib.h.
263 (_Jv_Throw): Use std::abort().
264 (PERSONALITY_FUNCTION): Likewise.
266 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
268 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
269 nothing, as in autoconf 2.50.
270 * aclocal.m4, configure: Rebuilt.
272 2001-06-08 Tom Tromey <tromey@redhat.com>
274 * configure: Rebuilt.
275 * configure.in: Compute new aux dir using `pwd'.
277 2001-06-07 Tom Tromey <tromey@redhat.com>
279 For PR bootstrap/3075:
280 * configure, aclocal.m4, Makefile.am: Rebuilt.
281 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
282 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
283 relative to libgcj_basedir.
284 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
285 AC_CANONICAL_SYSTEM here.
286 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
288 ($(extra_headers)): New target.
290 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
291 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
293 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
294 table index is within allowed bounds. Ensure that we dont try to access
295 class itable at a negative offset. Avoid an ancestor table lookup if
296 source is a primitive type class.
297 (isInstance): Remove redundant isPrimitive() check.
299 2001-06-04 Tom Tromey <tromey@redhat.com>
301 * java/security/PublicKey.java: Extend Key.
302 * java/security/PrivateKey.java: Extend Key.
304 2001-06-02 Anthony Green <green@redhat.com>
306 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
307 alternate when USE_LTDL not defined.
309 2001-06-02 Anthony Green <green@redhat.com>
311 * configure: Rebuild.
312 * configure.in: Remove data_start hack.
313 * libgcj.spec.in: Ditto.
314 * Makefile.in: Rebuild.
315 * Makefile.am: Ditto.
316 * libgcjdata.c: Remove.
318 2001-06-02 Anthony Green <green@redhat.com>
320 * configure: Rebuild.
321 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
322 --without-libffi option. Tweak --disable-java-net processing.
323 * Makefile.in: Rebuild.
324 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
325 * include/config.h.in: Rebuild.
326 * acconfig.h (USE_LIBFFI): Define.
327 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
329 2001-06-02 Anthony Green <green@redhat.com>
331 * configure: Rebuilt.
332 * configure.in: Test for sigaction on native builds.
333 * prims.cc: Check HAVE_SIGACTION.
334 * include/config.h.in: Rebuilt.
336 2001-05-31 Jeff Sturm <jsturm@one-point.com>
338 * natFile.cc (get_entry): Removed functions.
339 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
340 Allocate enough storage for d_name if using readdir_r.
342 2001-05-31 Tom Tromey <tromey@redhat.com>
344 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
346 (write): Loop until write completes. From Corey Minyard.
348 2001-05-29 Laurent Guerby <guerby@acm.org>
350 * java/awt/geom/Rectangle2D.java: fix doc typo.
352 2001-05-31 Tom Tromey <tromey@redhat.com>
354 * java/sql/DriverManager.java (getDrivers): Handle case where
355 driver's class loader is null. From Corey Minyard.
357 2001-05-29 Tom Tromey <tromey@redhat.com>
359 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
361 * configure: Rebuilt.
362 * configure.in: Only add multilib support code if we just rebuilt
365 2001-05-29 Andrew Haley <aph@redhat.com>
367 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
368 pointer: the dwarf unwinder in libgcc will do everything that's
370 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
371 more than we absolutely need to.
372 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
373 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
375 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
377 * configure: Rebuilt.
378 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
380 (SIGNAL_HANDLER): Use siginfo style handler.
381 (INIT_SEGV): Likewise.
382 (INIT_FPE): Likewise.
383 * include/ppc-signal.h: Delete whole file.
385 2001-05-24 Tom Tromey <tromey@redhat.com>
387 * java/lang/natString.cc (init): Throw
388 ArrayIndexOutOfBoundsException.
389 (getChars): Likewise.
390 (getBytes): Likewise.
393 * configure.in: Only allow hash synchronization when POSIX threads
395 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
398 2001-05-23 Tom Tromey <tromey@redhat.com>
400 * Makefile.in: Rebuilt.
401 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
403 Revert patch of 2001-05-21:
404 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
405 (libgcj_la_LIBADD): Likewise.
406 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
407 (libgcjx_la_LIBADD): Likewise.
409 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
410 * gcj/Makefile.in: Rebuilt.
411 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
412 * gcj/javaprims.h: Include gcj/libgcj-config.h.
413 * gcj/libgcj-config.h.in: New file.
414 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
415 * configure: Rebuilt.
416 * configure.in: Enable hash synchronization by default on some
418 (HASH_SYNC_SPEC): New subst.
419 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
420 Correctly use `test -z' instead of `test -n' in a couple places.
421 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
423 * configure.host (enable_java_net_default): Initialize.
424 (enable_hash_synchronization_default): New variable.
426 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
428 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
429 synchronization in use.
430 (_Jv_MarkArray): Likewise.
431 (_Jv_AllocBytes): Don't check return result.
432 (handle_out_of_memory): New function.
433 (_Jv_InitGC): Set GC_oom_fn.
434 (trace_one_vtable): New global.
435 (_Jv_AllocTraceOne): New function.
436 * configure.in: Added --enable-hash-synchronization.
437 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
438 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
439 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
440 (_Jv_AllocArray): Likewise.
441 (_Jv_AllocBytes): Likewise.
442 (_Jv_AllocPtrFreeObject): New function.
443 (_Jv_AllocTraceOne): Likewise.
444 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
446 (self_cache): New global.
447 (_Jv_ThreadSelf_out_of_line): New function.
448 * prims.cc (_Jv_AllocBytesChecked): Removed.
449 (_Jv_ThrowNoMemory): New function.
450 (_Jv_AllocObject): Don't check for null return from allocator.
451 (_Jv_NewObjectArray): Likewise.
452 (_Jv_AllocPtrFreeObject): New function.
453 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
454 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
455 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
456 * include/boehm-gc.h (_Jv_AllocObj): Define.
457 (_Jv_AllocPtrFreeObj): Define.
458 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
459 (_Jv_ThrowNoMemory): Declare.
460 (_Jv_AllocTraceOne): Declare.
461 (_Jv_AllocBytesChecked): Removed.
462 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
463 _Jv_MutexUnlock): Handle LOCK_DEBUG.
464 (_Jv_ThreadSelf): Handle case where system pthread_self() is
466 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
468 * java/lang/Object.h (sync_info): Conditional upon presence of
469 hash synchronization.
470 * java/lang/natObject.cc: Much new code to handle thin locks and
471 hash synchronization.
472 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
475 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
477 * gij.cc (version): Update copyright year.
479 2001-05-22 Anthony Green <green@redhat.com>
481 * configure.in: Tweak canadian cross test, and don't redefine GCJ
484 2001-05-21 Per Bothner <per@bothner.com>
486 Implement invocation interface; don't create new thread for main.
487 * java/lang/Thread.java (gen_name): Make native.
488 (<init>(Thread,THreadGroup,Runnable,String)): New private
489 constructor, used by other constructors, and _Jv_AttachCurrentThread.
490 * java/lang/natThread.cc (gen_name): New implementation.
491 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
492 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
493 (_Jv_CreateJavaVM): New runtime initialization procedure.
494 (runFirst): New proecdure - mostly code from old FirstThread::run.
495 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
496 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
497 JvDetachCurrentThread): New inline wrappers.
498 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
499 _Jv_DetachCurrentThread): New declarations.
500 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
501 (getMain): new static method.
502 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
503 by runFirst in prims.cc.
504 (java/lang/Thread.h): Update for new invocation interface.
505 * include/posix-threads.h (_Jv_ThreadRegister,
506 _Jv_ThreadUnRegister): New declarations.
507 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
508 (really_start): Use new _Jv_ThreadRegister.
509 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
510 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
511 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
512 Complain of called when _Jv_OnlyThread already set.
513 (_Jv_ThreadStart): Always JvFail.
514 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
515 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
516 * win32-threads.cc (struct starter): Remove objet field -
517 we use _Jv_Thread_t's new thread_obj field instead.
518 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
519 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
520 (really_start): Use new _Jv_ThreadRegister.
521 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
522 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
523 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
524 Removed - no longer needed with new invocation interface.
525 * Makefile.am: Update for removed/added files.
527 2001-05-21 Per Bothner <per@bothner.com>
529 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
530 (libgcj_la_LIBADD): Likewise.
531 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
533 2001-05-21 Per Bothner <per@bothner.com>
535 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
536 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
537 taken from old Integer.toString code.
538 (Integer::valueOf): Use _Jv_FormatInt.
539 * java/lang/Integer.java (toString): Just use call String.valueOf.
540 * java/lang/Long.java (toString): Fix typo in comment.
541 * java/lang/String.java (valueOf(int)): Make native.
542 * java/lang/StringBuffer.java (append(int)): Make native.
543 * java/lang/natStringBuffer.cc: New file, for append(jint).
544 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
546 2001-05-21 Tom Tromey <tromey@redhat.com>
548 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
550 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
552 * include/dwarf2-signal.h: New file.
553 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
554 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
555 * configure: Rebuilt.
557 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
559 * configure.in: Update boehm-gc include dir for new GC version.
560 * configure: Rebuilt.
561 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
563 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
564 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
565 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
568 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
570 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
571 (_Jv_MutexInit): Likewise.
573 2001-05-18 Tom Tromey <tromey@redhat.com>
575 * Makefile.in: Rebuilt.
576 * Makefile.am (awt_java_source_files): Added Polygon.java.
578 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
580 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
581 * gcj/javaprims.h: ... here.
582 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
584 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
586 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
587 with length of ioffset table.
588 (_Jv_IsAssignableFrom): Likewise.
590 2001-05-17 Per Bothner <per@bothner.com>
592 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
594 2001-05-16 Tom Tromey <tromey@redhat.com>
596 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
599 2001-05-15 Tom Tromey <tromey@redhat.com>
601 * java/util/GregorianCalendar.java (computeTime): Only call
604 2001-05-14 Tom Tromey <tromey@redhat.com>
606 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
607 ZONE_OFFSET just before computing the time.
609 2001-05-12 Zack Weinberg <zackw@stanford.edu>
611 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
612 * Makefile.in: Regenerate (by hand).
613 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
614 * doc/cni.sgml: Document #pragma GCC java_exceptions.
616 2001-05-11 Richard Henderson <rth@redhat.com>
618 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
619 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
621 2001-05-11 Richard Henderson <rth@redhat.com>
623 * exception.cc: Include unwind-pe.h. Remove all pointer
626 2001-05-10 Tom Tromey <tromey@redhat.com>
628 * Makefile.in: Rebuilt.
629 * Makefile.am (awt_java_source_files): Added Polygon.java.
630 * java/awt/Polygon.java: New file.
632 * java/awt/geom/AffineTransform.java
633 (setToRotation(double,double,double)): New method.
634 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
635 (setToShear): Likewise.
637 2001-05-10 Tom Tromey <tromey@redhat.com>
639 * java/util/GregorianCalendar.java: Imported from Classpath.
640 * gnu/java/locale/LocaleInformation_nl.java: New file from
642 * gnu/java/locale/LocaleInformation_en.java: Likewise.
643 * gnu/java/locale/LocaleInformation_de.java: Likewise.
644 * gnu/java/locale/LocaleInformation.java: Likewise.
645 * natGregorianCalendar.cc: Removed.
646 * Makefile.in: Rebuilt.
647 * Makefile.am (nat_source_files): Removed
648 natGregorianCalendar.cc.
650 2001-05-10 Tom Tromey <tromey@redhat.com>
652 * java/text/SimpleDateFormat.java (computeCenturyStart): New
654 (defaultCenturyStart): Use it.
655 (readObject): Likewise.
656 (SimpleDateFormat): Clear the calendar. Set the grouping on the
658 (parse): Copy the calendar before modifying it. Correctly handle
661 * java/util/Calendar.java (clear): Set field value(s) to 0.
663 2001-05-10 Jeff Sturm <jsturm@one-point.com>
665 * Calendar.java (get): Clear areFieldsSet if requested field
667 (set): Unset fields that depend on new value.
669 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
671 * java/lang/Class.h (_Jv_Self): New union type.
672 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
673 Jeff Sturm and Fergus Henderson.
675 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
677 * java/lang/ClassLoader.java: Remove dead code fragment.
679 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
681 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
683 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
685 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
687 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
688 * configure.host (EXCEPTIONSPEC): New.
689 * configure.in (EXCEPTIONSPEC): New.
690 * configure: Rebuilt.
692 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
694 * doc/*.texi: Remove generated documentation.
696 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
698 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
699 (performDelete): Fix #endif placement.
701 2001-04-27 Zack Weinberg <zackw@stanford.edu>
703 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
704 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
705 (_Jv_ThreadDestroyData): Use _Jv_Free.
706 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
709 2001-04-27 Tom Tromey <tromey@redhat.com>
711 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
713 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
715 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
717 * include/jni.h (struct JNINativeInterface): Fixed types in
718 Get/Set*ArrayRegion declarations.
719 (class _Jv_JNIEnv): Likewise.
721 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
723 * configure.in: Obtain THREADS with `gcc -v'.
724 * configure: Rebuilt.
726 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
729 * java/io/ObjectStreamClass.java (setClass): Calculate
730 serialVersionUID for local class and compare it against the UID
731 from the Object Stream. Throw InvalidClassException upon mismatch.
732 (setUID): Renamed to...
733 (getClassUID): this. Return the calculated class UID rather than
734 setting uid field directly.
735 (getDefinedSUID): Removed.
736 * java/io/ObjectInputStream.java (resolveClass): Use the
737 three-argument Class.forName().
738 * java/io/InvalidClassException (toString): Don't include classname in
739 result if it is null.
741 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
743 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
744 Wrap use of inet_pton in HAVE_INET6.
746 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
748 java.security merge and ClassLoader compliance fixes.
750 * java/lang/Class.h (Class): Include ProtectionDomain.h.
751 New protectionDomain field.
752 (forName): Add initialize parameter. Fixes declaration to comply with
754 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
755 variant. Honour "initialize" flag.
756 (getProtectionDomain0): New method.
757 * java/lang/Class.java: Fix forName() declaration.
758 (getPackage): New method based on Classpath implementation.
759 (getProtectionDomain0): New native method decl.
760 (getProtectionDomain): New method.
761 * java/lang/ClassLoader.java (getParent): Now final.
762 (definedPackages): New field.
764 (defineClass): New variant with protectionDomain argument.
765 (definePackage): New.
767 (findSystemClass): Now final.
768 (getSystemResourceAsStream): Remove redundant "final" modifier.
769 (getSystemResource): Remove redundant "final" modifier.
770 (getResources): Now final.
771 (protectionDomainPermission): New static field.
772 (unknownProtectionDomain): Ditto.
773 (defaultProtectionDomain): Ditto.
774 (getSystemClassLoader): Now non-native.
775 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
776 arguments for Class.forName().
777 * java/lang/Package.java: New file.
778 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
779 (instance): Static initialize singleton.
780 (findClass): Override this, not findSystemClass.
781 * java/lang/natClassLoader.cc (defineClass0): Set class's
782 protectionDomain field as specified.
783 (getSystemClassLoader): Removed.
784 (findClass): Renamed from findSystemClass. Call the interpreter via
785 URLClassLoader.findClass if loading class via dlopen fails.
787 * java/security/*.java: java.security import/merge with Classpath.
788 * java/security/acl/*.java: Likewise.
789 * java/security/interfaces/*.java: Likewise.
790 * java/security/spec/*.java: Likewise.
791 * java/net/NetPermission.java: Likewise.
792 * java/net/SocketPermission.java: Likewise.
793 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
795 * Makefile.am: Add new classes.
796 * Makefile.in: Rebuilt.
797 * gcj/javaprims.h: CNI namespace rebuild.
799 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
801 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
802 for libtool tests. Pre-create gnu/classpath/Configuration.java.
803 * configure: Rebuilt.
805 2001-04-21 Tom Tromey <tromey@redhat.com>
807 * Makefile.in: Rebuilt.
808 * Makefile.am (awt_java_source_files): Added Line2D.java.
809 * java/awt/geom/Line2D.java: Wrote.
811 * java/awt/Menu.java (addNotify): Wrote.
813 * java/awt/PopupMenu.java (addNotify): Implemented.
816 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
817 * java/awt/List.java (addNotify): Call super.addNotify.
818 * java/awt/Label.java (addNotify): Call super.addNotify.
819 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
820 * java/awt/Dialog.java (addNotify): Call super.addNotify.
821 * java/awt/Choice.java (addNotify): Call super.addNotify.
822 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
823 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
825 * java/awt/List.java (replaceItem): Notify peer.
827 * java/awt/geom/Rectangle2D.java
828 (Float.setRect(float,float,float,float)): New method.
830 * java/awt/event/ContainerEvent.java (getContainer): Now returns
833 * java/awt/RenderingHints.java (Key): Class now public.
835 * java/awt/Rectangle.java (Rectangle): Now implements
837 (getPathIterator): Removed.
839 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
842 * java/awt/FileDialog.java: Wrote.
844 * java/awt/EventQueue.java (isDispatchThread): Now public.
845 (invokeLater): Likewise.
847 * java/awt/Component.java (setCursor): Update peer.
848 (getFontMetrics): Use peer.
850 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
853 2001-04-20 Tom Tromey <tromey@redhat.com>
855 * java/awt/List.java: Wrote.
856 * java/awt/Dialog.java: Wrote.
858 2001-04-20 Warren Levy <warrenl@redhat.com>
860 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
861 * java/text/SimpleDateFormat.java
862 (indexInArray): Removed private method.
863 (processYear): Removed private method.
864 (parseLenient): Removed private method.
865 (parseLeadingZeros): Removed private method.
866 (parseStrict): Removed private method.
867 (expect): Added new private method.
868 (parse): Reverted to pre-Classpath merge version with minor fixes.
869 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
872 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
874 * java/io/File.java (normalizePath): New private method.
875 (File (String)): Use normalizePath().
876 (File (String, String)): Likewise.
878 * Makefile.am (libffi_files): Removed.
879 (libgcj.la): Link libffi as a convenience library instead of
880 refering to its object files directly.
881 * Makefile.in: Rebuilt.
883 2001-04-08 Per Bothner <per@bothner.com>
885 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
886 Recalculate hash, since Utf8Const's hash is only 16 bits.
888 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
889 bits of hash to calculate step for chaining.
891 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
892 when 2/3 full, rather than 3/4 full.
894 2001-04-06 Tom Tromey <tromey@redhat.com>
896 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
897 (wrap_value<T*>): New specialization.
898 (_Jv_JNI_PopLocalFrame): Update env->locals.
900 2001-04-05 Tom Tromey <tromey@redhat.com>
902 * libtool-version: Updated current.
904 2001-04-04 Andreas Jaeger <aj@suse.de>
906 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
907 * gcj/Makefile.in: Rebuilt.
908 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
909 * Makefile.in: Rebuilt.
910 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
911 * testsuite/Makefile.in: Rebuild.
912 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
913 * include/Makefile.in: Rebuild.
915 2001-04-02 Zack Weinberg <zackw@stanford.edu>
917 * testsuite/lib/libjava.exp: Correct typo: 'output from source
918 compiled test', not 'execution from source compiled test'.
919 Use UNTESTED, not XFAIL, for tests which are not run because
920 they depend on a previous test which failed.
922 2001-04-02 Richard Henderson <rth@redhat.com>
924 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
925 the same tree as gcc.
926 * configure: Rebuilt.
928 * exception.cc (_Jv_Throw): Clarify commentary.
930 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
932 * jni.cc (wrap_value<jclass>): New specialization.
934 2001-04-02 Tom Tromey <tromey@redhat.com>
936 * java/io/PrintStream.java (out): Removed field. Fixes PR
938 (write): Call flush, not out.flush, per spec.
939 (close): Flush output stream, per spec. Handle
940 InterruptedIOException.
941 (checkError): Likewise.
942 (flush, print, write): Handle InterruptedIOException per spec.
943 (PrintStream): Don't create BufferedOutputStream.
944 (work_bytes): New field.
945 (writeChars): Use work_bytes. Don't assume `out' is a
946 BufferedOutputStream.
948 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
950 * java/text/MessageFormat.java (setLocale): Added missing `else'.
953 2001-03-30 Tom Tromey <tromey@redhat.com>
955 * jni.cc (add_char): Correctly encode non-ascii characters.
956 (add_char): Define even when INTERPRETER not defined.
957 (mangled_name): Likewise.
958 (_Jv_GetJNIEnvNewFrame): Likewise.
959 (_Jv_LookupJNIMethod): Likewise.
961 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
963 * configure.host: Enable interpreter for PPC.
965 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
967 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
968 to "file.separator", "path.separator", and "java.io.tmpdir" property
970 * java/io/File.java: Likewise.
971 * java/io/natFile.cc (init_native): Likewise.
972 * java/io/natFileWin32.cc (init_native): Likewise.
974 2001-04-01 Per Bothner <per@bothner.com>
976 * java/lang/natString.cc (intern): If string's data does not point to
977 this String, make a fresh String that does.
979 * java/lang/natString.cc (unintern): Replace by static function.
980 * java/lang/String.java (unintern): Remove method.
982 2001-04-01 Per Bothner <per@bothner.com>
984 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
985 (finish): def.deflate needs to be called in a loop.
986 (inbuf, inbufLength): New private fields.
987 (write(int)): Use inbuf.
988 (write(byte[],int,int): Check if pending output in inbuf.
989 * ZipOutputStream.java: Don't use Deflater if stored.
990 Use a Checksum object directly, not via a CheckedOutputStream.
991 (uncompressed_size): New field,
992 (closeEntry): Only write data_directory if needed.
993 (write): If STORED, write directly.
994 Always update crc, and uncompressed_size.
995 (write_entry): Fix lots of protocol erors.
997 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
999 1.3-Compliant Implementation of java.io.File.
1000 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1001 "path.separator", and "java.io.tmpdir" from the File class, instead
1002 of setting them explicitly.
1003 * java/io/File.java: Do not canonicalize paths for security manager
1004 checks. Call init_native() from static initializer. Do not pass path
1005 argument to native methods. New native method declarations. Some
1006 security manager checks moved to checkWrite().
1007 (equals): Check file system case sensitivity and act appropriatly.
1008 (hashCode): Likewise.
1009 (isHidden): New method implemented.
1010 (performList): Changed prototype. Now takes a class argument specifying
1011 the class of the returned array: Strings or File objects. Also added
1012 FileFilter argument.
1013 (listFiles): New variants with "File" return type implemented.
1014 (createTempFile): Use createNewFile(). Use maxPathLen.
1015 (setReadOnly): New method implemented.
1016 (listRoots): Likewise.
1017 (compareTo): Likewise.
1018 (setLastModified): Likewise.
1019 (checkWrite): New method.
1021 * java/io/natFile.cc: Various functions no longer take canonical path
1023 (stat): Handle ISHIDDEN query.
1024 (isAbsolute): Remove WIN32 cruft.
1025 (performList): New arguments. Handle returning either File[] or String[]
1026 arrays. Check with FileFilter or FilenameFilter arguments as
1027 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1028 (performSetReadOnly): New method implemented.
1029 (performListRoots): Likewise.
1030 (performSetLastModified): Likewise.
1031 (performCreate): Likewise.
1032 (init_native): New initialization function.
1033 * java/io/natFileWin32.cc: Various functions no longer take canonical
1035 (stat): Add FIXME about ISHIDDEN query.
1036 (performList): New arguments. Handle returning either File[] or String[]
1037 arrays. Check with FileFilter or FilenameFilter arguments as
1038 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1039 (performSetReadOnly): New. Stubbed.
1040 (performListRoots): Likewise.
1041 (performSetLastModified): Likewise.
1042 (performCreate): Likewise.
1043 (init_native) New initialization function.
1044 * configure.in: Check for utime() and chmod().
1045 * configure: Rebuilt.
1046 * include/config.h.in: Rebuilt.
1048 Resolves PR libgcj/1759.
1050 2001-03-28 Richard Henderson <rth@redhat.com>
1052 IA-64 ABI Exception Handling:
1053 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1054 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1055 Remove EXCEPTIONSPEC.
1056 * configure.host (libgcj_sjlj): Remove.
1057 * configure.in (EXCEPTIONSPEC): Remove.
1058 (enable-sjlj-exceptions): Detect if not specified.
1059 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1060 what header we're looking for.
1061 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1062 * Makefile.in, configure: Regenerate.
1063 * exception.cc: Don't declare libgcc2 stuff.
1064 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1065 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1066 (win32_get_restart_frame): Remove.
1067 (struct java_exception_header): New.
1068 (__gcj_exception_class): New.
1069 (get_exception_header_from_ue): New.
1070 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1071 (size_of_encoded_value, read_encoded_value): New.
1072 (read_uleb128, read_sleb128, parse_lsda_header): New.
1073 (get_ttype_entry, __gcj_personality_sj0): New.
1074 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1076 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1078 * javax/naming/InitialContext.java (init): Fix typo.
1079 (composeName): Remove unnecessary semicolon.
1080 (addToEnvironment): Remove unnecessary semicolon.
1081 (addToEnvironment): Use put() instead of add().
1083 * javax/naming/InitialContext.java (InitialContext):
1085 (destroySubcontext): Method doesn't return a result.
1086 * javax/naming/Context.java: Import java.util.Hashtable.
1087 * javax/naming/Name.java: Import java.util.Enumeration.
1089 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1091 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1092 objects in subdirectories.
1093 * Makefile.in: Rebuilt.
1095 2001-03-25 Richard Henderson <rth@redhat.com>
1097 * exception.cc (java_eh_info): Make value type jthrowable.
1098 (_Jv_type_matcher): Remove now unneeded cast.
1099 (_Jv_Throw): Make argument type jthrowable. Munge name
1100 for SJLJ_EXCEPTIONS here ...
1101 * gcj/cni.h: ... not here.
1103 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1105 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1106 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1107 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1108 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1109 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1110 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1111 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1112 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1113 java/lang/natDouble.cc, java/lang/natObject.cc,
1114 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1115 java/lang/natString.cc, java/lang/natSystem.cc,
1116 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1117 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1118 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1119 java/util/zip/natInflater.cc:
1120 Use throw, not JvThrow or _Jv_Throw.
1122 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1124 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1125 paramater, bump it to 1.
1126 * java/util/Hashtable.java (Hashtable): Likewise.
1128 2001-03-23 Per Bothner <per@bothner.com>
1130 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1131 check for errors, since we don't want to throw exception on
1132 overflow/underflow. Instead, trim whitespace, and then check that
1133 _strtod_r uses up all the rest of the string.
1135 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1136 ancestors array is invalid for interfaces, so do that *after*
1137 check that the target type is not an interface.
1139 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1141 * prims.cc (_Jv_FindClassFromSignature): Check return of
1142 recursive call. Do not abort on invalid signature; return NULL
1145 2001-03-22 Tom Tromey <tromey@redhat.com>
1147 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1148 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1150 * include/jvm.h (_Jv_ResolveField): Declare.
1151 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1152 * resolve.cc (_Jv_ResolveField): No longer conditional on
1155 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1157 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1158 for libtool hacking.
1159 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1160 to a temporary file, then invoke libtool with the -objectlist
1162 (libgcjx.la): Likewise.
1163 * Makefile.in: Rebuilt.
1165 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1167 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1169 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1171 * jni.cc (add_char): Handle `.' like `/'.
1173 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1175 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1176 initialize if exception_types is null.
1177 * java/lang/reflect/Constructor.java: Likewise.
1178 * java/lang/reflect/natConstructor.cc (getType): Initialize
1179 exception_types to an empty Object array.
1181 2001-03-21 Tom Tromey <tromey@redhat.com>
1183 * configure: Rebuilt.
1184 * configure.in (GCJFLAGS): Subst.
1185 * Makefile.in: Rebuilt.
1186 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1187 (gij_LDFLAGS): Likewise.
1188 (JC1FLAGS): Added GCJFLAGS and removed -g.
1190 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1191 read/write case. Fixes PR libgcj/2338.
1193 2001-03-20 Warren Levy <warrenl@redhat.com>
1195 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1196 and corrected SimpleTimeZone's for the timezones hash table.
1198 2001-03-19 Per Bothner <per@bothner.com>
1200 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1201 "canonicalize" "../../xxx" to "/xxx".
1203 2001-03-19 Mark Wielaard <mark@klomp.org>
1205 * java/util/ArrayList.java: Remove RCS keywords from comments
1206 * java/util/BasicMapEntry.java: idem
1207 * java/util/Dictionary.java: idem
1208 * java/util/HashSet.java: idem
1210 * java/util/EventObject.java: reindent
1211 * java/util/Properties.java: idem
1212 * java/util/SortedMap.java: idem
1214 * java/util/Enumeration.java: Merge with Classpath
1215 * java/util/EventListener.java: idem
1216 * java/util/Observable.java: idem
1217 * java/util/Observer.java: idem
1218 * java/util/Stack.java: idem
1220 2001-03-17 Tom Tromey <tromey@redhat.com>
1222 * java/lang/natString.cc (rehash): Don't bother with memset;
1223 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1225 (UNMASK_PTR): New macro.
1226 (intern): Unmask pointer before returning it. Register finalizer
1228 (unintern): Handle case where
1229 (MASK_PTR): New macro.
1230 (PTR_MAKSED): Likewise.
1231 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1233 2001-03-01 Andrew Haley <aph@redhat.com>
1235 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1236 stackTrace buffer to a correctly aligned pointer array.
1238 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1240 * java/lang/Runtime.java (_exit): Declare new package-private native.
1241 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1242 without a security manager check.
1243 (exit): Call _exit after security check.
1244 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1246 * java/lang/System.java (setSecurityManager): If a security manager
1247 is already in place, call checkPermission.
1248 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1249 throws an exception, try to deal with it gracefully.
1250 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1251 Only try to print the subordinate stack trace if "exception" is set.
1252 Print our class name first.
1254 2001-03-08 Tom Tromey <tromey@redhat.com>
1256 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1257 info for array classes.
1258 Fixes PR libgcj/1971.
1260 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1262 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1265 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1267 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1268 instead of the new JDK1.2 API. This is simpler and makes
1269 back-porting the classes to JDK1.1 trivial.
1270 (readObject): likewise.
1272 2001-03-01 Per Bothner <per@bothner.com>
1274 Changes merged from Kawa's gnu.math.
1275 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1276 (rshift(int[],int[],int,int): Removed - not needed.
1277 (gcd): Use rshift0 rather than rshift.
1278 * java/math/BigInteger.java (setShiftRight): Likewise.
1279 (divide): Simplify by using rshift0.
1280 (divide): Zero-extend results if high-order bit set.
1282 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1284 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1287 2001-02-23 Per Bothner <per@bothner.com>
1289 Change to sometimes include class name in ClassFormatError message.
1290 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1291 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1292 boolean instead of throwing ClassFormatError on failure.
1293 (throw_class_format_error): Change static function to method.
1294 (_Jv_ClassReader): New inline methods verify_identifier,
1295 two overloads of verify_classname, verify_field_signature, and
1296 verify_method_signature
1297 * include/java-interp.h: Update declarations to return bool.
1298 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1299 ClassFormatError since _Jv_VerifyClassName now returns bool.
1301 2001-02-23 Per Bothner <per@bothner.com>
1303 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1304 c++filt to select java-style output.
1306 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1308 Fix for PR java/2040:
1309 * java/util/HashMap.java (HashMap): Don't throw exception for
1310 loadFactor > 1. Add exception messages.
1311 * java/util/Hashtable.java (Hashtable): Likewise.
1313 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1315 Disable libgcjx by default.
1316 * configure.in: Add support for --enable-java-awt configure option.
1317 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1318 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1319 * Makefile.in: Rebuilt.
1320 * configure: Rebuilt.
1322 2001-02-20 Tom Tromey <tromey@redhat.com>
1324 * java/io/PipedWriter.java (flush): Throw exception if stream
1326 * java/io/OutputStreamWriter.java (write): Throw exception if
1328 (writeChars): Don't throw exception if stream closed.
1329 * java/io/CharArrayWriter.java (closed): New field.
1331 (flush): Throw exception if stream closed.
1332 (reset): Synchronize on correct lock. Allow stream to be
1334 (toCharArray, toString, writeTo): Synchronize.
1335 (write): Throwe exception if stream closed.
1336 * java/io/BufferedWriter.java (close): Clear `buffer'.
1337 (flush): Throw IOException if stream is closed.
1340 2001-02-16 Tom Tromey <tromey@cygnus.com>
1342 * java/lang/ThreadGroup.java (activeCount): Only include threads
1344 (enumerate): Likewise.
1346 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1348 * java/lang/Integer.java (getInteger): Return default argument if
1349 property is not set. Don't call decode with null argument.
1350 * java/lang/Long.java (getLong): Likewise.
1352 * java/io/CharArrayReader.java (CharArrayReader): Throw
1353 IllegalArgumentException if constructor arguments are illegal.
1354 (ready): Return false if no more characters can be read.
1355 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1357 2001-02-17 Mark Wielaard <mark@klomp.org>
1359 * java/util/TimerTask.java: New version from Classpath.
1361 2001-02-17 Mark Wielaard <mark@klomp.org>
1363 Remerge with Classpath
1364 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1365 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1366 (readByte): Use convertToByte().
1367 (readChar): Use convertToChar().
1368 (readInt): Use convertToInt().
1369 (readLong): Use convertToLong().
1370 (readShort): Use convertToShort().
1371 (readUnsignedByte): Use convertToUnsignedByte().
1372 (readUnsignedShort): Use convertToUnsignedShort().
1373 (readUTF): Use convertToUTF().
1375 (convertToBoolean): Resurrected.
1376 (convertToByte): Ditto.
1377 (convertToChar): Ditto.
1378 (convertToInt): Ditto.
1379 (convertToLong): Ditto.
1380 (convertToShort): Ditto.
1381 (convertToUnsignedByte): Ditto.
1382 (convertToUnsignedShort): Ditto.
1383 (convertToUTF): Ditto.
1385 2001-02-17 Mark Wielaard <mark@klomp.org>
1389 2001-02-17 Mark Wielaard <mark@klomp.org>
1391 * java/io/DataInputStream.java: update copyright notice
1392 * java/io/PrintWriter.java: idem
1393 * java/io/Reader.java: idem
1394 * java/io/StreamTokenizer.java: idem
1395 * java/io/StringReader.java: idem
1396 * java/lang/reflect/ReflectPermission.java: idem
1398 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1400 * java/util/TreeSet.java (clone): Made subclass safe, use
1401 super.clone(), not new.
1402 * java/util/TreeMap.java (clone): Likewise.
1404 * java/util/TreeMap.java (nil): Made non-final.
1405 (clone): Create new nil node for copy.
1407 * java/util/HashSet.java (clone): Made subclass safe, use
1408 super.clone(), not new.
1410 2001-02-14 Andrew Haley <aph@redhat.com>
1412 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1415 2001-02-15 Anthony Green <green@redhat.com>
1417 * defineclass.cc: Don't include alloca.h.
1418 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1419 * interpret.cc (run_normal): Ditto.
1421 * java/lang/natDouble.cc (parseDouble): Ditto.
1423 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1425 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1427 * java/util/Collections.java (ReverseComparator): New static class.
1428 (reverseOrder): Return static instance of ReverseComparator.
1430 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1431 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1432 Rectangle.clone(), not Object.clone().
1434 * java/util/HashSet.java (clone): Remove try/catch.
1436 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1437 * java/util/Collection.java: Likewise.
1438 * java/util/Comparator.java: Likewise.
1439 * java/util/Dictionary.java: Likewise.
1440 * java/util/Iterator.java: Likewise.
1441 * java/util/ListIterator.java: Likewise.
1442 * java/util/Map.java: Likewise.
1443 * java/util/Set.java: Likewise.
1445 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1447 * java/util/TreeMap.java: New file.
1448 * java/util/TreeSet.java: New file.
1449 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1450 * Makefile.in: Rebuilt.
1451 * java/util/HashSet.java (clone): Use constructor instead of calling
1453 * java/util/SortedSet.java: Sync with classpath.
1454 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1457 * java/lang/natClass.cc (getSignature): Don't try to dereference
1458 param_types if it is null. Instead, take this to mean "no parameters".
1459 * java/lang/TreeMap.java (TreeIterator.next): Throw
1460 NoSuchElementException in preference to ConcurrentModificationException.
1461 (TreeIterator.remove): Throw IllegalStateException in preference to
1462 ConcurrentModificationException.
1463 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1464 throw a NoSuchElementException.
1465 (SubMap.lastKey): Likewise.
1467 2001-02-13 Tom Tromey <tromey@redhat.com>
1469 * java/io/PipedReader.java (ready): Throw IOException if pipe
1471 * java/io/FilterReader.java (close): Don't clear `in'.
1472 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1474 (read, ready, reset, skip): Added exception message.
1475 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1476 Perform checkStatus check inside synchronized block.
1478 2001-02-13 Tom Tromey <tromey@redhat.com>
1480 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1482 2001-02-13 Tom Tromey <tromey@redhat.com>
1484 Fix for PR libgcj/1351:
1485 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1487 Include Thread.h and InterruptedIOException.h.
1489 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1491 * java/io/BlockDataException.java: Removed.
1492 * java/io/ObjectInputStream.java (readObject): Throw
1493 StreamCorruptedException, not BlockDataException.
1494 * Makefile.am: Remove BlockDataException.
1495 * Makefile.in: Rebuild.
1497 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1498 Tom Tromey <tromey@redhat.com>
1500 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1503 2001-02-09 Tom Tromey <tromey@redhat.com>
1505 * java/util/Timer.java: New version from Classpath.
1507 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1509 * java/lang/Double.java (doubleToRawLongBits): Now native.
1510 * java/lang/Float.java (floatToRawIntBits): Likewise.
1511 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1512 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1514 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1516 * java/io/File.java (java.net): Imported.
1517 (getAbsoluteFile): Added.
1518 (getCanonicalPath): Likewise.
1521 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1523 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1524 * java/lang/Integer.java: Likewise.
1525 * java/lang/Long.java: Likewise.
1526 * java/lang/Short.java: Likewise.
1527 * java/lang/Double.java: Likewise.
1528 (doubleToRawLongBits): New method.
1529 * java/lang/Float.java: As above.
1530 (floatToRawIntBits): New method.
1532 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1533 IOException if stream closed.
1535 2001-02-08 Tom Tromey <tromey@redhat.com>
1537 * java/lang/Float.java (parseFloat): New method.
1539 2001-02-08 Tom Tromey <tromey@redhat.com>
1541 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1542 * java/io/InputStreamReader.java (ready, read): Throw IOException
1543 if stream has been closed.
1545 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1547 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1548 Change sources.redhat.com and sourceware.cygnus.com references to
1551 2001-02-07 Tom Tromey <tromey@redhat.com>
1553 Fix for PR libgcj/1906:
1554 * java/text/MessageFormat.java (setLocale): Use named class
1557 (format(Object,StringBuffer,FieldPosition)): Special case if
1558 argument is an Object[].
1560 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1562 * java/util/Arrays.java: Removed "cmp" methods.
1563 (qsort): Don't use "cmp".
1566 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1568 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1569 sort. Fix for PR java/1895.
1571 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1573 * configure.host: Use sjlj-exceptions for Alpha.
1575 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1577 * libgcj.spec.in: Don't force static libgcc into the executable.
1578 * configure.in (FORCELIBGCCSPEC): Removed.
1579 * configure: Rebuilt.
1581 2001-01-31 Tom Tromey <tromey@redhat.com>
1583 * Makefile.in: Rebuilt.
1584 * Makefile.am (LTCXXCOMPILE): New macro.
1586 2001-01-26 Andrew Haley <aph@redhat.com>
1588 (INIT_FPE): Use a direct system call to set the handler.
1590 2001-01-27 Richard Henderson <rth@redhat.com>
1592 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1594 2001-01-27 Tom Tromey <tromey@redhat.com>
1596 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1597 native interface structure.
1599 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1601 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1603 (read (byte[], int, int)): Only call readNextBlock() if the block
1604 buffer would actually be overrun. Increment blockDataPosition.
1605 (callReadMethod): Propagate exceptions from invocation target.
1606 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1607 exceptions from invocation target.
1609 2001-01-26 Tom Tromey <tromey@redhat.com>
1611 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1612 to internal representation.
1613 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1614 _Jv_FindClassFromSignature.
1616 2001-01-26 Warren Levy <warrenl@redhat.com>
1618 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1619 and timezone if they are available on the system.
1621 2001-01-24 Tom Tromey <tromey@redhat.com>
1623 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1625 2001-01-24 Tom Tromey <tromey@redhat.com>
1627 * Makefile.in: Rebuilt.
1628 * Makefile.am (c_source_files): Added sf_fabs.c.
1629 * java/lang/sf_fabs.c: New file.
1631 2001-01-19 Warren Levy <warrenl@redhat.com>
1633 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1634 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1635 correctly. Adjust properly from 0-23 clock hour.
1637 2001-01-17 Mark Wielaard <mark@klomp.org>
1639 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1641 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1643 * java/lang/Class.h (isInterface): Move implementation from
1644 natClass.cc. Declare inline.
1645 (Class): Add default constructor.
1646 * java/lang/Object.h: Update comments.
1647 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1648 initialize superclass, saving a call if super is already initialized.
1650 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1652 * prims.cc (init_prim_class): Deleted.
1653 (DECLARE_PRIM_TYPE): Rewritten.
1654 * java/lang/Class.h (stdio.h): Include removed.
1655 (stddef.h): Included.
1656 (java/lang/reflect/Modifier.h): Likewise.
1657 (Class): Contructor now takes arguments, initializes fields.
1658 (initializePrim): Prototype deleted.
1659 * java/lang/natClass.cc (initializePrim): Deleted.
1661 2001-01-16 Warren Levy <warrenl@redhat.com>
1663 * java/math/BigInteger.java: Update Copyright year.
1665 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1667 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1670 2001-01-14 Mark Wielaard <mark@klomp.org>
1671 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1672 (decode): Merge comments with Classpath, don't throw Exception
1674 2001-01-12 Tom Tromey <tromey@redhat.com>
1676 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1680 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1681 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1682 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1683 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1684 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1686 * java/lang/natSystem.cc: Include locale.h if it exists.
1687 * configure: Rebuilt.
1688 * configure.in: Check for locale.h.
1690 2001-01-11 Tom Tromey <tromey@redhat.com>
1692 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1693 (Cursor(int), getPredefinedCursor): Throw exception if argument
1696 2001-01-03 Tom Tromey <tromey@redhat.com>
1698 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1699 (getLocationOnScreen): Wrote.
1701 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1703 * Makefile.am: Re-enable dependencies.
1704 * Makefile.in: Rebuilt.
1706 2001-01-10 Warren Levy <warrenl@redhat.com>
1708 * java/math/BigDecimal.java (divide): Fixed comment.
1710 2001-01-10 Warren Levy <warrenl@redhat.com>
1712 Fix for PR libgcj/1596:
1713 * java/math/BigDecimal.java (divide): Check newScale for validity.
1714 Ensure that BigInteger.pow() is called with a non-negative value.
1715 (setScale (int)): New public method.
1716 (setScale (int,int)): New public method.
1718 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1720 Fix for PR libgcj/1338:
1721 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1722 commentChar. Fixed typos in comments.
1724 2001-01-08 Warren Levy <warrenl@redhat.com>
1726 Fix for PR libgcj/1411:
1727 * Makefile.am: Removed java/util/natTimeZone.cc.
1728 * Makefile.in: Rebuilt.
1729 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1730 missing localized timezone names.
1731 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1732 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1733 (init_properties): Set user.timezone property.
1734 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1735 default timezone names; removed non-standard ones. Use standard
1737 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1739 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1741 (getDefaultTimeZoneId): Removed.
1743 * java/util/natTimeZone.cc: Removed.
1745 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1747 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1748 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1749 (_Jv_GetArrayClass): New inline function.
1750 (arrayclass): New field.
1751 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1752 _Jv_GetArrayElementFromElementType.
1753 (_Jv_NewPrimArray): Ditto.
1754 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1755 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1756 Set Modifier::ABSTRACT.
1757 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1758 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1759 Now synchronized. Array classes are now referenced from
1760 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1761 Set array classes' accessibility flags correctly. Optimize so that
1762 all array classes share the same IDT.
1763 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1764 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1765 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1766 in superclasses from overwriting classes own fields.
1767 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1768 Modifier::isAbstract().
1769 (null_idt): New static field.
1770 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1772 (_Jv_IndexOf): Made inline.
1773 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1775 2001-01-08 Tom Tromey <tromey@redhat.com>
1777 Fix for PR java/1586:
1778 * Makefile.in: Rebuilt.
1779 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1781 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1783 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1784 from the c++ compiler.
1785 * Makefile.in: Rebuilt.
1787 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1789 All files with updated copyright.
1790 * prims.cc (class _Jv_PrimClass): Removed.
1791 (init_prim_class): New function.
1792 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1793 `_Jv_PrimClass' in primitive type declarations. Assign to the
1794 value returned by `init_prim_class.'
1795 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1796 primitive type declarations.
1797 (JvPrimClass): Cast to `jclass' removed.
1798 * java/lang/Class.h (Class): New constructor.
1799 (Class): New copy constructor.
1800 (initializePrim): New prototype.
1801 (_Jv_PrimClass): Field removed.
1802 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1803 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1804 (class java::lang::Object): `finalize' moved up front.
1805 * java/lang/natClass.cc
1806 (isAssignableFrom): Turned outline.
1807 (isInstance): Likewise.
1808 (isInterface): Likewise, fixed indentation.
1809 (initializePrim): New function.
1811 2001-01-07 Anthony Green <green@redhat.com>
1813 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1815 * Makefile.in: Rebuilt.
1817 * scripts/TexinfoDoclet.java: New file.
1819 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1820 doc/java-awt-color.texi, doc/java-lang.texi,
1821 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1822 doc/java-awt-event.texi, doc/java-net.texi,
1823 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1824 doc/java-awt-image.texi, doc/java-security.texi,
1825 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1826 doc/java-text.texi, doc/java-beans-beancontext.texi,
1827 doc/java-util-jar.texi, doc/java-beans.texi,
1828 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1829 doc/java-lang-ref.texi: New files.
1831 2001-01-07 Anthony Green <green@redhat.com>
1833 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1834 be used for both input and output, so don't clear doInput.
1836 * java/lang/StringBuffer.java: Fix comments.
1838 2001-01-06 Anthony Green <green@redhat.com>
1840 * java/beans/PropertyDescriptor.java: Fix comment.
1841 * java/io/PushbackReader.java: Fix comment.
1842 * java/io/ObjectStreamClass.java: Fix comment.
1843 * java/io/DataInputStream.java: Fix comment.
1844 * java/io/PipedInputStream.java: Fix comments.
1845 * java/io/PipedReader.java: Fix comments.
1846 * java/sql/DatabaseMetaData.java: Fix comments.
1848 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1850 * java/io/PipedReader: Synchronize on "lock" instead of this.
1852 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1854 * java/lang/Thread.java: Update comment.
1856 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1857 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1858 * java/io/PipedReader: New implementation based on new
1860 * java/io/PipedWriter: Updated to match new PipedReader.
1862 2001-01-03 Tom Tromey <tromey@redhat.com>
1864 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1865 (getViewportSize): Insets include scrollbar size.
1866 (doLayout): Finished.
1867 (getScrollPosition): Wrote.
1868 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1870 2001-01-02 Tom Tromey <tromey@redhat.com>
1872 * java/awt/ScrollPane.java: Wrote.
1873 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1876 * java/awt/Panel.java (Panel()): Fixed.
1878 * java/awt/Component.java (isShowing): Return false if no peer
1879 exists, and true if component is visible and no parent exists.
1880 (getLocationOnScreen): Wrote.
1881 (getPreferredSize): Removed FIXME comment.
1882 (getMinimumSize): Likewise.
1883 (getAlignmentX, getAlignmentY): Wrote.
1885 (requestFocus): Wrote.
1886 (transferFocus): Wrote.
1887 (findNextFocusComponent): New method.
1888 (hasFocus()): Wrote.
1889 (checkImage): Wrote.
1890 (enableEvents): Call setEventMask on the peer.
1892 * java/awt/Container.java (list): Use super.list() to print self.
1893 (findNextFocusComponent): New method.
1894 (setLayout): Call invalidate.
1895 (findComponentAt): Wrote.
1897 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1899 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1900 the correct versions of various linuxthreads functions get linked.
1901 * Makefile.in: Rebuilt.
1902 * java/lang/natThread.cc (finalize_native): New static function. Call
1903 _Jv_ThreadDestroyData.
1904 (initialize_native): Register finalizer for "data".
1905 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1906 (_Jv_ThreadDestroyData): New prototype.
1907 * include/win32-threads.h: Ditto.
1908 * include/no-threads.h: Ditto.
1909 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1910 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1911 move mutex and condition variable destroy code from:
1912 (really_start): ...here.
1913 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1914 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1915 (_Jv_ThreadDestroyData): Implemented.
1916 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1917 (_Jv_AllocArray): Ditto.
1919 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1921 * java/sql/DriverManager.java (getConnection): Don't set user/password
1924 2000-12-27 Warren Levy <warrenl@redhat.com>
1926 Fix for PR libgcj/1358:
1927 * java/lang/System.java: Update Copyright date properly.
1928 * java/util/Calendar.java: Fix typo in comment.
1929 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1930 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1931 initialize times. Spec says to set H:M:S values to zero only if
1933 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1934 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1935 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1936 timezones and GMT offsets, being careful to account for units of
1937 milliseconds vs. seconds.
1939 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1941 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1942 not be assigned to Object.
1944 Fix for PR libgcj/1516:
1945 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1947 (can_widen): Declared inline. Remove redundant checks for void
1948 arguments and char->short conversion. Add special case for boolean
1950 (ffi_type): Declared inline.
1951 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1953 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1955 * java/sql/SQLWarning.java: Fixed typo in comment.
1957 2000-12-26 Tom Tromey <tromey@redhat.com>
1959 * java/awt/MenuItem.java (paramString): Now protected.
1961 * java/awt/MenuShortcut.java: Implements Serializable.
1963 * java/awt/MenuBar.java: Rewrote from scratch.
1965 * java/awt/MenuComponent.java (removeNotify): Wrote.
1966 Implements Serializable.
1968 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1971 * java/awt/CheckboxMenuItem.java: Wrote.
1973 2000-12-25 Tom Tromey <tromey@redhat.com>
1975 * java/awt/MenuContainer.java: Fixed typo.
1977 * Makefile.in: Rebuilt.
1978 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1979 * java/awt/SystemColor.java: New file.
1981 * java/awt/Color.java (rgba): Now package-private.
1983 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1985 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1988 * java/awt/MenuItem.java (addNotify): New method.
1989 (MenuItem(String,MenuShortcut)): New constructor.
1990 (setLabel): Notify peer of change.
1991 (setEnabled): Likewise.
1993 * java/awt/GridLayout.java (toString): New method.
1995 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1996 (FlowLayout): Check for LEADING and TRAILING.
1997 (setAlignment): Likewise.
1998 (layoutContainer): Handle component orientation.
2000 * java/awt/Component.java (orientatin): New field.
2001 (setComponentOrientation): Wrote.
2002 (getComponentOrientation): Wrote.
2004 * java/awt/Event.java (Event): Implements Serializable.
2005 (consumed): New field for serialization.
2006 * java/awt/Dimension.java (Dimension): Implements Serializable.
2007 * java/awt/Cursor.java (Cursor): Implements Serializable.
2008 * java/awt/Container.java (Container): No longer abstract.
2010 * java/awt/Choice.java: Wrote.
2011 * java/awt/Checkbox.java: Wrote.
2012 * java/awt/ItemSelectable.java: Documented.
2013 * java/awt/CheckboxGroup.java: Wrote.
2015 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2017 (getSize): Likewise.
2019 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2021 * java/io/FileDescriptor.java: Initialize fd to -1.
2022 Remove default constructor.
2024 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2026 * java/lang/mprec.h: Change C9X reference to refer to C99.
2028 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2030 * java/lang/Throwable.java (trace_enabled): New static field.
2031 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2032 trace_enabled not set.
2033 * prims.cc (main_init): Turn off trace_enabled while creating
2034 default exception objects.
2036 2000-12-21 Tom Tromey <tromey@redhat.com>
2038 * java/beans/PropertyChangeListener.java: Extends EventListener.
2039 * java/beans/VetoableChangeListener.java: Extends EventListener.
2041 * java/util/zip/Deflater.java (update, init): Now private.
2043 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2045 * java/util/BasicMapEntry.java: Re-added.
2046 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2047 (putAll): Test for BasicMapEntry.
2048 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2049 (putAll): Test for BasicMapEntry.
2050 Change references from `HashMap.Entry' to `Entry' in various places.
2051 * Makefile.am: Add BasicMapEntry.java.
2052 * Makefile.in: Rebuilt.
2054 2000-12-18 Warren Levy <warrenl@redhat.com>
2056 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2057 need to set timezone to a valid non-null value. Partial fix for
2060 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2062 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2064 * java/awt/Button.java (addNotify): Likewise.
2065 * java/awt/Label.java (addNotify): Likewise.
2066 * java/awt/Panel.java (addNotify): Likewise.
2067 * java/awt/Scrollbar.java (addNotify): Likewise.
2068 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2069 Remove redundant null checks.
2071 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2073 * COPYING: Update to current
2074 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2075 to 19yy as example year in copyright notice).
2077 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2079 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2080 end-of-stream if avail_in is 0.
2082 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2084 * java/util/ArrayList.java (data): Declare transient.
2085 (serialPersistantFields): Removed.
2086 (readObject): Use defaultReadObject(), not readFields().
2087 (writeObject): Use defaultWriteObject(), not writeFields().
2089 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2091 * java/util/Hashtable.java (put): Remove `last' variable.
2092 Link new entry to head of list.
2093 * java/util/HashMap.java (put): Ditto.
2095 2000-12-15 Tom Tromey <tromey@redhat.com>
2097 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2098 loader to Class.forName.
2100 2000-12-14 Tom Tromey <tromey@redhat.com>
2102 * java/util/ResourceBundle.java
2103 (getBundle(String,Locale,ClassLoader)): New method.
2104 (trySomeGetBundle): Added `loader' argument.
2105 (partialGetBundle): Likewise.
2107 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2108 maximumFractionDigits, maximumIntegerDigits,
2109 minimumFractionDigits, minimumIntegerDigits): Now
2112 * java/lang/Thread.java (checkAccess): Now final.
2114 * java/lang/RuntimePermission.java: Class now final.
2116 * java/io/StringWriter.java (StringWriter(int)): Now public.
2118 * java/io/SerializablePermission.java (legal_names): Now private.
2120 * java/lang/Character.java: Updated UnicodeBlock constants.
2121 * scripts/blocks.pl: Special case private use and surrogate
2124 2000-12-12 Tom Tromey <tromey@redhat.com>
2126 * Makefile.in: Rebuilt.
2127 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2129 (GCJCOMPILE): Use it.
2132 2000-12-11 Tom Tromey <tromey@redhat.com>
2134 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2135 New static final fields.
2137 * scripts/classes.pl (scan): Skip lines with leading `*'.
2138 Fix for PR libgcj/378.
2140 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2142 * configure.in: Remove check for -fuse-divide-subroutine.
2143 * configure: Rebuilt.
2145 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2147 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2149 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2151 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2152 Remove BasicMapEntry.java and Bucket.java.
2153 * Makefile.in: Rebuilt.
2154 * java/util/HashMap.java: Rewritten.
2155 * java/util/HashSet.java: Imported from classpath.
2156 * java/util/WeakHashMap.java: Imported from classpath.
2157 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2158 * java/util/Bucket.java: Deleted.
2159 * java/util/BasicMapEntry.java: Deleted.
2160 * java/util/Collections.java (search): Use a for-loop, not iterator
2162 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2163 of elements in source.
2164 (max): Use a for-loop.
2166 (reverse): Keep track of positions instead of using Iterator's
2167 nextIndex() and previousIndex().
2168 (shuffle(List)): Initialize defaultRandom if required using
2169 double-check thread safety idiom. Call two-argument shuffle method
2170 using defaultRandom.
2171 (defaultRandom): New field.
2172 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2173 using previousIndex() and nextIndex().
2174 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2175 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2176 * java/util/AbstractMap.java (toString): Use StringBuffer.
2177 * java/lang/ref/PhantomReference.java: Imported from classpath.
2178 * java/lang/ref/SoftReference.java: Ditto.
2179 * java/lang/ref/Reference.java: Ditto.
2180 * java/lang/ref/WeakReference.java: Ditto.
2181 * java/lang/ref/ReferenceQueue.java: Ditto.
2183 2000-12-10 Richard Henderson <rth@redhat.com>
2185 * configure.host: Recognize alpha*-*, not alphaev6-*.
2187 2000-12-09 Anthony Green <green@redhat.com>
2189 * configure.host: Enable interpreter for Alpha.
2191 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2193 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2194 (ZIP): Points at fastjar instead of zip.
2195 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2196 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2197 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2198 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2199 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2200 ($(x_java_source_files:.java=.class):): Likewise.
2201 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2203 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2204 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2205 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2206 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2207 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2208 gnu/gcj/runtime/VMClassLoader.h:,
2209 java/io/ObjectInputStream$$GetField.h:,
2210 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2211 (Makefile.in): Rebuilt.
2213 2000-12-08 Tom Tromey <tromey@redhat.com>
2216 * configure: Rebuilt.
2217 * configure.in: Use echo, not `:', to create .d files.
2219 2000-12-08 Warren Levy <warrenl@redhat.com>
2221 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2222 NullPointerException so proper check of offset can be done.
2224 2000-12-08 Warren Levy <warrenl@redhat.com>
2226 * java/io/FileInputStream.java (close): Check if the fd is valid.
2227 * java/io/RandomAccessFile.java (close): Ditto.
2228 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2229 * java/net/PlainSocketImpl.java (close): Ditto.
2231 2000-12-06 Tom Tromey <tromey@redhat.com>
2233 * java/awt/GridBagConstraints.java: Filled in values for static
2236 * java/util/BitSet.java: Updated copyright notice.
2238 * Makefile.in: Rebuilt.
2239 * Makefile.am (awt_java_source_files): Added new file.
2240 * java/awt/GridBagConstraints.java: New file.
2242 2000-12-05 Tom Tromey <tromey@redhat.com>
2244 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2245 Now package-private, not protected.
2246 * java/text/DateFormatSymbols.java (equals): Now private.
2247 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2248 * java/util/BitSet.java: Class no longer final.
2250 2000-12-04 Warren Levy <warrenl@redhat.com>
2252 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2253 out code dependent on compiler and library changes.
2255 2000-12-04 Warren Levy <warrenl@redhat.com>
2257 * java/io/FilePermission.java: Made class final per spec.
2258 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2259 method name to match spec (fixed typo).
2260 * java/util/LinkedList.java: Implements List.
2262 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2264 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2265 Edgar Villanueva <edgarvil@home.com>.
2267 2000-12-03 Tom Tromey <tromey@redhat.com>
2269 * java/awt/geom/Point2D.java: Added protected constructor.
2270 (equals): New method.
2271 (Float.setLocation(float,float)): New method.
2272 * java/awt/geom/Dimension2D.java: Added protected constructor.
2273 * java/awt/geom/AffineTransform.java: Made all constants public.
2274 (concatenate): Fixed typo in name.
2275 * java/awt/event/WindowAdapter.java: Class now abstract.
2276 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2277 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2280 * java/awt/AWTError.java: Extend Error, not
2281 IllegalStateException.
2283 * Makefile.in: Rebuilt.
2284 * Makefile.am (awt_java_source_files): Added new file.
2285 * java/awt/geom/RoundRectangle2D.java: New file.
2287 * Makefile.in: Rebuilt.
2288 * Makefile.am (awt_java_source_files): Added new file.
2289 * java/awt/FlowLayout.java: New file.
2291 * Makefile.in: Rebuilt.
2292 * Makefile.am (awt_java_source_files): Added new file.
2293 * java/awt/GridLayout.java: New file.
2295 2000-12-02 Tom Tromey <tromey@redhat.com>
2297 * Makefile.in: Rebuilt.
2298 * Makefile.am (awt_java_source_files): Added new files.
2299 * java/awt/CardLayout.java: New file.
2300 * java/awt/AWTPermission.java: New file.
2302 2000-12-01 Tom Tromey <tromey@redhat.com>
2304 * java/util/Vector.java (insertElementAt): Unconditionally
2305 increment elementCount.
2306 (removeRange): Clear unused slots in vector.
2308 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2310 * java/lang/natMath.cc: Declare fabsf() function.
2311 * java/lang/mprec.h: Don't include math.h.
2312 * java/lang/dtoa.c: Include string.h.
2313 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2316 From Adam Welc <welc@cs.purdue.edu>:
2317 * java/util/LinkedList.java (removeFirst): Update `first' field.
2318 Handle the last == first case.
2319 (removeLast): Update `last' field. Handle the last == first case.
2321 2000-12-01 Warren Levy <warrenl@cygnus.com>
2323 * Makefile.am: Added entries for new java.sql modules.
2324 * Makefile.in: Rebuilt.
2326 2000-12-01 Warren Levy <warrenl@cygnus.com>
2328 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2329 that aren't quite 1.2 compatible yet.
2331 2000-11-30 Warren Levy <warrenl@cygnus.com>
2333 * java/sql/Array.java: New file from classpath.
2334 * java/sql/BatchUpdateException.java: Ditto.
2335 * java/sql/Blob.java: Ditto.
2336 * java/sql/Clob.java: Ditto.
2337 * java/sql/Ref.java: Ditto.
2338 * java/sql/SQLData.java: Ditto.
2339 * java/sql/SQLInput.java: Ditto.
2340 * java/sql/SQLOutput.java: Ditto.
2341 * java/sql/Struct.java: Ditto.
2342 * java/sql/CallableStatement.java: Merged file from claspath.
2343 * java/sql/Connection.java: Ditto.
2344 * java/sql/DataTruncation.java: Ditto.
2345 * java/sql/DatabaseMetaData.java: Ditto.
2346 * java/sql/DriverManager.java: Ditto.
2347 * java/sql/PreparedStatement.java: Ditto.
2348 * java/sql/ResultSet.java: Ditto.
2349 * java/sql/ResultSetMetaData.java: Ditto.
2350 * java/sql/SQLException.java: Ditto.
2351 * java/sql/SQLWarning.java: Ditto.
2352 * java/sql/Statement.java: Ditto.
2353 * java/sql/Types.java: Ditto.
2355 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2357 * java/lang/natSystem.cc (init_properties): Set user.language and
2359 * configure.in: Check for setlocale.
2360 * configure: Rebuilt.
2361 * include/config.h.in: Rebuilt.
2363 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2364 the infate() call didn't deliver any output. Throw a ZipException if
2365 the needsDictionary() call returns true.
2366 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2367 * java/io/InputStreamReader: Use the default buffer size for the
2368 contained BufferedInputStream.
2370 2000-11-28 Warren Levy <warrenl@cygnus.com>
2372 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2373 more time zone entries.
2374 * java/text/SimpleDateFormat.java (format): Added case for
2377 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2379 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2380 directly rather than read() in all cases. Make primitive read
2381 implementations more efficient, as defined in JDK online docs.
2382 (skipBytes): Behave like the JDK's implementation.
2383 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2384 closed stream with checkStatus() whenever an IOException can be
2386 (checkStatus): New private method.
2388 2000-11-27 Warren Levy <warrenl@cygnus.com>
2390 * Makefile.am: Added natTimeZone.cc.
2391 * Makefile.in: Rebuilt.
2392 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2393 * java/text/DateFormatSymbols.java (ampms): Made package private.
2394 (eras): Made package private.
2395 (months): Made package private.
2396 (shortMonths): Made package private.
2397 (shortWeekdays): Made package private.
2398 (weekdays): Made package private.
2399 (formatPrefixes): New private field.
2400 (localPatternCharsDefault): Made private.
2401 (dateFormats): New package private field.
2402 (timeFormats): New package private field.
2403 (formatsForKey): New private method.
2404 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2405 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2406 * java/text/SimpleDateFormat.java: Merged with Classpath.
2407 * java/util/TimeZone.java: Merged with Classpath.
2408 * java/util/natTimeZone.cc: New file.
2410 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2412 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2413 (addElement): Don't increment elementCount twice. Doh.
2414 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2415 array needs to be expanded.
2417 * java/util/Collections.java (UnmodifiableCollection): Implement
2419 (UnmodifiableList): Throw UnsupportedOperationException from
2420 modification methods. Set `l' from the one-parameter constructor.
2421 (UnmodifiableMap): Implement toString().
2422 (SynchronizedCollection): Ditto.
2423 (SynchronizedList): Set `l' from the one-parameter constructor.
2424 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2425 (SynchronizedMap): Implement toString().
2427 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2429 * javax/naming/NameParser.java,
2430 javax/naming/directory/AttributeInUseException.java,
2431 javax/naming/directory/AttributeModificationException.java,
2432 javax/naming/directory/InvalidAttributeIdentifierException.java,
2433 javax/naming/directory/InvalidAttributesException.java,
2434 javax/naming/directory/InvalidAttributeValueException.java,
2435 javax/naming/directory/InvalidSearchControlsException.java,
2436 javax/naming/directory/InvalidSearchFilterException.java,
2437 javax/naming/directory/NoSuchAttributeException.java,
2438 javax/naming/directory/SchemaViolationException.java: New files.
2440 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2442 * javax/naming/InitialContext.java (rebind): Implement.
2443 (unbind): Implement.
2444 (rename): Implement.
2446 (listBindings): Implement.
2447 (destroySubcontext): Implement.
2448 (createSubcontext): Implement.
2449 (lookupLink): Implement.
2450 (getNameParser): Implement.
2451 (composeName): Implement.
2452 (addToEnvironment): Implement.
2454 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2456 * javax/naming/AuthenticationException.java,
2457 javax/naming/AuthenticationNotSupportedException.java,
2458 javax/naming/CannotProceedException.java,
2459 javax/naming/CommunicationException.java,
2460 javax/naming/ConfigurationException.java,
2461 javax/naming/ContextNotEmptyException.java,
2462 javax/naming/InsufficientResourcesException.java,
2463 javax/naming/InterruptedNamingException.java,
2464 javax/naming/InvalidNameException.java,
2465 javax/naming/LimitExceededException.java,
2466 javax/naming/LinkException.java,
2467 javax/naming/LinkLoopException.java,
2468 javax/naming/MalformedLinkException.java,
2469 javax/naming/NameAlreadyBoundException.java,
2470 javax/naming/NameNotFoundException.java,
2471 javax/naming/NamingSecurityException.java,
2472 javax/naming/NoPermissionException.java,
2473 javax/naming/NotContextException.java,
2474 javax/naming/PartialResultException.java,
2475 javax/naming/ReferralException.java,
2476 javax/naming/ServiceUnavailableException.java,
2477 javax/naming/SizeLimitExceededException.java,
2478 javax/naming/TimeLimitExceededException.java: New files.
2480 * javax/naming/Name.java (clone): New method.
2481 (compareTo): New method.
2482 (isEmpty): New method.
2483 (getAll): New method.
2484 (getPrefix): New method.
2485 (getSuffix): New method.
2486 (startsWith): New method.
2487 (endsWith): New method.
2488 (addAll): New method.
2489 (addAll): New method.
2492 (remove): New method.
2494 * javax/naming/Context.java (lookup): New method.
2495 (rebind): New method.
2496 (unbind): New method.
2497 (rename): New method.
2499 (listBindings): New method.
2500 (destroySubcontext): New method.
2501 (createSubcontext): New method.
2502 (lookupLink): New method.
2503 (getNameParser): New method.
2504 (composeName): New method.
2505 (addToEnvironment): New method.
2506 (removeFromEnvironment): New method.
2507 (getEnvironment): New method.
2508 (close): New method.
2509 (getNameInNamespace): New method.
2511 * javax/naming/InitialContext.java (lookup): New method.
2512 (rebind): New method.
2513 (unbind): New method.
2514 (rename): New method.
2516 (listBindings): New method.
2517 (destroySubcontext): New method.
2518 (createSubcontext): New method.
2519 (lookupLink): New method.
2520 (getNameParser): New method.
2521 (composeName): New method.
2522 (addToEnvironment): New method.
2523 (removeFromEnvironment): New method.
2524 (getEnvironment): New method.
2525 (close): New method.
2526 (getNameInNamespace): New method.
2528 2000-11-26 Tom Tromey <tromey@cygnus.com>
2530 * Makefile.in: Rebuilt.
2531 * Makefile.am (core_java_source_files): Added
2532 RuntimePermission.java.
2533 * java/lang/RuntimePermission.java: Imported from Classpath.
2534 * java/lang/Thread.java (getContextClassLoader): Now
2535 synchronized. Added security code.
2536 (setContextClassLoader): Likewise.
2538 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2539 length field of array.
2540 (_Jv_NewPrimArray): Likewise.
2541 * gcj/array.h (__JArray): `length' field now const. Added
2544 2000-11-26 Anthony Green <green@redhat.com>
2546 * javax/naming/spi/NamingManager.java,
2547 javax/naming/spi/ObjectFactory.java,
2548 javax/naming/spi/InitialContextFactory.java,
2549 javax/naming/spi/InitialContextFactoryBuilder.java,
2550 javax/naming/RefAddr.java, javax/naming/Reference.java,
2551 javax/naming/NamingException.java, javax/naming/Context.java,
2552 javax/naming/Referenceable.java,
2553 javax/naming/directory/InitialDirContext.java,
2554 javax/naming/directory/DirContext.java,
2555 javax/naming/directory/Attributes.java,
2556 javax/naming/directory/Attribute.java,
2557 javax/naming/StringRefAddr.java,
2558 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2559 javax/naming/InitialContext.java,
2560 javax/naming/NoInitialContextException.java: New files.
2562 2000-11-25 Anthony Green <green@redhat.com>
2564 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2565 (_Jv_NewPrimArray): Likewise.
2566 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2567 (class JArray): Removed constructor.
2569 * java/lang/Thread.java (context_class_loader): New private data.
2570 (getContextClassLoader): New method.
2571 (setContextClassLoader): New method.
2572 (Thread): Initialize context_class_loader.
2574 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2575 (getResource): Rename to findResource.
2576 (findResource): New method. Used to be getResource.
2577 (getResourceAsStream): Deleted.
2578 (jarFileize): Extracted logic from URLClassLoader constructor into
2579 this new private method.
2580 (addURL): New protected method.
2581 (URLClassLoader): Call jarFileize. Use addElement instead of
2583 (findResources): New method.
2585 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2586 (getResource): Implement correct logic.
2587 (findResource): New method.
2588 (getResources): New method.
2589 (findClass): Create a ClassNotFoundException with the name of the
2590 class rather than nothing at all.
2591 (defineClass) Only throw ClassFormatError.
2593 * java/lang/Class.java (forName): New method.
2594 * java/lang/Class.h (forName): New method.
2595 * java/lang/natClass.cc (forName): New method.
2597 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2599 * java/lang/System.java (setProperties): Only call init_properties()
2600 if properties is null.
2601 (getProperties): Ditto.
2602 (getProperty): Ditto.
2603 (setProperty): Call init_properties if properties are null.
2604 (prop_init): Remove field.
2605 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2606 method. Check for null properties after synchronizing instead of
2607 prop_init flag. Set the properties field last for thread safety.
2609 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2610 test for gcj.dumpobjects property and enable object stream dumping
2612 (dumpElement): No longer native.
2613 (dumpElementln): Ditto.
2614 (setDump): Do not define.
2615 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2616 (dumpElementln): Removed.
2619 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2621 * configure: Rebuilt.
2622 * Makefile.in: Rebuilt.
2623 * Makefile.am (built_java_source_files): Add Configuration.java.
2624 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2625 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2626 Create `gnu' directory in the build tree.
2627 * gnu/classpath/Configuration.java.in: New file.
2629 2000-11-24 Tom Tromey <tromey@cygnus.com>
2631 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2633 (_Jv_NewPrimArray): Likewise.
2635 * gcj/array.h (__JArray): `length' field now const. Added
2637 (class JArray): Added constructor.
2639 2000-11-23 Mark Wielaard <mark@klomp.org>
2641 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2644 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2646 * java/util/Vector.java: Improve exception messages.
2647 (Vector): Check initialCapacity for IllegalArgumentException.
2648 (tromToSize): Don't check for elementCount == elementData.length
2650 (toArray): Don't try to set null marker if target array is the same
2651 length as the vector.
2653 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2655 * Makefile.in: Rebuilt.
2656 * Makefile.am (core_java_source_files): Added Collections.java.
2657 * java/util/List.java: Merged from classpath.
2658 * java/util/Vector.java: Ditto.
2659 * java/util/Collections.java: From classpath.
2660 * java/util/ArrayList.java (addAll(Collection)): Call
2661 addAll(int,Collection) instead of duplicating code.
2662 (indexOf): Clean up int initialization.
2663 (clear): Set cleared array entries to null, to allow garbage
2665 * java/util/List.java: Minor formatting fixes.
2666 * java/util/SimpleTimeZone.java: ditto.
2668 2000-11-18 Tom Tromey <tromey@cygnus.com>
2670 * Makefile.in: Rebuilt.
2671 * Makefile.am (core_java_source_files): Added new files.
2672 * java/lang/reflect/ReflectPermission.java: New class.
2673 * java/io/FileFilter.java: From Classpath
2674 * java/io/FilePermission.java: From Classpath.
2676 2000-11-17 Tom Tromey <tromey@cygnus.com>
2678 * java/lang/reflect/AccessibleObject.java (isAccessible,
2679 setAccessible): Now public.
2681 * java/lang/natString.cc: Include Locale.h.
2682 (toUpperCase): Added `locale' argument. Handle locale
2684 (toLowerCase): Added `locale' argument. Handle locale
2686 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2687 CAPITAL_I): New defines.
2688 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2691 (toUpperCase, toLowerCase): New methods. Variants which accept
2694 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2697 * java/util/PropertyPermission.java: Re-merged from Classpath.
2699 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2701 * java/text/StringCharacterIterator.java: Reindented.
2702 (setText): New method.
2704 2000-11-17 Mark Wielaard <mark@klomp.org>
2706 Merge with Classpath (changes by Bryce McKinlay)
2707 * java/util/jar/*.java: Reformat all to unofficial standard coding
2708 style. No changes of substance.
2710 2000-11-17 Mark Wielaard <mark@klomp.org>
2712 * java/util/zip/*.java: Javadoc updates.
2714 2000-11-17 Tom Tromey <tromey@cygnus.com>
2716 * java/text/CollationKey.java: Implement Comparable.
2717 (compareTo(Object)): New method.
2718 * java/text/Collator.java (compare(Object,Object)): New method.
2719 Implement Comparator.
2721 * java/util/zip/InflaterInputStream.java (available): New method.
2722 (close): New method.
2723 (read, available, skip, fill): Throw exception if stream closed.
2724 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2725 getNextEntry): Throw exception if closed.
2727 2000-11-16 Tom Tromey <tromey@cygnus.com>
2729 * java/io/PushbackReader.java: Merged with Classpath.
2730 * java/util/Arrays.java: Updated from Classpath.
2732 * scripts/blocks.pl: New file.
2733 * java/lang/Character.java (Subset): New class.
2734 (UnicodeBlock): New class.
2736 * java/lang/Math.java (toDegrees, toRadians): New methods.
2738 * java/lang/Float.java: Implement Comparable.
2739 (compareTo): New methods.
2740 * java/lang/Double.java: Implement Comparable.
2741 (compareTo): New methods.
2743 2000-11-16 Warren Levy <warrenl@cygnus.com>
2745 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2747 (listeners): Made transient.
2748 (source): Renamed from 'bean'.
2749 (children): New field for serialization.
2750 (propertyChangeSupportSerializedDataVersion): Ditto.
2751 (serialVersionUID): Ditto.
2752 (writeObject): New serialization method.
2753 (readObject): New serialization method.
2754 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2756 (listeners): Made transient.
2757 (source): Renamed from 'bean'.
2758 (children): New field for serialization.
2759 (vetoableChangeSupportSerializedDataVersion): Ditto.
2760 (serialVersionUID): Ditto.
2761 (writeObject): New serialization method.
2762 (readObject): New serialization method.
2763 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2764 to allow constructor to have a return type (i.e. the class that the
2765 constructor constructs).
2767 2000-11-14 Tom Tromey <tromey@cygnus.com>
2769 * Makefile.in: Rebuilt.
2770 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2773 2000-11-02 Warren Levy <warrenl@cygnus.com>
2775 * java/io/ObjectInputStream.java (readObject): Added code to
2776 conditionally dump out the serialized data.
2777 Handle ENDBLOCKDATA case a bit more gracefully since the current
2778 behavior doesn't seem to work as expected.
2779 (readStreamHeader): Added code for serialized data dumper.
2780 (readNextBlock): Ditto.
2781 (readFields): Ditto.
2782 (dump): New private static field for turning on/off dumper.
2783 (setDump): New native method.
2784 (dumpElement): New native method.
2785 (dumpElementln): New native method.
2786 * java/io/natObjectInputStream.cc (setDump): New method.
2787 (dumpElement): New method.
2788 (dumpElementln): New method.
2790 2000-11-02 Warren Levy <warrenl@cygnus.com>
2792 * java/net/InetAddress.java (addr): Renamed from 'address'.
2793 (address): New field to match Serialized Form doc.
2794 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2795 (family): New serialization field.
2796 (serialVersionUID): New field.
2797 (readObject): New method.
2798 (writeObject): New method.
2799 (getFamily): New native method.
2800 (InetAddress): Set family.
2801 * java/net/natInetAddress.cc (getFamily): New method.
2802 (addr): Renamed from 'address'.
2803 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2804 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2805 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2807 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2809 * java/util/AbstractList.java (SubList): Make it a top-level private
2811 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2813 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2814 * Makefile.in: Rebuilt.
2816 2000-11-02 Tom Tromey <tromey@cygnus.com>
2818 * Makefile.in: Rebuilt.
2819 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2822 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2824 * java/util/AbstractList.java (remove): Comment out modCount increment
2825 to work around compiler bug.
2828 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2830 * java/util/AbstractList.java: Throw messages with
2831 IndexOutOfBoundsExceptions.
2832 (listIterator()): Call listIterator(0).
2833 (size): New field. Initialize to size().
2834 (hasNext): Test position against size, not size().
2835 (remove): Increment knownMod by one instead of resetting it from
2838 (SubList.upMod): Removed.
2839 (SubList.set): Don't call upMod() or update knownMod.
2840 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2841 (SubList.remove): Ditto.
2842 (SubList.addAll): Don't call backingList.size(). Increment size from
2844 (SubList.iterator): New method. Call listIterator(0).
2845 (SubList.listIterator): New method. Restore code to return an anonymous
2846 listIterator implementation (with some changes).
2847 * java/util/AbstractSequentialList.java: Throw messages with
2848 IndexOutOfBoundsExceptions.
2849 (addAll): Add a specnote.
2850 * java/util/ArrayList.java (removeRange): Get the math right.
2851 (addAll): Increment modCount _before_ creating iterator.
2852 * java/util/LinkedList.java: Rewritten, mostly.
2854 2000-11-01 Tom Tromey <tromey@cygnus.com>
2856 * scripts/encodings.pl: Added `ASCII' alias.
2857 * Makefile.in: Rebuilt.
2858 * Makefile.am (convert_source_files): Added new files.
2859 * gnu/gcj/convert/Input_ASCII.java: New file.
2860 * gnu/gcj/convert/Output_ASCII.java: New file.
2861 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2862 out-of-range characters.
2863 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2864 (read): Swap bytes if required. Treat `count' as character count,
2866 (write): Likewise. Also, handle case where iconv fails on a given
2868 (init): Put encoding into exception.
2869 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2870 (static): Call iconv_init. Rebuilt alias list.
2871 (iconv_init): New private method.
2873 2000-11-01 Tom Tromey <tromey@cygnus.com>
2875 * Makefile.in: Rebuilt.
2876 * Makefile.am (install-exec-hook): Only make a single symlink, and
2877 remove the destination before making the link.
2878 * configure: Rebuilt.
2879 * configure.in: Call AC_PROG_LN_S.
2881 2000-10-31 Warren Levy <warrenl@cygnus.com>
2883 * jni.cc: Added include of java/lang/ThreadGroup.h.
2884 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2885 per change of 2000-10-05.
2887 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2889 * java/util/BitSet.java: Updated @specnote.
2891 * java/io/Reader.java: Merge docs from classpath.
2892 (skip): Synchronize on `lock'.
2893 * java/io/FileReader.java: Import correct implementation from
2895 * java/io/StringReader.java: Merge docs from classpath.
2896 (ready): Throw IOException if stream is closed.
2898 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2900 * java/util/AbstractCollection.java (addAll): Use size() instead of
2901 hasNext() in iterator loop.
2903 (contains): Ditto. Simplify loop.
2904 (containsAll): Ditto.
2909 (toString): Ditto. Use string concatenation operators, not
2911 * java/util/AbstractList.java (addAll): Use size() instead of
2912 hasNext() in iterator loop.
2915 (indexOf): Ditto. Don't take null check outside of the loop.
2916 (iterator): Return an AbstractListItr instead of anonymous class.
2917 (lastIndexOf): Use a for loop bounded by size() instead of
2918 hasPrevious() in iterator loop.
2919 (listIterator): Return an AbstractListItr.
2920 (removeRange): Remove bounds checking code and docs.
2921 (AbstractListItr): New inner class. Code moved here from
2923 (SubList.iterator): Removed. Use default implementation from
2924 AbstractList instead.
2925 (SubList.listIterator): As above.
2926 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2927 instead of hasNext() in iterator loop.
2928 (containsValue): Ditto.
2934 (toString): Ditto. Use string concatenation operators, not
2936 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2937 bounded by size() instead of hasNext() in iterator loop.
2938 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2939 part of normal execution flow. Do an explicit null check instead.
2940 * java/util/ArrayList.java (_iSize): Rename to `size'.
2941 (_arData): Rename to `data'.
2942 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2945 (removeRange): Make protected. Don't check bounds.
2946 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2948 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2950 (addAll (int, Collection)): Check lower bounds. Simplify exception
2952 (clone): Clone the data array too.
2953 (indexOf): Inline doesEqual().
2954 (lastIndexOf): Ditto.
2955 (clear): Don't set array data to null.
2956 (set): Check lower bounds. Simplify exception string.
2957 (toArray): Correct comment.
2958 (trimToSize): Don't update modCount, this is not a structural change.
2961 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2963 (toString): Declare `bit' as long, not int.
2964 (data): Made package-private, not private.
2966 2000-10-27 Warren Levy <warrenl@cygnus.com>
2968 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2969 array elements to true.
2971 2000-10-27 Warren Levy <warrenl@cygnus.com>
2973 * Makefile.am: Added locale files from Classpath.
2974 * Makefile.in: Rebuilt.
2975 * gnu/java/locale/Calendar.java: New file.
2976 * gnu/java/locale/Calendar_de.java: New file.
2977 * gnu/java/locale/Calendar_en.java: New file.
2978 * gnu/java/locale/Calendar_nl.java: New file.
2979 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2980 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2981 serialization compatibility.
2982 (scale): Made private.
2983 (serialVersionUID): New field.
2984 * java/math/BigInteger.java (ival): Made transient.
2985 (words): Made transient.
2986 (bitCount): New serialization field.
2988 (firstNonzeroByteNum): Ditto.
2989 (lowestSetBit): Ditto.
2992 (serialVersionUID): New field.
2993 (readObject): New method.
2994 (writeObject): New method.
2995 * java/util/BitSet.java (serialVersionUID): New field.
2996 * java/util/Calendar.java: Replaced with Classpath file.
2997 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2998 of getDefault() for TimeZone or Locale instead of passing nulls.
2999 * java/util/Locale.java (serialVersionUID): New field.
3000 (writeObject): New method.
3001 (readObject): New method.
3002 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3004 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3006 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3007 (core_java_source_files): Put java.lang, java.io, and java.util here.
3008 (ordinary_java_source_files): Order so that core_java_source_files are
3010 (java_source_files): Reorder so that special_java_source_files are
3012 * configure.in: Don't pass -I flag to gcj.
3013 * Makefile.in: Rebuilt.
3014 * configure: Rebuilt.
3016 2000-10-25 Tom Tromey <tromey@cygnus.com>
3018 * Makefile.in: Rebuilt.
3019 * Makefile.am (install-exec-hook): New target.
3021 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3023 * java/util/EventObject.java: Merged from classpath.
3025 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3028 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3030 * java/util/AbstractSet.java (equals): Re-installed original code.
3032 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3034 * Makefile.am: Added rules for libgcjx library.
3035 * Makefile.in: Rebuilt.
3036 * configure.in: Added check for X.
3037 * configure: Rebuilt.
3038 * gnu/awt/LightweightRedirector.java: New file.
3039 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3040 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3041 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3042 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3043 * gnu/awt/j2d/MappedRaster.java: New file.
3044 * gnu/awt/xlib/XCanvasPeer.java: New file.
3045 * gnu/awt/xlib/XEventLoop.java: New file.
3046 * gnu/awt/xlib/XEventQueue.java: New file.
3047 * gnu/awt/xlib/XFontMetrics.java: New file.
3048 * gnu/awt/xlib/XFramePeer.java: New file.
3049 * gnu/awt/xlib/XGraphics.java: New file.
3050 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3051 * gnu/awt/xlib/XPanelPeer.java: New file.
3052 * gnu/awt/xlib/XToolkit.java: New file.
3053 * gnu/gcj/xlib/Clip.java: New file.
3054 * gnu/gcj/xlib/Colormap.java: New file.
3055 * gnu/gcj/xlib/Display.java: New file.
3056 * gnu/gcj/xlib/Drawable.java: New file.
3057 * gnu/gcj/xlib/Font.java: New file.
3058 * gnu/gcj/xlib/GC.java: New file.
3059 * gnu/gcj/xlib/Pixmap.java: New file.
3060 * gnu/gcj/xlib/Screen.java: New file.
3061 * gnu/gcj/xlib/Visual.java: New file.
3062 * gnu/gcj/xlib/WMSizeHints.java: New file.
3063 * gnu/gcj/xlib/Window.java: New file.
3064 * gnu/gcj/xlib/WindowAttributes.java: New file.
3065 * gnu/gcj/xlib/XAnyEvent.java: New file.
3066 * gnu/gcj/xlib/XButtonEvent.java: New file.
3067 * gnu/gcj/xlib/XColor.java: New file.
3068 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3069 * gnu/gcj/xlib/XConnectException.java: New file.
3070 * gnu/gcj/xlib/XEvent.java: New file.
3071 * gnu/gcj/xlib/XException.java: New file.
3072 * gnu/gcj/xlib/XExposeEvent.java: New file.
3073 * gnu/gcj/xlib/XID.java: New file.
3074 * gnu/gcj/xlib/XImage.java: New file.
3075 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3076 * gnu/gcj/xlib/natClip.cc: New file.
3077 * gnu/gcj/xlib/natColormap.cc: New file.
3078 * gnu/gcj/xlib/natDisplay.cc: New file.
3079 * gnu/gcj/xlib/natDrawable.cc: New file.
3080 * gnu/gcj/xlib/natFont.cc: New file.
3081 * gnu/gcj/xlib/natGC.cc: New file.
3082 * gnu/gcj/xlib/natPixmap.cc: New file.
3083 * gnu/gcj/xlib/natScreen.cc: New file.
3084 * gnu/gcj/xlib/natVisual.cc: New file.
3085 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3086 * gnu/gcj/xlib/natWindow.cc: New file.
3087 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3088 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3089 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3090 * gnu/gcj/xlib/natXColor.cc: New file.
3091 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3092 * gnu/gcj/xlib/natXException.cc: New file.
3093 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3094 * gnu/gcj/xlib/natXImage.cc: New file.
3095 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3096 * java/awt/EventDispatchThread.java: Start thead on creation.
3098 2000-10-20 Tom Tromey <tromey@cygnus.com>
3100 From Arno J. Klaassen:
3101 * interpret.cc: Include <stdlib.h> for alloca.
3102 * defineclass.cc: Include <stdlib.h> for alloca.
3104 * Makefile.in: Rebuilt.
3105 * Makefile.am: Include deps.mk.
3106 (GCJCOMPILE): Added -MD, -MT, and -MF.
3107 ($(javao_files)): Don't depend on libgcj.zip.
3108 (all-recursive): New target.
3109 (%.lo:%.cc): Do dependency tracking.
3110 ($(nat_headers)): Don't depend on libgcj.zip.
3111 * configure: Rebuilt.
3112 * configure.in: Make .d files and deps.mk.
3114 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3116 * exception.cc: Don't #include "exception".
3117 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3119 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3120 * Makefile.in: Updated.
3122 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3124 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3125 * java/awt/peer/ComponentPeer.java (disable): Removed.
3128 (minimumSize): Removed.
3129 (preferredSize): Removed.
3132 * java/awt/peer/ListPeer.java (addItem): Removed.
3134 (minimumSize): Removed.
3135 (preferredSize): Removed.
3136 (setMultipleSelections): Removed.
3137 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3138 (remove): Renamed from removeMenu.
3139 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3141 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3142 (remove): Renamed from removeItem.
3143 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3144 (getMinimumSize): Removed.
3145 (getPreferredSize): Removed.
3146 (minimumSize): Removed.
3147 (preferredSize): Removed.
3148 (replaceText): Removed.
3149 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3150 (preferredSize): Removed.
3151 (getMinimumSize): Removed.
3152 (getPreferredSize): Removed.
3153 (setEchoCharacter): Removed.
3155 2000-10-10 Warren Levy <warrenl@cygnus.com>
3157 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3158 * java/sql/Date.java (serialVersionUID): New field.
3159 * java/sql/Time.java (serialVersionUID): New field.
3160 * java/sql/Timestamp.java (serialVersionUID): New field.
3161 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3162 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3163 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3164 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3165 (readObject): New serialization method.
3166 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3167 (serialVersionOnStream): New field.
3168 (readObject): New serialization method.
3169 (getMonetaryDecimalSeparator): New method.
3170 (setMonetaryDecimalSeparator): New method.
3171 * java/text/NumberFormat.java (maxFractionDigits): New field.
3172 (maxIntegerDigits): New field.
3173 (minFractionDigits): New field.
3174 (minIntegerDigits): New field.
3175 (serialVersionOnStream): New field.
3176 (serialVersionUID): New field.
3177 (readObject): New serialization method.
3178 (writeObject): New serialization method.
3179 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3180 (serialVersionOnStream): New field.
3181 (serialVersionUID): New field.
3182 (readObject): New serialization method.
3184 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3186 * configure.in (GCJ): Avoid bogus error message when looking for
3187 (and not finding) gcj in the build tree.
3188 * configure: Rebuilt.
3190 2000-10-09 Tom Tromey <tromey@cygnus.com>
3192 * configure: Rebuilt.
3193 * configure.in: Include sys/types.h when checking for socklen_t.
3194 From Arno J. Klaassen.
3196 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3198 * include/jvm.h: Enable __builtin_expect().
3200 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3201 the main program. Fix for PR libgcj/341.
3203 2000-10-07 Tom Tromey <tromey@cygnus.com>
3205 * java/util/Properties.java: Merged with Classpath version.
3207 2000-10-05 Tom Tromey <tromey@cygnus.com>
3209 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3210 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3211 * java/lang/Class.h (Object): Added `class$' field.
3212 * java/lang/Object.h (Object): Added `class$' field.
3213 * defineclass.cc (ClassClass): Use `class$' form.
3214 (ClassObject): Likewise.
3215 * resolve.cc (ClassObject): Use `class$' form.
3216 (ObjectClass): Likewise.
3217 * interpret.cc (ClassError): Removed.
3218 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3220 (IntegerClass): Likewise.
3221 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3223 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3224 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3225 SerializableClass): Likewise.
3226 Include Serializable.h, Cloneable.h.
3227 * java/lang/natSystem.cc (SystemClass): Removed.
3228 (init_properties): Use `class$' form.
3229 * java/lang/natObject.cc (CloneableClass): Removed.
3230 (clone): Use `class$' form.
3231 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3232 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3233 ConstructorClass): Likewise.
3234 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3235 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3236 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3237 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3239 (ClassClass): Likewise.
3240 * include/jvm.h (StringClass): Use `class$' form.
3241 * prims.cc (ObjectClass): Removed.
3242 (_Jv_RunMain): Use `class$' form.
3243 (_Jv_AllocObject): Likewise.
3244 * jni.cc (ClassClass): Use `class$' form.
3245 (ThrowableClass): Likewise.
3246 (ObjectClass): Likewise.
3247 (MethodClass): Likewise.
3248 (ThreadGroupClass): Likewise.
3249 (NativeThreadClass): Likewise.
3250 * boehm.cc (ObjectClass): Removed.
3251 (ClassClass): Removed.
3252 (_Jv_MarkObj): Use `class$' form.
3253 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3256 2000-10-05 Warren Levy <warrenl@cygnus.com>
3258 * Makefile.am: Removed java/io/Replaceable.java and
3259 java/io/Resolvable.java.
3260 * Makefile.in: Rebuilt.
3261 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3263 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3265 (processResolution): Handle readResolve method via reflection with
3266 removal of Resolvable interface.
3267 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3268 method via reflection with removal of Replaceable interface.
3269 * java/io/Replaceable.java: Removed.
3270 * java/io/Resolvable.java: Removed.
3271 * java/security/Key.java (serialVersionUID): New field.
3272 * java/security/Provider.java (serialVersionUID): New field.
3273 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3275 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3277 * java/sql/DataTruncation.java (serialVersionUID): New field.
3278 * java/sql/SQLException.java (serialVersionUID): New field.
3279 * java/sql/SQLWarning.java (serialVersionUID): New field.
3280 * java/util/Date.java (serialVersionUID): New field.
3281 (millis): Made transient.
3282 (readObject): New method.
3283 (writeObject): New method.
3285 2000-10-05 Tom Tromey <tromey@cygnus.com>
3287 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3289 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3291 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3292 (JvRunMain): Set _Jv_argv and _Jv_argc.
3293 * java/awt/Component.java: Minor fixes.
3294 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3295 * java/awt/Toolkit.java (systemEventQueue): Removed.
3296 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3297 * java/awt/Window.java (getToolkit): Don't call super.
3298 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3299 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3300 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3301 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3302 * gnu/awt/gtk/GtkFramePeer.java: New file.
3303 * gnu/awt/gtk/GtkMainThread.java: New file.
3304 * gnu/awt/gtk/GtkToolkit.java: New file.
3305 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3306 * gnu/awt/gtk/gtkcommon.cc: New file.
3307 * gnu/awt/gtk/gtkcommon.h: New file.
3308 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3309 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3310 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3311 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3312 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3313 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3315 2000-09-30 Tom Tromey <tromey@cygnus.com>
3317 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3318 interrupted before modifying the cv's wait set.
3321 2000-09-30 Hans Boehm <boehm@acm.org>
3322 Bryce McKinlay <bryce@albatross.co.nz>
3324 Implement bitmap descriptor based marking for Boehm GC.
3326 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3327 * configure: Rebuilt.
3328 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3329 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3330 method get_finalizer().
3331 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3332 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3333 (_Jv_AllocObj): Add new jclass parameter.
3334 (_Jv_AllocArray): Ditto.
3335 (_Jv_BuildGCDescr): New prototype.
3336 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3337 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3338 get_finalizer() instead of direct finalizer vtable offset.
3339 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3340 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3341 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3342 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3343 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3344 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3345 (_Jv_DetermineVTableIndex): Ditto.
3346 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3347 calculations to account for new gc_descr field.
3348 * boehm.cc: #include gc_gcj.h.
3349 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3350 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3351 New commentary from HB. Mark the classes vtable.
3352 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3353 (GC_DEFAULT_DESCR): New #define.
3354 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3355 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3356 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3357 scan conservativly if size is less than min_heap_addr. Set vtable
3358 pointer of new object before returning.
3359 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3360 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3361 allocation for obj_kind_x.
3362 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3363 (_Jv_AllocObj): Set vtable on returned object.
3364 (_Jv_AllocArray): Ditto.
3365 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3366 (_Jv_NewPrimArray): Ditto.
3367 (_Jv_AllocObj): Declare as a friend.
3368 (_Jv_AllocArray): Ditto.
3369 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3370 from &ObjectClass into new array class. Remove offset-by-one
3371 adjustments from `method' size calculations to account for gc_descr
3374 2000-09-26 Tom Tromey <tromey@cygnus.com>
3376 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3377 `remove', not `add'.
3379 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3381 * java/lang/natSystem.cc (file_encoding): Added return statement.
3383 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3385 * Makefile.am: Re-work shell commands that exceeded command-line
3387 * Makefile.in: Rebuilt.
3389 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3391 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3392 * java/lang/natDouble.cc: Likewise.
3393 * java/lang/reflect/natMethod.cc: Likewise.
3394 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3396 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3398 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3400 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3401 * acinclude.m4: Arrange for automake to not bring in a new
3402 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3403 * Makefile.am: Leave it up to automake to subst GCJ.
3404 * aclocal.m4, configure, Makefile.in: Rebuilt.
3406 2000-09-13 Tom Tromey <tromey@cygnus.com>
3408 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3409 (get): Ensure Boolean class is initialized.
3410 * java/lang/reflect/natField.cc (BooleanClass): New define.
3411 (get): Ensure Boolean class is initialized.
3413 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3415 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3416 Initialize with anonymous class.
3417 (compareToIgnoreCase): New method.
3419 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3420 (uncaughtException): Set had_uncaught_exception.
3421 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3422 exit with error status if set.
3423 (_Jv_RunMain): Ditto.
3425 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3427 * configure: Rebuilt with new ../libtool.m4.
3429 2000-09-11 Tom Tromey <tromey@cygnus.com>
3431 * java/lang/reflect/Field.java (toString): Don't rely on
3434 2000-09-08 Tom Tromey <tromey@cygnus.com>
3436 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3437 default decoder use iconv.
3438 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3439 Let default encoder use iconv.
3440 * configure: Rebuilt.
3441 * configure.in: Check for nl_langinfo and <langinfo.h>.
3442 * java/lang/natSystem.cc (file_encoding): New function.
3443 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3445 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3447 * acinclude.m4: Simplify the tests for CC and CXX.
3448 * aclocal.m4, configure: Rebuilt.
3450 * acinclude.m4: Include libtool macros from the source tree.
3451 * aclocal.m4, configure: Rebuilt.
3453 2000-09-08 Warren Levy <warrenl@cygnus.com>
3455 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3456 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3457 * java/io/File.java (writeObject): Added.
3458 (readObject): Added.
3459 (serialVersionUID): Added.
3460 * java/io/ObjectOutputStream.java (writeObject): Initialized
3461 fieldsAlreadyWritten before recursion rather than after.
3462 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3463 * java/io/OptionalDataException.java (serialVersionUID): Added.
3464 (OptionalDataException): Made package private.
3465 * java/io/SyncFailedException.java (SyncFailedException): Removed
3466 default constructor to match spec.
3467 * java/lang/Boolean.java (serialVersionUID): Added.
3468 * java/lang/Byte.java (serialVersionUID): Added.
3469 * java/lang/Character.java (serialVersionUID): Added.
3470 * java/lang/Double.java (serialVersionUID): Added.
3471 * java/lang/Float.java (serialVersionUID): Added.
3472 * java/lang/Integer.java (serialVersionUID): Added.
3473 * java/lang/Long.java (serialVersionUID): Added.
3474 * java/lang/Number.java (serialVersionUID): Added.
3475 * java/lang/Short.java (serialVersionUID): Added.
3476 * java/lang/String.java (serialVersionUID): Added.
3477 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3479 * java/lang/reflect/InvocationTargetException.java
3480 (serialVersionUID): Added.
3481 * java/net/URL.java (handler): Made transient.
3482 (hashCode): Added field for serialization, per spec. and use
3483 cached value if available.
3484 (serialVersionUID): Added.
3485 (URL): Initialize hashCode.
3486 (set): Adjust hashCode.
3487 (readObject): New Method to initialize the protocol handler when
3489 (writeObject): New method.
3490 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3491 * java/text/Collator.java: Removed 'implements Serializable'.
3492 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3493 * java/util/Properties.java (serialVersionUID): Added.
3494 * java/util/Random.java (serialVersionUID): Added.
3495 (seed): Made private.
3496 (nextNextGaussian): Made private.
3497 (haveNextNextGaussian): Made private.
3498 * java/util/Stack.java (serialVersionUID): Added.
3499 * java/util/TimeZone.java (serialVersionUID): Added.
3500 * java/util/Vector.java (serialVersionUID): Added.
3502 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3504 * Makefile.am (Thread.h): Don't be friends with native threads
3506 * Makefile.in: Rebuilt.
3507 * java/lang/Thread.java (interrupt_flag): Make package-private.
3509 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3511 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3512 to avoid long long division.
3514 2000-09-06 Tom Tromey <tromey@cygnus.com>
3516 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3518 * java/lang/reflect/Method.java (toString): Use `getName' for
3521 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3522 `args' if method takes no parameters.
3524 Fix for PR java.lang/339:
3525 * java/lang/natPosixProcess.cc (fail): New function.
3526 (cleanup): New function.
3527 (startProcess): Use them. Create pipe so child can communicate
3528 exec failure back to parent.
3530 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3532 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3534 (send): Undo last patch. Remove the label only.
3536 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3538 * java/net/natInetAdress.cc: Ditto.
3540 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3542 2000-09-05 Tom Tromey <tromey@cygnus.com>
3544 * doc/cni.sgml: Updated from master copy.
3546 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3548 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3550 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3552 * java/lang/fdlibm.h: #undef __P if previously defined.
3553 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3554 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3558 2000-09-04 Tom Tromey <tromey@cygnus.com>
3560 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3563 2000-09-04 Anthony Green <green@redhat.com>
3565 Fix for PR java.io/203:
3566 * java/io/File.java (createTempFile): Obey directory argument.
3567 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3568 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3569 variable to set java.io.tmpdir on non-WIN32 systems.
3571 2000-09-04 Anthony Green <green@redhat.com>
3573 * java/io/File.java (deleteOnExit): New method.
3574 * gnu/gcj/runtime/FileDeleter.java: New class.
3575 * java/lang/natRuntime.cc (exit): Call
3576 FileDeleter.deleteOnExitNow()
3577 * Makefile.am: Add FileDeleter.java.
3578 * Makefile.in: Rebuilt.
3580 2000-09-02 Tom Tromey <tromey@cygnus.com>
3582 * Makefile.in: Rebuilt.
3583 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3584 environment variable.
3586 2000-09-01 Andrew Haley <aph@redhat.com>
3588 * java/io/StreamTokenizer.java: Don't throw a
3589 NumberFormatException if a field is numeric as far as the
3590 StreamTokenizer is concerned but not as far as Double.valueOf() is
3591 concerned: return a zero instead.
3593 2000-08-30 Tom Tromey <tromey@cygnus.com>
3595 * Makefile.in: Rebuilt.
3596 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3598 2000-08-28 Tom Tromey <tromey@cygnus.com>
3600 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3601 gnu/gcj/awt/ComponentDataBlitOp.java,
3602 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3603 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3604 java/awt/color/ICC_ColorSpace.java,
3605 java/awt/color/ICC_Profile.java,
3606 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3607 java/awt/image/ComponentColorModel.java,
3608 java/awt/image/ComponentSampleModel.java,
3609 java/awt/image/DataBuffer.java,
3610 java/awt/image/DataBufferByte.java,
3611 java/awt/image/DataBufferInt.java,
3612 java/awt/image/DataBufferUShort.java,
3613 java/awt/image/DirectColorModel.java,
3614 java/awt/image/IndexColorModel.java,
3615 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3616 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3617 java/awt/image/SinglePixelPackedSampleModel.java,
3618 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3619 Removed Latin-1 copyright symbols.
3620 * java/util/zip/ZipFile.java: Indentation fixes.
3622 2000-08-27 Mark Wielaard <mark@klomp.org>
3624 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3625 constructor, close can delete the file, finalize calls close.
3626 * java/util/jar/JarFile.java: Constructor that takes mode now
3629 2000-08-27 Anthony Green <green@redhat.com>
3631 * java/util/ArrayList.java, java/util/Timer.java,
3632 java/util/LinkedList.java, java/util/TimerTask.java,
3633 java/util/HashMap.java, java/util/AbstractMap.java,
3634 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3635 java/util/SortedSet.java: Imported from GNU Classpath.
3636 * Makefile.in: Rebuilt.
3637 * Makefile.am: Added new files.
3639 2000-08-26 Anthony Green <green@redhat.com>
3641 * Makefile.in: Rebuilt.
3642 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3645 * prims.cc: Include ClassLoader.h.
3646 (_Jv_RunMain): When executing jar files, classpath must be the jar
3647 file only. Lose our reference to the system ClassLoader in order
3648 to get a new one with the correct classpath.
3649 * java/lang/natSystem.cc (init_properties): When executing a jar
3650 file, only use the jar file for java.class.path.
3652 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3653 for bytecode archives.
3655 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3656 exists, but not Main-Class.
3658 2000-08-23 Mark Wielaard <mark@klomp.org>
3660 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3661 return -1 when fill() has no more data for the Inflater.
3663 2000-08-23 Mark Wielaard <mark@klomp.org>
3665 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3666 write(String) already does.
3668 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3670 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3671 to `alive_flag', call `init'.
3672 (init): New native method.
3673 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3676 2000-08-21 Mark Wielaard <mark@klomp.org>
3678 * Makefile.in: Rebuilt.
3679 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3681 (java/lang/reflect/Field.h): Likewise.
3682 (java/lang/reflect/Method.h): Likewise.
3683 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3686 2000-08-21 Tom Tromey <tromey@cygnus.com>
3688 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3691 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3693 * java/lang/natSystem.cc (init_properties): Change sourceware
3694 reference to sources.redhat.com.
3696 * include/java-props.h: Add _Jv_Jar_Class_Path.
3697 * prims.cc: Ditto. Set it from `gij -jar file' option.
3699 * java/lang/natSystem.cc (init_properties): Set java.class.path
3701 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3703 * java/util/PropertyPermission.java: Import from GNU Classpath.
3704 * Makefile.in: Rebuilt.
3705 * Makefile.am: Add java/util/PropertyPermission.java.
3706 * java/lang/System.java: Add setProperty method.
3708 * gij.cc (main): Add -jar option to execute jar files.
3709 (help): Describe -jar option.
3710 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3711 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3712 * gnu/gcj/runtime/FirstThread.java (main): New method.
3714 * java/util/jar/Attributes.java: Correct comment spelling.
3716 2000-08-20 Mark Wielaard <mark@klomp.org>
3718 * java/util/zip/Adler32.java: Make private variables really private
3719 * java/util/zip/CRC32.java: Make private variables really private
3720 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3722 * java/util/zip/InflaterInputStream.java: skip() could skip to
3724 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3725 * java/util/zip/ZipFile.java: size() new 1.2 method
3726 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3727 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3730 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3732 * java/util/jar/JarFile.java: Don't call
3733 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3736 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3738 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3739 Read the entire contents of the class file, not just what is
3742 * java/net/JarURLConnection.java: getEntry doesn't take any
3743 arguments. Return null if element is null.
3745 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3746 size from the archive, not the inflated size.
3748 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3749 java.util.zip.ZipFile.getEntry.
3751 * gij.cc (help): Change sourceware reference to
3754 2000-08-19 Tom Tromey <tromey@cygnus.com>
3756 * java/util/zip/ZipInputStream.java (createZipEntry):
3759 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3761 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3762 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3763 java/util/jar/JarInputStream.java,
3764 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3765 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3766 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3767 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3768 java/security/cert/Certificate.java,
3769 java/security/cert/CertificateEncodingException.java,
3770 java/security/cert/CertificateException.java,
3771 java/security/cert/CertificateExpiredException.java,
3772 java/security/cert/CertificateFactory.java,
3773 java/security/cert/CertificateFactorySpi.java,
3774 java/security/cert/CertificateNotYetValidException.java,
3775 java/security/cert/CertificateParsingException.java,
3776 java/security/cert/X509CRL.java,
3777 java/security/cert/X509CRLEntry.java,
3778 java/security/cert/X509Certificate.java,
3779 java/security/cert/X509Extension.java: Imported from Classpath.
3780 * java/util/Hashtable.java: Imported from Classpath.
3782 * java/util/zip/ZipInputStream.java: Create stub for
3785 * gcj/javaprims.h: Updated class list.
3787 * Makefile.in, gcj/Makefile.in: Rebuilt.
3788 * Makefile.am (ordinary_java_source_files): Add these new classes.
3790 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3792 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3793 * gnu/gcj/awt/GLightweightPeer.java: New file.
3794 * java/awt/BorderLayout.java: Implemented all methods.
3795 * java/awt/Button.java (actionListener, actionCommand): Renamed
3796 and modifier change.
3797 (addNotify): Call super.
3798 (dispatchEventImpl): New method.
3799 (getListeners): New method.
3800 (label): Made package-private, not private.
3801 * java/awt/Canvas.java: Implemented class body.
3802 * java/awt/Color.java (brighter): New method.
3803 (darker): New method.
3804 (hashCode): New method.
3805 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3806 (getGraphicsConfiguration): Delegate to
3807 getGraphicsConfigurationImpl().
3808 (getGraphicsConfigurationImpl): New method.
3809 (getToolkit): Only return value from peer if not null.
3810 (isDisplayable): Check with parent.
3811 (isShowing): No parent implies not showing.
3812 (getForeground): Check parent property if local is null.
3813 (getBackground): Likewise.
3814 (getFont): Likewise.
3815 (setForeground): Inform peer.
3816 (setBackground): Likewise
3817 (setLocale): Invalidate component.
3818 (getColorModel): Implemented.
3819 (setLocation): Invalidate, or ignore if no change.
3820 (setSize): Invalidate, or ignore if no change.
3821 (setBounds): Invalidate, or ignore if no change.
3822 (isOpaque): By default, heavyweight implies opaque.
3823 (isLightweight): Implemented.
3824 (getMaximumSize): Implemented.
3825 (doLayout): Implemented, NOP.
3826 (validate): Implemented, NOP.
3827 (invalidate): Only propagate to parent if parent was valid.
3828 (getGraphics): Implemented.
3829 (getFontMetrics): Implemented.
3830 (update): Implemented.
3831 (paintAll): Implemented.
3832 (repaint): Implemented all repaint methods.
3833 (print): Implemented.
3834 (printAll): Implemented.
3835 (createImage): Implemented.
3836 (dispatchEvent): Give the peer a chance to handle the event.
3837 (dispatchEventImpl): Dispatch paint events.
3838 (enableEvents): Lightweights enable events on parent component.
3839 (coalesceEvents): Coalesce paint events, and select event type
3841 (coalescePaintEvents): New method.
3842 (processEvent): Fix unfortunate ordering of statements, and call
3843 correct method for MOUSE_CLICKED.
3844 (processPaintEvent): New method.
3845 (addNotify): Allow container to notify children before event
3846 mask is set in peer.
3847 (addNotifyContainerChildren): New method.
3848 (removeNotify): Visibility should not change on removeNotify.
3849 (paramString): Implemented.
3850 (list): Implemented two of the list methods.
3851 * Container (myInsets): Removed, insets are managed by peer.
3852 (getInsets): Query peer.
3853 (addImpl): Fix reparenting, enable events for lightweights,
3854 initialize component array.
3855 (validate): Call doLayout in validateTree() instead.
3856 (validateTree): Do nothing if already valid. Call beginValidate(),
3857 endValidate() on peer. Call validateTree() instead of validate()
3858 for children that are containers. Mark valid after validation of
3860 (setFont): Partial implementation.
3861 (paint): Implemented.
3862 (visitChildren): New method.
3863 (visitChild): New method.
3864 (update): Implemented.
3865 (print): Implemented.
3866 (paintComponents): Implemented.
3867 (printComponents): Consider translation and clipping.
3868 (getComponentAt): Ignore invisible children. Return this if no
3870 (addNotify): Call super.
3871 (addNotifyContainerChildren): New method.
3872 (paramString): Implemented.
3873 (list): Implemented.
3874 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3876 (invokeLater): Likewise.
3877 (isDispatchThread): Likewise.
3878 * java/awt/FontMetrics (getLeading): Formula change.
3879 (getDescent): Consider leading also.
3880 (getMaxAscent): Default to getAscent().
3881 (getMaxDescent): Default to getDescent.
3882 (getMaxAdvance): Return value signifying unknown.
3883 (charWidth): Both methods implemented.
3884 (charsWidth): Implemented.
3885 (bytesWidth): Implemented.
3886 (getWidths): Implemented.
3887 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3889 (Frame): Rearragend constuctor chaining to disallow null being
3890 passed as a graphics configuration.
3891 (getTitle): Return empty string if null.
3893 (getIconImage): New method.
3894 (setIconImage): New method.
3895 (finalize): New method.
3896 (setMenuBar): Notify peer.
3897 (isResizable): New method.
3898 (setResizable): New method.
3899 (getState): New method.
3901 (remove): Implemented.
3902 (removeNotify): New method.
3903 (getFrames): New method.
3904 * java/awt/Graphics.java: Implemented body of class.
3905 * java/awt/Graphics2D.java: New file.
3906 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3907 * java/awt/Image.java: Implemented body of class.
3908 * java/awt/Panel.java (Panel): Call correct super constructor.
3909 (addNotify): Implemented.
3910 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3911 * java/awt/RenderingHints.java: New file.
3912 * java/awt/Toolkit.java (createComponent): Implemented.
3913 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3914 * java/awt/Window.java (Window): Two new constructors. Reordered
3915 constructor chaining.
3916 (getGraphicsConfigurationImpl): New method.
3917 (finalize): Call super.
3918 (addNotify): Call super.
3919 (pack): Do layout stuff.
3920 (show): Ensure that peer exists and that component is valid.
3921 (dispose): Dispose owned children.
3922 (getOwner): Simplify code, casting null pointers is valid.
3923 (getGraphicsConfiguration): Ask peer if local value is null.
3924 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3926 * java/awt/image/BufferedImage.java: New file.
3927 * java/awt/image/RasterOp.java: New file.
3928 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3929 More powerfull replacement for getColorModel().
3930 (getColorModel) Removed.
3931 (setEventMask) New method.
3932 * Makefile.am: Added new files.
3933 * Makefile.in: Rebuilt.
3935 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3937 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3938 (finit_leg_name): New global.
3939 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3940 `$finit$'. This is a backward compatibility hack.
3941 (java::lang::Class::_getMethods): Likewise.
3943 2000-08-15 Andrew Haley <aph@cygnus.com>
3945 * include/jvm.h (_Jv_HashCode): New hash code.
3947 2000-08-15 Tom Tromey <tromey@cygnus.com>
3949 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3951 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3953 * THANKS: More thanks.
3955 2000-08-10 Tom Tromey <tromey@cygnus.com>
3957 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3959 (connect): Likewise.
3961 (getOption): Likewise.
3962 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3963 case when errno not set.
3966 (receive): Likewise.
3967 (mcastGrp): Likewise.
3968 (setOption): Likewise.
3969 (getOption): Likewise.
3971 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3972 John Stracke <francis@ecal.com>
3974 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3975 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3977 (disconnect): Don't unset connected flag.
3978 (getHeaderField (String)): Call connect() if not connected.
3979 (getHeaderField (int)): Ditto.
3980 (getHeaderFieldKey): Ditto.
3981 (getHttpHeaders): Don't call connect().
3982 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3983 gotResponseVals): New fields.
3984 (getResponseCode): Call getResponseVals() conditionally.
3985 (getResponseMessage): Ditto.
3986 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3988 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3990 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3991 * Makefile.in: Rebuilt.
3992 * java/awt/Color.java (getTransparency): New method.
3993 * java/awt/Component.java: Various updates.
3994 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3995 after dealing with children.
3996 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3997 * java/awt/Window.java: Various new methods and updates.
3998 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4000 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4001 * java/awt/event/WindowEvent.java (paramString): Ditto.
4002 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4004 * java/awt/geom/Point2D.java (clone): Ditto.
4005 * java/awt/geom/RectangularShape.java (clone): Ditto.
4006 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4007 isAlphaPremultiplied): Make package-private, not private.
4009 2000-08-08 Tom Tromey <tromey@cygnus.com>
4011 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4012 surrogate characters.
4013 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4015 (write): Correct handling of surrogate characters.
4017 2000-08-07 Tom Tromey <tromey@cygnus.com>
4019 * java/lang/reflect/Method.java (hashCode): Use getName().
4020 (toString): Likewise.
4021 * java/lang/reflect/natMethod.cc (getType): Initialize
4024 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4026 * java/lang/reflect/Field.java (toString): Correct formatting.
4029 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4031 (receive): Streamlined.
4033 2000-08-05 Tom Tromey <tromey@cygnus.com>
4035 * java/io/PrintWriter.java: Merged comments from Classpath.
4036 (printlnUnsynchronized): Removed.
4037 (println()): Print the separator.
4038 (println): Call println(), not printlnUnsynchronized.
4039 (out): Now protected, to match spec.
4041 2000-08-04 Tom Tromey <tromey@cygnus.com>
4043 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4044 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4047 2000-08-03 Warren Levy <warrenl@cygnus.com>
4049 * java/io/ObjectInputStream.java (readFields): Turn off
4050 readDataFromBlock while reading via GetField.
4051 (GetField$1.get(String, Object)): Pass Class of default value to
4053 (getField): Allow for null default values.
4055 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4056 (PutField$1.put): Fixed calls of checkType in most of the put
4057 methods to pass the correct parameter.
4058 (PutField$1.put(String, Object)): Allow for null value arg.
4059 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4062 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4063 typo in spec'ed field name.
4064 (getSerialPersistentFields): Changed spelling of method to match
4065 the correct spelling of the spec'ed field name.
4067 2000-08-03 Tom Tromey <tromey@cygnus.com>
4069 * Makefile.in: Rebuilt.
4070 * Makefile.am (awt_java_source_files): Added new files.
4072 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4074 * Makefile.am: Add new AWT stubs.
4075 * java/awt/Canvas.java: New placeholder class.
4076 * java/awt/Checkbox.java: Ditto.
4077 * java/awt/CheckboxMenuItem.java: Ditto.
4078 * java/awt/Choice.java: Ditto.
4079 * java/awt/Dialog.java: Ditto.
4080 * java/awt/FileDialog.java: Ditto.
4081 * java/awt/List.java: Ditto.
4082 * java/awt/ScrollPane.java: Ditto.
4083 * java/awt/TextField.java: Ditto.
4084 * java/awt/datatransfer/Clipboard.java: Ditto.
4085 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4086 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4087 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4088 Some commented out. Partially implemented.
4089 * java/awt/natToolkit.cc: Removed file.
4091 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4093 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4094 Fixes "make -j" builds.
4095 * Makefile.in: Rebuild.
4097 2000-08-02 Tom Tromey <tromey@cygnus.com>
4099 * Makefile.in: Rebuilt.
4100 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4101 * java/net/natPlainSocketImpl.cc: Include posix.h.
4102 (accept): Use _Jv_select.
4103 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4104 (receive): Use _Jv_select.
4105 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4106 (available): Use _Jv_select.
4107 * java/lang/natSystem.cc: Include posix.h.
4108 (currentTimeMillis): Use _Jv_gettimeofday.
4109 * include/posix.h: New file.
4110 * posix.cc: New file.
4112 * scripts/encodings.pl: New file.
4113 * Makefile.in: Rebuilt.
4114 * Makefile.am (convert_source_files): Added IOConverter.java.
4115 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4117 (getDefaultDecodingClass): Canonicalize default encoding name.
4118 (getEncoder): Likewise.
4119 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4121 (getDefaultDecodingClass): Canonicalize default encoding name.
4122 (getDecoder): Likewise.
4123 * gnu/gcj/convert/IOConverter.java: New file.
4125 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4127 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4128 to match C declaration in ffi.h.
4129 * Makefile.am: Add java/awt/Button.java.
4130 * Makefile.in: Rebuilt.
4132 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4134 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4135 cast of the second argument to `ffi_raw_call' changed to match
4138 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4140 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4141 argument to `ffi_raw_call' changed to match prototype.
4143 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4145 * java/awt/Component.java (toString): Implemented.
4146 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4147 dispatchEvent() to dispatch the event.
4148 (removeImpl): Ditto.
4150 2000-07-30 Anthony Green <green@redhat.com>
4152 * java/awt/Component.java: Add treeLock object.
4153 (getTreeLock): Implement.
4154 (isShowing): Implement.
4156 2000-07-30 Tom Tromey <tromey@cygnus.com>
4158 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4160 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4162 * java/awt/Window.java (addNotify): Wrote.
4163 (addWindowListener): Wrote.
4165 (getWarningString): Wrote.
4166 (processEvent): Wrote.
4167 (processWindowEvent): Wrote.
4168 (removeWindowListener): Wrote.
4169 (show): Call validate(), setVisible().
4173 * java/awt/Toolkit.java (createWindow): Declare.
4175 * java/awt/Frame.java (addNotify): Use getToolkit to find
4178 * java/awt/Component.java (invalidate): Wrote.
4180 (getToolkit): Wrote.
4182 * java/awt/Container.java (addContainerListener): Removed
4184 (removeContainerListener): Likewise.
4186 (add(Component)): Use it.
4187 (add(String,Component)): Likewise.
4188 (add(Component,int)): Likewise.
4189 (add(Component,Object)): Likewise.
4190 (add(Component,Object,int)): Likewise.
4192 (getAlignmentX): Wrote.
4193 (getAlignmentY): Wrote.
4194 (getComponentAt): Wrote.
4195 (getMaximumSize): Wrote.
4196 (invalidate): Wrote.
4197 (list(PrintStream,int)): Wrote.
4198 (list(PrintWriter,int)): Wrote.
4199 (getMinimumSize): Wrote.
4200 (getPreferredSize): Wrote.
4201 (printComponents): Wrote.
4202 (processContainerEvent): Look at containerListener, not
4204 (remove): Added event processing and peer destruction.
4205 (removeAll): Use remove.
4206 (removeNotify): Wrote.
4208 (validateTree): Wrote.
4210 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4211 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4212 * java/awt/Container.java (addNotify): Don't create Container
4214 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4216 2000-07-30 Tom Tromey <tromey@cygnus.com>
4218 * java/awt/Container.java (remove(int)): Wrote.
4219 (remove(Component)): Wrote.
4220 (add(Component)): Wrote.
4221 (add(Component,int)): Wrote.
4223 (addNotify): Set our own peer.
4224 * java/awt/Scrollbar.java (listeners): Changed type.
4225 (Scrollbar): Don't initialize listeners.
4227 (setValue): Call setValues.
4228 (setMinimum): Likewise.
4229 (setMaxPriority): Likewise.
4230 (setVisibleAmount): Likewise.
4232 (setUnitIncrement): Forward to peer.
4233 (setLineIncrement): Call setUnitIncrement.
4234 (setPageIncrement): Call setBlockIncrement.
4235 (setBlockIncrement): Forward to peer.
4236 (addAdjustmentListener): Rewrote.
4237 (removeAdjustmentListener): Rewrote.
4238 (processAdjustmentEvent): Rewrote.
4239 (paramString): Wrote.
4240 * Makefile.in: Rebuilt.
4241 * Makefile.am (awt_java_source_files): Added Button.java.
4242 * java/awt/Button.java: New file.
4243 * java/awt/Toolkit.java (createLabel): Declare.
4244 (createButton): Likewise.
4245 (createScrollbar): Likewise.
4246 (createContainer): Likewise.
4247 * java/awt/Label.java (addNotify): Wrote.
4248 (setAlignment): Call setAlignment in the peer.
4249 (setText): Call setText in the peer.
4251 2000-07-28 Warren Levy <warrenl@cygnus.com>
4253 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4254 NotSerializableException with just the class name.
4256 2000-07-26 Andrew Haley <aph@cygnus.com>
4258 * interpret.cc (continue1): Insert missing break into switch.
4260 2000-07-28 Warren Levy <warrenl@cygnus.com>
4262 * java/io/ObjectStreamException.java: Made constructors protected.
4264 2000-07-27 Tom Tromey <tromey@cygnus.com>
4266 * java/io/OutputStreamWriter.java (close): Only flush if not
4269 2000-07-27 Warren Levy <warrenl@cygnus.com>
4271 * mauve-libgcj: Activated serialization tests.
4272 * gcj/field.h (getModifiers): Mask off unknown flags.
4273 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4274 spurious bits don't cause discrepancies.
4275 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4276 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4277 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4278 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4279 * java/lang/Throwable.java (serialVersionUID): New field.
4280 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4281 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4283 * java/lang/reflect/natMethod.cc: Ditto.
4284 * java/security/Key.java (serialVersionUID): Removed field for now.
4285 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4286 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4288 2000-07-22 Tom Tromey <tromey@cygnus.com>
4290 * java/awt/geom/RectangularShape.java (getPathIterator):
4293 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4295 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4296 stub libjava/java/awt/ColorModel.java which was located in the
4298 * libjava/java/awt/image/ComponentColorModel.java: New file.
4299 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4300 * libjava/java/awt/image/DataBuffer.java: New file.
4301 * libjava/java/awt/image/DataBufferByte.java: New file.
4302 * libjava/java/awt/image/DataBufferInt.java: New file.
4303 * libjava/java/awt/image/DataBufferUShort.java: New file.
4304 * libjava/java/awt/image/DirectColorModel.java: New file.
4305 * libjava/java/awt/image/PackedColorModel.java: New file.
4306 * libjava/java/awt/image/Raster.java: New file.
4307 * libjava/java/awt/image/SampleModel.java: New file.
4308 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4310 * libjava/java/awt/image/IndexColorModel.java: New file.
4311 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4312 java.awt.ColorModel stub.
4314 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4315 * gnu/gcj/util/Buffers.java: New file, utility class.
4317 * libjava/Makefile.am: Updated to include new files.
4318 * libjava/Makefile.in: Rebuilt.
4320 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4322 * java/io/StreamTokenizer.java: Merged with classpath.
4324 2000-07-20 Tom Tromey <tromey@cygnus.com>
4326 * Makefile.in: Rebuilt.
4327 * Makefile.am (awt_java_source_files): Updated for new files.
4328 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4329 * java/awt/Label.java: New file.
4330 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4331 (createIntersection, createUnion, getBounds2D): New methods.
4332 * java/awt/Scrollbar.java: New file.
4333 * java/awt/Shape.java: Updated to 1.2.
4334 * java/awt/geom/AffineTransform.java: New file.
4335 * java/awt/geom/Ellipse2D.java: New file.
4336 * java/awt/geom/NoninvertibleTransformException.java: New file.
4337 * java/awt/geom/PathIterator.java: New file.
4338 * java/awt/geom/Rectangle2D.java: New file.
4339 * java/awt/geom/RectangularShape.java: New file.
4340 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4341 * java/awt/geom/IllegalPathStateException.java: New file.
4343 * scripts/showval.java: New file.
4345 * scripts/classes.pl (scan): Print inner classes properly.
4346 * gcj/javaprims.h: Updated class list.
4348 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4349 initialize String fields for interpreted classes. Fixes bug
4350 reported by Hans Boehm.
4352 * java/io/File.java (getParentFile): New method, from Classpath
4353 via Oskar Liljeblad.
4355 * java/util/Vector.java (remove(Object)): Implemented.
4357 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4359 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4360 zero return from backtrace().
4362 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4364 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4366 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4367 before calling notifyAll().
4369 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4371 Add missing files from last check-in:
4372 * java/awt/image/ImageConsumer.java: New file.
4373 * java/awt/image/ImageProducer.java: New file.
4374 * java/awt/image/ImageObserver.java: New file.
4376 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4378 Merged implementation of java.applet from classpath:
4379 * java/applet/Applet.java: New file.
4380 * java/applet/AppletContext.java: New file.
4381 * java/applet/AppletStub.java: New file.
4382 * java/applet/AudioClip.java: New file.
4384 * Makefile.am: Added new java.applet classes.
4385 * Makefile.in: Rebuilt.
4387 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4390 * java/util/ResourceBundle.java (getLocale): stub.
4391 * Makefile.am: Added new AWT classes.
4392 * Makefile.in: Rebuilt.
4393 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4394 constructors. Fix toString() and paramString().
4395 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4396 * java/awt/CheckboxGroup.java: New class.
4397 * java/awt/ColorModel.java: New class.
4398 * java/awt/Component.java: Added stubs for most methods. Implemented
4400 * java/awt/Container.java: ditto.
4401 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4402 * java/awt/Cursor.java: ditto.
4403 * java/awt/Event.java: Fix paramString().
4404 * java/awt/EventQueue.java: New class. Implemented.
4405 * java/awt/Font.java: Added additional stub methods. Implemented
4407 * java/awt/FontMetrics.java: New class. Stubbed.
4408 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4410 * java/awt/Insets.java: New class. Implemented.
4411 * java/awt/Menu.java: Add new methods. Partially implemented.
4412 * java/awt/MenuItem.java: Add new methods and fields. Partially
4414 * java/awt/MenuShortcut.java: New class. Implemented.
4415 * java/awt/Panel.java: New class. Placeholder.
4416 * java/awt/PopupMenu.java: New class. Stubbed.
4417 * java/awt/Rectangle.java: New class. Implemented.
4418 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4419 * java/awt/event/ActionEvent.java: Implement paramString().
4420 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4421 * java/awt/event/ComponentEvent.java: Implement paramString().
4422 * java/awt/event/ContainerEvent.java: Implement paramString().
4423 * java/awt/event/FocusEvent.java: Implement paramString().
4424 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4425 * java/awt/event/HierarchyBoundsListener.java: New class.
4426 * java/awt/event/HierarchyEvent.java: New class.
4427 * java/awt/event/HierarchyListener.java: New class.
4428 * java/awt/event/InputMethodEvent.java: Implement paramString().
4429 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4430 exception if !catchExceptions.
4431 * java/awt/event/ItemEvent.java: Implement paramString().
4432 * java/awt/event/KeyEvent.java: Implement paramString().
4433 * java/awt/event/MouseEvent.java: Implement paramString().
4434 * java/awt/event/PaintEvent.java: Implement paramString().
4435 * java/awt/event/TextEvent.java: Implement paramString().
4436 * java/awt/event/WindowEvent.java: Implement paramString().
4438 AWT Peer interfaces:
4439 * java/awt/peer/ButtonPeer.java: New file.
4440 * java/awt/peer/ListPeer.java: New file.
4441 * java/awt/peer/CanvasPeer.java: New file.
4442 * java/awt/peer/MenuBarPeer.java: New file.
4443 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4444 * java/awt/peer/MenuComponentPeer.java: New file.
4445 * java/awt/peer/CheckboxPeer.java: New file.
4446 * java/awt/peer/MenuItemPeer.java: New file.
4447 * java/awt/peer/ChoicePeer.java: New file.
4448 * java/awt/peer/MenuPeer.java: New file.
4449 * java/awt/peer/ComponentPeer.java: Implemented.
4450 * java/awt/peer/PanelPeer.java: New file.
4451 * java/awt/peer/ContainerPeer.java: Implemented.
4452 * java/awt/peer/PopupMenuPeer.java: New file.
4453 * java/awt/peer/DialogPeer.java: New file.
4454 * java/awt/peer/ScrollPanePeer.java: New file.
4455 * java/awt/peer/FileDialogPeer.java: New file.
4456 * java/awt/peer/ScrollbarPeer.java: New file.
4457 * java/awt/peer/FontPeer.java: New file.
4458 * java/awt/peer/TextAreaPeer.java: New file.
4459 * java/awt/peer/FramePeer.java: Implemented.
4460 * java/awt/peer/TextComponentPeer.java: New file.
4461 * java/awt/peer/LabelPeer.java: New file.
4462 * java/awt/peer/TextFieldPeer.java: New file.
4463 * java/awt/peer/LightweightPeer.java: New file.
4464 * java/awt/peer/WindowPeer.java: Implemented.
4466 2000-07-06 Tom Tromey <tromey@cygnus.com>
4468 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4469 Initialize static final String fields.
4471 2000-07-03 Tom Tromey <tromey@cygnus.com>
4473 * java/io/PrintWriter.java (print): Call write(String), not
4474 print(String). See PR libgcj/277.
4475 (print(String)): Use write, not out.write.
4477 2000-06-30 Tom Tromey <tromey@cygnus.com>
4479 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4481 2000-06-27 Andrew Haley <aph@cygnus.com>
4483 * java/io/File.java (createTempFile): Close the FileDescriptor
4484 used to create a temp file. Fixes some of PR 203.
4485 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4486 collection if we run out of file handles.
4488 2000-06-28 Warren Levy <warrenl@cygnus.com>
4490 * gnu/java/security/provider/Gnu.java: New file.
4491 * gnu/java/security/provider/SHA.java: New file.
4492 * gnu/java/security/provider/SHA1PRNG.java: New file.
4493 * Makefile.am: Added the above files.
4494 * Makefile.in: Rebuilt.
4496 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4498 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4500 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4501 (destroyed_flag): Removed.
4502 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4503 (activeCount): Added spec note.
4505 2000-06-27 Warren Levy <warrenl@cygnus.com>
4507 * java/security/Principal.java: New file.
4508 * Makefile.am: Added Principal.java.
4509 * Makefile.in: Rebuilt.
4511 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4513 * java/awt/event/MouseEvent.java: Fixed coordinate space
4516 2000-06-27 Tom Tromey <tromey@cygnus.com>
4518 * java/io/PushbackInputStream.java (read): If there are characters
4519 in the buffer, don't also call super.read().
4520 * java/io/PushbackReader.java (read): If there are characters in
4521 the buffer, don't also call super.read().
4523 * java/lang/Double.java (valueOf): Call parseDouble().
4525 2000-06-26 Warren Levy <warrenl@cygnus.com>
4527 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4528 (newVal): Renamed to newValue.
4529 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4530 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4531 (revokeNow): Renamed to invalidateRefs.
4532 * java/io/OptionalDataException.java: Updated FIXME.
4533 (eof): New placeholder field.
4535 * java/io/WriteAbortedException.java (message): Made transient.
4536 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4537 * java/lang/Throwable.java (stackTrace): Made transient.
4538 * java/net/InetAddress.java: Made Serializable.
4539 * java/security/KeyPair.java: Made Serializable.
4540 * java/security/Provider.java: Replaced with Classpath version that
4541 implements serialization and proper methods.
4542 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4543 (limits): Renamed to choiceLimits.
4545 2000-06-24 Tom Tromey <tromey@cygnus.com>
4547 * java/lang/natDouble.cc (parseDouble): Renamed from
4549 * java/lang/Double.java (parseDouble): Renamed from
4550 doubleValueOf. Now public.
4552 2000-06-23 Andrew Haley <aph@cygnus.com>
4554 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4555 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4557 2000-06-23 Tom Tromey <tromey@cygnus.com>
4559 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4560 * java/lang/natDouble.cc: Always include <alloca.h>.
4561 Fix for PR libgcj/267.
4563 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4565 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4566 comply with classpath VM spec.
4567 (add(Group)): Rename to addGroup().
4568 * java/lang/Thread.java (Thread): Use addThread().
4569 * java/lang/natThread.cc (finish_): Use removeThread().
4571 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4573 * java/lang/ThreadGroup.java: Merged with classpath.
4574 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4575 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4577 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4578 ThreadGroup.root if Thread.currentThread is null. Honour the
4579 ThreadGroup's max priority setting.
4581 2000-06-18 Tom Tromey <tromey@cygnus.com>
4583 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4584 returned class. For PR gcj/260.
4586 2000-06-16 Tom Tromey <tromey@cygnus.com>
4588 Fix for PR libgcj/261:
4589 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4591 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4592 argument. (This is a patch from long ago that somehow went
4595 2000-06-15 Tom Tromey <tromey@cygnus.com>
4597 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4601 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4603 Fix for PR java.lang/258:
4604 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4605 JV_STATE_DONE, to prevent accidental initialization.
4606 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4607 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4608 interface or an abstract class. Remove redundant initializeClass calls.
4609 Remove duplicate if_idt test.
4610 (_Jv_InterfaceAssignableFrom): New function.
4611 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4613 2000-05-31 Tom Tromey <tromey@cygnus.com>
4615 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4616 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4617 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4618 (NUM_OBJECT_METHODS): New define.
4619 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4620 `array_vtable' parameter. Added assertion.
4621 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4624 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4626 * gcj/cni.h: Include <string.h>.
4627 * defineclass.cc: Include <alloca.h>.
4628 * interpret.cc: Ditto.
4629 * gij.cc: Include <stdlib.h>.
4631 2000-05-30 Tom Tromey <tromey@cygnus.com>
4633 * include/name-finder.h: Include <sys/wait.h>.
4634 (_Jv_name_finder::pid): Now of type `pid_t'.
4635 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4636 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4639 2000-05-24 Warren Levy <warrenl@cygnus.com>
4641 * java/io/ObjectOutputStream.java (writeObject): Use component type
4642 when writing arrays.
4645 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4647 Fix for PR libgcj/226:
4648 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4649 since this is an installed header.
4651 Fix for PR libgcj/228:
4652 * java/util/zip/ZipFile (getInputStream): Create inflater with
4655 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4656 with DataFormatException.
4658 2000-05-20 Tom Tromey <tromey@cygnus.com>
4660 * Makefile.in: Rebuilt.
4661 * Makefile.am (hack1): Removed.
4662 (awto_files): Likewise.
4663 (libgcjawt_la_SOURCES): Likewise.
4664 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4665 (libgcjawt_la_DEPENDENCIES): Likewise.
4666 (libgcjawt_la_LIBADD): Likewise.
4667 (libgcjawt_la_LDFLAGS): Likewise.
4668 (libgcjawt_la_LINK): Likewise.
4669 ($(awt_java_source_files:.java=.class)): Likewise.
4670 (libgcj.zip): Don't depend on AWT files.
4671 (MOSTLYCLEANFILES): Don't include AWT files.
4672 ($(awto_files)): Removed.
4673 (nat_headers): Removed AWT files.
4674 (cond_awt_java_source_files): Removed.
4675 (ordinary_java_source_files): Added awt_java_source_files.
4676 * libgcj.spec.in (*lib): Removed -lgcjawt.
4677 * configure: Rebuilt.
4678 * configure.in: Removed --enable-java-awt option.
4680 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4682 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4683 (ZipEntry): Copy the `name' field.
4684 (clone): Implement JDK1.2 method.
4685 (setCompressedSize): ditto.
4688 2000-05-19 Tom Tromey <tromey@cygnus.com>
4690 * java/io/BufferedWriter.java: Merged with Classpath.
4691 * java/io/BufferedOutputStream.java: Merged with Classpath.
4693 2000-05-16 Andrew Haley <aph@cygnus.com>
4695 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4696 build_ia64_frame_state.
4697 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4700 2000-05-15 Warren Levy <warrenl@cygnus.com>
4702 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4703 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4704 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4705 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4706 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4707 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4708 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4709 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4710 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4711 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4712 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4713 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4714 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4715 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4716 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4717 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4718 * gnu/gcj/io/NullOutputStream.java: Removed.
4719 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4720 * gnu/gcj/lang/ArrayHelper.java: Removed.
4721 * gnu/gcj/lang/ClassHelper.java: Removed.
4722 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4724 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4725 * gnu/java/beans/EmptyBeanInfo.java: New file.
4726 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4727 * gnu/java/beans/IntrospectionIncubator.java: New file.
4728 * gnu/java/beans/editors/ColorEditor.java: New file.
4729 * gnu/java/beans/editors/FontEditor.java: New file.
4730 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4731 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4732 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4733 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4734 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4735 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4736 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4737 * gnu/java/beans/editors/StringEditor.java: New file.
4738 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4739 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4740 * gnu/java/io/NullOutputStream.java: New file.
4741 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4742 * gnu/java/lang/ArrayHelper.java: New file.
4743 * gnu/java/lang/ClassHelper.java: New file.
4744 * gnu/java/lang/reflect/TypeSignature.java: New file.
4746 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4747 namespace back to the original Classpath gnu/java namespace.
4748 * Makefile.in: Rebuilt.
4750 * java/beans/Beans.java: Namespace change.
4751 * java/beans/EventSetDescriptor.java: Namespace change.
4752 * java/beans/Introspector.java: Namespace change.
4753 * java/beans/PropertyEditorManager.java: Namespace change.
4754 * java/io/ObjectInputStream.java: Namespace change.
4755 * java/io/ObjectOutputStream.java: Namespace change.
4756 * java/io/ObjectStreamClass.java: Namespace change.
4757 * java/io/ObjectStreamField.java: Namespace change.
4759 2000-04-21 Warren Levy <warrenl@cygnus.com>
4761 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4762 now that compiler patch is available.
4763 Removed unneeded System.loadLibrary.
4764 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4765 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4767 2000-04-19 Andrew Haley <aph@cygnus.com>
4769 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4770 and target classes have been initialized.
4772 2000-04-19 Andrew Haley <aph@cygnus.com>
4774 * java/lang/String.java: implement Serializable, Comparable.
4775 (compareTo (Object)): New method.
4777 2000-04-19 Warren Levy <warrenl@cygnus.com>
4779 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4780 instead of getField to retrieve non-public field.
4781 (getSerialPersistantFields): Ditto.
4783 2000-04-18 Warren Levy <warrenl@cygnus.com>
4785 * mauve-libgcj: Turned off object serialization tests temporarily
4786 due to compiler error.
4788 2000-04-17 Warren Levy <warrenl@cygnus.com>
4790 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4791 to avoid build problem.
4793 * mauve-libgcj: Turned on object serialization tests.
4795 2000-04-17 Tom Tromey <tromey@cygnus.com>
4797 * libgcj.spec.in (*lib): Added -lgcjawt.
4799 2000-04-17 Andrew Haley <aph@cygnus.com>
4801 * Makefile.am: Add new files:
4802 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4804 * Makefile.in: Rebuilt.
4806 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4807 interface that has no implementations.
4808 Check for an attempt to assign an abstract class to an interface.
4810 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4811 if we fail to find MessageDigest.getInstance ("SHA").
4813 * gnu/gcj/io/SimpleSHSStream.java: New file.
4814 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4815 * gnu/gcj/io/shs.cc: New file.
4816 * gnu/gcj/io/shs.h: new file.
4818 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4821 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4822 punctuation from the classname of an array element.
4824 * gcj/javaprims.h: Add SimpleDigestStream.
4826 2000-04-17 Andrew Haley <aph@cygnus.com>
4828 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4829 to getPrivateField for superclasses.
4831 2000-04-14 Andrew Haley <aph@cygnus.com>
4833 * Makefile.am: Add new files:
4834 java/io/ObjectOutputStream$PutField.h,
4835 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4836 java/io/natObjectOutputStream.cc
4837 * Makefile.in: Rebuilt.
4838 * gcj/Makefile.in: Rebuilt.
4839 * include/Makefile.in: Rebuilt.
4840 * java/lang/Class.h (getPrivateField): New method.
4841 (getPrivateMethod): Ditto.
4842 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4843 and java::io::ObjectStreamClass our friends.
4844 * java/lang/natClass.cc (getPrivateField): New method.
4845 (getPrivateMethod): Ditto.
4846 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4847 * gcj/javaprims.h: Add serialization classes.
4848 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4849 (setByteField): Ditto.
4850 (setCharField): Ditto.
4851 (setDoubleField): Ditto.
4852 (setFloatField): Ditto.
4853 (setIntField): Ditto.
4854 (setLongField): Ditto.
4855 (setShortField): Ditto.
4856 (setObjectField): Ditto.
4857 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4859 (getByteField): Ditto.
4860 (getCharField): Ditto.
4861 (getDoubleField): Ditto.
4862 (getFloatField): Ditto.
4863 (getIntField): Ditto.
4864 (getLongField): Ditto.
4865 (getShortField): Ditto.
4866 (getObjectField): Ditto.
4867 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4869 (getSerialPersistantFields): Ditto.
4870 (getDefinedSUID): Ditto.
4871 * java/io/natObjectOutputStream.cc: New file.
4872 * java/io/natObjectInputStream.cc: New file.
4874 2000-04-13 Warren Levy <warrenl@cygnus.com>
4876 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4877 problems. Revert to previous version to reproduce and when fixed.
4879 2000-04-13 Warren Levy <warrenl@cygnus.com>
4881 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4882 * gnu/gcj/io/NullOutputStream.java: New file.
4883 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4884 * java/io/BlockDataException.java: New file.
4885 * java/io/Externalizable.java: New file.
4886 * java/io/InvalidClassException.java: New file.
4887 * java/io/InvalidObjectException.java: New file.
4888 * java/io/NotActiveException.java: New file.
4889 * java/io/NotSerializableException.java: New file.
4890 * java/io/ObjectInput.java: New file.
4891 * java/io/ObjectInputStream.java: New file.
4892 * java/io/ObjectInputValidation.java: New file.
4893 * java/io/ObjectOutput.java: New file.
4894 * java/io/ObjectOutputStream.java: New file.
4895 * java/io/ObjectStreamClass.java: New file.
4896 * java/io/ObjectStreamConstants.java: New file.
4897 * java/io/ObjectStreamField.java: New file.
4898 * java/io/Replaceable.java: New file.
4899 * java/io/Resolvable.java: New file.
4900 * java/io/SerializablePermission.java: New file.
4901 * java/io/WriteAbortedException.java: New file.
4902 * java/security/BasicPermission.java: New file.
4903 * java/security/DigestOutputStream.java: New file.
4904 * java/security/Guard.java: New file.
4905 * java/security/Permission.java: New file.
4906 * java/security/PermissionCollection.java: New file.
4907 * Makefile.am: Added above files.
4908 * Makefile.in: Rebuilt.
4910 * java/beans/Beans.java (instantiate): Activated serialization code.
4911 * java/lang/SecurityManager.java (checkPermission): New method.
4913 2000-04-12 Warren Levy <warrenl@cygnus.com>
4915 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4916 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4917 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4918 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4919 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4920 * gnu/gcj/beans/editors/FontEditor.java: New file.
4921 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4922 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4923 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4924 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4925 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4926 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4927 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4928 * gnu/gcj/beans/editors/StringEditor.java: New file.
4929 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4930 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4931 * gnu/gcj/lang/ArrayHelper.java: New file.
4932 * gnu/gcj/lang/ClassHelper.java: New file.
4933 * java/beans/BeanDescriptor.java: New file.
4934 * java/beans/BeanInfo.java: New file.
4935 * java/beans/Beans.java: New file.
4936 * java/beans/Customizer.java: New file.
4937 * java/beans/DesignMode.java: New file.
4938 * java/beans/EventSetDescriptor.java: New file.
4939 * java/beans/FeatureDescriptor.java: New file.
4940 * java/beans/IndexedPropertyDescriptor.java: New file.
4941 * java/beans/IntrospectionException.java: New file.
4942 * java/beans/Introspector.java: New file.
4943 * java/beans/MethodDescriptor.java: New file.
4944 * java/beans/ParameterDescriptor.java: New file.
4945 * java/beans/PropertyChangeEvent.java: New file.
4946 * java/beans/PropertyChangeListener.java: New file.
4947 * java/beans/PropertyChangeSupport.java: New file.
4948 * java/beans/PropertyDescriptor.java: New file.
4949 * java/beans/PropertyEditor.java: New file.
4950 * java/beans/PropertyEditorManager.java: New file.
4951 * java/beans/PropertyEditorSupport.java: New file.
4952 * java/beans/PropertyVetoException.java: New file.
4953 * java/beans/SimpleBeanInfo.java: New file.
4954 * java/beans/VetoableChangeListener.java: New file.
4955 * java/beans/VetoableChangeSupport.java: New file.
4956 * java/beans/Visibility.java: New file.
4957 * java/beans/beancontext/BeanContext.java: New file.
4958 * java/beans/beancontext/BeanContextChild.java: New file.
4959 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4960 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4961 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4962 * java/beans/beancontext/BeanContextEvent.java: New file.
4963 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4964 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4965 * java/beans/beancontext/BeanContextProxy.java: New file.
4966 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4968 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4969 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4971 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4972 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4974 * java/beans/beancontext/BeanContextServices.java: New file.
4975 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4976 * java/util/AbstractCollection.java: New file.
4977 * java/util/AbstractList.java: New file.
4978 * java/util/Arrays.java: New file.
4979 * Makefile.am: Added above files.
4980 * Makefile.in: Rebuilt.
4982 2000-04-11 Warren Levy <warrenl@cygnus.com>
4984 * java/awt/AWTError.java: New file.
4985 * java/awt/AWTEvent.java: New file.
4986 * java/awt/AWTException.java: New file.
4987 * java/awt/ActiveEvent.java: New file.
4988 * java/awt/Adjustable.java: New file.
4989 * java/awt/BorderLayout.java: New file.
4990 * java/awt/Color.java: New file.
4991 * java/awt/Component.java: New file.
4992 * java/awt/Container.java: New file.
4993 * java/awt/Dimension.java: New file.
4994 * java/awt/Event.java: New file.
4995 * java/awt/Font.java: New file.
4996 * java/awt/Frame.java: New file.
4997 * java/awt/Graphics.java: New file.
4998 * java/awt/IllegalComponentStateException.java: New file.
4999 * java/awt/Image.java: New file.
5000 * java/awt/ItemSelectable.java: New file.
5001 * java/awt/LayoutManager.java: New file.
5002 * java/awt/LayoutManager2.java: New file.
5003 * java/awt/Menu.java: New file.
5004 * java/awt/MenuBar.java: New file.
5005 * java/awt/MenuComponent.java: New file.
5006 * java/awt/MenuContainer.java: New file.
5007 * java/awt/MenuItem.java: New file.
5008 * java/awt/Paint.java: New file.
5009 * java/awt/PaintContext.java: New file.
5010 * java/awt/Point.java: New file.
5011 * java/awt/Rectangle.java: New file.
5012 * java/awt/Shape.java: New file.
5013 * java/awt/TextArea.java: New file.
5014 * java/awt/TextComponent.java: New file.
5015 * java/awt/Toolkit.java: New file.
5016 * java/awt/Transparency.java: New file.
5017 * java/awt/Window.java: New file.
5018 * java/awt/natToolkit.cc: New file.
5019 * java/awt/event/AWTEventListener.java: New file.
5020 * java/awt/event/ActionEvent.java: New file.
5021 * java/awt/event/ActionListener.java: New file.
5022 * java/awt/event/AdjustmentEvent.java: New file.
5023 * java/awt/event/AdjustmentListener.java: New file.
5024 * java/awt/event/ComponentAdapter.java: New file.
5025 * java/awt/event/ComponentEvent.java: New file.
5026 * java/awt/event/ComponentListener.java: New file.
5027 * java/awt/event/ContainerAdapter.java: New file.
5028 * java/awt/event/ContainerEvent.java: New file.
5029 * java/awt/event/ContainerListener.java: New file.
5030 * java/awt/event/FocusAdapter.java: New file.
5031 * java/awt/event/FocusEvent.java: New file.
5032 * java/awt/event/FocusListener.java: New file.
5033 * java/awt/event/InputEvent.java: New file.
5034 * java/awt/event/InputMethodEvent.java: New file.
5035 * java/awt/event/InputMethodListener.java: New file.
5036 * java/awt/event/InvocationEvent.java: New file.
5037 * java/awt/event/ItemEvent.java: New file.
5038 * java/awt/event/ItemListener.java: New file.
5039 * java/awt/event/KeyAdapter.java: New file.
5040 * java/awt/event/KeyEvent.java: New file.
5041 * java/awt/event/KeyListener.java: New file.
5042 * java/awt/event/MouseAdapter.java: New file.
5043 * java/awt/event/MouseEvent.java: New file.
5044 * java/awt/event/MouseListener.java: New file.
5045 * java/awt/event/MouseMotionAdapter.java: New file.
5046 * java/awt/event/MouseMotionListener.java: New file.
5047 * java/awt/event/PaintEvent.java: New file.
5048 * java/awt/event/TextEvent.java: New file.
5049 * java/awt/event/TextListener.java: New file.
5050 * java/awt/event/WindowAdapter.java: New file.
5051 * java/awt/event/WindowEvent.java: New file.
5052 * java/awt/event/WindowListener.java: New file.
5053 * java/awt/geom/Dimension2D.java: New file.
5054 * java/awt/geom/Point2D.java: New file.
5055 * java/awt/peer/ComponentPeer.java: New file.
5056 * java/awt/peer/ContainerPeer.java: New file.
5057 * java/awt/peer/FramePeer.java: New file.
5058 * java/awt/peer/WindowPeer.java: New file.
5059 * java/util/Collection.java: New file.
5060 * java/util/Comparator.java: New file.
5061 * java/util/Iterator.java: New file.
5062 * java/util/List.java: New file.
5063 * java/util/ListIterator.java: New file.
5064 * Makefile.am: Added above files.
5065 * Makefile.in: Rebuilt.
5067 2000-04-10 Warren Levy <warrenl@cygnus.com>
5069 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5070 * java/lang/FirstThread.java: Ditto.
5071 * java/lang/StringBuffer.java: Ditto.
5072 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5074 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5075 Special case handled in java.math.BigInteger.
5076 * java/math/BigInteger.java (divide): Handle the special case when
5077 dividing by 1 and the high bit of the dividend is set.
5078 (setShiftRight): Handle case when count == 0.
5080 2000-04-05 Andrew Haley <aph@cygnus.com>
5082 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5085 2000-04-05 Andrew Haley <aph@cygnus.com>
5087 * sysdep/ia64.c (rse_address_add): Delete.
5088 (IS_NaT_COLLECTION_ADDR): Delete.
5089 (ia64_backtrace_helper): check for null unwind_info.
5091 * sysdep/ia64-frame.h: add calc_caller_bsp.
5093 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5096 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5097 (_Jv_remI): Likewise.
5098 (_Jv_divJ): Likewise.
5099 (_Jv_remJ): Likewise.
5101 * interpret.cc (continue1): Use divide subroutines to guarantee
5102 correct Java standard behaviour.
5103 Floating-point division should not abort; make it so.
5105 2000-03-29 Tom Tromey <tromey@cygnus.com>
5107 * configure: Rebuilt.
5108 * configure.in: Test against `libgcj_sjlj', not
5109 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5110 to be set even when using sjlj.
5112 2000-03-24 Andrew Haley <aph@cygnus.com>
5114 * Makefile.am: Add file addr2name.awk.
5115 * Makefile.in: Rebuilt.
5116 * addr2name.awk: New file.
5117 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5119 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5122 2000-03-22 Andrew Haley <aph@cygnus.com>
5124 * configure.host: Add -funwind-tables for IA64.
5125 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5126 * Makefile.in: Rebuilt.
5127 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5128 * sysdep/ia64.c: New file.
5129 * sysdep/ia64-frame.h: New file.
5130 * configure.in: Add sysdep/ia64.c for ia64.
5131 * configure: Rebuilt.
5133 2000-03-17 Andrew Haley <aph@cygnus.com>
5135 * java/lang/natString.cc: Remove `register' keyword.
5136 interpret.cc: ditto.
5138 2000-03-16 Andrew Haley <aph@cygnus.com>
5140 * configure.host (ia64): Enable interpreter.
5142 2000-03-14 Hans Boehm <boehm@acm.org>
5144 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5146 2000-03-14 Andrew Haley <aph@cygnus.com>
5148 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5151 2000-03-10 Andrew Haley <aph@cygnus.com>
5153 * java/lang/ieeefp.h: Import latest version from fdlibm.
5155 2000-03-14 Andrew Haley <aph@cygnus.com>
5157 * prims.cc (_Jv_ThrowSignal): New function.
5158 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5160 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5161 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5162 * include/ppc-signal.h: New file.
5164 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5166 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5167 * java/lang/natThread.java (initialize_native): Cast `data' to
5169 * gnu/gcj/RawData.java: Clarify documentation.
5171 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5172 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5173 `jarFile', not `jarFileURL'.
5175 2000-05-15 Andrew Haley <aph@cygnus.com>
5177 * include/ppc-signal.h: New file.
5179 2000-05-11 Tom Tromey <tromey@cygnus.com>
5181 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5182 file headers, don't include `size' in the skip call.
5184 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5186 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5187 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5189 (replace): Reimplemented. Fix javadoc.
5190 (reverse): Call ensureCapacity_unsynchronized().
5191 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5193 (replace): Calculate length for arraycopy() correctly.
5195 2000-05-09 Tom Tromey <tromey@cygnus.com>
5197 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5199 (insert(int,char[],int,int): New method.
5200 (delete): New method from Classpath.
5201 (deleteCharAt): Likewise.
5202 (substring): Likewise.
5203 (shared): No longer private.
5204 Added JavaDoc comments from Classpath.
5205 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5208 2000-05-07 Tom Tromey <tromey@cygnus.com>
5210 * Makefile.in: Rebuilt.
5211 * Makefile.am (LIBLINK): New macro.
5212 (libgcj_la_LINK): Use it.
5213 (libgcjawt_la_LINK): Likewise.
5215 2000-05-06 Tom Tromey <tromey@cygnus.com>
5217 * Makefile.in: Rebuilt.
5218 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5220 2000-05-05 Tom Tromey <tromey@cygnus.com>
5222 Fix for PR libgcj/220:
5223 * Makefile.in: Rebuilt.
5224 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5225 (jv_convert_LDFLAGS): Likewise.
5226 (libgcj_la_LDFLAGS): Likewise.
5227 (GCJLINK): New macro.
5228 (jv_convert_LINK): Use it.
5229 (gij_LINK): Likewise.
5230 (libgcj_la_LINK): New macro.
5231 (libgcjawt_la_LINK): Likewise.
5233 2000-05-04 Tom Tromey <tromey@cygnus.com>
5235 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5237 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5241 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5243 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5244 (_Jv_IsAssignableFrom): Ditto.
5245 (_Jv_IsInstanceOf): Ditto.
5246 (_Jv_CheckCast): Ditto.
5247 (_Jv_CheckArrayStore): Ditto.
5248 * java/lang/Class.h (_Jv_InitClass): Ditto.
5249 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5254 (_Jv_MonitorExit): Ditto.
5255 * boehm.cc (_Jv_MarkObj): Ditto.
5256 (_Jv_MarkObj): Ditto.
5257 (_Jv_MarkArray): Ditto.
5258 * prims.cc (_Jv_AllocObject): Ditto.
5259 (_Jv_NewObjectArray): Ditto.
5260 (_Jv_NewPrimArray): Ditto.
5261 (_Jv_Malloc): Ditto.
5262 (_Jv_Realloc): Ditto.
5263 (_Jv_MallocUnchecked): Ditto.
5269 2000-05-04 Tom Tromey <tromey@cygnus.com>
5271 * java/util/Locale.java (Locale): Don't explicitly check for
5273 * java/util/Hashtable.java (containsKey): Don't explicitly check
5276 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5278 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5280 * java/text/StringCharacterIterator.java
5281 (StringCharacterIterator): Don't check for null.
5282 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5284 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5285 check for null pointer.
5286 (leaveGroup): Likewise.
5287 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5289 (setData): Likewise.
5290 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5293 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5295 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5296 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5297 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5298 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5299 -rpath for in-gcc builds.
5300 * Makefile.in: Rebuilt.
5302 2000-04-28 Tom Tromey <tromey@cygnus.com>
5304 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5307 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5309 * libjava/java/lang/String.java (toString): Remove `final' hack.
5311 2000-04-05 Tom Tromey <tromey@cygnus.com>
5313 Runtime support for PR gcj/2:
5314 * prims.cc (_Jv_ThrowNullPointerException): New function.
5315 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5317 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5319 * prims.cc (_Jv_NewObjectArray): Fix typo.
5321 2000-04-26 Tom Tromey <tromey@cygnus.com>
5323 * Makefile.in: Rebuilt.
5324 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5326 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5328 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5331 2000-04-22 Anthony Green <green@cygnus.com>
5333 * include/jvm.h (__builtin_expect): Define as unused for now.
5334 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5338 (_Jv_MonitorExit): Ditto.
5339 * boehm.cc (_Jv_MarkObj): Ditto.
5340 (_Jv_MarkObj): Ditto.
5341 (_Jv_MarkArray): Ditto.
5342 (_Jv_AllocBytes): Ditto.
5343 * prims.cc (_Jv_AllocObject): Ditto.
5344 (_Jv_NewObjectArray): Ditto.
5345 (_Jv_NewPrimArray): Ditto.
5346 (_Jv_Malloc): Ditto.
5347 (_Jv_Realloc): Ditto.
5348 (_Jv_MallocUnchecked): Ditto.
5354 * include/Makefile.in: Rebuilt.
5355 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5357 2000-04-21 Tom Tromey <tromey@cygnus.com>
5359 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5360 Yet another new version from Classpath.
5362 Fix for PR libgcj/15:
5363 * java/util/natGregorianCalendar.cc (_REENTRANT,
5364 _POSIX_PTHREAD_SEMANTICS): Don't define.
5365 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5366 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5368 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5370 * configure: Rebuilt.
5371 * configure.in: If using POSIX threads, define _REENTRANT if
5372 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5373 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5375 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5376 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5377 version from Classpath.
5379 Fix for PR libgcj/213:
5380 * Makefile.in: Rebuilt.
5381 * Makefile.am (gij_SOURCES): Added gij.cc.
5382 (EXTRA_gij_SOURCES): Removed.
5383 (gij_LDADD): Removed gij.lo.
5384 (gij_DEPENDENCIES): Likewise.
5385 ($(gij_OBJECTS)): Depend on nat_headers.
5387 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5388 `setURL', not `url.set'.
5390 2000-04-20 Tom Tromey <tromey@cygnus.com>
5392 Fix for PR java.io/204:
5393 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5394 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5397 Fix for PR libgcj/212:
5398 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5399 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5400 * java/lang/Class.h (_Jv_word): Declare.
5402 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5404 2000-04-19 Tom Tromey <tromey@cygnus.com>
5406 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5407 doesn't have a loader.
5409 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5411 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5412 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5414 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5416 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5418 (available): Initialize `where' to prevent bogus compiler warning.
5420 2000-04-12 Tom Tromey <tromey@cygnus.com>
5422 * java/lang/natString.cc (intern): Temporarily disable finalizer
5425 * java/lang/natString.cc (unintern): Added `obj' argument.
5426 (intern): Register finalizer for string.
5427 * java/lang/String.java (unintern): Now static; added obj
5430 2000-04-11 Tom Tromey <tromey@cygnus.com>
5432 * java/util/Vector.java (VectorEnumeration): Now `final'.
5433 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5434 (HashtableEnumeration): Likewise.
5435 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5436 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5438 2000-04-10 Warren Levy <warrenl@cygnus.com>
5440 * java/io/ObjectStreamException.java: New file.
5441 * java/io/OptionalDataException.java: New file.
5442 * java/io/StreamCorruptedException.java: New file.
5443 * java/math/BigDecimal.java: New file.
5444 * java/sql/CallableStatement.java: New file.
5445 * java/sql/Connection.java: New file.
5446 * java/sql/DataTruncation.java: New file.
5447 * java/sql/DatabaseMetaData.java: New file.
5448 * java/sql/Date.java: New file.
5449 * java/sql/Driver.java: New file.
5450 * java/sql/DriverManager.java: New file.
5451 * java/sql/DriverPropertyInfo.java: New file.
5452 * java/sql/PreparedStatement.java: New file.
5453 * java/sql/ResultSet.java: New file.
5454 * java/sql/ResultSetMetaData.java: New file.
5455 * java/sql/SQLException.java: New file.
5456 * java/sql/SQLWarning.java: New file.
5457 * java/sql/Statement.java: New file.
5458 * java/sql/Time.java: New file.
5459 * java/sql/Timestamp.java: New file.
5460 * java/sql/Types.java: New file.
5461 * Makefile.am: Added above new files.
5462 * Makefile.in: Rebuilt.
5464 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5465 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5466 DatagramSocket constructor instead of null.
5468 2000-04-08 Anthony Green <green@cygnus.com>
5470 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5473 2000-04-08 Anthony Green <green@cygnus.com>
5475 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5476 (_Jv_MutexUnlock): Ditto.
5477 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5478 (_Jv_MutexUnlock): Ditto.
5480 2000-04-08 Anthony Green <green@cygnus.com>
5482 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5483 (ensureCapacity_unsynchronized): New private method.
5484 (append): Use ensureCapacity_unsynchronized.
5486 2000-04-08 Tom Tromey <tromey@cygnus.com>
5488 * Makefile.in: Rebuilt.
5489 * Makefile.am (awt_java_source_files): Added new files.
5490 * java/awt/IllegalComponentStateException.java: New file.
5491 * java/awt/ItemSelectable.java: New file.
5492 * java/awt/event/WindowEvent.java: Finished.
5493 * java/awt/event/TextEvent.java: Finished.
5494 * java/awt/event/ContainerEvent.java: New file.
5495 * java/awt/Component.java (getX, getY): New methods.
5496 * java/awt/event/PaintEvent.java: New file.
5497 * java/awt/event/MouseEvent.java: New file.
5498 * java/awt/ActiveEvent.java: New file.
5499 * java/awt/event/KeyEvent.java: Finished.
5500 * java/awt/event/ItemEvent.java: New file.
5501 * java/awt/Adjustable.java: New file.
5502 * java/awt/event/InputMethodEvent.java: New file.
5503 * java/awt/event/InputEvent.java: Finished.
5504 * java/awt/event/FocusEvent.java: New file.
5505 * java/awt/event/MouseMotionAdapter.java: New file.
5506 * java/awt/event/MouseAdapter.java: New file.
5507 * java/awt/event/KeyAdapter.java: New file.
5508 * java/awt/event/FocusAdapter.java: New file.
5509 * java/awt/event/ContainerAdapter.java: New file.
5510 * java/awt/event/ComponentEvent.java: Finished.
5511 * java/awt/event/AdjustmentEvent.java: New file.
5512 * java/awt/event/ComponentAdapter.java: New file.
5513 * java/awt/event/ActionEvent.java: Finished.
5514 * java/awt/event/MouseMotionListener.java: New file.
5515 * java/awt/event/MouseListener.java: New file.
5516 * java/awt/event/ItemListener.java: New file.
5517 * java/awt/event/InputMethodListener.java: New file.
5518 * java/awt/event/ContainerListener.java: New file.
5519 * java/awt/event/FocusListener.java: New file.
5520 * java/awt/event/ComponentListener.java: New file.
5521 * java/awt/event/AWTEventListener.java: New file.
5522 * java/awt/event/AdjustmentListener.java: New file.
5524 2000-04-08 Anthony Green <green@cygnus.com>
5526 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5527 check when we have to.
5529 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5532 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5535 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5536 inline hasMoreElements.
5538 2000-04-05 Tom Tromey <tromey@cygnus.com>
5540 * configure: Rebuilt.
5541 * configure.in: Recognize --enable-java-awt.
5542 (AWT): New conditional.
5543 * Makefile.in: Rebuilt.
5544 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5546 (libgcjawt_la_SOURCES): New macro.
5547 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5548 (libgcjawt_la_DEPENDENCIES): Likewise.
5549 (libgcjawt_la_LIBADD): Likewise.
5550 (libgcjawt_la_LDFLAGS): Likewise.
5551 (libgcj.zip): Depend on cond_java_awt_source_files
5552 (cond_awt_java_source_files): New macro.
5553 (MOSTLYCLEANFILES): Added awto_files.
5554 (awto_files): New macro. Use where javao_files used.
5555 (nat_headers): Use cond_awt_java_source_files.
5557 2000-04-04 Tom Tromey <tromey@cygnus.com>
5559 * Makefile.in: Rebuilt.
5560 * Makefile.am (awt_java_source_files): Added AWTException.java.
5561 * java/awt/AWTException.java: New file.
5563 2000-04-03 Tom Tromey <tromey@cygnus.com>
5565 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5566 commentary from Alex.
5568 * Makefile.in: Rebuilt.
5569 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5572 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5574 * configure: Rebuilt.
5575 * configure.in: Add --disable-jvmpi.
5576 * include/config.h.in: Rebuilt.
5577 * acconfig.h: Add ENABLE_JVMPI.
5579 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5580 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5581 (_Jv_JVMPI_Notify_THREAD_END): New define.
5582 (_Jv_JVMPI_Notify_THREAD_END): New define.
5583 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5584 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5585 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5587 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5590 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5591 (finish_): Generate JVMPI thread end events.
5592 (run_): Generate JVMPI thread start events.
5593 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5594 preloaded JNI library.
5595 Include JVMPI headers if necessary.
5596 (run): Generate JVMPI thread start events.
5598 * boehm.cc: Define GC_disable and GC_enable.
5599 (_Jv_DisableGC): New function.
5600 (_Jv_EnableGC): New function.
5601 (disable_gc_mutex): Declare.
5602 * nogc.cc (_Jv_DisableGC): New function.
5603 (_Jv_EnableGC): New function.
5605 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5606 (_Jv_JVMPI_Interface): Define.
5607 (jvmpiEnableEvent): New function.
5608 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5610 * include/jvmpi.h: New file.
5612 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5614 * Makefile.in: New #defines and friends for Thread.h.
5615 * Makefile.am: Ditto.
5616 * posix-threads.cc: (struct starter): Remove `object'.
5617 (_Jv_CondWait): Use interruptable condition variables and new
5618 recursive mutexes. New return codes on interrupt or non-ownership
5620 (_Jv_CondNotify): Ditto.
5621 (_Jv_CondNotifyAll): Ditto.
5622 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5623 the target thread by signaling its wait condition.
5624 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5625 not the starter struct. Initialize wait_mutex and wait_cond.
5626 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5628 (_Jv_MutexUnlock): Ditto.
5629 (really_start): Set info->data->thread from pthread_self() to work
5630 around a race condition. Destroy wait_mutex and wait_cond when run()
5632 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5633 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5635 startable_flag: New private field.
5636 (Thread): Initialize `startable_flag'.
5637 (toString): Check for null thread group.
5638 * java/lang/natThread.cc: (struct natThread): New fields
5639 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5640 (class locker): Removed.
5641 (initialize_native): Initialize `join_cond' and `join_mutex'.
5642 (interrupt): Now just calls _Jv_ThreadInterrupt().
5643 (join): Simplified. Just wait on the target thread's join condition.
5644 (finish_): Remove join list code. Unset thread group. Signal
5645 potential joiners by notifying the dying threads join_cond.
5646 (start): Check for illegal restarts.
5647 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5649 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5650 #defines and #ifdefs.
5651 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5652 `wait_mutex', `next'.
5653 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5654 directly mapping to pthread_cond_t.
5655 (struct _Jv_Mutex_t): New recursive implementation.
5656 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5657 _Jv_HaveCondDestroy: Never define this for posix-threads.
5658 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5659 (_Jv_CondNotifyAll): Ditto.
5660 (_Jv_MutexLock): Ditto.
5661 (_Jv_MutexUnlock): Ditto.
5662 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5663 (_Jv_MutexDestroy): Ditto.
5664 (_Jv_CondDestroy): Removed.
5665 (_Jv_PthreadGetMutex): Removed.
5666 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5667 error. Add a FIXME about this.
5668 (_Jv_CondNotifyAll): Ditto.
5669 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5670 _JV_NOT_OWNER on other errors. Add FIXME.
5672 2000-03-26 Tom Tromey <tromey@cygnus.com>
5674 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5676 (call): Don't throw exception here.
5678 2000-03-26 Tom Tromey <tromey@cygnus.com>
5680 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5681 * interpret.cc: Use SIZEOF_VOID_P.
5682 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5683 (_Jv_loadLong): Likewise.
5684 (_Jv_storeDouble): Likewise.
5685 * configure: Rebuilt.
5686 * configure.in: Check size of void*.
5688 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5690 2000-03-26 Hans Boehm <boehm@acm.org>
5692 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5693 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5695 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5696 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5697 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5698 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5700 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5701 (FFI_RAW_SIZE): Likewise.
5702 (_Jv_InterpMethod::ncode): Use them.
5703 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5704 STORED): Define differently on a 64 bit machine.
5705 (continue1): Use ffi_java_raw_call when appropriate.
5707 2000-03-24 Warren Levy <warrenl@cygnus.com>
5709 * java/math/BigInteger.java(divide): Handle the special case when
5710 dividing by 1 and the high bit of the dividend is set.
5711 (setShiftRight): Handle case when count == 0.
5713 2000-03-24 Warren Levy <warrenl@cygnus.com>
5715 * java/awt/Font.java(isBold): Fix syntax error.
5717 * java/awt/Frame.java(postEvent): ditto.
5718 * java/awt/Menu.java(postEvent): ditto.
5719 * java/awt/MenuBar.java(postEvent): ditto.
5720 * java/awt/Toolkit.java(init): Included a stub.
5722 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5724 * java/awt/Event.java: Add all the event type constants.
5725 (Event): Implemented constructors.
5726 (controlDown): Implemented.
5727 (metaDown): Implemented.
5728 (paramString): Stubbed.
5729 (shiftDown): Implemented.
5730 (toString): Implemented.
5731 (translate): Implemented.
5733 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5735 * java/lang/natClass.cc (isInstance): Initialize `this'.
5736 (isAssignableFrom): Initialize `this' and `klass'.
5737 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5738 implemented by any loaded class, so return false.
5739 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5740 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5742 2000-03-19 Warren Levy <warrenl@cygnus.com>
5744 * java/awt/Color.java: Specified java.io for Serializable.
5745 * java/awt/Toolkit.java: Imported java.net.URL.
5747 2000-03-19 Warren Levy <warrenl@cygnus.com>
5749 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5751 2000-03-16 Warren Levy <warrenl@cygnus.com>
5753 * java/awt/Color.java: New file.
5754 * java/awt/Graphics.java: New file.
5755 * java/awt/Image.java: New file.
5756 * java/awt/Paint.java: New file.
5757 * java/awt/PaintContext.java: New file.
5758 * java/awt/Transparency.java: New file.
5759 * java/util/Collection.java: New file.
5760 * java/util/Comparator.java: New file.
5761 * java/util/Iterator.java: New file.
5762 * java/util/List.java: New file.
5763 * java/util/ListIterator.java: New file.
5764 * Makefile.am: Added above new files.
5765 * Makefile.in: Rebuilt.
5767 * java/awt/Font.java (PLAIN): New field.
5769 (ITALIC): New field.
5770 (ROMAN_BASELINE): New field.
5771 (CENTER_BASELINE): New field.
5772 (HANGING_BASELINE): New field.
5776 (pointSize): New field.
5777 (Font): Implemented constructor.
5778 (isPlain): Implemented method.
5779 (isBold): Implemented method.
5780 (isItalic): Implemented method.
5781 (getName): Implemented method.
5782 (getStyle): Implemented method.
5783 (getSize): Implemented method.
5784 (getSize2D): Implemented method.
5786 * java/awt/Frame.java (getFont): Stubbed.
5787 (postEvent): Stubbed.
5789 * java/awt/Menu.java (postEvent): Stubbed.
5790 * java/awt/MenuBar.java (getFont): Stubbed.
5791 (postEvent): Stubbed.
5792 * java/awt/Toolkit.java (getImage): Added abstract method.
5794 2000-03-15 Tom Tromey <tromey@cygnus.com>
5796 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5798 * prims.cc (win32_exception_handler): Reformatted.
5800 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5801 (_Jv_HaveMutexDestroy): Likewise.
5803 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5805 * java/io/natFileDescriptorWin32.cc: New file.
5806 * java/io/natFileWin32.cc: New file.
5807 * java/net/natInetAddress.cc: Added conditional inclusion of
5808 Windows / Winsock headers.
5809 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5810 inclusion of Windows / Winsock headers.
5811 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5812 Windows / Winsock headers.
5813 * include/win32-signal.h: New file.
5814 * include/win32-threads.h: New file.
5815 * win32-threads.cc: New file.
5816 * exception.cc (win32_get_restart_frame): New function.
5817 * prims.cc (win32_exception_handler): New function.
5818 (main_init) Performs Winsock initialisation.
5819 (main_init) Installs exeception handler.
5821 2000-03-14 Tom Tromey <tromey@cygnus.com>
5823 * jni.cc (mangled_name): Fixed assertion.
5824 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5825 turned assert into actual failure.
5827 2000-03-09 Warren Levy <warrenl@cygnus.com>
5829 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5830 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5831 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5833 2000-03-09 Warren Levy <warrenl@cygnus.com>
5835 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5836 * java/security/DigestException.java: New file.
5837 * java/security/GeneralSecurityException.java: New file.
5838 * java/security/InvalidAlgorithmParameterException.java: New file.
5839 * java/security/InvalidKeyException.java: New file.
5840 * java/security/InvalidParameterException.java: New file.
5841 * java/security/Key.java: New file.
5842 * java/security/KeyException.java: New file.
5843 * java/security/KeyPair.java: New file.
5844 * java/security/KeyPairGenerator.java: New file.
5845 * java/security/KeyPairGeneratorSpi.java: New file.
5846 * java/security/NoSuchProviderException.java: New file.
5847 * java/security/PrivateKey.java: New file.
5848 * java/security/Provider.java: New file.
5849 * java/security/PublicKey.java: New file.
5850 * java/security/SecureRandom.java: New file.
5851 * java/security/Security.java: New file.
5852 * java/security/Signature.java: New file.
5853 * java/security/SignatureException.java: New file.
5854 * java/security/interfaces/DSAKey.java: New file.
5855 * java/security/interfaces/DSAParams.java: New file.
5856 * java/security/interfaces/DSAPrivateKey.java: New file.
5857 * java/security/interfaces/DSAPublicKey.java: New file.
5858 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5859 * java/security/interfaces/RSAPrivateKey.java: New file.
5860 * java/security/interfaces/RSAPublicKey.java: New file.
5861 * java/security/spec/AlgorithmParameterSpec.java: New file.
5862 * java/security/spec/InvalidKeySpecException.java: New file.
5863 * java/security/spec/InvalidParameterSpecException.java: New file.
5864 * java/security/spec/KeySpec.java: New file.
5865 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5866 * java/security/spec/RSAPrivateKeySpec.java: New file.
5867 * java/security/spec/RSAPublicKeySpec.java: New file.
5868 * Makefile.am: Added above java.security files.
5869 * Makefile.in: Rebuilt.
5871 * java/security/MessageDigest.java: Rewritten.
5872 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5874 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5878 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5880 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5881 _Jv_PrepareConstantTimeTables.
5882 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5883 classes should have an IDT, so don't return if klass is an array
5886 2000-03-08 Tom Tromey <tromey@cygnus.com>
5888 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5889 of `void' to be created.
5891 2000-03-08 Warren Levy <warrenl@cygnus.com>
5893 * java/math/BigInteger.java(signum): Handle zero properly.
5895 2000-03-07 Tom Tromey <tromey@cygnus.com>
5897 * All files: Updated copyright information.
5898 * COPYING: New file.
5899 * COPYING.LIB: Removed.
5900 * LIBGCJ_LICENSE: We now use GPL + special exception.
5902 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5904 * resolve.cc (_Jv_SearchMethodInClass): New function.
5905 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5906 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5908 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5910 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5911 (struct _Jv_ifaces): New declaration.
5912 JV_CLASS: New macro definition.
5913 (getComponentType): Relocate below isArray() for inlining.
5914 (getModifiers): Declare `inline'.
5915 (getSuperclass): Ditto.
5917 (isPrimitive): Ditto.
5918 (_Jv_IsAssignableFrom): New prototype.
5919 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5921 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5922 Check for JV_STATE_DONE before invoking initializeClass().
5923 (_Jv_PrepareConstantTimeTables): New prototype.
5924 (_Jv_GetInterfaces): Ditto.
5925 (_Jv_GenerateITable): Ditto.
5926 (_Jv_GetMethodString): Ditto.
5927 (_Jv_AppendPartialITable): Ditto.
5928 (_Jv_FindIIndex): Ditto.
5929 depth, ancestors, idt: New class fields.
5931 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5932 inline function `_Jv_IsAssignableFrom'. Use that function.
5933 (isInstance): Declare `inline'.
5934 (initializeClass): Get lock on class before checking `state'. Unlock
5935 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5937 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5938 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5939 class->depth and ancestor table.
5940 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5941 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5942 _Jv_IsAssignableFrom.
5943 (_Jv_CheckArrayStore): Ditto.
5944 (_Jv_LookupInterfaceMethodIdx): New function.
5945 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5946 (_Jv_PrepareConstantTimeTables): New function.
5947 (_Jv_IndexOf): Ditto.
5948 (_Jv_GetInterfaces): Ditto.
5949 (_Jv_GenerateITable): Ditto.
5950 (_Jv_GetMethodString): Ditto.
5951 (_Jv_AppendPartialITable): Ditto.
5952 iindex_mutex, iindex_mutex_initialized: New static fields.
5953 (_Jv_FindIIndex): New function.
5955 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5957 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5958 (_Jv_CheckArrayStore): Ditto.
5959 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5960 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5961 Moved to gcj/array.h.
5962 (_Jv_Realloc): New function.
5964 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5966 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5967 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5968 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5969 JvNewDoubleArray): Implementations moved from prims.cc and
5972 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5974 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5976 2000-03-06 Tom Tromey <tromey@cygnus.com>
5978 * jni.cc (MARK_NONE): New define.
5979 (MARK_USER): Likewise.
5980 (MARK_SYSTEM): Likewise.
5981 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5983 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5984 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5985 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5986 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5988 (call): Use MARK_SYSTEM.
5989 (_Jv_GetJNIEnvNewFrame): New function.
5990 (_Jv_LookupJNIMethod): New function.
5991 (_Jv_JNI_PopSystemFrame): New function.
5992 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5994 2000-03-05 Tom Tromey <tromey@cygnus.com>
5996 Fix for PR libgcj/43:
5997 * include/Makefile.in: Rebuilt.
5998 * include/Makefile.am (include_HEADERS): New define.
6000 2000-03-05 Anthony Green <green@redhat.com>
6002 * gcj/javaprims.h ("Java"): Remove FirstThread.
6004 * configure.host: Fix __NO_MATH_INLNES botch.
6006 * Makefile.in: Rebuilt.
6007 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6008 (gnu/gcj/runtime/FirstThread.h): Moved.
6009 (ordinary_java_source_files): Move FirstThread.java.
6010 * prims.cc: Deal with FirstThread movement.
6012 (_Jv_RunMain): Ditto.
6014 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6015 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6017 2000-03-05 Warren Levy <warrenl@cygnus.com>
6019 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6020 Handle null addresses.
6022 2000-03-04 Anthony Green <green@redhat.com>
6024 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6027 2000-03-04 Anthony Green <green@redhat.com>
6029 * configure: Rebuilt.
6030 * configure.in (ZLIBTESTSPEC): New macro.
6031 (GCTESTSPEC): New macro.
6032 (LIBGCJTESTSPEC): New macro.
6033 * libgcj-test.spec.in: New file.
6035 2000-03-02 Tom Tromey <tromey@cygnus.com>
6037 * include/java-interp.h: Don't include MethodInvocation.h.
6038 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6039 * Makefile.in: Rebuilt.
6040 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6041 (ordinary_java_source_files): Don't mention
6042 MethodInvocation.java.
6043 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6044 * interpret.cc (MethodInvocation::continue1): Removed.
6045 (run): Handle exceptions here.
6046 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6048 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6050 (defineClass2): Removed.
6052 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6054 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6056 (hack_call): Removed.
6058 * java/lang/Class.h (Class): Removed hackRunInitializers,
6060 * java/lang/natClass.cc (hackRunInitializers): Removed.
6061 (initializeClass): Catch exceptions here.
6062 Include ExceptionInInitializerError.h.
6063 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6066 * java/lang/Object.h (Object): Don't mention hack12_6.
6067 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6069 * java/lang/Object.java (hack12_6): Removed.
6071 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6072 (start): Use run_, not run__.
6073 * java/lang/Thread.java (run_): Renamed from run__; old run_
6076 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6077 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6078 (_Jv_JNI_DefineClass): Likewise.
6079 (_Jv_JNI_ThrowNew): Likewise.
6080 (_Jv_JNI_AllocObject): Likewise.
6081 (_Jv_JNI_GetAnyMethodID): Likewise.
6082 (_Jv_JNI_CallAnyMethodV): Likewise.
6083 (_Jv_JNI_CallAnyMethodA): Likewise.
6084 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6085 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6086 (_Jv_JNI_GetAnyFieldID): Likewise.
6087 (_Jv_JNI_NewString): Likewise.
6088 (_Jv_JNI_NewStringUTF): Likewise.
6089 (_Jv_JNI_GetStringUTFChars): Likewise.
6090 (_Jv_JNI_NewObjectArray): Likewise.
6091 (_Jv_JNI_NewPrimitiveArray): Likewise.
6092 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6093 (_Jv_JNI_GetStringRegion): Likewise.
6094 (_Jv_JNI_GetStringUTFRegion): Likewise.
6095 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6096 (_Jv_JNI_MonitorEnter): Likewise.
6097 (_Jv_JNI_MonitorExit): Likewise.
6098 (_Jv_JNI_ToReflectedField): Likewise.
6099 (_Jv_JNI_ToReflectedMethod): Likewise.
6100 (_Jv_JNI_RegisterNatives): Likewise.
6101 (_Jv_JNI_AttachCurrentThread): Likewise.
6102 (_Jv_JNI_DestroyJavaVM): Likewise.
6104 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6106 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6107 error caused by the incorrect casting of a long to an int.
6109 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6111 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6112 SIGSEV caused by use of the wrong instance variable.
6114 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6116 * java/io/File.java (File(String, String)): For dirPath, treat an
6117 empty String the same as `null'.
6119 2000-02-26 Anthony Green <green@cygnus.com>
6121 * gnu/gcj/io/MimeTypes.java: Test for null.
6123 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6124 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6126 * java/net/URLConnection.java: Update copyright notice.
6128 2000-02-25 Tom Tromey <tromey@cygnus.com>
6130 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6133 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6135 * java/net/URLConnection.java (initializeDateFormats): New
6137 (getHeaderFieldDate): Call initializeDateFormats if required.
6138 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6140 Fix for PR libgcj/38.
6142 2000-02-24 Warren Levy <warrenl@cygnus.com>
6144 * java/math/BigInteger.java(ival): Made private.
6148 2000-02-20 Anthony Green <green@cygnus.com>
6150 * Makefile.in: Rebuilt.
6151 * Makefile.am (ordinary_java_source_files): Add
6152 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6154 * scripts/MakeDefaultMimeTypes.java: New file.
6155 * scripts/mime.types: New file.
6156 * scripts/classes.pl: Moved from top level.
6157 * classes.pl: Moved to scripts directory.
6159 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6161 * gnu/gcj/io/MimeTypes.java: New file.
6162 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6164 2000-02-20 Tom Tromey <tromey@cygnus.com>
6166 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6168 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6170 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6173 2000-02-18 Tom Tromey <tromey@cygnus.com>
6175 * include/jvm.h (_Jv_GetJavaVM): Declare.
6176 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6177 (_Jv_MethodBase::get_method): New method.
6178 (_Jv_JNIMethod::set_function): New method.
6179 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6180 (_Jv_JNI_RegisterNatives): New function.
6181 (_Jv_JNIFunctions): Updated for new functions.
6182 (_Jv_GetJavaVM): New function.
6183 (_Jv_JNI_GetJavaVM): Use it. Now static.
6184 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6185 is already a Java thread but does not have a JNIEnv yet.
6187 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6190 2000-02-17 Tom Tromey <tromey@cygnus.com>
6192 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6195 2000-02-16 Tom Tromey <tromey@cygnus.com>
6197 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6199 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6200 (_Jv_JNI_NewObject): Likewise.
6201 (_Jv_JNI_NewObjectA): Likewise.
6202 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6203 as "return" type to _Jv_CallAnyMethodA.
6204 (_Jv_JNI_CallAnyMethodA): Likewise.
6205 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6207 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6210 2000-02-15 Tom Tromey <tromey@cygnus.com>
6212 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6214 (init_cif): Added `rtype_p' argument.
6215 * include/java-interp.h (class _Jv_MethodBase): Added
6217 (class _Jv_InterpMethod): Removed args_raw_size.
6218 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6219 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6220 class pointer as well as the ordinary arguments.
6222 * jni.cc (mangled_name): Skip leading `(' in signature.
6224 * jni.cc (add_char): Added missing `else'.
6226 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6229 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6233 * java/lang/natRuntime.cc (_load): Include library path with
6236 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6239 * java/lang/natThread.cc (dumpStack): Removed.
6240 * java/lang/Thread.java (dumpStack): Implemented.
6242 2000-02-15 Tom Tromey <tromey@cygnus.com>
6244 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6245 with `lib' for loadLibrary. Fixes PR gcj/150.
6247 2000-02-14 Warren Levy <warrenl@cygnus.com>
6249 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6251 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6255 (modPow): Rewritten to not use the naive, slow, brute force approach.
6256 (isProbablePrime): Implemented.
6257 (testBit): Implemented.
6258 (flipBit): Implemented.
6259 (getLowestSetBit): Implemented.
6261 2000-02-16 Anthony Green <green@redhat.com>
6263 * configure.host: Use the same options for i386 and i486 as we do
6266 2000-02-12 Tom Tromey <tromey@cygnus.com>
6268 * java/io/File.java (createTempFile): Use low bits from counter,
6271 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6273 * THANKS: More thanks.
6275 2000-02-11 Tom Tromey <tromey@cygnus.com>
6277 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6278 astore instruction. From Hans Boehm.
6280 2000-02-11 Warren Levy <warrenl@cygnus.com>
6282 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6283 (BigInteger(String)): New constructor.
6284 (not): Rewritten using version from Kawa's BitOps class.
6285 (valueOf): New private methods from Kawa's BitOps class.
6292 (andNot): Implemented.
6293 (clearBit): Implemented.
6294 (setBit): Implemented.
6295 (bitCount): Implemented.
6296 (toByteArray): Implemented.
6298 2000-02-11 Tom Tromey <tromey@cygnus.com>
6300 * java/io/File.java (nextValue): Now synchronized.
6302 2000-02-10 Tom Tromey <tromey@cygnus.com>
6304 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6305 * java/io/FileDescriptor.java (EXCL): New static field.
6306 * java/io/File.java (tmpdir): New static field.
6307 (createTempFile): New method.
6308 (nextValue): New method.
6309 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6312 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6313 (jboolean): Declare as an attributed int, not a bool.
6314 (_Jv_func): Declare differently for C.
6316 * gnu/gcj/jni/natNativeThread.cc: New file.
6317 * gnu/gcj/jni/NativeThread.java: New file.
6318 * java/lang/Thread.java (data): Now a RawData.
6319 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6321 * Makefile.in: Rebuilt.
6322 * Makefile.am (java/lang/Thread.h): New target.
6323 (ordinary_java_source_files): Added NativeThread.java.
6324 (nat_source_files): Added natNativeThread.cc.
6325 * java/lang/natThread.cc: Include <jni.h>
6326 (struct natThread): Added `jni_env' field.
6327 (_Jv_GetCurrentJNIEnv): New function.
6328 (_Jv_SetCurrentJNIEnv): Likewise.
6329 (initialize_native): Initialize jni_env.
6331 * jni.cc (ThreadGroupClass): New define.
6332 (_Jv_JNI_InvokeFunctions): New structure.
6333 (JNI_GetCreatedJavaVMs): New function.
6334 (the_vm): New global.
6335 (JNI_GetDefaultJavaVMInitArgs): New function.
6336 Include NativeThread.h.
6337 (NativeThreadClass): New define.
6338 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6339 (_Jv_JNI_DestroyJavaVM): New function.
6340 (_Jv_JNI_AttachCurrentThread): New function.
6341 (_Jv_JNI_DetachCurrentThread): New function.
6342 (_Jv_JNI_GetEnv): New function.
6343 (JNI_CreateJavaVM): New function.
6344 (_Jv_JNI_GetJavaVM): New function.
6345 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6346 * include/jni.h (JavaVMAttachArgs): New structure.
6347 (JNI_EDETACHED): New define.
6348 (JNI_EVERSION): Likewise.
6349 (JavaVM): Define properly.
6350 (struct JNIInvokeInterface): New structure.
6351 (class _Jv_JavaVM): New class.
6352 (JNI_OnLoad, JNI_OnUnload): Declare.
6353 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6354 JNI_GetCreatedJavaVMs): Declare.
6355 (JavaVMInitArgs): New typedef.
6356 (JavaVMOption): Likewise.
6357 (JNI_ERR): New define.
6360 2000-02-10 Andrew Haley <aph@cygnus.com>
6362 * interpret.cc: Don't include fdlibm.h.
6363 Replace #if with #ifdef throughout.
6364 Declare extern __ieee754_fmod.
6365 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6367 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6368 Search class hierarchy for superclass vtable.
6370 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6371 off the end of a pointer list.
6373 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6377 2000-02-09 Tom Tromey <tromey@cygnus.com>
6379 * java/lang/natRuntime.cc (_load): Call add_library.
6380 (loadLibraryInternal): Likewise.
6382 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6383 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6384 (Output_iconv::finalize): Likewise.
6386 2000-02-08 Tom Tromey <tromey@cygnus.com>
6388 * java/util/Properties.java (setProperty): New method.
6389 (store): New method.
6391 2000-02-07 Tom Tromey <tromey@cygnus.com>
6393 * java/lang/Runtime.java (_load): Declare.
6394 (load, loadLibrary): Wrote in terms of _load.
6395 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6397 (loadLibrary): Likewise.
6399 (_load): New method.
6400 (loadLibrary, load): Removed.
6402 * jni.cc (ThrowableClass): New define.
6403 (_Jv_JNI_Throw): Check argument.
6404 (_Jv_JNI_ThrowNew): Likewise.
6405 (wrap_value): Don't wrap object if it is NULL.
6406 (_Jv_JNI_DefineClass): Use wrap_value.
6407 (_Jv_JNI_FindClass): Likewise.
6408 (_Jv_JNI_GetSuperclass): Likewise.
6409 (_Jv_JNI_ExceptionOccurred): Likewise.
6410 (_Jv_JNI_AllocObject): Likewise.
6411 (_Jv_JNI_GetObjectClass): Likewise.
6412 (_Jv_JNI_NewString): Likewise.
6413 (_Jv_JNI_NewStringUTF): Likewise.
6414 (_Jv_JNI_NewObjectArray): Likewise.
6415 (_Jv_JNI_GetObjectArrayElement): Likewise.
6416 (_Jv_JNI_NewPrimitiveArray): Likewise.
6417 (_Jv_JNI_ToReflectedField): Likewise.
6418 (_Jv_JNI_ToReflectedMethod): Likewise.
6419 (_Jv_JNI_AllocObject): Check argument.
6420 (_Jv_JNI_NewObjectV): Likewise.
6421 (_Jv_JNI_NewObject): Likewise.
6422 (_Jv_JNI_NewObjectA): Likewise.
6423 (_Jv_JNI_GetObjectClass): Likewise.
6424 (_Jv_JNI_GetField): Likewise.
6425 (_Jv_JNI_SetField): Likewise.
6427 * interpret.cc (PUSHL): Don't use expression statement.
6432 * jni.cc (add_char): Conditional on INTERPRETER.
6433 (mangled_name): Likewise.
6435 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6437 (class _Jv_JNIMethod): Likewise.
6439 2000-02-04 Warren Levy <warrenl@cygnus.com>
6441 * Makefile.am: Added MPN.java and BigInteger.java.
6442 * Makefile.in: Rebuilt.
6443 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6445 * java/math/BigInteger.java: New file. Based primarily on
6446 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6448 2000-02-04 Tom Tromey <tromey@cygnus.com>
6450 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6452 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6453 if the method is native.
6454 * resolve.cc (ncode): Don't handle native methods.
6455 (_Jv_JNIMethod::ncode): New method.
6456 (_Jv_PrepareClass): Handle native methods.
6457 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6458 Include AbstractMethodError.h.
6459 (add_char): New function.
6460 (mangled_name): Likewise.
6461 * include/java-interp.h (class _Jv_JNIMethod): New class.
6462 (class _Jv_MethodBase): New class.
6463 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6464 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6467 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6468 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6469 libraries): New globals.
6470 (add_library): New function.
6471 (_Jv_FindSymbolInExecutable): New function.
6473 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6476 2000-02-04 Andrew Haley <aph@cygnus.com>
6478 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6479 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6480 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6481 printStackTrace to printRawStackTrace.
6483 2000-02-03 Tom Tromey <tromey@cygnus.com>
6485 * java/util/Calendar.java (toString): New method.
6486 * java/util/SimpleTimeZone.java (clone): New method.
6487 (toString): New method.
6488 * java/util/TimeZone.java (clone): New method.
6489 * java/text/SimpleDateFormat.java (clone): New method.
6490 * java/text/NumberFormat.java (clone): New method.
6491 (equals): New method.
6492 * java/text/Format.java (clone): New method.
6493 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6495 (clone): New method.
6496 * java/text/DateFormat.java (clone): New method.
6497 * java/text/Collator.java (clone): New method.
6499 2000-02-03 Tom Tromey <tromey@cygnus.com>
6501 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6504 2000-02-01 Tom Tromey <tromey@cygnus.com>
6506 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6507 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6508 constructing the closure if the function is native.
6509 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6510 a template function, #if'd out, or static.
6511 Include <java-interp.h>.
6513 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6515 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6517 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6518 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6520 (wrap_value): New function.
6521 (_Jv_JNI_CallAnyMethodV): Use it.
6522 (_Jv_JNI_CallAnyMethodA): Likewise.
6523 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6524 (_Jv_JNI_GetStaticField): Likewise.
6526 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6527 (_Jv_JNI_GetStaticField): Likewise.
6529 2000-01-31 Tom Tromey <tromey@cygnus.com>
6531 * prims.cc (_Jv_MallocUnchecked): New function.
6532 (main_init): Call _Jv_JNI_Init.
6533 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6534 (_Jv_JNI_Init): Declare.
6535 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6537 (_Jv_JNI_NewGlobalRef): New function.
6538 (_Jv_JNI_DeleteGlobalRef): New function.
6539 (_Jv_JNI_DeleteLocalRef): New function.
6540 (_Jv_JNI_conversion_call): Initialize and clear local reference
6542 (_Jv_JNI_NewLocalRef): New function.
6543 (struct _Jv_JNI_LocalFrame): New structure.
6544 (_Jv_JNI_PushLocalFrame): New function.
6545 (_Jv_JNI_EnsureLocalCapacity): New function.
6546 (FRAME_SIZE): New define.
6547 (_Jv_JNI_GetStringChars): Mark string, not characters.
6548 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6549 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6550 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6552 (_Jv_JNI_DefineClass): Make return value a local ref.
6553 (_Jv_JNI_FindClass): Likewise.
6554 (_Jv_JNI_GetSuperclass): Likewise.
6555 (_Jv_JNI_ExceptionOccurred): Likewise.
6556 (_Jv_JNI_AllocObject): Likewise.
6557 (_Jv_JNI_GetObjectClass): Likewise.
6558 (_Jv_JNI_CallAnyMethodV): Likewise.
6559 (_Jv_JNI_NewString): Likewise.
6560 (_Jv_JNI_NewStringUTF): Likewise.
6561 (_Jv_JNI_NewObjectArray): Likewise.
6562 (_Jv_JNI_GetObjectArrayElement): Likewise.
6563 (_Jv_JNI_ToReflectedField): Likewise.
6564 (_Jv_JNI_ToReflectedMethod): Likewise.
6565 (_Jv_JNIFunctions): Updated table for new functions.
6566 (_Jv_JNI_Init): New function.
6567 (mark_for_gc): Wrote.
6568 (unmark_for_gc): Wrote.
6569 * include/jni.h (struct JNINativeInterface): Removed name from
6570 PopLocalFrame parameter.
6571 (class _Jv_JNIEnv): Added `locals' field.
6573 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6575 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6578 2000-01-30 Tom Tromey <tromey@cygnus.com>
6580 * include/config.h.in: Rebuilt.
6581 * acconfig.h (HAVE_ICONV): Define.
6582 * configure: Rebuilt.
6583 * configure.in: Check for `iconv' function.
6584 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6585 no specific encoder exists.
6586 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6587 no specific encoder exists.
6588 * Makefile.in: Rebuilt.
6589 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6591 (nat_source_files): Added natIconv.cc.
6592 * gnu/gcj/convert/natIconv.cc: New file.
6593 * gnu/gcj/convert/Input_iconv.java: New file.
6594 * gnu/gcj/convert/Output_iconv.java: New file.
6596 2000-01-28 Tom Tromey <tromey@cygnus.com>
6598 * Makefile.in: Rebuilt.
6599 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6601 2000-01-26 Tom Tromey <tromey@cygnus.com>
6603 * gcj/method.h (JvNumMethods): Moved from Class.h.
6604 (JvGetFirstMethod): Likewise.
6605 * java/lang/Class.h (Object): Updated decl of
6606 _Jv_JNI_ToReflectedField.
6607 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6608 * Makefile.in: Rebuilt.
6609 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6610 argument of _Jv_JNI_ToReflectedField.
6611 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6613 (java/lang/reflect/Method.h): Likewise.
6614 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6616 (jweak): New typedef.
6617 (struct JNINativeInterface): Correctly declare remaining entries.
6618 * jni.cc: Include Class.h, ClassLoader.h.
6619 (_Jv_JNI_FindClass): New function.
6620 (_Jv_JNI_DefineClass): New function.
6621 (_Jv_JNI_conversion_call): New function.
6622 (_Jv_JNI_FindClass): Use current class loader to find class.
6623 (_Jv_JNI_ExceptionCheck): New function.
6624 (_Jv_JNI_FromReflectedField): Now static.
6625 (MethodClass): New define.
6626 (_Jv_JNI_FromReflectedMethod): New function.
6627 (_Jv_JNI_ToReflectedMethod): Likewise.
6629 (_Jv_JNI_IsAssignableFrom): Renamed.
6630 (_Jv_JNI_GetStringRegion): New function.
6631 Include StringIndexOutOfBoundsException.h.
6632 (_Jv_JNI_GetStringUTFRegion): New function.
6633 (_Jv_JNIFunctions): Updated for new functions.
6634 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6635 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6636 (_Jv_JNI_GetStringCritical): New function.
6637 (_Jv_JNI_ReleaseStringCritical): Likewise.
6638 (get_throwable): Removed.
6639 (GCJ_JV_JNIENV_FRIEND): Removed.
6640 (__GCJ_JNI_IMPL__): Define.
6643 * resolve.cc (get_ffi_type_from_signature): Handle case where
6646 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6648 * interpret.cc (run): Don't call println.
6649 Don't include PrintStream.h.
6651 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6652 nameIndex. Use "jint" as type for boffset.
6653 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6655 (Class): Likewise. Also changed type of method_count,
6656 vtable_method_count, size_in_bytes, field_count,
6657 static_field_count, interface_count.
6658 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6661 2000-01-21 Tom Tromey <tromey@cygnus.com>
6663 * java/lang/reflect/natConstructor.cc (newInstance): Use
6665 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6666 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6667 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6670 (invoke): Use _Jv_CallAnyMethodA.
6672 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6673 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6675 (struct _Jv_Method): Added getNextMethod method.
6676 (JvNumMethods): New function.
6677 (JvGetFirstMethod): Likewise.
6678 * gcj/field.h (JvGetFirstStaticField): New function.
6679 (JvNumStaticFields): Likewise.
6680 (getNextField): Renamed from getNextInstanceField.
6681 (struct _Jv_Field): New method getClass.
6682 * jni.cc: Wrote many new functions.
6683 * include/jni.h (JNI_TRUE): Define.
6684 (JNI_FALSE): Likewise.
6685 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6686 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6687 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6688 (jfieldID, jmethodID): Likewise.
6689 (JNI_COMMIT, JNI_ABORT): New defines.
6690 (JNINativeMethod): New struct.
6691 (struct JNINativeInterface): Correctly declared more entries.
6692 (class _Jv_JNIEnv): Added `ex' member.
6693 (JNI_VERSION_1_1): New define.
6694 (JNI_VERSION_1_2): Likewise.
6696 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6697 getNextInstanceField.
6699 2000-01-20 Tom Tromey <tromey@cygnus.com>
6701 * resolve.cc (StringClass): Removed.
6702 * defineclass.cc (StringClass): Removed.
6704 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6708 2000-01-19 Tom Tromey <tromey@cygnus.com>
6710 * interpret.cc (PC_REGISTER_ASM): Removed.
6712 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6713 From Bryce McKinlay.
6715 * All files: Updated copyright to reflect Cygnus purchase.
6717 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6719 * configure: Rebuilt.
6720 * configure.in: Recognize --disable-interpreter.
6722 2000-01-18 Andrew Haley <aph@cygnus.com>
6724 * name-finder.cc (lookup): Check for dladdr function.
6725 acconfig.h (HAVE_DLADDR): Add.
6726 configure.in: Check for HAVE_DLADDR
6728 include/config.h.in: Rebuilt.
6730 2000-01-17 Andrew Haley <aph@cygnus.com>
6732 * prims.cc (_Jv_RunMain): Set the name of this executable.
6734 2000-01-17 Tom Tromey <tromey@cygnus.com>
6736 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6737 when backtrace can't be computed.
6739 * configure: Rebuilt.
6740 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6742 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6743 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6744 (_Jv_FindClassInCache): Likewise.
6745 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6746 (findSystemClass): Try to load class from compiled module.
6748 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6749 (loadLibrary): Likewise.
6750 (lt_preloaded_symbols): Define.
6751 (loadLibraryInternal): New method.
6752 * include/config.h.in: Rebuilt.
6753 * acconfig.h (USE_LTDL): Added.
6754 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6755 (INCLUDES): Added $(INCLTDL).
6756 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6757 (libgcj_la_LIBADD): Likewise.
6758 * aclocal.m4, configure: Rebuilt.
6759 * configure.in: Added libltdl support.
6761 2000-01-15 Tom Tromey <tromey@cygnus.com>
6763 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6765 2000-01-14 Andrew Haley <aph@cygnus.com>
6767 * java/lang/natThrowable.cc: New file.
6769 * java/lang/Throwable.java (fillInStackTrace): Make native.
6770 (printStackTrace): Call native method to do this.
6771 (Throwable): Call fillInStackTrace.
6772 (stackTrace): New variable.
6774 * include/jvm.h: Add _Jv_ThisExecutable functions.
6776 * prims.cc: (_Jv_execName): New variable.
6777 (catch_segv): Call fillInStackTrace.
6779 (_Jv_ThisExecutable): New functions.
6780 (JvRunMain): Set the name of this executable.
6782 * Makefile.am: Add java/lang/natThrowable.cc.
6784 * Makefile.in: Rebuilt.
6786 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6788 * configure.in: Force link with __frame_state_for in
6789 FORCELIBGCCSPEC. Add new checks for backtrace.
6790 * include/config.h.in: Rebuilt.
6792 * name-finder.cc: New file.
6793 * include/name-finder.h: New file.
6795 2000-01-16 Anthony Green <green@cygnus.com>
6797 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6800 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6802 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6804 2000-01-13 Tom Tromey <tromey@cygnus.com>
6806 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6807 not system loader, as initiating loader.
6809 2000-01-11 Tom Tromey <tromey@cygnus.com>
6811 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6812 HP/UX. From David Scott Urban.
6814 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6816 * java/lang/natMath.cc (pow): Cast args to `double', not
6819 (IEEEremainder): Likewise.
6820 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6821 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6823 2000-01-09 Anthony Green <green@cygnus.com>
6825 * java/lang/natString.cc (init): Test for overflow condition
6826 during out of bounds check.
6827 (getChars): Throw StringIndexOutOfBoundsException, not
6828 ArrayIndexOutOfBoundsException.
6830 (regionMatches): Obey case option during string comparison.
6832 * configure.host (ligcj_interpreter): New variable. Enable
6833 interpreter by default on IA-32.
6834 * configure.in: Examine libgcj_interpreter.
6835 * configure: Rebuilt.
6837 2000-01-07 Tom Tromey <tromey@cygnus.com>
6839 * mauve-libgcj: Don't disable ClassTest.
6841 * java/lang/natClass.cc (getClasses): Wrote.
6843 2000-01-06 Tom Tromey <tromey@cygnus.com>
6845 * java/lang/natClass.cc (_getConstructors): Correctly check
6846 whether method name is the init name.
6847 (getMethod): Look at accflags on method in `klass', not `this'.
6849 2000-01-05 Tom Tromey <tromey@cygnus.com>
6851 * java/lang/natClass.cc (getMethod): Compute offset relative to
6852 `klass's methods table, not `this's table.
6854 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6855 In unwrapping/widening case, check whether `k' is null, not
6856 whether it is primitive. Initialize `num' from `argelts', not
6857 `paramelts'. Correct create and pass arguments to ffi_call.
6858 Don't let presence of `this' argument affect index used to look in
6860 (COPY): Set appropriate element in `values' vector.
6862 * java/lang/natClass.cc: Include <gcj/method.h>.
6864 * java/lang/Class.h (_getMethods): Correctly declare as private,
6867 * java/lang/Class.h (_getMethods): Declare.
6868 * java/lang/Class.java (_getMethods): Declare.
6869 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6870 (getDeclaredClasses): Always return empty array.
6871 (_getMethods): New method.
6872 (getMethods): Wrote.
6873 (getDeclaredMethod): Return `rmethod'.
6874 (finit_name): New global.
6875 (getDeclaredMethods): Check for finit_name.
6876 (_getMethods): Likewise.
6877 (getMethod): Only return public methods.
6879 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6880 jboolean and select correct ffi type on that basis.
6881 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6882 Constructor call always has `void' return type.
6884 2000-01-04 Tom Tromey <tromey@cygnus.com>
6886 * java/lang/Class.h (getSignature): Updated.
6887 * java/lang/Class.java (getSignature): Updated.
6888 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6890 (getConstructor): Ensure constructor is public.
6891 (_getConstructors): Check for public-ness of constructor when
6892 `declared' is false, not when it is true.
6894 2000-01-04 Warren Levy <warrenl@cygnus.com>
6896 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6898 (receive): Set the sender's address in the DatagramPacket.
6900 2000-01-04 Tom Tromey <tromey@cygnus.com>
6902 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6903 declaring class as return_type argument to
6904 _Jv_CallNonvirtualMethodA.
6905 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6906 constructor case, create object and use it as `this' argument.
6907 * java/lang/Class.h (_getConstructors): Declare.
6908 (_getFields): Declare.
6909 * java/lang/Class.java (getConstructors): Wrote.
6910 (_getConstructors): New native method.
6911 (getDeclaredConstructors): Wrote.
6912 (_getFields): Declare new native method.
6913 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6915 (getMethod): Work correctly when class is primitive.
6916 (getDeclaredMethods): Likewise. Compute offset using `method',
6918 (getDeclaredMethod): Likewise.
6919 (getConstructor): Wrote.
6920 (ConstructorClass): New define.
6921 (getDeclaredConstructor): Wrote.
6922 (_getConstructors): New method.
6923 (_getFields): New method.
6926 * Makefile.in: Rebuilt.
6927 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6929 * prims.cc: Remove `#pragma implementation'.
6930 * gcj/array.h: Remove `#pragma interface'.
6932 * prims.cc (_Jv_equaln): New function.
6933 * java/lang/Class.java (getSignature): Declare.
6934 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6935 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6937 (getSignature): New method.
6938 (getDeclaredMethod): Wrote.
6940 Include StringBuffer.h.
6941 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6942 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6944 (getSignature): Declare.
6945 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6946 (_Jv_equaln): Declare.
6947 (_Jv_CallNonvirtualMethodA): Declare.
6948 * Makefile.in: Rebuilt.
6949 * Makefile.am (nat_source_files): Added natConstructor.cc.
6950 (java/lang/reflect/Constructor.h): New target.
6951 * java/lang/reflect/natConstructor.cc: New file.
6952 * java/lang/reflect/Constructor.java (newInstance): Now native.
6953 (declaringClass): Renamed from decl_class.
6954 (offset): Renamed from index.
6955 (getType): New native method.
6956 (getModifiers): Now native.
6957 (getParameterTypes): Call getType if required.
6958 (hashCode): Include hash code from declaring class.
6959 (modifiers): Removed.
6960 (toString): Call getType if required.
6961 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6962 * java/lang/reflect/natMethod.cc (hack_call): New method.
6963 Removed `#if 0' around FFI code.
6964 Include <gnu/gcj/RawData.h>.
6965 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6966 IllegalArgumentException when argument object and class disagree.
6967 (_Jv_GetTypesFromSignature): New function.
6969 (ObjectClass): New define.
6970 (_Jv_CallNonvirtualMethodA): New function.
6971 * java/lang/reflect/Method.java (hack_trampoline): New method.
6972 (hack_call): New native method.