1 2001-07-30 Tom Tromey <tromey@redhat.com>
3 * java/lang/Integer.java: Merged with Classpath.
5 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7 * java/util/GregorianCalendar.java (GregorianCalendar): Call
8 setTimeInMillis() to set the default/current time.
10 2001-07-29 Mark Wielaard <mark@klomp.org>
12 * HACKING: add description on updating namespace
14 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16 * java/util/Calendar.java (set): Never recompute fields here. They
17 will already be set if someone set time explicitly, and it can cause
18 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
19 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
20 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
22 * java/text/SimpleDateFormat.java (defaultCentury): New field.
23 (readObject): Call set2DigitYearStart if appropriate so that
24 defaultCentury is calculated.
25 (SimpleDateFormat): Don't bother clearing calendar here. Call
26 computeCenturyStart().
27 (set2DigitYearStart): Calculate and set defaultCentury.
28 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
30 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
31 2 numeric digits, use the 80-20 heuristic to parse the value into a
32 default century based on defaultCenturyStart.
33 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
35 2001-07-25 Tom Tromey <tromey@redhat.com>
37 * Makefile.in: Rebuilt.
38 * Makefile.am (libgcj.jar): Correctly fail when bytecode
41 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43 * prims.cc (_JNI_OnLoad): New function.
45 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
47 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
49 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
50 Makefile.in: Regenerate.
52 2001-07-24 Tom Tromey <tromey@redhat.com>
54 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
57 2001-07-23 Tom Tromey <tromey@redhat.com>
59 * gcj/javaprims.h: Rebuilt class list.
60 * Makefile.in: Rebuilt.
61 * Makefile.am (core_java_source_files): Added VMClassLoader.
62 * java/lang/VMClassLoader.java: New file.
63 * java/lang/Boolean.java: Merged with Classpath.
64 * java/lang/Byte.java: Merged with Classpath.
65 * java/lang/Integer.java: Merged with Classpath.
66 * java/lang/Long.java: Merged with Classpath.
67 * java/lang/Number.java: Merged with Classpath.
68 * java/lang/Short.java: Merged with Classpath.
70 2001-07-22 Jeff Sturm <jsturm@one-point.com>
72 * configure.host: Enable hash synchronization for alpha*-*.
73 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
75 * java/lang/natObject.cc (compare_and_swap, release_set,
76 compare_and_swap_release): Added inline functions for alpha.
78 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
80 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
81 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
82 back to old RFC 2133 variants if missing.
84 2001-07-18 Tom Tromey <tromey@redhat.com>
86 * java/io/natFileWin32.cc (_access): Renamed.
88 * java/io/natFile.cc (_access): Renamed.
90 * java/io/File.java (access, stat): Add leading `_' to name.
93 2001-07-18 Tom Tromey <tromey@redhat.com>
96 * libgcj.spec.in (*lib): Added LIBICONV.
98 * configure.in: Call AM_ICONV. Don't check for iconv function.
99 Add parameters to JV_HASH_SYNCHRONIZATION define.
100 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
102 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
104 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
105 not by setting its size field.
107 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
109 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
112 2001-07-12 Tom Tromey <tromey@redhat.com>
113 David Brownell <david-b@pacbell.net>
115 Fix for PR libgcj/3426:
116 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
118 (read): Throw exception if character conversion fails.
119 * java/io/BufferedInputStream.java (refill): Now package-private.
120 * java/io/InputStreamReader.java (ready): Simplified.
121 (refill): New method.
124 2001-07-12 Tom Tromey <tromey@redhat.com>
126 Report from Henner Zeller:
127 * java/io/FileOutputStream.java (FileOutputStream): Throw
128 FileNotFoundException, not IOException.
130 2001-07-10 Anthony Green <green@redhat.com>
132 * Makefile.in: Rebuilt.
133 * Makefile.am: Add new files.
134 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
135 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
136 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
137 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
138 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
139 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
140 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
141 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
142 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
143 org/w3c/dom/ranges/DocumentRange.java,
144 org/w3c/dom/ranges/Range.java,
145 org/w3c/dom/ranges/RangeException.java,
146 org/w3c/dom/traversal/DocumentTraversal.java,
147 org/w3c/dom/traversal/NodeFilter.java,
148 org/w3c/dom/traversal/NodeIterator.java,
149 org/w3c/dom/traversal/TreeWalker.java,
150 org/xml/sax/ext/DeclHandler.java,
151 org/xml/sax/ext/LexicalHandler.java,
152 org/xml/sax/helpers/AttributeListImpl.java,
153 org/xml/sax/helpers/AttributesImpl.java,
154 org/xml/sax/helpers/DefaultHandler.java,
155 org/xml/sax/helpers/LocatorImpl.java,
156 org/xml/sax/helpers/NamespaceSupport.java,
157 org/xml/sax/helpers/ParserAdapter.java,
158 org/xml/sax/helpers/ParserFactory.java,
159 org/xml/sax/helpers/XMLFilterImpl.java,
160 org/xml/sax/helpers/XMLReaderAdapter.java,
161 org/xml/sax/helpers/XMLReaderFactory.java,
162 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
163 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
164 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
165 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
166 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
167 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
168 org/xml/sax/SAXNotRecognizedException.java,
169 org/xml/sax/SAXNotSupportedException.java,
170 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
171 org/xml/sax/XMLReader.java: New files.
173 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
175 * Makefile.am: Added `java/lang/ThreadLocal.java'.
176 * Makefile.in: Regenerate.
177 * java/lang/ThreadLocal.java: Initial import.
179 2001-07-07 Jeff Sturm <jsturm@one-point.com>
181 * Makefile.am (libgcj.jar): Don't recursively make
182 built_java_source_files. Avoid long command lines.
183 Don't change to $(srcdir) to invoke javac.
184 (libgcj.la, libgcjx.la); Avoid long command lines.
185 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
186 * Makefile.in: Rebuilt.
188 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
190 * include/i386-signal.h: Don't do anything with unsigned divide
191 overflow except throw an exception.
193 2001-07-05 Tom Tromey <tromey@redhat.com>
196 * java/lang/Class.h (Class(void)): Now private. Removed
197 implementation. From dmorsberger@sensysdl.com.
199 2001-07-02 Tom Tromey <tromey@redhat.com>
201 Fix for PR bootstrap/3281:
202 * aclocal.m4, configure: Rebuilt.
203 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
204 Correctly compute libgcj_basedir.
205 (mkinstalldirs): Define and subst.
207 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
210 * java/io/LineNumberReader.java (reset): Pass correct arguments to
213 2001-06-27 Tom Tromey <tromey@redhat.com>
215 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
218 2001-06-25 Tom Tromey <tromey@redhat.com>
220 * scripts/encodings.pl: Generate lower-case names. Updated URL
221 for `character-sets' file.
222 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
224 Rebuilt list of aliases.
226 2001-06-25 Tom Tromey <tromey@redhat.com>
228 * java/io/natFileDescriptorPosix.cc (open): Change error message
229 formatting. From David Brownell.
231 2001-06-21 Tom Tromey <tromey@redhat.com>
233 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
236 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
238 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
239 extraneous/malformed sign word.
241 2001-06-15 Tom Tromey <tromey@redhat.com>
243 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
245 2001-06-15 Tom Tromey <tromey@redhat.com>
247 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
248 NULL if no library on the list has the symbol.
249 (init): Call add_library on the program itself.
250 * prims.cc (JvRunMain): Initialize Runtime before searching for
252 (_Jv_RunMain): Likewise.
254 2001-06-15 Tom Tromey <tromey@redhat.com>
256 * jni.cc (ClassClass): Removed; updated all users.
257 (ObjectClass): Likewise.
258 (ThrowableClass): Likewise.
259 (MethodClass): Likewise.
260 (ThreadGroupClass): Likewise.
261 (local_ref_table): Renamed from `ref_table'.
262 (global_ref_table): New global.
263 (_Jv_JNI_Init): Initialize both ref tables.
264 (mark_for_gc): Added `ref_table' parameter.
265 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
267 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
268 (_Jv_JNI_DeleteGlobalRef): Likewise.
269 (_Jv_JNI_DeleteLocalRef): Likewise.
270 (_Jv_JNI_NewLocalRef): Likewise.
271 (_Jv_JNI_PopLocalFrame): Likewise.
272 (_Jv_JNI_GetStringChars): Likewise.
273 (_Jv_JNI_ReleaseStringChars): Likewise.
274 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
275 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
277 2001-06-14 Tom Tromey <tromey@redhat.com>
279 Fix for PR libgcj/3144:
280 * java/util/Date.java: Merged with Classpath.
282 2001-06-12 Tom Tromey <tromey@redhat.com>
284 * aclocal.m4, configure: Rebuilt.
285 * acinclude.m4: Find configure.host in srcdir.
287 2001-06-07 Tom Tromey <tromey@redhat.com>
289 Fix for PR libgcj/3059:
290 * java/lang/natSystem.cc (init_properties): Define `java.home'.
291 * Makefile.in: Rebuilt.
292 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
294 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
296 * exception.cc (cstdlib): Replaces stdlib.h.
297 (_Jv_Throw): Use std::abort().
298 (PERSONALITY_FUNCTION): Likewise.
300 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
302 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
303 nothing, as in autoconf 2.50.
304 * aclocal.m4, configure: Rebuilt.
306 2001-06-08 Tom Tromey <tromey@redhat.com>
308 * configure: Rebuilt.
309 * configure.in: Compute new aux dir using `pwd'.
311 2001-06-07 Tom Tromey <tromey@redhat.com>
313 For PR bootstrap/3075:
314 * configure, aclocal.m4, Makefile.am: Rebuilt.
315 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
316 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
317 relative to libgcj_basedir.
318 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
319 AC_CANONICAL_SYSTEM here.
320 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
322 ($(extra_headers)): New target.
324 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
325 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
327 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
328 table index is within allowed bounds. Ensure that we dont try to access
329 class itable at a negative offset. Avoid an ancestor table lookup if
330 source is a primitive type class.
331 (isInstance): Remove redundant isPrimitive() check.
333 2001-06-04 Tom Tromey <tromey@redhat.com>
335 * java/security/PublicKey.java: Extend Key.
336 * java/security/PrivateKey.java: Extend Key.
338 2001-06-02 Anthony Green <green@redhat.com>
340 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
341 alternate when USE_LTDL not defined.
343 2001-06-02 Anthony Green <green@redhat.com>
345 * configure: Rebuild.
346 * configure.in: Remove data_start hack.
347 * libgcj.spec.in: Ditto.
348 * Makefile.in: Rebuild.
349 * Makefile.am: Ditto.
350 * libgcjdata.c: Remove.
352 2001-06-02 Anthony Green <green@redhat.com>
354 * configure: Rebuild.
355 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
356 --without-libffi option. Tweak --disable-java-net processing.
357 * Makefile.in: Rebuild.
358 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
359 * include/config.h.in: Rebuild.
360 * acconfig.h (USE_LIBFFI): Define.
361 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
363 2001-06-02 Anthony Green <green@redhat.com>
365 * configure: Rebuilt.
366 * configure.in: Test for sigaction on native builds.
367 * prims.cc: Check HAVE_SIGACTION.
368 * include/config.h.in: Rebuilt.
370 2001-05-31 Jeff Sturm <jsturm@one-point.com>
372 * natFile.cc (get_entry): Removed functions.
373 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
374 Allocate enough storage for d_name if using readdir_r.
376 2001-05-31 Tom Tromey <tromey@redhat.com>
378 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
380 (write): Loop until write completes. From Corey Minyard.
382 2001-05-29 Laurent Guerby <guerby@acm.org>
384 * java/awt/geom/Rectangle2D.java: fix doc typo.
386 2001-05-31 Tom Tromey <tromey@redhat.com>
388 * java/sql/DriverManager.java (getDrivers): Handle case where
389 driver's class loader is null. From Corey Minyard.
391 2001-05-29 Tom Tromey <tromey@redhat.com>
393 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
395 * configure: Rebuilt.
396 * configure.in: Only add multilib support code if we just rebuilt
399 2001-05-29 Andrew Haley <aph@redhat.com>
401 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
402 pointer: the dwarf unwinder in libgcc will do everything that's
404 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
405 more than we absolutely need to.
406 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
407 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
409 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
411 * configure: Rebuilt.
412 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
414 (SIGNAL_HANDLER): Use siginfo style handler.
415 (INIT_SEGV): Likewise.
416 (INIT_FPE): Likewise.
417 * include/ppc-signal.h: Delete whole file.
419 2001-05-24 Tom Tromey <tromey@redhat.com>
421 * java/lang/natString.cc (init): Throw
422 ArrayIndexOutOfBoundsException.
423 (getChars): Likewise.
424 (getBytes): Likewise.
427 * configure.in: Only allow hash synchronization when POSIX threads
429 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
432 2001-05-23 Tom Tromey <tromey@redhat.com>
434 * Makefile.in: Rebuilt.
435 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
437 Revert patch of 2001-05-21:
438 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
439 (libgcj_la_LIBADD): Likewise.
440 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
441 (libgcjx_la_LIBADD): Likewise.
443 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
444 * gcj/Makefile.in: Rebuilt.
445 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
446 * gcj/javaprims.h: Include gcj/libgcj-config.h.
447 * gcj/libgcj-config.h.in: New file.
448 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
449 * configure: Rebuilt.
450 * configure.in: Enable hash synchronization by default on some
452 (HASH_SYNC_SPEC): New subst.
453 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
454 Correctly use `test -z' instead of `test -n' in a couple places.
455 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
457 * configure.host (enable_java_net_default): Initialize.
458 (enable_hash_synchronization_default): New variable.
460 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
462 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
463 synchronization in use.
464 (_Jv_MarkArray): Likewise.
465 (_Jv_AllocBytes): Don't check return result.
466 (handle_out_of_memory): New function.
467 (_Jv_InitGC): Set GC_oom_fn.
468 (trace_one_vtable): New global.
469 (_Jv_AllocTraceOne): New function.
470 * configure.in: Added --enable-hash-synchronization.
471 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
472 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
473 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
474 (_Jv_AllocArray): Likewise.
475 (_Jv_AllocBytes): Likewise.
476 (_Jv_AllocPtrFreeObject): New function.
477 (_Jv_AllocTraceOne): Likewise.
478 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
480 (self_cache): New global.
481 (_Jv_ThreadSelf_out_of_line): New function.
482 * prims.cc (_Jv_AllocBytesChecked): Removed.
483 (_Jv_ThrowNoMemory): New function.
484 (_Jv_AllocObject): Don't check for null return from allocator.
485 (_Jv_NewObjectArray): Likewise.
486 (_Jv_AllocPtrFreeObject): New function.
487 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
488 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
489 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
490 * include/boehm-gc.h (_Jv_AllocObj): Define.
491 (_Jv_AllocPtrFreeObj): Define.
492 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
493 (_Jv_ThrowNoMemory): Declare.
494 (_Jv_AllocTraceOne): Declare.
495 (_Jv_AllocBytesChecked): Removed.
496 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
497 _Jv_MutexUnlock): Handle LOCK_DEBUG.
498 (_Jv_ThreadSelf): Handle case where system pthread_self() is
500 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
502 * java/lang/Object.h (sync_info): Conditional upon presence of
503 hash synchronization.
504 * java/lang/natObject.cc: Much new code to handle thin locks and
505 hash synchronization.
506 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
509 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
511 * gij.cc (version): Update copyright year.
513 2001-05-22 Anthony Green <green@redhat.com>
515 * configure.in: Tweak canadian cross test, and don't redefine GCJ
518 2001-05-21 Per Bothner <per@bothner.com>
520 Implement invocation interface; don't create new thread for main.
521 * java/lang/Thread.java (gen_name): Make native.
522 (<init>(Thread,THreadGroup,Runnable,String)): New private
523 constructor, used by other constructors, and _Jv_AttachCurrentThread.
524 * java/lang/natThread.cc (gen_name): New implementation.
525 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
526 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
527 (_Jv_CreateJavaVM): New runtime initialization procedure.
528 (runFirst): New proecdure - mostly code from old FirstThread::run.
529 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
530 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
531 JvDetachCurrentThread): New inline wrappers.
532 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
533 _Jv_DetachCurrentThread): New declarations.
534 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
535 (getMain): new static method.
536 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
537 by runFirst in prims.cc.
538 (java/lang/Thread.h): Update for new invocation interface.
539 * include/posix-threads.h (_Jv_ThreadRegister,
540 _Jv_ThreadUnRegister): New declarations.
541 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
542 (really_start): Use new _Jv_ThreadRegister.
543 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
544 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
545 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
546 Complain of called when _Jv_OnlyThread already set.
547 (_Jv_ThreadStart): Always JvFail.
548 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
549 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
550 * win32-threads.cc (struct starter): Remove objet field -
551 we use _Jv_Thread_t's new thread_obj field instead.
552 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
553 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
554 (really_start): Use new _Jv_ThreadRegister.
555 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
556 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
557 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
558 Removed - no longer needed with new invocation interface.
559 * Makefile.am: Update for removed/added files.
561 2001-05-21 Per Bothner <per@bothner.com>
563 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
564 (libgcj_la_LIBADD): Likewise.
565 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
567 2001-05-21 Per Bothner <per@bothner.com>
569 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
570 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
571 taken from old Integer.toString code.
572 (Integer::valueOf): Use _Jv_FormatInt.
573 * java/lang/Integer.java (toString): Just use call String.valueOf.
574 * java/lang/Long.java (toString): Fix typo in comment.
575 * java/lang/String.java (valueOf(int)): Make native.
576 * java/lang/StringBuffer.java (append(int)): Make native.
577 * java/lang/natStringBuffer.cc: New file, for append(jint).
578 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
580 2001-05-21 Tom Tromey <tromey@redhat.com>
582 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
584 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
586 * include/dwarf2-signal.h: New file.
587 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
588 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
589 * configure: Rebuilt.
591 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
593 * configure.in: Update boehm-gc include dir for new GC version.
594 * configure: Rebuilt.
595 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
597 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
598 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
599 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
602 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
604 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
605 (_Jv_MutexInit): Likewise.
607 2001-05-18 Tom Tromey <tromey@redhat.com>
609 * Makefile.in: Rebuilt.
610 * Makefile.am (awt_java_source_files): Added Polygon.java.
612 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
614 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
615 * gcj/javaprims.h: ... here.
616 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
618 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
620 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
621 with length of ioffset table.
622 (_Jv_IsAssignableFrom): Likewise.
624 2001-05-17 Per Bothner <per@bothner.com>
626 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
628 2001-05-16 Tom Tromey <tromey@redhat.com>
630 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
633 2001-05-15 Tom Tromey <tromey@redhat.com>
635 * java/util/GregorianCalendar.java (computeTime): Only call
638 2001-05-14 Tom Tromey <tromey@redhat.com>
640 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
641 ZONE_OFFSET just before computing the time.
643 2001-05-12 Zack Weinberg <zackw@stanford.edu>
645 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
646 * Makefile.in: Regenerate (by hand).
647 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
648 * doc/cni.sgml: Document #pragma GCC java_exceptions.
650 2001-05-11 Richard Henderson <rth@redhat.com>
652 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
653 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
655 2001-05-11 Richard Henderson <rth@redhat.com>
657 * exception.cc: Include unwind-pe.h. Remove all pointer
660 2001-05-10 Tom Tromey <tromey@redhat.com>
662 * Makefile.in: Rebuilt.
663 * Makefile.am (awt_java_source_files): Added Polygon.java.
664 * java/awt/Polygon.java: New file.
666 * java/awt/geom/AffineTransform.java
667 (setToRotation(double,double,double)): New method.
668 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
669 (setToShear): Likewise.
671 2001-05-10 Tom Tromey <tromey@redhat.com>
673 * java/util/GregorianCalendar.java: Imported from Classpath.
674 * gnu/java/locale/LocaleInformation_nl.java: New file from
676 * gnu/java/locale/LocaleInformation_en.java: Likewise.
677 * gnu/java/locale/LocaleInformation_de.java: Likewise.
678 * gnu/java/locale/LocaleInformation.java: Likewise.
679 * natGregorianCalendar.cc: Removed.
680 * Makefile.in: Rebuilt.
681 * Makefile.am (nat_source_files): Removed
682 natGregorianCalendar.cc.
684 2001-05-10 Tom Tromey <tromey@redhat.com>
686 * java/text/SimpleDateFormat.java (computeCenturyStart): New
688 (defaultCenturyStart): Use it.
689 (readObject): Likewise.
690 (SimpleDateFormat): Clear the calendar. Set the grouping on the
692 (parse): Copy the calendar before modifying it. Correctly handle
695 * java/util/Calendar.java (clear): Set field value(s) to 0.
697 2001-05-10 Jeff Sturm <jsturm@one-point.com>
699 * Calendar.java (get): Clear areFieldsSet if requested field
701 (set): Unset fields that depend on new value.
703 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
705 * java/lang/Class.h (_Jv_Self): New union type.
706 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
707 Jeff Sturm and Fergus Henderson.
709 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
711 * java/lang/ClassLoader.java: Remove dead code fragment.
713 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
715 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
717 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
719 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
721 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
722 * configure.host (EXCEPTIONSPEC): New.
723 * configure.in (EXCEPTIONSPEC): New.
724 * configure: Rebuilt.
726 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
728 * doc/*.texi: Remove generated documentation.
730 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
732 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
733 (performDelete): Fix #endif placement.
735 2001-04-27 Zack Weinberg <zackw@stanford.edu>
737 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
738 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
739 (_Jv_ThreadDestroyData): Use _Jv_Free.
740 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
743 2001-04-27 Tom Tromey <tromey@redhat.com>
745 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
747 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
749 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
751 * include/jni.h (struct JNINativeInterface): Fixed types in
752 Get/Set*ArrayRegion declarations.
753 (class _Jv_JNIEnv): Likewise.
755 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
757 * configure.in: Obtain THREADS with `gcc -v'.
758 * configure: Rebuilt.
760 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
763 * java/io/ObjectStreamClass.java (setClass): Calculate
764 serialVersionUID for local class and compare it against the UID
765 from the Object Stream. Throw InvalidClassException upon mismatch.
766 (setUID): Renamed to...
767 (getClassUID): this. Return the calculated class UID rather than
768 setting uid field directly.
769 (getDefinedSUID): Removed.
770 * java/io/ObjectInputStream.java (resolveClass): Use the
771 three-argument Class.forName().
772 * java/io/InvalidClassException (toString): Don't include classname in
773 result if it is null.
775 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
777 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
778 Wrap use of inet_pton in HAVE_INET6.
780 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
782 java.security merge and ClassLoader compliance fixes.
784 * java/lang/Class.h (Class): Include ProtectionDomain.h.
785 New protectionDomain field.
786 (forName): Add initialize parameter. Fixes declaration to comply with
788 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
789 variant. Honour "initialize" flag.
790 (getProtectionDomain0): New method.
791 * java/lang/Class.java: Fix forName() declaration.
792 (getPackage): New method based on Classpath implementation.
793 (getProtectionDomain0): New native method decl.
794 (getProtectionDomain): New method.
795 * java/lang/ClassLoader.java (getParent): Now final.
796 (definedPackages): New field.
798 (defineClass): New variant with protectionDomain argument.
799 (definePackage): New.
801 (findSystemClass): Now final.
802 (getSystemResourceAsStream): Remove redundant "final" modifier.
803 (getSystemResource): Remove redundant "final" modifier.
804 (getResources): Now final.
805 (protectionDomainPermission): New static field.
806 (unknownProtectionDomain): Ditto.
807 (defaultProtectionDomain): Ditto.
808 (getSystemClassLoader): Now non-native.
809 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
810 arguments for Class.forName().
811 * java/lang/Package.java: New file.
812 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
813 (instance): Static initialize singleton.
814 (findClass): Override this, not findSystemClass.
815 * java/lang/natClassLoader.cc (defineClass0): Set class's
816 protectionDomain field as specified.
817 (getSystemClassLoader): Removed.
818 (findClass): Renamed from findSystemClass. Call the interpreter via
819 URLClassLoader.findClass if loading class via dlopen fails.
821 * java/security/*.java: java.security import/merge with Classpath.
822 * java/security/acl/*.java: Likewise.
823 * java/security/interfaces/*.java: Likewise.
824 * java/security/spec/*.java: Likewise.
825 * java/net/NetPermission.java: Likewise.
826 * java/net/SocketPermission.java: Likewise.
827 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
829 * Makefile.am: Add new classes.
830 * Makefile.in: Rebuilt.
831 * gcj/javaprims.h: CNI namespace rebuild.
833 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
835 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
836 for libtool tests. Pre-create gnu/classpath/Configuration.java.
837 * configure: Rebuilt.
839 2001-04-21 Tom Tromey <tromey@redhat.com>
841 * Makefile.in: Rebuilt.
842 * Makefile.am (awt_java_source_files): Added Line2D.java.
843 * java/awt/geom/Line2D.java: Wrote.
845 * java/awt/Menu.java (addNotify): Wrote.
847 * java/awt/PopupMenu.java (addNotify): Implemented.
850 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
851 * java/awt/List.java (addNotify): Call super.addNotify.
852 * java/awt/Label.java (addNotify): Call super.addNotify.
853 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
854 * java/awt/Dialog.java (addNotify): Call super.addNotify.
855 * java/awt/Choice.java (addNotify): Call super.addNotify.
856 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
857 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
859 * java/awt/List.java (replaceItem): Notify peer.
861 * java/awt/geom/Rectangle2D.java
862 (Float.setRect(float,float,float,float)): New method.
864 * java/awt/event/ContainerEvent.java (getContainer): Now returns
867 * java/awt/RenderingHints.java (Key): Class now public.
869 * java/awt/Rectangle.java (Rectangle): Now implements
871 (getPathIterator): Removed.
873 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
876 * java/awt/FileDialog.java: Wrote.
878 * java/awt/EventQueue.java (isDispatchThread): Now public.
879 (invokeLater): Likewise.
881 * java/awt/Component.java (setCursor): Update peer.
882 (getFontMetrics): Use peer.
884 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
887 2001-04-20 Tom Tromey <tromey@redhat.com>
889 * java/awt/List.java: Wrote.
890 * java/awt/Dialog.java: Wrote.
892 2001-04-20 Warren Levy <warrenl@redhat.com>
894 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
895 * java/text/SimpleDateFormat.java
896 (indexInArray): Removed private method.
897 (processYear): Removed private method.
898 (parseLenient): Removed private method.
899 (parseLeadingZeros): Removed private method.
900 (parseStrict): Removed private method.
901 (expect): Added new private method.
902 (parse): Reverted to pre-Classpath merge version with minor fixes.
903 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
906 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
908 * java/io/File.java (normalizePath): New private method.
909 (File (String)): Use normalizePath().
910 (File (String, String)): Likewise.
912 * Makefile.am (libffi_files): Removed.
913 (libgcj.la): Link libffi as a convenience library instead of
914 refering to its object files directly.
915 * Makefile.in: Rebuilt.
917 2001-04-08 Per Bothner <per@bothner.com>
919 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
920 Recalculate hash, since Utf8Const's hash is only 16 bits.
922 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
923 bits of hash to calculate step for chaining.
925 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
926 when 2/3 full, rather than 3/4 full.
928 2001-04-06 Tom Tromey <tromey@redhat.com>
930 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
931 (wrap_value<T*>): New specialization.
932 (_Jv_JNI_PopLocalFrame): Update env->locals.
934 2001-04-05 Tom Tromey <tromey@redhat.com>
936 * libtool-version: Updated current.
938 2001-04-04 Andreas Jaeger <aj@suse.de>
940 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
941 * gcj/Makefile.in: Rebuilt.
942 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
943 * Makefile.in: Rebuilt.
944 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
945 * testsuite/Makefile.in: Rebuild.
946 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
947 * include/Makefile.in: Rebuild.
949 2001-04-02 Zack Weinberg <zackw@stanford.edu>
951 * testsuite/lib/libjava.exp: Correct typo: 'output from source
952 compiled test', not 'execution from source compiled test'.
953 Use UNTESTED, not XFAIL, for tests which are not run because
954 they depend on a previous test which failed.
956 2001-04-02 Richard Henderson <rth@redhat.com>
958 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
959 the same tree as gcc.
960 * configure: Rebuilt.
962 * exception.cc (_Jv_Throw): Clarify commentary.
964 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
966 * jni.cc (wrap_value<jclass>): New specialization.
968 2001-04-02 Tom Tromey <tromey@redhat.com>
970 * java/io/PrintStream.java (out): Removed field. Fixes PR
972 (write): Call flush, not out.flush, per spec.
973 (close): Flush output stream, per spec. Handle
974 InterruptedIOException.
975 (checkError): Likewise.
976 (flush, print, write): Handle InterruptedIOException per spec.
977 (PrintStream): Don't create BufferedOutputStream.
978 (work_bytes): New field.
979 (writeChars): Use work_bytes. Don't assume `out' is a
980 BufferedOutputStream.
982 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
984 * java/text/MessageFormat.java (setLocale): Added missing `else'.
987 2001-03-30 Tom Tromey <tromey@redhat.com>
989 * jni.cc (add_char): Correctly encode non-ascii characters.
990 (add_char): Define even when INTERPRETER not defined.
991 (mangled_name): Likewise.
992 (_Jv_GetJNIEnvNewFrame): Likewise.
993 (_Jv_LookupJNIMethod): Likewise.
995 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
997 * configure.host: Enable interpreter for PPC.
999 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1001 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1002 to "file.separator", "path.separator", and "java.io.tmpdir" property
1004 * java/io/File.java: Likewise.
1005 * java/io/natFile.cc (init_native): Likewise.
1006 * java/io/natFileWin32.cc (init_native): Likewise.
1008 2001-04-01 Per Bothner <per@bothner.com>
1010 * java/lang/natString.cc (intern): If string's data does not point to
1011 this String, make a fresh String that does.
1013 * java/lang/natString.cc (unintern): Replace by static function.
1014 * java/lang/String.java (unintern): Remove method.
1016 2001-04-01 Per Bothner <per@bothner.com>
1018 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1019 (finish): def.deflate needs to be called in a loop.
1020 (inbuf, inbufLength): New private fields.
1021 (write(int)): Use inbuf.
1022 (write(byte[],int,int): Check if pending output in inbuf.
1023 * ZipOutputStream.java: Don't use Deflater if stored.
1024 Use a Checksum object directly, not via a CheckedOutputStream.
1025 (uncompressed_size): New field,
1026 (closeEntry): Only write data_directory if needed.
1027 (write): If STORED, write directly.
1028 Always update crc, and uncompressed_size.
1029 (write_entry): Fix lots of protocol erors.
1031 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1033 1.3-Compliant Implementation of java.io.File.
1034 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1035 "path.separator", and "java.io.tmpdir" from the File class, instead
1036 of setting them explicitly.
1037 * java/io/File.java: Do not canonicalize paths for security manager
1038 checks. Call init_native() from static initializer. Do not pass path
1039 argument to native methods. New native method declarations. Some
1040 security manager checks moved to checkWrite().
1041 (equals): Check file system case sensitivity and act appropriatly.
1042 (hashCode): Likewise.
1043 (isHidden): New method implemented.
1044 (performList): Changed prototype. Now takes a class argument specifying
1045 the class of the returned array: Strings or File objects. Also added
1046 FileFilter argument.
1047 (listFiles): New variants with "File" return type implemented.
1048 (createTempFile): Use createNewFile(). Use maxPathLen.
1049 (setReadOnly): New method implemented.
1050 (listRoots): Likewise.
1051 (compareTo): Likewise.
1052 (setLastModified): Likewise.
1053 (checkWrite): New method.
1055 * java/io/natFile.cc: Various functions no longer take canonical path
1057 (stat): Handle ISHIDDEN query.
1058 (isAbsolute): Remove WIN32 cruft.
1059 (performList): New arguments. Handle returning either File[] or String[]
1060 arrays. Check with FileFilter or FilenameFilter arguments as
1061 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1062 (performSetReadOnly): New method implemented.
1063 (performListRoots): Likewise.
1064 (performSetLastModified): Likewise.
1065 (performCreate): Likewise.
1066 (init_native): New initialization function.
1067 * java/io/natFileWin32.cc: Various functions no longer take canonical
1069 (stat): Add FIXME about ISHIDDEN query.
1070 (performList): New arguments. Handle returning either File[] or String[]
1071 arrays. Check with FileFilter or FilenameFilter arguments as
1072 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1073 (performSetReadOnly): New. Stubbed.
1074 (performListRoots): Likewise.
1075 (performSetLastModified): Likewise.
1076 (performCreate): Likewise.
1077 (init_native) New initialization function.
1078 * configure.in: Check for utime() and chmod().
1079 * configure: Rebuilt.
1080 * include/config.h.in: Rebuilt.
1082 Resolves PR libgcj/1759.
1084 2001-03-28 Richard Henderson <rth@redhat.com>
1086 IA-64 ABI Exception Handling:
1087 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1088 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1089 Remove EXCEPTIONSPEC.
1090 * configure.host (libgcj_sjlj): Remove.
1091 * configure.in (EXCEPTIONSPEC): Remove.
1092 (enable-sjlj-exceptions): Detect if not specified.
1093 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1094 what header we're looking for.
1095 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1096 * Makefile.in, configure: Regenerate.
1097 * exception.cc: Don't declare libgcc2 stuff.
1098 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1099 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1100 (win32_get_restart_frame): Remove.
1101 (struct java_exception_header): New.
1102 (__gcj_exception_class): New.
1103 (get_exception_header_from_ue): New.
1104 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1105 (size_of_encoded_value, read_encoded_value): New.
1106 (read_uleb128, read_sleb128, parse_lsda_header): New.
1107 (get_ttype_entry, __gcj_personality_sj0): New.
1108 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1110 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1112 * javax/naming/InitialContext.java (init): Fix typo.
1113 (composeName): Remove unnecessary semicolon.
1114 (addToEnvironment): Remove unnecessary semicolon.
1115 (addToEnvironment): Use put() instead of add().
1117 * javax/naming/InitialContext.java (InitialContext):
1119 (destroySubcontext): Method doesn't return a result.
1120 * javax/naming/Context.java: Import java.util.Hashtable.
1121 * javax/naming/Name.java: Import java.util.Enumeration.
1123 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1125 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1126 objects in subdirectories.
1127 * Makefile.in: Rebuilt.
1129 2001-03-25 Richard Henderson <rth@redhat.com>
1131 * exception.cc (java_eh_info): Make value type jthrowable.
1132 (_Jv_type_matcher): Remove now unneeded cast.
1133 (_Jv_Throw): Make argument type jthrowable. Munge name
1134 for SJLJ_EXCEPTIONS here ...
1135 * gcj/cni.h: ... not here.
1137 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1139 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1140 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1141 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1142 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1143 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1144 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1145 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1146 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1147 java/lang/natDouble.cc, java/lang/natObject.cc,
1148 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1149 java/lang/natString.cc, java/lang/natSystem.cc,
1150 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1151 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1152 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1153 java/util/zip/natInflater.cc:
1154 Use throw, not JvThrow or _Jv_Throw.
1156 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1158 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1159 paramater, bump it to 1.
1160 * java/util/Hashtable.java (Hashtable): Likewise.
1162 2001-03-23 Per Bothner <per@bothner.com>
1164 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1165 check for errors, since we don't want to throw exception on
1166 overflow/underflow. Instead, trim whitespace, and then check that
1167 _strtod_r uses up all the rest of the string.
1169 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1170 ancestors array is invalid for interfaces, so do that *after*
1171 check that the target type is not an interface.
1173 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1175 * prims.cc (_Jv_FindClassFromSignature): Check return of
1176 recursive call. Do not abort on invalid signature; return NULL
1179 2001-03-22 Tom Tromey <tromey@redhat.com>
1181 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1182 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1184 * include/jvm.h (_Jv_ResolveField): Declare.
1185 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1186 * resolve.cc (_Jv_ResolveField): No longer conditional on
1189 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1191 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1192 for libtool hacking.
1193 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1194 to a temporary file, then invoke libtool with the -objectlist
1196 (libgcjx.la): Likewise.
1197 * Makefile.in: Rebuilt.
1199 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1201 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1203 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1205 * jni.cc (add_char): Handle `.' like `/'.
1207 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1209 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1210 initialize if exception_types is null.
1211 * java/lang/reflect/Constructor.java: Likewise.
1212 * java/lang/reflect/natConstructor.cc (getType): Initialize
1213 exception_types to an empty Object array.
1215 2001-03-21 Tom Tromey <tromey@redhat.com>
1217 * configure: Rebuilt.
1218 * configure.in (GCJFLAGS): Subst.
1219 * Makefile.in: Rebuilt.
1220 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1221 (gij_LDFLAGS): Likewise.
1222 (JC1FLAGS): Added GCJFLAGS and removed -g.
1224 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1225 read/write case. Fixes PR libgcj/2338.
1227 2001-03-20 Warren Levy <warrenl@redhat.com>
1229 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1230 and corrected SimpleTimeZone's for the timezones hash table.
1232 2001-03-19 Per Bothner <per@bothner.com>
1234 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1235 "canonicalize" "../../xxx" to "/xxx".
1237 2001-03-19 Mark Wielaard <mark@klomp.org>
1239 * java/util/ArrayList.java: Remove RCS keywords from comments
1240 * java/util/BasicMapEntry.java: idem
1241 * java/util/Dictionary.java: idem
1242 * java/util/HashSet.java: idem
1244 * java/util/EventObject.java: reindent
1245 * java/util/Properties.java: idem
1246 * java/util/SortedMap.java: idem
1248 * java/util/Enumeration.java: Merge with Classpath
1249 * java/util/EventListener.java: idem
1250 * java/util/Observable.java: idem
1251 * java/util/Observer.java: idem
1252 * java/util/Stack.java: idem
1254 2001-03-17 Tom Tromey <tromey@redhat.com>
1256 * java/lang/natString.cc (rehash): Don't bother with memset;
1257 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1259 (UNMASK_PTR): New macro.
1260 (intern): Unmask pointer before returning it. Register finalizer
1262 (unintern): Handle case where
1263 (MASK_PTR): New macro.
1264 (PTR_MAKSED): Likewise.
1265 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1267 2001-03-01 Andrew Haley <aph@redhat.com>
1269 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1270 stackTrace buffer to a correctly aligned pointer array.
1272 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1274 * java/lang/Runtime.java (_exit): Declare new package-private native.
1275 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1276 without a security manager check.
1277 (exit): Call _exit after security check.
1278 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1280 * java/lang/System.java (setSecurityManager): If a security manager
1281 is already in place, call checkPermission.
1282 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1283 throws an exception, try to deal with it gracefully.
1284 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1285 Only try to print the subordinate stack trace if "exception" is set.
1286 Print our class name first.
1288 2001-03-08 Tom Tromey <tromey@redhat.com>
1290 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1291 info for array classes.
1292 Fixes PR libgcj/1971.
1294 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1296 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1299 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1301 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1302 instead of the new JDK1.2 API. This is simpler and makes
1303 back-porting the classes to JDK1.1 trivial.
1304 (readObject): likewise.
1306 2001-03-01 Per Bothner <per@bothner.com>
1308 Changes merged from Kawa's gnu.math.
1309 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1310 (rshift(int[],int[],int,int): Removed - not needed.
1311 (gcd): Use rshift0 rather than rshift.
1312 * java/math/BigInteger.java (setShiftRight): Likewise.
1313 (divide): Simplify by using rshift0.
1314 (divide): Zero-extend results if high-order bit set.
1316 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1318 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1321 2001-02-23 Per Bothner <per@bothner.com>
1323 Change to sometimes include class name in ClassFormatError message.
1324 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1325 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1326 boolean instead of throwing ClassFormatError on failure.
1327 (throw_class_format_error): Change static function to method.
1328 (_Jv_ClassReader): New inline methods verify_identifier,
1329 two overloads of verify_classname, verify_field_signature, and
1330 verify_method_signature
1331 * include/java-interp.h: Update declarations to return bool.
1332 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1333 ClassFormatError since _Jv_VerifyClassName now returns bool.
1335 2001-02-23 Per Bothner <per@bothner.com>
1337 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1338 c++filt to select java-style output.
1340 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1342 Fix for PR java/2040:
1343 * java/util/HashMap.java (HashMap): Don't throw exception for
1344 loadFactor > 1. Add exception messages.
1345 * java/util/Hashtable.java (Hashtable): Likewise.
1347 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1349 Disable libgcjx by default.
1350 * configure.in: Add support for --enable-java-awt configure option.
1351 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1352 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1353 * Makefile.in: Rebuilt.
1354 * configure: Rebuilt.
1356 2001-02-20 Tom Tromey <tromey@redhat.com>
1358 * java/io/PipedWriter.java (flush): Throw exception if stream
1360 * java/io/OutputStreamWriter.java (write): Throw exception if
1362 (writeChars): Don't throw exception if stream closed.
1363 * java/io/CharArrayWriter.java (closed): New field.
1365 (flush): Throw exception if stream closed.
1366 (reset): Synchronize on correct lock. Allow stream to be
1368 (toCharArray, toString, writeTo): Synchronize.
1369 (write): Throwe exception if stream closed.
1370 * java/io/BufferedWriter.java (close): Clear `buffer'.
1371 (flush): Throw IOException if stream is closed.
1374 2001-02-16 Tom Tromey <tromey@cygnus.com>
1376 * java/lang/ThreadGroup.java (activeCount): Only include threads
1378 (enumerate): Likewise.
1380 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1382 * java/lang/Integer.java (getInteger): Return default argument if
1383 property is not set. Don't call decode with null argument.
1384 * java/lang/Long.java (getLong): Likewise.
1386 * java/io/CharArrayReader.java (CharArrayReader): Throw
1387 IllegalArgumentException if constructor arguments are illegal.
1388 (ready): Return false if no more characters can be read.
1389 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1391 2001-02-17 Mark Wielaard <mark@klomp.org>
1393 * java/util/TimerTask.java: New version from Classpath.
1395 2001-02-17 Mark Wielaard <mark@klomp.org>
1397 Remerge with Classpath
1398 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1399 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1400 (readByte): Use convertToByte().
1401 (readChar): Use convertToChar().
1402 (readInt): Use convertToInt().
1403 (readLong): Use convertToLong().
1404 (readShort): Use convertToShort().
1405 (readUnsignedByte): Use convertToUnsignedByte().
1406 (readUnsignedShort): Use convertToUnsignedShort().
1407 (readUTF): Use convertToUTF().
1409 (convertToBoolean): Resurrected.
1410 (convertToByte): Ditto.
1411 (convertToChar): Ditto.
1412 (convertToInt): Ditto.
1413 (convertToLong): Ditto.
1414 (convertToShort): Ditto.
1415 (convertToUnsignedByte): Ditto.
1416 (convertToUnsignedShort): Ditto.
1417 (convertToUTF): Ditto.
1419 2001-02-17 Mark Wielaard <mark@klomp.org>
1423 2001-02-17 Mark Wielaard <mark@klomp.org>
1425 * java/io/DataInputStream.java: update copyright notice
1426 * java/io/PrintWriter.java: idem
1427 * java/io/Reader.java: idem
1428 * java/io/StreamTokenizer.java: idem
1429 * java/io/StringReader.java: idem
1430 * java/lang/reflect/ReflectPermission.java: idem
1432 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1434 * java/util/TreeSet.java (clone): Made subclass safe, use
1435 super.clone(), not new.
1436 * java/util/TreeMap.java (clone): Likewise.
1438 * java/util/TreeMap.java (nil): Made non-final.
1439 (clone): Create new nil node for copy.
1441 * java/util/HashSet.java (clone): Made subclass safe, use
1442 super.clone(), not new.
1444 2001-02-14 Andrew Haley <aph@redhat.com>
1446 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1449 2001-02-15 Anthony Green <green@redhat.com>
1451 * defineclass.cc: Don't include alloca.h.
1452 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1453 * interpret.cc (run_normal): Ditto.
1455 * java/lang/natDouble.cc (parseDouble): Ditto.
1457 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1459 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1461 * java/util/Collections.java (ReverseComparator): New static class.
1462 (reverseOrder): Return static instance of ReverseComparator.
1464 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1465 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1466 Rectangle.clone(), not Object.clone().
1468 * java/util/HashSet.java (clone): Remove try/catch.
1470 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1471 * java/util/Collection.java: Likewise.
1472 * java/util/Comparator.java: Likewise.
1473 * java/util/Dictionary.java: Likewise.
1474 * java/util/Iterator.java: Likewise.
1475 * java/util/ListIterator.java: Likewise.
1476 * java/util/Map.java: Likewise.
1477 * java/util/Set.java: Likewise.
1479 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1481 * java/util/TreeMap.java: New file.
1482 * java/util/TreeSet.java: New file.
1483 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1484 * Makefile.in: Rebuilt.
1485 * java/util/HashSet.java (clone): Use constructor instead of calling
1487 * java/util/SortedSet.java: Sync with classpath.
1488 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1491 * java/lang/natClass.cc (getSignature): Don't try to dereference
1492 param_types if it is null. Instead, take this to mean "no parameters".
1493 * java/lang/TreeMap.java (TreeIterator.next): Throw
1494 NoSuchElementException in preference to ConcurrentModificationException.
1495 (TreeIterator.remove): Throw IllegalStateException in preference to
1496 ConcurrentModificationException.
1497 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1498 throw a NoSuchElementException.
1499 (SubMap.lastKey): Likewise.
1501 2001-02-13 Tom Tromey <tromey@redhat.com>
1503 * java/io/PipedReader.java (ready): Throw IOException if pipe
1505 * java/io/FilterReader.java (close): Don't clear `in'.
1506 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1508 (read, ready, reset, skip): Added exception message.
1509 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1510 Perform checkStatus check inside synchronized block.
1512 2001-02-13 Tom Tromey <tromey@redhat.com>
1514 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1516 2001-02-13 Tom Tromey <tromey@redhat.com>
1518 Fix for PR libgcj/1351:
1519 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1521 Include Thread.h and InterruptedIOException.h.
1523 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1525 * java/io/BlockDataException.java: Removed.
1526 * java/io/ObjectInputStream.java (readObject): Throw
1527 StreamCorruptedException, not BlockDataException.
1528 * Makefile.am: Remove BlockDataException.
1529 * Makefile.in: Rebuild.
1531 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1532 Tom Tromey <tromey@redhat.com>
1534 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1537 2001-02-09 Tom Tromey <tromey@redhat.com>
1539 * java/util/Timer.java: New version from Classpath.
1541 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1543 * java/lang/Double.java (doubleToRawLongBits): Now native.
1544 * java/lang/Float.java (floatToRawIntBits): Likewise.
1545 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1546 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1548 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1550 * java/io/File.java (java.net): Imported.
1551 (getAbsoluteFile): Added.
1552 (getCanonicalPath): Likewise.
1555 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1557 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1558 * java/lang/Integer.java: Likewise.
1559 * java/lang/Long.java: Likewise.
1560 * java/lang/Short.java: Likewise.
1561 * java/lang/Double.java: Likewise.
1562 (doubleToRawLongBits): New method.
1563 * java/lang/Float.java: As above.
1564 (floatToRawIntBits): New method.
1566 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1567 IOException if stream closed.
1569 2001-02-08 Tom Tromey <tromey@redhat.com>
1571 * java/lang/Float.java (parseFloat): New method.
1573 2001-02-08 Tom Tromey <tromey@redhat.com>
1575 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1576 * java/io/InputStreamReader.java (ready, read): Throw IOException
1577 if stream has been closed.
1579 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1581 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1582 Change sources.redhat.com and sourceware.cygnus.com references to
1585 2001-02-07 Tom Tromey <tromey@redhat.com>
1587 Fix for PR libgcj/1906:
1588 * java/text/MessageFormat.java (setLocale): Use named class
1591 (format(Object,StringBuffer,FieldPosition)): Special case if
1592 argument is an Object[].
1594 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1596 * java/util/Arrays.java: Removed "cmp" methods.
1597 (qsort): Don't use "cmp".
1600 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1602 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1603 sort. Fix for PR java/1895.
1605 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1607 * configure.host: Use sjlj-exceptions for Alpha.
1609 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1611 * libgcj.spec.in: Don't force static libgcc into the executable.
1612 * configure.in (FORCELIBGCCSPEC): Removed.
1613 * configure: Rebuilt.
1615 2001-01-31 Tom Tromey <tromey@redhat.com>
1617 * Makefile.in: Rebuilt.
1618 * Makefile.am (LTCXXCOMPILE): New macro.
1620 2001-01-26 Andrew Haley <aph@redhat.com>
1622 (INIT_FPE): Use a direct system call to set the handler.
1624 2001-01-27 Richard Henderson <rth@redhat.com>
1626 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1628 2001-01-27 Tom Tromey <tromey@redhat.com>
1630 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1631 native interface structure.
1633 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1635 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1637 (read (byte[], int, int)): Only call readNextBlock() if the block
1638 buffer would actually be overrun. Increment blockDataPosition.
1639 (callReadMethod): Propagate exceptions from invocation target.
1640 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1641 exceptions from invocation target.
1643 2001-01-26 Tom Tromey <tromey@redhat.com>
1645 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1646 to internal representation.
1647 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1648 _Jv_FindClassFromSignature.
1650 2001-01-26 Warren Levy <warrenl@redhat.com>
1652 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1653 and timezone if they are available on the system.
1655 2001-01-24 Tom Tromey <tromey@redhat.com>
1657 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1659 2001-01-24 Tom Tromey <tromey@redhat.com>
1661 * Makefile.in: Rebuilt.
1662 * Makefile.am (c_source_files): Added sf_fabs.c.
1663 * java/lang/sf_fabs.c: New file.
1665 2001-01-19 Warren Levy <warrenl@redhat.com>
1667 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1668 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1669 correctly. Adjust properly from 0-23 clock hour.
1671 2001-01-17 Mark Wielaard <mark@klomp.org>
1673 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1675 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1677 * java/lang/Class.h (isInterface): Move implementation from
1678 natClass.cc. Declare inline.
1679 (Class): Add default constructor.
1680 * java/lang/Object.h: Update comments.
1681 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1682 initialize superclass, saving a call if super is already initialized.
1684 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1686 * prims.cc (init_prim_class): Deleted.
1687 (DECLARE_PRIM_TYPE): Rewritten.
1688 * java/lang/Class.h (stdio.h): Include removed.
1689 (stddef.h): Included.
1690 (java/lang/reflect/Modifier.h): Likewise.
1691 (Class): Contructor now takes arguments, initializes fields.
1692 (initializePrim): Prototype deleted.
1693 * java/lang/natClass.cc (initializePrim): Deleted.
1695 2001-01-16 Warren Levy <warrenl@redhat.com>
1697 * java/math/BigInteger.java: Update Copyright year.
1699 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1701 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1704 2001-01-14 Mark Wielaard <mark@klomp.org>
1705 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1706 (decode): Merge comments with Classpath, don't throw Exception
1708 2001-01-12 Tom Tromey <tromey@redhat.com>
1710 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1714 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1715 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1716 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1717 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1718 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1720 * java/lang/natSystem.cc: Include locale.h if it exists.
1721 * configure: Rebuilt.
1722 * configure.in: Check for locale.h.
1724 2001-01-11 Tom Tromey <tromey@redhat.com>
1726 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1727 (Cursor(int), getPredefinedCursor): Throw exception if argument
1730 2001-01-03 Tom Tromey <tromey@redhat.com>
1732 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1733 (getLocationOnScreen): Wrote.
1735 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1737 * Makefile.am: Re-enable dependencies.
1738 * Makefile.in: Rebuilt.
1740 2001-01-10 Warren Levy <warrenl@redhat.com>
1742 * java/math/BigDecimal.java (divide): Fixed comment.
1744 2001-01-10 Warren Levy <warrenl@redhat.com>
1746 Fix for PR libgcj/1596:
1747 * java/math/BigDecimal.java (divide): Check newScale for validity.
1748 Ensure that BigInteger.pow() is called with a non-negative value.
1749 (setScale (int)): New public method.
1750 (setScale (int,int)): New public method.
1752 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1754 Fix for PR libgcj/1338:
1755 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1756 commentChar. Fixed typos in comments.
1758 2001-01-08 Warren Levy <warrenl@redhat.com>
1760 Fix for PR libgcj/1411:
1761 * Makefile.am: Removed java/util/natTimeZone.cc.
1762 * Makefile.in: Rebuilt.
1763 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1764 missing localized timezone names.
1765 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1766 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1767 (init_properties): Set user.timezone property.
1768 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1769 default timezone names; removed non-standard ones. Use standard
1771 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1773 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1775 (getDefaultTimeZoneId): Removed.
1777 * java/util/natTimeZone.cc: Removed.
1779 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1781 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1782 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1783 (_Jv_GetArrayClass): New inline function.
1784 (arrayclass): New field.
1785 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1786 _Jv_GetArrayElementFromElementType.
1787 (_Jv_NewPrimArray): Ditto.
1788 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1789 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1790 Set Modifier::ABSTRACT.
1791 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1792 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1793 Now synchronized. Array classes are now referenced from
1794 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1795 Set array classes' accessibility flags correctly. Optimize so that
1796 all array classes share the same IDT.
1797 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1798 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1799 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1800 in superclasses from overwriting classes own fields.
1801 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1802 Modifier::isAbstract().
1803 (null_idt): New static field.
1804 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1806 (_Jv_IndexOf): Made inline.
1807 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1809 2001-01-08 Tom Tromey <tromey@redhat.com>
1811 Fix for PR java/1586:
1812 * Makefile.in: Rebuilt.
1813 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1815 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1817 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1818 from the c++ compiler.
1819 * Makefile.in: Rebuilt.
1821 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1823 All files with updated copyright.
1824 * prims.cc (class _Jv_PrimClass): Removed.
1825 (init_prim_class): New function.
1826 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1827 `_Jv_PrimClass' in primitive type declarations. Assign to the
1828 value returned by `init_prim_class.'
1829 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1830 primitive type declarations.
1831 (JvPrimClass): Cast to `jclass' removed.
1832 * java/lang/Class.h (Class): New constructor.
1833 (Class): New copy constructor.
1834 (initializePrim): New prototype.
1835 (_Jv_PrimClass): Field removed.
1836 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1837 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1838 (class java::lang::Object): `finalize' moved up front.
1839 * java/lang/natClass.cc
1840 (isAssignableFrom): Turned outline.
1841 (isInstance): Likewise.
1842 (isInterface): Likewise, fixed indentation.
1843 (initializePrim): New function.
1845 2001-01-07 Anthony Green <green@redhat.com>
1847 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1849 * Makefile.in: Rebuilt.
1851 * scripts/TexinfoDoclet.java: New file.
1853 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1854 doc/java-awt-color.texi, doc/java-lang.texi,
1855 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1856 doc/java-awt-event.texi, doc/java-net.texi,
1857 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1858 doc/java-awt-image.texi, doc/java-security.texi,
1859 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1860 doc/java-text.texi, doc/java-beans-beancontext.texi,
1861 doc/java-util-jar.texi, doc/java-beans.texi,
1862 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1863 doc/java-lang-ref.texi: New files.
1865 2001-01-07 Anthony Green <green@redhat.com>
1867 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1868 be used for both input and output, so don't clear doInput.
1870 * java/lang/StringBuffer.java: Fix comments.
1872 2001-01-06 Anthony Green <green@redhat.com>
1874 * java/beans/PropertyDescriptor.java: Fix comment.
1875 * java/io/PushbackReader.java: Fix comment.
1876 * java/io/ObjectStreamClass.java: Fix comment.
1877 * java/io/DataInputStream.java: Fix comment.
1878 * java/io/PipedInputStream.java: Fix comments.
1879 * java/io/PipedReader.java: Fix comments.
1880 * java/sql/DatabaseMetaData.java: Fix comments.
1882 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1884 * java/io/PipedReader: Synchronize on "lock" instead of this.
1886 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1888 * java/lang/Thread.java: Update comment.
1890 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1891 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1892 * java/io/PipedReader: New implementation based on new
1894 * java/io/PipedWriter: Updated to match new PipedReader.
1896 2001-01-03 Tom Tromey <tromey@redhat.com>
1898 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1899 (getViewportSize): Insets include scrollbar size.
1900 (doLayout): Finished.
1901 (getScrollPosition): Wrote.
1902 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1904 2001-01-02 Tom Tromey <tromey@redhat.com>
1906 * java/awt/ScrollPane.java: Wrote.
1907 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1910 * java/awt/Panel.java (Panel()): Fixed.
1912 * java/awt/Component.java (isShowing): Return false if no peer
1913 exists, and true if component is visible and no parent exists.
1914 (getLocationOnScreen): Wrote.
1915 (getPreferredSize): Removed FIXME comment.
1916 (getMinimumSize): Likewise.
1917 (getAlignmentX, getAlignmentY): Wrote.
1919 (requestFocus): Wrote.
1920 (transferFocus): Wrote.
1921 (findNextFocusComponent): New method.
1922 (hasFocus()): Wrote.
1923 (checkImage): Wrote.
1924 (enableEvents): Call setEventMask on the peer.
1926 * java/awt/Container.java (list): Use super.list() to print self.
1927 (findNextFocusComponent): New method.
1928 (setLayout): Call invalidate.
1929 (findComponentAt): Wrote.
1931 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1933 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1934 the correct versions of various linuxthreads functions get linked.
1935 * Makefile.in: Rebuilt.
1936 * java/lang/natThread.cc (finalize_native): New static function. Call
1937 _Jv_ThreadDestroyData.
1938 (initialize_native): Register finalizer for "data".
1939 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1940 (_Jv_ThreadDestroyData): New prototype.
1941 * include/win32-threads.h: Ditto.
1942 * include/no-threads.h: Ditto.
1943 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1944 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1945 move mutex and condition variable destroy code from:
1946 (really_start): ...here.
1947 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1948 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1949 (_Jv_ThreadDestroyData): Implemented.
1950 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1951 (_Jv_AllocArray): Ditto.
1953 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1955 * java/sql/DriverManager.java (getConnection): Don't set user/password
1958 2000-12-27 Warren Levy <warrenl@redhat.com>
1960 Fix for PR libgcj/1358:
1961 * java/lang/System.java: Update Copyright date properly.
1962 * java/util/Calendar.java: Fix typo in comment.
1963 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1964 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1965 initialize times. Spec says to set H:M:S values to zero only if
1967 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1968 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1969 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1970 timezones and GMT offsets, being careful to account for units of
1971 milliseconds vs. seconds.
1973 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1975 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1976 not be assigned to Object.
1978 Fix for PR libgcj/1516:
1979 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1981 (can_widen): Declared inline. Remove redundant checks for void
1982 arguments and char->short conversion. Add special case for boolean
1984 (ffi_type): Declared inline.
1985 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1987 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1989 * java/sql/SQLWarning.java: Fixed typo in comment.
1991 2000-12-26 Tom Tromey <tromey@redhat.com>
1993 * java/awt/MenuItem.java (paramString): Now protected.
1995 * java/awt/MenuShortcut.java: Implements Serializable.
1997 * java/awt/MenuBar.java: Rewrote from scratch.
1999 * java/awt/MenuComponent.java (removeNotify): Wrote.
2000 Implements Serializable.
2002 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2005 * java/awt/CheckboxMenuItem.java: Wrote.
2007 2000-12-25 Tom Tromey <tromey@redhat.com>
2009 * java/awt/MenuContainer.java: Fixed typo.
2011 * Makefile.in: Rebuilt.
2012 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2013 * java/awt/SystemColor.java: New file.
2015 * java/awt/Color.java (rgba): Now package-private.
2017 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2019 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2022 * java/awt/MenuItem.java (addNotify): New method.
2023 (MenuItem(String,MenuShortcut)): New constructor.
2024 (setLabel): Notify peer of change.
2025 (setEnabled): Likewise.
2027 * java/awt/GridLayout.java (toString): New method.
2029 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2030 (FlowLayout): Check for LEADING and TRAILING.
2031 (setAlignment): Likewise.
2032 (layoutContainer): Handle component orientation.
2034 * java/awt/Component.java (orientatin): New field.
2035 (setComponentOrientation): Wrote.
2036 (getComponentOrientation): Wrote.
2038 * java/awt/Event.java (Event): Implements Serializable.
2039 (consumed): New field for serialization.
2040 * java/awt/Dimension.java (Dimension): Implements Serializable.
2041 * java/awt/Cursor.java (Cursor): Implements Serializable.
2042 * java/awt/Container.java (Container): No longer abstract.
2044 * java/awt/Choice.java: Wrote.
2045 * java/awt/Checkbox.java: Wrote.
2046 * java/awt/ItemSelectable.java: Documented.
2047 * java/awt/CheckboxGroup.java: Wrote.
2049 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2051 (getSize): Likewise.
2053 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2055 * java/io/FileDescriptor.java: Initialize fd to -1.
2056 Remove default constructor.
2058 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2060 * java/lang/mprec.h: Change C9X reference to refer to C99.
2062 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2064 * java/lang/Throwable.java (trace_enabled): New static field.
2065 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2066 trace_enabled not set.
2067 * prims.cc (main_init): Turn off trace_enabled while creating
2068 default exception objects.
2070 2000-12-21 Tom Tromey <tromey@redhat.com>
2072 * java/beans/PropertyChangeListener.java: Extends EventListener.
2073 * java/beans/VetoableChangeListener.java: Extends EventListener.
2075 * java/util/zip/Deflater.java (update, init): Now private.
2077 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2079 * java/util/BasicMapEntry.java: Re-added.
2080 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2081 (putAll): Test for BasicMapEntry.
2082 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2083 (putAll): Test for BasicMapEntry.
2084 Change references from `HashMap.Entry' to `Entry' in various places.
2085 * Makefile.am: Add BasicMapEntry.java.
2086 * Makefile.in: Rebuilt.
2088 2000-12-18 Warren Levy <warrenl@redhat.com>
2090 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2091 need to set timezone to a valid non-null value. Partial fix for
2094 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2096 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2098 * java/awt/Button.java (addNotify): Likewise.
2099 * java/awt/Label.java (addNotify): Likewise.
2100 * java/awt/Panel.java (addNotify): Likewise.
2101 * java/awt/Scrollbar.java (addNotify): Likewise.
2102 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2103 Remove redundant null checks.
2105 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2107 * COPYING: Update to current
2108 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2109 to 19yy as example year in copyright notice).
2111 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2113 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2114 end-of-stream if avail_in is 0.
2116 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2118 * java/util/ArrayList.java (data): Declare transient.
2119 (serialPersistantFields): Removed.
2120 (readObject): Use defaultReadObject(), not readFields().
2121 (writeObject): Use defaultWriteObject(), not writeFields().
2123 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2125 * java/util/Hashtable.java (put): Remove `last' variable.
2126 Link new entry to head of list.
2127 * java/util/HashMap.java (put): Ditto.
2129 2000-12-15 Tom Tromey <tromey@redhat.com>
2131 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2132 loader to Class.forName.
2134 2000-12-14 Tom Tromey <tromey@redhat.com>
2136 * java/util/ResourceBundle.java
2137 (getBundle(String,Locale,ClassLoader)): New method.
2138 (trySomeGetBundle): Added `loader' argument.
2139 (partialGetBundle): Likewise.
2141 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2142 maximumFractionDigits, maximumIntegerDigits,
2143 minimumFractionDigits, minimumIntegerDigits): Now
2146 * java/lang/Thread.java (checkAccess): Now final.
2148 * java/lang/RuntimePermission.java: Class now final.
2150 * java/io/StringWriter.java (StringWriter(int)): Now public.
2152 * java/io/SerializablePermission.java (legal_names): Now private.
2154 * java/lang/Character.java: Updated UnicodeBlock constants.
2155 * scripts/blocks.pl: Special case private use and surrogate
2158 2000-12-12 Tom Tromey <tromey@redhat.com>
2160 * Makefile.in: Rebuilt.
2161 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2163 (GCJCOMPILE): Use it.
2166 2000-12-11 Tom Tromey <tromey@redhat.com>
2168 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2169 New static final fields.
2171 * scripts/classes.pl (scan): Skip lines with leading `*'.
2172 Fix for PR libgcj/378.
2174 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2176 * configure.in: Remove check for -fuse-divide-subroutine.
2177 * configure: Rebuilt.
2179 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2181 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2183 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2185 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2186 Remove BasicMapEntry.java and Bucket.java.
2187 * Makefile.in: Rebuilt.
2188 * java/util/HashMap.java: Rewritten.
2189 * java/util/HashSet.java: Imported from classpath.
2190 * java/util/WeakHashMap.java: Imported from classpath.
2191 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2192 * java/util/Bucket.java: Deleted.
2193 * java/util/BasicMapEntry.java: Deleted.
2194 * java/util/Collections.java (search): Use a for-loop, not iterator
2196 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2197 of elements in source.
2198 (max): Use a for-loop.
2200 (reverse): Keep track of positions instead of using Iterator's
2201 nextIndex() and previousIndex().
2202 (shuffle(List)): Initialize defaultRandom if required using
2203 double-check thread safety idiom. Call two-argument shuffle method
2204 using defaultRandom.
2205 (defaultRandom): New field.
2206 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2207 using previousIndex() and nextIndex().
2208 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2209 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2210 * java/util/AbstractMap.java (toString): Use StringBuffer.
2211 * java/lang/ref/PhantomReference.java: Imported from classpath.
2212 * java/lang/ref/SoftReference.java: Ditto.
2213 * java/lang/ref/Reference.java: Ditto.
2214 * java/lang/ref/WeakReference.java: Ditto.
2215 * java/lang/ref/ReferenceQueue.java: Ditto.
2217 2000-12-10 Richard Henderson <rth@redhat.com>
2219 * configure.host: Recognize alpha*-*, not alphaev6-*.
2221 2000-12-09 Anthony Green <green@redhat.com>
2223 * configure.host: Enable interpreter for Alpha.
2225 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2227 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2228 (ZIP): Points at fastjar instead of zip.
2229 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2230 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2231 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2232 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2233 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2234 ($(x_java_source_files:.java=.class):): Likewise.
2235 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2237 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2238 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2239 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2240 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2241 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2242 gnu/gcj/runtime/VMClassLoader.h:,
2243 java/io/ObjectInputStream$$GetField.h:,
2244 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2245 (Makefile.in): Rebuilt.
2247 2000-12-08 Tom Tromey <tromey@redhat.com>
2250 * configure: Rebuilt.
2251 * configure.in: Use echo, not `:', to create .d files.
2253 2000-12-08 Warren Levy <warrenl@redhat.com>
2255 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2256 NullPointerException so proper check of offset can be done.
2258 2000-12-08 Warren Levy <warrenl@redhat.com>
2260 * java/io/FileInputStream.java (close): Check if the fd is valid.
2261 * java/io/RandomAccessFile.java (close): Ditto.
2262 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2263 * java/net/PlainSocketImpl.java (close): Ditto.
2265 2000-12-06 Tom Tromey <tromey@redhat.com>
2267 * java/awt/GridBagConstraints.java: Filled in values for static
2270 * java/util/BitSet.java: Updated copyright notice.
2272 * Makefile.in: Rebuilt.
2273 * Makefile.am (awt_java_source_files): Added new file.
2274 * java/awt/GridBagConstraints.java: New file.
2276 2000-12-05 Tom Tromey <tromey@redhat.com>
2278 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2279 Now package-private, not protected.
2280 * java/text/DateFormatSymbols.java (equals): Now private.
2281 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2282 * java/util/BitSet.java: Class no longer final.
2284 2000-12-04 Warren Levy <warrenl@redhat.com>
2286 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2287 out code dependent on compiler and library changes.
2289 2000-12-04 Warren Levy <warrenl@redhat.com>
2291 * java/io/FilePermission.java: Made class final per spec.
2292 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2293 method name to match spec (fixed typo).
2294 * java/util/LinkedList.java: Implements List.
2296 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2298 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2299 Edgar Villanueva <edgarvil@home.com>.
2301 2000-12-03 Tom Tromey <tromey@redhat.com>
2303 * java/awt/geom/Point2D.java: Added protected constructor.
2304 (equals): New method.
2305 (Float.setLocation(float,float)): New method.
2306 * java/awt/geom/Dimension2D.java: Added protected constructor.
2307 * java/awt/geom/AffineTransform.java: Made all constants public.
2308 (concatenate): Fixed typo in name.
2309 * java/awt/event/WindowAdapter.java: Class now abstract.
2310 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2311 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2314 * java/awt/AWTError.java: Extend Error, not
2315 IllegalStateException.
2317 * Makefile.in: Rebuilt.
2318 * Makefile.am (awt_java_source_files): Added new file.
2319 * java/awt/geom/RoundRectangle2D.java: New file.
2321 * Makefile.in: Rebuilt.
2322 * Makefile.am (awt_java_source_files): Added new file.
2323 * java/awt/FlowLayout.java: New file.
2325 * Makefile.in: Rebuilt.
2326 * Makefile.am (awt_java_source_files): Added new file.
2327 * java/awt/GridLayout.java: New file.
2329 2000-12-02 Tom Tromey <tromey@redhat.com>
2331 * Makefile.in: Rebuilt.
2332 * Makefile.am (awt_java_source_files): Added new files.
2333 * java/awt/CardLayout.java: New file.
2334 * java/awt/AWTPermission.java: New file.
2336 2000-12-01 Tom Tromey <tromey@redhat.com>
2338 * java/util/Vector.java (insertElementAt): Unconditionally
2339 increment elementCount.
2340 (removeRange): Clear unused slots in vector.
2342 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2344 * java/lang/natMath.cc: Declare fabsf() function.
2345 * java/lang/mprec.h: Don't include math.h.
2346 * java/lang/dtoa.c: Include string.h.
2347 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2350 From Adam Welc <welc@cs.purdue.edu>:
2351 * java/util/LinkedList.java (removeFirst): Update `first' field.
2352 Handle the last == first case.
2353 (removeLast): Update `last' field. Handle the last == first case.
2355 2000-12-01 Warren Levy <warrenl@cygnus.com>
2357 * Makefile.am: Added entries for new java.sql modules.
2358 * Makefile.in: Rebuilt.
2360 2000-12-01 Warren Levy <warrenl@cygnus.com>
2362 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2363 that aren't quite 1.2 compatible yet.
2365 2000-11-30 Warren Levy <warrenl@cygnus.com>
2367 * java/sql/Array.java: New file from classpath.
2368 * java/sql/BatchUpdateException.java: Ditto.
2369 * java/sql/Blob.java: Ditto.
2370 * java/sql/Clob.java: Ditto.
2371 * java/sql/Ref.java: Ditto.
2372 * java/sql/SQLData.java: Ditto.
2373 * java/sql/SQLInput.java: Ditto.
2374 * java/sql/SQLOutput.java: Ditto.
2375 * java/sql/Struct.java: Ditto.
2376 * java/sql/CallableStatement.java: Merged file from claspath.
2377 * java/sql/Connection.java: Ditto.
2378 * java/sql/DataTruncation.java: Ditto.
2379 * java/sql/DatabaseMetaData.java: Ditto.
2380 * java/sql/DriverManager.java: Ditto.
2381 * java/sql/PreparedStatement.java: Ditto.
2382 * java/sql/ResultSet.java: Ditto.
2383 * java/sql/ResultSetMetaData.java: Ditto.
2384 * java/sql/SQLException.java: Ditto.
2385 * java/sql/SQLWarning.java: Ditto.
2386 * java/sql/Statement.java: Ditto.
2387 * java/sql/Types.java: Ditto.
2389 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2391 * java/lang/natSystem.cc (init_properties): Set user.language and
2393 * configure.in: Check for setlocale.
2394 * configure: Rebuilt.
2395 * include/config.h.in: Rebuilt.
2397 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2398 the infate() call didn't deliver any output. Throw a ZipException if
2399 the needsDictionary() call returns true.
2400 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2401 * java/io/InputStreamReader: Use the default buffer size for the
2402 contained BufferedInputStream.
2404 2000-11-28 Warren Levy <warrenl@cygnus.com>
2406 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2407 more time zone entries.
2408 * java/text/SimpleDateFormat.java (format): Added case for
2411 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2413 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2414 directly rather than read() in all cases. Make primitive read
2415 implementations more efficient, as defined in JDK online docs.
2416 (skipBytes): Behave like the JDK's implementation.
2417 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2418 closed stream with checkStatus() whenever an IOException can be
2420 (checkStatus): New private method.
2422 2000-11-27 Warren Levy <warrenl@cygnus.com>
2424 * Makefile.am: Added natTimeZone.cc.
2425 * Makefile.in: Rebuilt.
2426 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2427 * java/text/DateFormatSymbols.java (ampms): Made package private.
2428 (eras): Made package private.
2429 (months): Made package private.
2430 (shortMonths): Made package private.
2431 (shortWeekdays): Made package private.
2432 (weekdays): Made package private.
2433 (formatPrefixes): New private field.
2434 (localPatternCharsDefault): Made private.
2435 (dateFormats): New package private field.
2436 (timeFormats): New package private field.
2437 (formatsForKey): New private method.
2438 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2439 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2440 * java/text/SimpleDateFormat.java: Merged with Classpath.
2441 * java/util/TimeZone.java: Merged with Classpath.
2442 * java/util/natTimeZone.cc: New file.
2444 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2446 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2447 (addElement): Don't increment elementCount twice. Doh.
2448 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2449 array needs to be expanded.
2451 * java/util/Collections.java (UnmodifiableCollection): Implement
2453 (UnmodifiableList): Throw UnsupportedOperationException from
2454 modification methods. Set `l' from the one-parameter constructor.
2455 (UnmodifiableMap): Implement toString().
2456 (SynchronizedCollection): Ditto.
2457 (SynchronizedList): Set `l' from the one-parameter constructor.
2458 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2459 (SynchronizedMap): Implement toString().
2461 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2463 * javax/naming/NameParser.java,
2464 javax/naming/directory/AttributeInUseException.java,
2465 javax/naming/directory/AttributeModificationException.java,
2466 javax/naming/directory/InvalidAttributeIdentifierException.java,
2467 javax/naming/directory/InvalidAttributesException.java,
2468 javax/naming/directory/InvalidAttributeValueException.java,
2469 javax/naming/directory/InvalidSearchControlsException.java,
2470 javax/naming/directory/InvalidSearchFilterException.java,
2471 javax/naming/directory/NoSuchAttributeException.java,
2472 javax/naming/directory/SchemaViolationException.java: New files.
2474 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2476 * javax/naming/InitialContext.java (rebind): Implement.
2477 (unbind): Implement.
2478 (rename): Implement.
2480 (listBindings): Implement.
2481 (destroySubcontext): Implement.
2482 (createSubcontext): Implement.
2483 (lookupLink): Implement.
2484 (getNameParser): Implement.
2485 (composeName): Implement.
2486 (addToEnvironment): Implement.
2488 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2490 * javax/naming/AuthenticationException.java,
2491 javax/naming/AuthenticationNotSupportedException.java,
2492 javax/naming/CannotProceedException.java,
2493 javax/naming/CommunicationException.java,
2494 javax/naming/ConfigurationException.java,
2495 javax/naming/ContextNotEmptyException.java,
2496 javax/naming/InsufficientResourcesException.java,
2497 javax/naming/InterruptedNamingException.java,
2498 javax/naming/InvalidNameException.java,
2499 javax/naming/LimitExceededException.java,
2500 javax/naming/LinkException.java,
2501 javax/naming/LinkLoopException.java,
2502 javax/naming/MalformedLinkException.java,
2503 javax/naming/NameAlreadyBoundException.java,
2504 javax/naming/NameNotFoundException.java,
2505 javax/naming/NamingSecurityException.java,
2506 javax/naming/NoPermissionException.java,
2507 javax/naming/NotContextException.java,
2508 javax/naming/PartialResultException.java,
2509 javax/naming/ReferralException.java,
2510 javax/naming/ServiceUnavailableException.java,
2511 javax/naming/SizeLimitExceededException.java,
2512 javax/naming/TimeLimitExceededException.java: New files.
2514 * javax/naming/Name.java (clone): New method.
2515 (compareTo): New method.
2516 (isEmpty): New method.
2517 (getAll): New method.
2518 (getPrefix): New method.
2519 (getSuffix): New method.
2520 (startsWith): New method.
2521 (endsWith): New method.
2522 (addAll): New method.
2523 (addAll): New method.
2526 (remove): New method.
2528 * javax/naming/Context.java (lookup): New method.
2529 (rebind): New method.
2530 (unbind): New method.
2531 (rename): New method.
2533 (listBindings): New method.
2534 (destroySubcontext): New method.
2535 (createSubcontext): New method.
2536 (lookupLink): New method.
2537 (getNameParser): New method.
2538 (composeName): New method.
2539 (addToEnvironment): New method.
2540 (removeFromEnvironment): New method.
2541 (getEnvironment): New method.
2542 (close): New method.
2543 (getNameInNamespace): New method.
2545 * javax/naming/InitialContext.java (lookup): New method.
2546 (rebind): New method.
2547 (unbind): New method.
2548 (rename): New method.
2550 (listBindings): New method.
2551 (destroySubcontext): New method.
2552 (createSubcontext): New method.
2553 (lookupLink): New method.
2554 (getNameParser): New method.
2555 (composeName): New method.
2556 (addToEnvironment): New method.
2557 (removeFromEnvironment): New method.
2558 (getEnvironment): New method.
2559 (close): New method.
2560 (getNameInNamespace): New method.
2562 2000-11-26 Tom Tromey <tromey@cygnus.com>
2564 * Makefile.in: Rebuilt.
2565 * Makefile.am (core_java_source_files): Added
2566 RuntimePermission.java.
2567 * java/lang/RuntimePermission.java: Imported from Classpath.
2568 * java/lang/Thread.java (getContextClassLoader): Now
2569 synchronized. Added security code.
2570 (setContextClassLoader): Likewise.
2572 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2573 length field of array.
2574 (_Jv_NewPrimArray): Likewise.
2575 * gcj/array.h (__JArray): `length' field now const. Added
2578 2000-11-26 Anthony Green <green@redhat.com>
2580 * javax/naming/spi/NamingManager.java,
2581 javax/naming/spi/ObjectFactory.java,
2582 javax/naming/spi/InitialContextFactory.java,
2583 javax/naming/spi/InitialContextFactoryBuilder.java,
2584 javax/naming/RefAddr.java, javax/naming/Reference.java,
2585 javax/naming/NamingException.java, javax/naming/Context.java,
2586 javax/naming/Referenceable.java,
2587 javax/naming/directory/InitialDirContext.java,
2588 javax/naming/directory/DirContext.java,
2589 javax/naming/directory/Attributes.java,
2590 javax/naming/directory/Attribute.java,
2591 javax/naming/StringRefAddr.java,
2592 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2593 javax/naming/InitialContext.java,
2594 javax/naming/NoInitialContextException.java: New files.
2596 2000-11-25 Anthony Green <green@redhat.com>
2598 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2599 (_Jv_NewPrimArray): Likewise.
2600 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2601 (class JArray): Removed constructor.
2603 * java/lang/Thread.java (context_class_loader): New private data.
2604 (getContextClassLoader): New method.
2605 (setContextClassLoader): New method.
2606 (Thread): Initialize context_class_loader.
2608 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2609 (getResource): Rename to findResource.
2610 (findResource): New method. Used to be getResource.
2611 (getResourceAsStream): Deleted.
2612 (jarFileize): Extracted logic from URLClassLoader constructor into
2613 this new private method.
2614 (addURL): New protected method.
2615 (URLClassLoader): Call jarFileize. Use addElement instead of
2617 (findResources): New method.
2619 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2620 (getResource): Implement correct logic.
2621 (findResource): New method.
2622 (getResources): New method.
2623 (findClass): Create a ClassNotFoundException with the name of the
2624 class rather than nothing at all.
2625 (defineClass) Only throw ClassFormatError.
2627 * java/lang/Class.java (forName): New method.
2628 * java/lang/Class.h (forName): New method.
2629 * java/lang/natClass.cc (forName): New method.
2631 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2633 * java/lang/System.java (setProperties): Only call init_properties()
2634 if properties is null.
2635 (getProperties): Ditto.
2636 (getProperty): Ditto.
2637 (setProperty): Call init_properties if properties are null.
2638 (prop_init): Remove field.
2639 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2640 method. Check for null properties after synchronizing instead of
2641 prop_init flag. Set the properties field last for thread safety.
2643 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2644 test for gcj.dumpobjects property and enable object stream dumping
2646 (dumpElement): No longer native.
2647 (dumpElementln): Ditto.
2648 (setDump): Do not define.
2649 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2650 (dumpElementln): Removed.
2653 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2655 * configure: Rebuilt.
2656 * Makefile.in: Rebuilt.
2657 * Makefile.am (built_java_source_files): Add Configuration.java.
2658 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2659 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2660 Create `gnu' directory in the build tree.
2661 * gnu/classpath/Configuration.java.in: New file.
2663 2000-11-24 Tom Tromey <tromey@cygnus.com>
2665 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2667 (_Jv_NewPrimArray): Likewise.
2669 * gcj/array.h (__JArray): `length' field now const. Added
2671 (class JArray): Added constructor.
2673 2000-11-23 Mark Wielaard <mark@klomp.org>
2675 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2678 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2680 * java/util/Vector.java: Improve exception messages.
2681 (Vector): Check initialCapacity for IllegalArgumentException.
2682 (tromToSize): Don't check for elementCount == elementData.length
2684 (toArray): Don't try to set null marker if target array is the same
2685 length as the vector.
2687 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2689 * Makefile.in: Rebuilt.
2690 * Makefile.am (core_java_source_files): Added Collections.java.
2691 * java/util/List.java: Merged from classpath.
2692 * java/util/Vector.java: Ditto.
2693 * java/util/Collections.java: From classpath.
2694 * java/util/ArrayList.java (addAll(Collection)): Call
2695 addAll(int,Collection) instead of duplicating code.
2696 (indexOf): Clean up int initialization.
2697 (clear): Set cleared array entries to null, to allow garbage
2699 * java/util/List.java: Minor formatting fixes.
2700 * java/util/SimpleTimeZone.java: ditto.
2702 2000-11-18 Tom Tromey <tromey@cygnus.com>
2704 * Makefile.in: Rebuilt.
2705 * Makefile.am (core_java_source_files): Added new files.
2706 * java/lang/reflect/ReflectPermission.java: New class.
2707 * java/io/FileFilter.java: From Classpath
2708 * java/io/FilePermission.java: From Classpath.
2710 2000-11-17 Tom Tromey <tromey@cygnus.com>
2712 * java/lang/reflect/AccessibleObject.java (isAccessible,
2713 setAccessible): Now public.
2715 * java/lang/natString.cc: Include Locale.h.
2716 (toUpperCase): Added `locale' argument. Handle locale
2718 (toLowerCase): Added `locale' argument. Handle locale
2720 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2721 CAPITAL_I): New defines.
2722 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2725 (toUpperCase, toLowerCase): New methods. Variants which accept
2728 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2731 * java/util/PropertyPermission.java: Re-merged from Classpath.
2733 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2735 * java/text/StringCharacterIterator.java: Reindented.
2736 (setText): New method.
2738 2000-11-17 Mark Wielaard <mark@klomp.org>
2740 Merge with Classpath (changes by Bryce McKinlay)
2741 * java/util/jar/*.java: Reformat all to unofficial standard coding
2742 style. No changes of substance.
2744 2000-11-17 Mark Wielaard <mark@klomp.org>
2746 * java/util/zip/*.java: Javadoc updates.
2748 2000-11-17 Tom Tromey <tromey@cygnus.com>
2750 * java/text/CollationKey.java: Implement Comparable.
2751 (compareTo(Object)): New method.
2752 * java/text/Collator.java (compare(Object,Object)): New method.
2753 Implement Comparator.
2755 * java/util/zip/InflaterInputStream.java (available): New method.
2756 (close): New method.
2757 (read, available, skip, fill): Throw exception if stream closed.
2758 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2759 getNextEntry): Throw exception if closed.
2761 2000-11-16 Tom Tromey <tromey@cygnus.com>
2763 * java/io/PushbackReader.java: Merged with Classpath.
2764 * java/util/Arrays.java: Updated from Classpath.
2766 * scripts/blocks.pl: New file.
2767 * java/lang/Character.java (Subset): New class.
2768 (UnicodeBlock): New class.
2770 * java/lang/Math.java (toDegrees, toRadians): New methods.
2772 * java/lang/Float.java: Implement Comparable.
2773 (compareTo): New methods.
2774 * java/lang/Double.java: Implement Comparable.
2775 (compareTo): New methods.
2777 2000-11-16 Warren Levy <warrenl@cygnus.com>
2779 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2781 (listeners): Made transient.
2782 (source): Renamed from 'bean'.
2783 (children): New field for serialization.
2784 (propertyChangeSupportSerializedDataVersion): Ditto.
2785 (serialVersionUID): Ditto.
2786 (writeObject): New serialization method.
2787 (readObject): New serialization method.
2788 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2790 (listeners): Made transient.
2791 (source): Renamed from 'bean'.
2792 (children): New field for serialization.
2793 (vetoableChangeSupportSerializedDataVersion): Ditto.
2794 (serialVersionUID): Ditto.
2795 (writeObject): New serialization method.
2796 (readObject): New serialization method.
2797 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2798 to allow constructor to have a return type (i.e. the class that the
2799 constructor constructs).
2801 2000-11-14 Tom Tromey <tromey@cygnus.com>
2803 * Makefile.in: Rebuilt.
2804 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2807 2000-11-02 Warren Levy <warrenl@cygnus.com>
2809 * java/io/ObjectInputStream.java (readObject): Added code to
2810 conditionally dump out the serialized data.
2811 Handle ENDBLOCKDATA case a bit more gracefully since the current
2812 behavior doesn't seem to work as expected.
2813 (readStreamHeader): Added code for serialized data dumper.
2814 (readNextBlock): Ditto.
2815 (readFields): Ditto.
2816 (dump): New private static field for turning on/off dumper.
2817 (setDump): New native method.
2818 (dumpElement): New native method.
2819 (dumpElementln): New native method.
2820 * java/io/natObjectInputStream.cc (setDump): New method.
2821 (dumpElement): New method.
2822 (dumpElementln): New method.
2824 2000-11-02 Warren Levy <warrenl@cygnus.com>
2826 * java/net/InetAddress.java (addr): Renamed from 'address'.
2827 (address): New field to match Serialized Form doc.
2828 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2829 (family): New serialization field.
2830 (serialVersionUID): New field.
2831 (readObject): New method.
2832 (writeObject): New method.
2833 (getFamily): New native method.
2834 (InetAddress): Set family.
2835 * java/net/natInetAddress.cc (getFamily): New method.
2836 (addr): Renamed from 'address'.
2837 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2838 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2839 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2841 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2843 * java/util/AbstractList.java (SubList): Make it a top-level private
2845 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2847 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2848 * Makefile.in: Rebuilt.
2850 2000-11-02 Tom Tromey <tromey@cygnus.com>
2852 * Makefile.in: Rebuilt.
2853 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2856 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2858 * java/util/AbstractList.java (remove): Comment out modCount increment
2859 to work around compiler bug.
2862 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2864 * java/util/AbstractList.java: Throw messages with
2865 IndexOutOfBoundsExceptions.
2866 (listIterator()): Call listIterator(0).
2867 (size): New field. Initialize to size().
2868 (hasNext): Test position against size, not size().
2869 (remove): Increment knownMod by one instead of resetting it from
2872 (SubList.upMod): Removed.
2873 (SubList.set): Don't call upMod() or update knownMod.
2874 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2875 (SubList.remove): Ditto.
2876 (SubList.addAll): Don't call backingList.size(). Increment size from
2878 (SubList.iterator): New method. Call listIterator(0).
2879 (SubList.listIterator): New method. Restore code to return an anonymous
2880 listIterator implementation (with some changes).
2881 * java/util/AbstractSequentialList.java: Throw messages with
2882 IndexOutOfBoundsExceptions.
2883 (addAll): Add a specnote.
2884 * java/util/ArrayList.java (removeRange): Get the math right.
2885 (addAll): Increment modCount _before_ creating iterator.
2886 * java/util/LinkedList.java: Rewritten, mostly.
2888 2000-11-01 Tom Tromey <tromey@cygnus.com>
2890 * scripts/encodings.pl: Added `ASCII' alias.
2891 * Makefile.in: Rebuilt.
2892 * Makefile.am (convert_source_files): Added new files.
2893 * gnu/gcj/convert/Input_ASCII.java: New file.
2894 * gnu/gcj/convert/Output_ASCII.java: New file.
2895 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2896 out-of-range characters.
2897 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2898 (read): Swap bytes if required. Treat `count' as character count,
2900 (write): Likewise. Also, handle case where iconv fails on a given
2902 (init): Put encoding into exception.
2903 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2904 (static): Call iconv_init. Rebuilt alias list.
2905 (iconv_init): New private method.
2907 2000-11-01 Tom Tromey <tromey@cygnus.com>
2909 * Makefile.in: Rebuilt.
2910 * Makefile.am (install-exec-hook): Only make a single symlink, and
2911 remove the destination before making the link.
2912 * configure: Rebuilt.
2913 * configure.in: Call AC_PROG_LN_S.
2915 2000-10-31 Warren Levy <warrenl@cygnus.com>
2917 * jni.cc: Added include of java/lang/ThreadGroup.h.
2918 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2919 per change of 2000-10-05.
2921 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2923 * java/util/BitSet.java: Updated @specnote.
2925 * java/io/Reader.java: Merge docs from classpath.
2926 (skip): Synchronize on `lock'.
2927 * java/io/FileReader.java: Import correct implementation from
2929 * java/io/StringReader.java: Merge docs from classpath.
2930 (ready): Throw IOException if stream is closed.
2932 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2934 * java/util/AbstractCollection.java (addAll): Use size() instead of
2935 hasNext() in iterator loop.
2937 (contains): Ditto. Simplify loop.
2938 (containsAll): Ditto.
2943 (toString): Ditto. Use string concatenation operators, not
2945 * java/util/AbstractList.java (addAll): Use size() instead of
2946 hasNext() in iterator loop.
2949 (indexOf): Ditto. Don't take null check outside of the loop.
2950 (iterator): Return an AbstractListItr instead of anonymous class.
2951 (lastIndexOf): Use a for loop bounded by size() instead of
2952 hasPrevious() in iterator loop.
2953 (listIterator): Return an AbstractListItr.
2954 (removeRange): Remove bounds checking code and docs.
2955 (AbstractListItr): New inner class. Code moved here from
2957 (SubList.iterator): Removed. Use default implementation from
2958 AbstractList instead.
2959 (SubList.listIterator): As above.
2960 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2961 instead of hasNext() in iterator loop.
2962 (containsValue): Ditto.
2968 (toString): Ditto. Use string concatenation operators, not
2970 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2971 bounded by size() instead of hasNext() in iterator loop.
2972 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2973 part of normal execution flow. Do an explicit null check instead.
2974 * java/util/ArrayList.java (_iSize): Rename to `size'.
2975 (_arData): Rename to `data'.
2976 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2979 (removeRange): Make protected. Don't check bounds.
2980 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2982 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2984 (addAll (int, Collection)): Check lower bounds. Simplify exception
2986 (clone): Clone the data array too.
2987 (indexOf): Inline doesEqual().
2988 (lastIndexOf): Ditto.
2989 (clear): Don't set array data to null.
2990 (set): Check lower bounds. Simplify exception string.
2991 (toArray): Correct comment.
2992 (trimToSize): Don't update modCount, this is not a structural change.
2995 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2997 (toString): Declare `bit' as long, not int.
2998 (data): Made package-private, not private.
3000 2000-10-27 Warren Levy <warrenl@cygnus.com>
3002 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3003 array elements to true.
3005 2000-10-27 Warren Levy <warrenl@cygnus.com>
3007 * Makefile.am: Added locale files from Classpath.
3008 * Makefile.in: Rebuilt.
3009 * gnu/java/locale/Calendar.java: New file.
3010 * gnu/java/locale/Calendar_de.java: New file.
3011 * gnu/java/locale/Calendar_en.java: New file.
3012 * gnu/java/locale/Calendar_nl.java: New file.
3013 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3014 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3015 serialization compatibility.
3016 (scale): Made private.
3017 (serialVersionUID): New field.
3018 * java/math/BigInteger.java (ival): Made transient.
3019 (words): Made transient.
3020 (bitCount): New serialization field.
3022 (firstNonzeroByteNum): Ditto.
3023 (lowestSetBit): Ditto.
3026 (serialVersionUID): New field.
3027 (readObject): New method.
3028 (writeObject): New method.
3029 * java/util/BitSet.java (serialVersionUID): New field.
3030 * java/util/Calendar.java: Replaced with Classpath file.
3031 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3032 of getDefault() for TimeZone or Locale instead of passing nulls.
3033 * java/util/Locale.java (serialVersionUID): New field.
3034 (writeObject): New method.
3035 (readObject): New method.
3036 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3038 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3040 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3041 (core_java_source_files): Put java.lang, java.io, and java.util here.
3042 (ordinary_java_source_files): Order so that core_java_source_files are
3044 (java_source_files): Reorder so that special_java_source_files are
3046 * configure.in: Don't pass -I flag to gcj.
3047 * Makefile.in: Rebuilt.
3048 * configure: Rebuilt.
3050 2000-10-25 Tom Tromey <tromey@cygnus.com>
3052 * Makefile.in: Rebuilt.
3053 * Makefile.am (install-exec-hook): New target.
3055 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3057 * java/util/EventObject.java: Merged from classpath.
3059 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3062 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3064 * java/util/AbstractSet.java (equals): Re-installed original code.
3066 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3068 * Makefile.am: Added rules for libgcjx library.
3069 * Makefile.in: Rebuilt.
3070 * configure.in: Added check for X.
3071 * configure: Rebuilt.
3072 * gnu/awt/LightweightRedirector.java: New file.
3073 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3074 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3075 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3076 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3077 * gnu/awt/j2d/MappedRaster.java: New file.
3078 * gnu/awt/xlib/XCanvasPeer.java: New file.
3079 * gnu/awt/xlib/XEventLoop.java: New file.
3080 * gnu/awt/xlib/XEventQueue.java: New file.
3081 * gnu/awt/xlib/XFontMetrics.java: New file.
3082 * gnu/awt/xlib/XFramePeer.java: New file.
3083 * gnu/awt/xlib/XGraphics.java: New file.
3084 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3085 * gnu/awt/xlib/XPanelPeer.java: New file.
3086 * gnu/awt/xlib/XToolkit.java: New file.
3087 * gnu/gcj/xlib/Clip.java: New file.
3088 * gnu/gcj/xlib/Colormap.java: New file.
3089 * gnu/gcj/xlib/Display.java: New file.
3090 * gnu/gcj/xlib/Drawable.java: New file.
3091 * gnu/gcj/xlib/Font.java: New file.
3092 * gnu/gcj/xlib/GC.java: New file.
3093 * gnu/gcj/xlib/Pixmap.java: New file.
3094 * gnu/gcj/xlib/Screen.java: New file.
3095 * gnu/gcj/xlib/Visual.java: New file.
3096 * gnu/gcj/xlib/WMSizeHints.java: New file.
3097 * gnu/gcj/xlib/Window.java: New file.
3098 * gnu/gcj/xlib/WindowAttributes.java: New file.
3099 * gnu/gcj/xlib/XAnyEvent.java: New file.
3100 * gnu/gcj/xlib/XButtonEvent.java: New file.
3101 * gnu/gcj/xlib/XColor.java: New file.
3102 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3103 * gnu/gcj/xlib/XConnectException.java: New file.
3104 * gnu/gcj/xlib/XEvent.java: New file.
3105 * gnu/gcj/xlib/XException.java: New file.
3106 * gnu/gcj/xlib/XExposeEvent.java: New file.
3107 * gnu/gcj/xlib/XID.java: New file.
3108 * gnu/gcj/xlib/XImage.java: New file.
3109 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3110 * gnu/gcj/xlib/natClip.cc: New file.
3111 * gnu/gcj/xlib/natColormap.cc: New file.
3112 * gnu/gcj/xlib/natDisplay.cc: New file.
3113 * gnu/gcj/xlib/natDrawable.cc: New file.
3114 * gnu/gcj/xlib/natFont.cc: New file.
3115 * gnu/gcj/xlib/natGC.cc: New file.
3116 * gnu/gcj/xlib/natPixmap.cc: New file.
3117 * gnu/gcj/xlib/natScreen.cc: New file.
3118 * gnu/gcj/xlib/natVisual.cc: New file.
3119 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3120 * gnu/gcj/xlib/natWindow.cc: New file.
3121 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3122 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3123 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3124 * gnu/gcj/xlib/natXColor.cc: New file.
3125 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3126 * gnu/gcj/xlib/natXException.cc: New file.
3127 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3128 * gnu/gcj/xlib/natXImage.cc: New file.
3129 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3130 * java/awt/EventDispatchThread.java: Start thead on creation.
3132 2000-10-20 Tom Tromey <tromey@cygnus.com>
3134 From Arno J. Klaassen:
3135 * interpret.cc: Include <stdlib.h> for alloca.
3136 * defineclass.cc: Include <stdlib.h> for alloca.
3138 * Makefile.in: Rebuilt.
3139 * Makefile.am: Include deps.mk.
3140 (GCJCOMPILE): Added -MD, -MT, and -MF.
3141 ($(javao_files)): Don't depend on libgcj.zip.
3142 (all-recursive): New target.
3143 (%.lo:%.cc): Do dependency tracking.
3144 ($(nat_headers)): Don't depend on libgcj.zip.
3145 * configure: Rebuilt.
3146 * configure.in: Make .d files and deps.mk.
3148 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3150 * exception.cc: Don't #include "exception".
3151 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3153 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3154 * Makefile.in: Updated.
3156 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3158 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3159 * java/awt/peer/ComponentPeer.java (disable): Removed.
3162 (minimumSize): Removed.
3163 (preferredSize): Removed.
3166 * java/awt/peer/ListPeer.java (addItem): Removed.
3168 (minimumSize): Removed.
3169 (preferredSize): Removed.
3170 (setMultipleSelections): Removed.
3171 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3172 (remove): Renamed from removeMenu.
3173 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3175 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3176 (remove): Renamed from removeItem.
3177 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3178 (getMinimumSize): Removed.
3179 (getPreferredSize): Removed.
3180 (minimumSize): Removed.
3181 (preferredSize): Removed.
3182 (replaceText): Removed.
3183 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3184 (preferredSize): Removed.
3185 (getMinimumSize): Removed.
3186 (getPreferredSize): Removed.
3187 (setEchoCharacter): Removed.
3189 2000-10-10 Warren Levy <warrenl@cygnus.com>
3191 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3192 * java/sql/Date.java (serialVersionUID): New field.
3193 * java/sql/Time.java (serialVersionUID): New field.
3194 * java/sql/Timestamp.java (serialVersionUID): New field.
3195 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3196 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3197 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3198 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3199 (readObject): New serialization method.
3200 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3201 (serialVersionOnStream): New field.
3202 (readObject): New serialization method.
3203 (getMonetaryDecimalSeparator): New method.
3204 (setMonetaryDecimalSeparator): New method.
3205 * java/text/NumberFormat.java (maxFractionDigits): New field.
3206 (maxIntegerDigits): New field.
3207 (minFractionDigits): New field.
3208 (minIntegerDigits): New field.
3209 (serialVersionOnStream): New field.
3210 (serialVersionUID): New field.
3211 (readObject): New serialization method.
3212 (writeObject): New serialization method.
3213 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3214 (serialVersionOnStream): New field.
3215 (serialVersionUID): New field.
3216 (readObject): New serialization method.
3218 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3220 * configure.in (GCJ): Avoid bogus error message when looking for
3221 (and not finding) gcj in the build tree.
3222 * configure: Rebuilt.
3224 2000-10-09 Tom Tromey <tromey@cygnus.com>
3226 * configure: Rebuilt.
3227 * configure.in: Include sys/types.h when checking for socklen_t.
3228 From Arno J. Klaassen.
3230 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3232 * include/jvm.h: Enable __builtin_expect().
3234 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3235 the main program. Fix for PR libgcj/341.
3237 2000-10-07 Tom Tromey <tromey@cygnus.com>
3239 * java/util/Properties.java: Merged with Classpath version.
3241 2000-10-05 Tom Tromey <tromey@cygnus.com>
3243 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3244 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3245 * java/lang/Class.h (Object): Added `class$' field.
3246 * java/lang/Object.h (Object): Added `class$' field.
3247 * defineclass.cc (ClassClass): Use `class$' form.
3248 (ClassObject): Likewise.
3249 * resolve.cc (ClassObject): Use `class$' form.
3250 (ObjectClass): Likewise.
3251 * interpret.cc (ClassError): Removed.
3252 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3254 (IntegerClass): Likewise.
3255 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3257 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3258 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3259 SerializableClass): Likewise.
3260 Include Serializable.h, Cloneable.h.
3261 * java/lang/natSystem.cc (SystemClass): Removed.
3262 (init_properties): Use `class$' form.
3263 * java/lang/natObject.cc (CloneableClass): Removed.
3264 (clone): Use `class$' form.
3265 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3266 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3267 ConstructorClass): Likewise.
3268 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3269 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3270 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3271 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3273 (ClassClass): Likewise.
3274 * include/jvm.h (StringClass): Use `class$' form.
3275 * prims.cc (ObjectClass): Removed.
3276 (_Jv_RunMain): Use `class$' form.
3277 (_Jv_AllocObject): Likewise.
3278 * jni.cc (ClassClass): Use `class$' form.
3279 (ThrowableClass): Likewise.
3280 (ObjectClass): Likewise.
3281 (MethodClass): Likewise.
3282 (ThreadGroupClass): Likewise.
3283 (NativeThreadClass): Likewise.
3284 * boehm.cc (ObjectClass): Removed.
3285 (ClassClass): Removed.
3286 (_Jv_MarkObj): Use `class$' form.
3287 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3290 2000-10-05 Warren Levy <warrenl@cygnus.com>
3292 * Makefile.am: Removed java/io/Replaceable.java and
3293 java/io/Resolvable.java.
3294 * Makefile.in: Rebuilt.
3295 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3297 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3299 (processResolution): Handle readResolve method via reflection with
3300 removal of Resolvable interface.
3301 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3302 method via reflection with removal of Replaceable interface.
3303 * java/io/Replaceable.java: Removed.
3304 * java/io/Resolvable.java: Removed.
3305 * java/security/Key.java (serialVersionUID): New field.
3306 * java/security/Provider.java (serialVersionUID): New field.
3307 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3309 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3311 * java/sql/DataTruncation.java (serialVersionUID): New field.
3312 * java/sql/SQLException.java (serialVersionUID): New field.
3313 * java/sql/SQLWarning.java (serialVersionUID): New field.
3314 * java/util/Date.java (serialVersionUID): New field.
3315 (millis): Made transient.
3316 (readObject): New method.
3317 (writeObject): New method.
3319 2000-10-05 Tom Tromey <tromey@cygnus.com>
3321 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3323 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3325 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3326 (JvRunMain): Set _Jv_argv and _Jv_argc.
3327 * java/awt/Component.java: Minor fixes.
3328 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3329 * java/awt/Toolkit.java (systemEventQueue): Removed.
3330 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3331 * java/awt/Window.java (getToolkit): Don't call super.
3332 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3333 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3334 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3335 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3336 * gnu/awt/gtk/GtkFramePeer.java: New file.
3337 * gnu/awt/gtk/GtkMainThread.java: New file.
3338 * gnu/awt/gtk/GtkToolkit.java: New file.
3339 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3340 * gnu/awt/gtk/gtkcommon.cc: New file.
3341 * gnu/awt/gtk/gtkcommon.h: New file.
3342 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3343 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3344 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3345 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3346 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3347 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3349 2000-09-30 Tom Tromey <tromey@cygnus.com>
3351 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3352 interrupted before modifying the cv's wait set.
3355 2000-09-30 Hans Boehm <boehm@acm.org>
3356 Bryce McKinlay <bryce@albatross.co.nz>
3358 Implement bitmap descriptor based marking for Boehm GC.
3360 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3361 * configure: Rebuilt.
3362 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3363 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3364 method get_finalizer().
3365 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3366 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3367 (_Jv_AllocObj): Add new jclass parameter.
3368 (_Jv_AllocArray): Ditto.
3369 (_Jv_BuildGCDescr): New prototype.
3370 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3371 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3372 get_finalizer() instead of direct finalizer vtable offset.
3373 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3374 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3375 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3376 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3377 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3378 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3379 (_Jv_DetermineVTableIndex): Ditto.
3380 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3381 calculations to account for new gc_descr field.
3382 * boehm.cc: #include gc_gcj.h.
3383 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3384 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3385 New commentary from HB. Mark the classes vtable.
3386 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3387 (GC_DEFAULT_DESCR): New #define.
3388 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3389 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3390 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3391 scan conservativly if size is less than min_heap_addr. Set vtable
3392 pointer of new object before returning.
3393 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3394 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3395 allocation for obj_kind_x.
3396 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3397 (_Jv_AllocObj): Set vtable on returned object.
3398 (_Jv_AllocArray): Ditto.
3399 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3400 (_Jv_NewPrimArray): Ditto.
3401 (_Jv_AllocObj): Declare as a friend.
3402 (_Jv_AllocArray): Ditto.
3403 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3404 from &ObjectClass into new array class. Remove offset-by-one
3405 adjustments from `method' size calculations to account for gc_descr
3408 2000-09-26 Tom Tromey <tromey@cygnus.com>
3410 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3411 `remove', not `add'.
3413 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3415 * java/lang/natSystem.cc (file_encoding): Added return statement.
3417 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3419 * Makefile.am: Re-work shell commands that exceeded command-line
3421 * Makefile.in: Rebuilt.
3423 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3425 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3426 * java/lang/natDouble.cc: Likewise.
3427 * java/lang/reflect/natMethod.cc: Likewise.
3428 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3430 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3432 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3434 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3435 * acinclude.m4: Arrange for automake to not bring in a new
3436 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3437 * Makefile.am: Leave it up to automake to subst GCJ.
3438 * aclocal.m4, configure, Makefile.in: Rebuilt.
3440 2000-09-13 Tom Tromey <tromey@cygnus.com>
3442 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3443 (get): Ensure Boolean class is initialized.
3444 * java/lang/reflect/natField.cc (BooleanClass): New define.
3445 (get): Ensure Boolean class is initialized.
3447 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3449 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3450 Initialize with anonymous class.
3451 (compareToIgnoreCase): New method.
3453 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3454 (uncaughtException): Set had_uncaught_exception.
3455 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3456 exit with error status if set.
3457 (_Jv_RunMain): Ditto.
3459 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3461 * configure: Rebuilt with new ../libtool.m4.
3463 2000-09-11 Tom Tromey <tromey@cygnus.com>
3465 * java/lang/reflect/Field.java (toString): Don't rely on
3468 2000-09-08 Tom Tromey <tromey@cygnus.com>
3470 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3471 default decoder use iconv.
3472 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3473 Let default encoder use iconv.
3474 * configure: Rebuilt.
3475 * configure.in: Check for nl_langinfo and <langinfo.h>.
3476 * java/lang/natSystem.cc (file_encoding): New function.
3477 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3479 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3481 * acinclude.m4: Simplify the tests for CC and CXX.
3482 * aclocal.m4, configure: Rebuilt.
3484 * acinclude.m4: Include libtool macros from the source tree.
3485 * aclocal.m4, configure: Rebuilt.
3487 2000-09-08 Warren Levy <warrenl@cygnus.com>
3489 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3490 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3491 * java/io/File.java (writeObject): Added.
3492 (readObject): Added.
3493 (serialVersionUID): Added.
3494 * java/io/ObjectOutputStream.java (writeObject): Initialized
3495 fieldsAlreadyWritten before recursion rather than after.
3496 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3497 * java/io/OptionalDataException.java (serialVersionUID): Added.
3498 (OptionalDataException): Made package private.
3499 * java/io/SyncFailedException.java (SyncFailedException): Removed
3500 default constructor to match spec.
3501 * java/lang/Boolean.java (serialVersionUID): Added.
3502 * java/lang/Byte.java (serialVersionUID): Added.
3503 * java/lang/Character.java (serialVersionUID): Added.
3504 * java/lang/Double.java (serialVersionUID): Added.
3505 * java/lang/Float.java (serialVersionUID): Added.
3506 * java/lang/Integer.java (serialVersionUID): Added.
3507 * java/lang/Long.java (serialVersionUID): Added.
3508 * java/lang/Number.java (serialVersionUID): Added.
3509 * java/lang/Short.java (serialVersionUID): Added.
3510 * java/lang/String.java (serialVersionUID): Added.
3511 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3513 * java/lang/reflect/InvocationTargetException.java
3514 (serialVersionUID): Added.
3515 * java/net/URL.java (handler): Made transient.
3516 (hashCode): Added field for serialization, per spec. and use
3517 cached value if available.
3518 (serialVersionUID): Added.
3519 (URL): Initialize hashCode.
3520 (set): Adjust hashCode.
3521 (readObject): New Method to initialize the protocol handler when
3523 (writeObject): New method.
3524 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3525 * java/text/Collator.java: Removed 'implements Serializable'.
3526 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3527 * java/util/Properties.java (serialVersionUID): Added.
3528 * java/util/Random.java (serialVersionUID): Added.
3529 (seed): Made private.
3530 (nextNextGaussian): Made private.
3531 (haveNextNextGaussian): Made private.
3532 * java/util/Stack.java (serialVersionUID): Added.
3533 * java/util/TimeZone.java (serialVersionUID): Added.
3534 * java/util/Vector.java (serialVersionUID): Added.
3536 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3538 * Makefile.am (Thread.h): Don't be friends with native threads
3540 * Makefile.in: Rebuilt.
3541 * java/lang/Thread.java (interrupt_flag): Make package-private.
3543 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3545 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3546 to avoid long long division.
3548 2000-09-06 Tom Tromey <tromey@cygnus.com>
3550 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3552 * java/lang/reflect/Method.java (toString): Use `getName' for
3555 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3556 `args' if method takes no parameters.
3558 Fix for PR java.lang/339:
3559 * java/lang/natPosixProcess.cc (fail): New function.
3560 (cleanup): New function.
3561 (startProcess): Use them. Create pipe so child can communicate
3562 exec failure back to parent.
3564 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3566 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3568 (send): Undo last patch. Remove the label only.
3570 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3572 * java/net/natInetAdress.cc: Ditto.
3574 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3576 2000-09-05 Tom Tromey <tromey@cygnus.com>
3578 * doc/cni.sgml: Updated from master copy.
3580 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3582 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3584 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3586 * java/lang/fdlibm.h: #undef __P if previously defined.
3587 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3588 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3592 2000-09-04 Tom Tromey <tromey@cygnus.com>
3594 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3597 2000-09-04 Anthony Green <green@redhat.com>
3599 Fix for PR java.io/203:
3600 * java/io/File.java (createTempFile): Obey directory argument.
3601 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3602 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3603 variable to set java.io.tmpdir on non-WIN32 systems.
3605 2000-09-04 Anthony Green <green@redhat.com>
3607 * java/io/File.java (deleteOnExit): New method.
3608 * gnu/gcj/runtime/FileDeleter.java: New class.
3609 * java/lang/natRuntime.cc (exit): Call
3610 FileDeleter.deleteOnExitNow()
3611 * Makefile.am: Add FileDeleter.java.
3612 * Makefile.in: Rebuilt.
3614 2000-09-02 Tom Tromey <tromey@cygnus.com>
3616 * Makefile.in: Rebuilt.
3617 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3618 environment variable.
3620 2000-09-01 Andrew Haley <aph@redhat.com>
3622 * java/io/StreamTokenizer.java: Don't throw a
3623 NumberFormatException if a field is numeric as far as the
3624 StreamTokenizer is concerned but not as far as Double.valueOf() is
3625 concerned: return a zero instead.
3627 2000-08-30 Tom Tromey <tromey@cygnus.com>
3629 * Makefile.in: Rebuilt.
3630 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3632 2000-08-28 Tom Tromey <tromey@cygnus.com>
3634 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3635 gnu/gcj/awt/ComponentDataBlitOp.java,
3636 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3637 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3638 java/awt/color/ICC_ColorSpace.java,
3639 java/awt/color/ICC_Profile.java,
3640 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3641 java/awt/image/ComponentColorModel.java,
3642 java/awt/image/ComponentSampleModel.java,
3643 java/awt/image/DataBuffer.java,
3644 java/awt/image/DataBufferByte.java,
3645 java/awt/image/DataBufferInt.java,
3646 java/awt/image/DataBufferUShort.java,
3647 java/awt/image/DirectColorModel.java,
3648 java/awt/image/IndexColorModel.java,
3649 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3650 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3651 java/awt/image/SinglePixelPackedSampleModel.java,
3652 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3653 Removed Latin-1 copyright symbols.
3654 * java/util/zip/ZipFile.java: Indentation fixes.
3656 2000-08-27 Mark Wielaard <mark@klomp.org>
3658 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3659 constructor, close can delete the file, finalize calls close.
3660 * java/util/jar/JarFile.java: Constructor that takes mode now
3663 2000-08-27 Anthony Green <green@redhat.com>
3665 * java/util/ArrayList.java, java/util/Timer.java,
3666 java/util/LinkedList.java, java/util/TimerTask.java,
3667 java/util/HashMap.java, java/util/AbstractMap.java,
3668 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3669 java/util/SortedSet.java: Imported from GNU Classpath.
3670 * Makefile.in: Rebuilt.
3671 * Makefile.am: Added new files.
3673 2000-08-26 Anthony Green <green@redhat.com>
3675 * Makefile.in: Rebuilt.
3676 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3679 * prims.cc: Include ClassLoader.h.
3680 (_Jv_RunMain): When executing jar files, classpath must be the jar
3681 file only. Lose our reference to the system ClassLoader in order
3682 to get a new one with the correct classpath.
3683 * java/lang/natSystem.cc (init_properties): When executing a jar
3684 file, only use the jar file for java.class.path.
3686 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3687 for bytecode archives.
3689 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3690 exists, but not Main-Class.
3692 2000-08-23 Mark Wielaard <mark@klomp.org>
3694 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3695 return -1 when fill() has no more data for the Inflater.
3697 2000-08-23 Mark Wielaard <mark@klomp.org>
3699 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3700 write(String) already does.
3702 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3704 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3705 to `alive_flag', call `init'.
3706 (init): New native method.
3707 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3710 2000-08-21 Mark Wielaard <mark@klomp.org>
3712 * Makefile.in: Rebuilt.
3713 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3715 (java/lang/reflect/Field.h): Likewise.
3716 (java/lang/reflect/Method.h): Likewise.
3717 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3720 2000-08-21 Tom Tromey <tromey@cygnus.com>
3722 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3725 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3727 * java/lang/natSystem.cc (init_properties): Change sourceware
3728 reference to sources.redhat.com.
3730 * include/java-props.h: Add _Jv_Jar_Class_Path.
3731 * prims.cc: Ditto. Set it from `gij -jar file' option.
3733 * java/lang/natSystem.cc (init_properties): Set java.class.path
3735 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3737 * java/util/PropertyPermission.java: Import from GNU Classpath.
3738 * Makefile.in: Rebuilt.
3739 * Makefile.am: Add java/util/PropertyPermission.java.
3740 * java/lang/System.java: Add setProperty method.
3742 * gij.cc (main): Add -jar option to execute jar files.
3743 (help): Describe -jar option.
3744 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3745 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3746 * gnu/gcj/runtime/FirstThread.java (main): New method.
3748 * java/util/jar/Attributes.java: Correct comment spelling.
3750 2000-08-20 Mark Wielaard <mark@klomp.org>
3752 * java/util/zip/Adler32.java: Make private variables really private
3753 * java/util/zip/CRC32.java: Make private variables really private
3754 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3756 * java/util/zip/InflaterInputStream.java: skip() could skip to
3758 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3759 * java/util/zip/ZipFile.java: size() new 1.2 method
3760 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3761 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3764 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3766 * java/util/jar/JarFile.java: Don't call
3767 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3770 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3772 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3773 Read the entire contents of the class file, not just what is
3776 * java/net/JarURLConnection.java: getEntry doesn't take any
3777 arguments. Return null if element is null.
3779 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3780 size from the archive, not the inflated size.
3782 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3783 java.util.zip.ZipFile.getEntry.
3785 * gij.cc (help): Change sourceware reference to
3788 2000-08-19 Tom Tromey <tromey@cygnus.com>
3790 * java/util/zip/ZipInputStream.java (createZipEntry):
3793 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3795 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3796 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3797 java/util/jar/JarInputStream.java,
3798 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3799 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3800 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3801 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3802 java/security/cert/Certificate.java,
3803 java/security/cert/CertificateEncodingException.java,
3804 java/security/cert/CertificateException.java,
3805 java/security/cert/CertificateExpiredException.java,
3806 java/security/cert/CertificateFactory.java,
3807 java/security/cert/CertificateFactorySpi.java,
3808 java/security/cert/CertificateNotYetValidException.java,
3809 java/security/cert/CertificateParsingException.java,
3810 java/security/cert/X509CRL.java,
3811 java/security/cert/X509CRLEntry.java,
3812 java/security/cert/X509Certificate.java,
3813 java/security/cert/X509Extension.java: Imported from Classpath.
3814 * java/util/Hashtable.java: Imported from Classpath.
3816 * java/util/zip/ZipInputStream.java: Create stub for
3819 * gcj/javaprims.h: Updated class list.
3821 * Makefile.in, gcj/Makefile.in: Rebuilt.
3822 * Makefile.am (ordinary_java_source_files): Add these new classes.
3824 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3826 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3827 * gnu/gcj/awt/GLightweightPeer.java: New file.
3828 * java/awt/BorderLayout.java: Implemented all methods.
3829 * java/awt/Button.java (actionListener, actionCommand): Renamed
3830 and modifier change.
3831 (addNotify): Call super.
3832 (dispatchEventImpl): New method.
3833 (getListeners): New method.
3834 (label): Made package-private, not private.
3835 * java/awt/Canvas.java: Implemented class body.
3836 * java/awt/Color.java (brighter): New method.
3837 (darker): New method.
3838 (hashCode): New method.
3839 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3840 (getGraphicsConfiguration): Delegate to
3841 getGraphicsConfigurationImpl().
3842 (getGraphicsConfigurationImpl): New method.
3843 (getToolkit): Only return value from peer if not null.
3844 (isDisplayable): Check with parent.
3845 (isShowing): No parent implies not showing.
3846 (getForeground): Check parent property if local is null.
3847 (getBackground): Likewise.
3848 (getFont): Likewise.
3849 (setForeground): Inform peer.
3850 (setBackground): Likewise
3851 (setLocale): Invalidate component.
3852 (getColorModel): Implemented.
3853 (setLocation): Invalidate, or ignore if no change.
3854 (setSize): Invalidate, or ignore if no change.
3855 (setBounds): Invalidate, or ignore if no change.
3856 (isOpaque): By default, heavyweight implies opaque.
3857 (isLightweight): Implemented.
3858 (getMaximumSize): Implemented.
3859 (doLayout): Implemented, NOP.
3860 (validate): Implemented, NOP.
3861 (invalidate): Only propagate to parent if parent was valid.
3862 (getGraphics): Implemented.
3863 (getFontMetrics): Implemented.
3864 (update): Implemented.
3865 (paintAll): Implemented.
3866 (repaint): Implemented all repaint methods.
3867 (print): Implemented.
3868 (printAll): Implemented.
3869 (createImage): Implemented.
3870 (dispatchEvent): Give the peer a chance to handle the event.
3871 (dispatchEventImpl): Dispatch paint events.
3872 (enableEvents): Lightweights enable events on parent component.
3873 (coalesceEvents): Coalesce paint events, and select event type
3875 (coalescePaintEvents): New method.
3876 (processEvent): Fix unfortunate ordering of statements, and call
3877 correct method for MOUSE_CLICKED.
3878 (processPaintEvent): New method.
3879 (addNotify): Allow container to notify children before event
3880 mask is set in peer.
3881 (addNotifyContainerChildren): New method.
3882 (removeNotify): Visibility should not change on removeNotify.
3883 (paramString): Implemented.
3884 (list): Implemented two of the list methods.
3885 * Container (myInsets): Removed, insets are managed by peer.
3886 (getInsets): Query peer.
3887 (addImpl): Fix reparenting, enable events for lightweights,
3888 initialize component array.
3889 (validate): Call doLayout in validateTree() instead.
3890 (validateTree): Do nothing if already valid. Call beginValidate(),
3891 endValidate() on peer. Call validateTree() instead of validate()
3892 for children that are containers. Mark valid after validation of
3894 (setFont): Partial implementation.
3895 (paint): Implemented.
3896 (visitChildren): New method.
3897 (visitChild): New method.
3898 (update): Implemented.
3899 (print): Implemented.
3900 (paintComponents): Implemented.
3901 (printComponents): Consider translation and clipping.
3902 (getComponentAt): Ignore invisible children. Return this if no
3904 (addNotify): Call super.
3905 (addNotifyContainerChildren): New method.
3906 (paramString): Implemented.
3907 (list): Implemented.
3908 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3910 (invokeLater): Likewise.
3911 (isDispatchThread): Likewise.
3912 * java/awt/FontMetrics (getLeading): Formula change.
3913 (getDescent): Consider leading also.
3914 (getMaxAscent): Default to getAscent().
3915 (getMaxDescent): Default to getDescent.
3916 (getMaxAdvance): Return value signifying unknown.
3917 (charWidth): Both methods implemented.
3918 (charsWidth): Implemented.
3919 (bytesWidth): Implemented.
3920 (getWidths): Implemented.
3921 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3923 (Frame): Rearragend constuctor chaining to disallow null being
3924 passed as a graphics configuration.
3925 (getTitle): Return empty string if null.
3927 (getIconImage): New method.
3928 (setIconImage): New method.
3929 (finalize): New method.
3930 (setMenuBar): Notify peer.
3931 (isResizable): New method.
3932 (setResizable): New method.
3933 (getState): New method.
3935 (remove): Implemented.
3936 (removeNotify): New method.
3937 (getFrames): New method.
3938 * java/awt/Graphics.java: Implemented body of class.
3939 * java/awt/Graphics2D.java: New file.
3940 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3941 * java/awt/Image.java: Implemented body of class.
3942 * java/awt/Panel.java (Panel): Call correct super constructor.
3943 (addNotify): Implemented.
3944 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3945 * java/awt/RenderingHints.java: New file.
3946 * java/awt/Toolkit.java (createComponent): Implemented.
3947 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3948 * java/awt/Window.java (Window): Two new constructors. Reordered
3949 constructor chaining.
3950 (getGraphicsConfigurationImpl): New method.
3951 (finalize): Call super.
3952 (addNotify): Call super.
3953 (pack): Do layout stuff.
3954 (show): Ensure that peer exists and that component is valid.
3955 (dispose): Dispose owned children.
3956 (getOwner): Simplify code, casting null pointers is valid.
3957 (getGraphicsConfiguration): Ask peer if local value is null.
3958 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3960 * java/awt/image/BufferedImage.java: New file.
3961 * java/awt/image/RasterOp.java: New file.
3962 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3963 More powerfull replacement for getColorModel().
3964 (getColorModel) Removed.
3965 (setEventMask) New method.
3966 * Makefile.am: Added new files.
3967 * Makefile.in: Rebuilt.
3969 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3971 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3972 (finit_leg_name): New global.
3973 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3974 `$finit$'. This is a backward compatibility hack.
3975 (java::lang::Class::_getMethods): Likewise.
3977 2000-08-15 Andrew Haley <aph@cygnus.com>
3979 * include/jvm.h (_Jv_HashCode): New hash code.
3981 2000-08-15 Tom Tromey <tromey@cygnus.com>
3983 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3985 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3987 * THANKS: More thanks.
3989 2000-08-10 Tom Tromey <tromey@cygnus.com>
3991 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3993 (connect): Likewise.
3995 (getOption): Likewise.
3996 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3997 case when errno not set.
4000 (receive): Likewise.
4001 (mcastGrp): Likewise.
4002 (setOption): Likewise.
4003 (getOption): Likewise.
4005 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4006 John Stracke <francis@ecal.com>
4008 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4009 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4011 (disconnect): Don't unset connected flag.
4012 (getHeaderField (String)): Call connect() if not connected.
4013 (getHeaderField (int)): Ditto.
4014 (getHeaderFieldKey): Ditto.
4015 (getHttpHeaders): Don't call connect().
4016 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4017 gotResponseVals): New fields.
4018 (getResponseCode): Call getResponseVals() conditionally.
4019 (getResponseMessage): Ditto.
4020 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4022 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4024 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4025 * Makefile.in: Rebuilt.
4026 * java/awt/Color.java (getTransparency): New method.
4027 * java/awt/Component.java: Various updates.
4028 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4029 after dealing with children.
4030 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4031 * java/awt/Window.java: Various new methods and updates.
4032 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4034 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4035 * java/awt/event/WindowEvent.java (paramString): Ditto.
4036 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4038 * java/awt/geom/Point2D.java (clone): Ditto.
4039 * java/awt/geom/RectangularShape.java (clone): Ditto.
4040 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4041 isAlphaPremultiplied): Make package-private, not private.
4043 2000-08-08 Tom Tromey <tromey@cygnus.com>
4045 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4046 surrogate characters.
4047 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4049 (write): Correct handling of surrogate characters.
4051 2000-08-07 Tom Tromey <tromey@cygnus.com>
4053 * java/lang/reflect/Method.java (hashCode): Use getName().
4054 (toString): Likewise.
4055 * java/lang/reflect/natMethod.cc (getType): Initialize
4058 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4060 * java/lang/reflect/Field.java (toString): Correct formatting.
4063 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4065 (receive): Streamlined.
4067 2000-08-05 Tom Tromey <tromey@cygnus.com>
4069 * java/io/PrintWriter.java: Merged comments from Classpath.
4070 (printlnUnsynchronized): Removed.
4071 (println()): Print the separator.
4072 (println): Call println(), not printlnUnsynchronized.
4073 (out): Now protected, to match spec.
4075 2000-08-04 Tom Tromey <tromey@cygnus.com>
4077 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4078 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4081 2000-08-03 Warren Levy <warrenl@cygnus.com>
4083 * java/io/ObjectInputStream.java (readFields): Turn off
4084 readDataFromBlock while reading via GetField.
4085 (GetField$1.get(String, Object)): Pass Class of default value to
4087 (getField): Allow for null default values.
4089 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4090 (PutField$1.put): Fixed calls of checkType in most of the put
4091 methods to pass the correct parameter.
4092 (PutField$1.put(String, Object)): Allow for null value arg.
4093 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4096 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4097 typo in spec'ed field name.
4098 (getSerialPersistentFields): Changed spelling of method to match
4099 the correct spelling of the spec'ed field name.
4101 2000-08-03 Tom Tromey <tromey@cygnus.com>
4103 * Makefile.in: Rebuilt.
4104 * Makefile.am (awt_java_source_files): Added new files.
4106 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4108 * Makefile.am: Add new AWT stubs.
4109 * java/awt/Canvas.java: New placeholder class.
4110 * java/awt/Checkbox.java: Ditto.
4111 * java/awt/CheckboxMenuItem.java: Ditto.
4112 * java/awt/Choice.java: Ditto.
4113 * java/awt/Dialog.java: Ditto.
4114 * java/awt/FileDialog.java: Ditto.
4115 * java/awt/List.java: Ditto.
4116 * java/awt/ScrollPane.java: Ditto.
4117 * java/awt/TextField.java: Ditto.
4118 * java/awt/datatransfer/Clipboard.java: Ditto.
4119 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4120 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4121 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4122 Some commented out. Partially implemented.
4123 * java/awt/natToolkit.cc: Removed file.
4125 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4127 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4128 Fixes "make -j" builds.
4129 * Makefile.in: Rebuild.
4131 2000-08-02 Tom Tromey <tromey@cygnus.com>
4133 * Makefile.in: Rebuilt.
4134 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4135 * java/net/natPlainSocketImpl.cc: Include posix.h.
4136 (accept): Use _Jv_select.
4137 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4138 (receive): Use _Jv_select.
4139 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4140 (available): Use _Jv_select.
4141 * java/lang/natSystem.cc: Include posix.h.
4142 (currentTimeMillis): Use _Jv_gettimeofday.
4143 * include/posix.h: New file.
4144 * posix.cc: New file.
4146 * scripts/encodings.pl: New file.
4147 * Makefile.in: Rebuilt.
4148 * Makefile.am (convert_source_files): Added IOConverter.java.
4149 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4151 (getDefaultDecodingClass): Canonicalize default encoding name.
4152 (getEncoder): Likewise.
4153 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4155 (getDefaultDecodingClass): Canonicalize default encoding name.
4156 (getDecoder): Likewise.
4157 * gnu/gcj/convert/IOConverter.java: New file.
4159 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4161 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4162 to match C declaration in ffi.h.
4163 * Makefile.am: Add java/awt/Button.java.
4164 * Makefile.in: Rebuilt.
4166 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4168 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4169 cast of the second argument to `ffi_raw_call' changed to match
4172 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4174 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4175 argument to `ffi_raw_call' changed to match prototype.
4177 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4179 * java/awt/Component.java (toString): Implemented.
4180 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4181 dispatchEvent() to dispatch the event.
4182 (removeImpl): Ditto.
4184 2000-07-30 Anthony Green <green@redhat.com>
4186 * java/awt/Component.java: Add treeLock object.
4187 (getTreeLock): Implement.
4188 (isShowing): Implement.
4190 2000-07-30 Tom Tromey <tromey@cygnus.com>
4192 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4194 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4196 * java/awt/Window.java (addNotify): Wrote.
4197 (addWindowListener): Wrote.
4199 (getWarningString): Wrote.
4200 (processEvent): Wrote.
4201 (processWindowEvent): Wrote.
4202 (removeWindowListener): Wrote.
4203 (show): Call validate(), setVisible().
4207 * java/awt/Toolkit.java (createWindow): Declare.
4209 * java/awt/Frame.java (addNotify): Use getToolkit to find
4212 * java/awt/Component.java (invalidate): Wrote.
4214 (getToolkit): Wrote.
4216 * java/awt/Container.java (addContainerListener): Removed
4218 (removeContainerListener): Likewise.
4220 (add(Component)): Use it.
4221 (add(String,Component)): Likewise.
4222 (add(Component,int)): Likewise.
4223 (add(Component,Object)): Likewise.
4224 (add(Component,Object,int)): Likewise.
4226 (getAlignmentX): Wrote.
4227 (getAlignmentY): Wrote.
4228 (getComponentAt): Wrote.
4229 (getMaximumSize): Wrote.
4230 (invalidate): Wrote.
4231 (list(PrintStream,int)): Wrote.
4232 (list(PrintWriter,int)): Wrote.
4233 (getMinimumSize): Wrote.
4234 (getPreferredSize): Wrote.
4235 (printComponents): Wrote.
4236 (processContainerEvent): Look at containerListener, not
4238 (remove): Added event processing and peer destruction.
4239 (removeAll): Use remove.
4240 (removeNotify): Wrote.
4242 (validateTree): Wrote.
4244 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4245 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4246 * java/awt/Container.java (addNotify): Don't create Container
4248 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4250 2000-07-30 Tom Tromey <tromey@cygnus.com>
4252 * java/awt/Container.java (remove(int)): Wrote.
4253 (remove(Component)): Wrote.
4254 (add(Component)): Wrote.
4255 (add(Component,int)): Wrote.
4257 (addNotify): Set our own peer.
4258 * java/awt/Scrollbar.java (listeners): Changed type.
4259 (Scrollbar): Don't initialize listeners.
4261 (setValue): Call setValues.
4262 (setMinimum): Likewise.
4263 (setMaxPriority): Likewise.
4264 (setVisibleAmount): Likewise.
4266 (setUnitIncrement): Forward to peer.
4267 (setLineIncrement): Call setUnitIncrement.
4268 (setPageIncrement): Call setBlockIncrement.
4269 (setBlockIncrement): Forward to peer.
4270 (addAdjustmentListener): Rewrote.
4271 (removeAdjustmentListener): Rewrote.
4272 (processAdjustmentEvent): Rewrote.
4273 (paramString): Wrote.
4274 * Makefile.in: Rebuilt.
4275 * Makefile.am (awt_java_source_files): Added Button.java.
4276 * java/awt/Button.java: New file.
4277 * java/awt/Toolkit.java (createLabel): Declare.
4278 (createButton): Likewise.
4279 (createScrollbar): Likewise.
4280 (createContainer): Likewise.
4281 * java/awt/Label.java (addNotify): Wrote.
4282 (setAlignment): Call setAlignment in the peer.
4283 (setText): Call setText in the peer.
4285 2000-07-28 Warren Levy <warrenl@cygnus.com>
4287 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4288 NotSerializableException with just the class name.
4290 2000-07-26 Andrew Haley <aph@cygnus.com>
4292 * interpret.cc (continue1): Insert missing break into switch.
4294 2000-07-28 Warren Levy <warrenl@cygnus.com>
4296 * java/io/ObjectStreamException.java: Made constructors protected.
4298 2000-07-27 Tom Tromey <tromey@cygnus.com>
4300 * java/io/OutputStreamWriter.java (close): Only flush if not
4303 2000-07-27 Warren Levy <warrenl@cygnus.com>
4305 * mauve-libgcj: Activated serialization tests.
4306 * gcj/field.h (getModifiers): Mask off unknown flags.
4307 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4308 spurious bits don't cause discrepancies.
4309 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4310 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4311 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4312 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4313 * java/lang/Throwable.java (serialVersionUID): New field.
4314 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4315 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4317 * java/lang/reflect/natMethod.cc: Ditto.
4318 * java/security/Key.java (serialVersionUID): Removed field for now.
4319 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4320 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4322 2000-07-22 Tom Tromey <tromey@cygnus.com>
4324 * java/awt/geom/RectangularShape.java (getPathIterator):
4327 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4329 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4330 stub libjava/java/awt/ColorModel.java which was located in the
4332 * libjava/java/awt/image/ComponentColorModel.java: New file.
4333 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4334 * libjava/java/awt/image/DataBuffer.java: New file.
4335 * libjava/java/awt/image/DataBufferByte.java: New file.
4336 * libjava/java/awt/image/DataBufferInt.java: New file.
4337 * libjava/java/awt/image/DataBufferUShort.java: New file.
4338 * libjava/java/awt/image/DirectColorModel.java: New file.
4339 * libjava/java/awt/image/PackedColorModel.java: New file.
4340 * libjava/java/awt/image/Raster.java: New file.
4341 * libjava/java/awt/image/SampleModel.java: New file.
4342 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4344 * libjava/java/awt/image/IndexColorModel.java: New file.
4345 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4346 java.awt.ColorModel stub.
4348 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4349 * gnu/gcj/util/Buffers.java: New file, utility class.
4351 * libjava/Makefile.am: Updated to include new files.
4352 * libjava/Makefile.in: Rebuilt.
4354 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4356 * java/io/StreamTokenizer.java: Merged with classpath.
4358 2000-07-20 Tom Tromey <tromey@cygnus.com>
4360 * Makefile.in: Rebuilt.
4361 * Makefile.am (awt_java_source_files): Updated for new files.
4362 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4363 * java/awt/Label.java: New file.
4364 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4365 (createIntersection, createUnion, getBounds2D): New methods.
4366 * java/awt/Scrollbar.java: New file.
4367 * java/awt/Shape.java: Updated to 1.2.
4368 * java/awt/geom/AffineTransform.java: New file.
4369 * java/awt/geom/Ellipse2D.java: New file.
4370 * java/awt/geom/NoninvertibleTransformException.java: New file.
4371 * java/awt/geom/PathIterator.java: New file.
4372 * java/awt/geom/Rectangle2D.java: New file.
4373 * java/awt/geom/RectangularShape.java: New file.
4374 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4375 * java/awt/geom/IllegalPathStateException.java: New file.
4377 * scripts/showval.java: New file.
4379 * scripts/classes.pl (scan): Print inner classes properly.
4380 * gcj/javaprims.h: Updated class list.
4382 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4383 initialize String fields for interpreted classes. Fixes bug
4384 reported by Hans Boehm.
4386 * java/io/File.java (getParentFile): New method, from Classpath
4387 via Oskar Liljeblad.
4389 * java/util/Vector.java (remove(Object)): Implemented.
4391 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4393 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4394 zero return from backtrace().
4396 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4398 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4400 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4401 before calling notifyAll().
4403 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4405 Add missing files from last check-in:
4406 * java/awt/image/ImageConsumer.java: New file.
4407 * java/awt/image/ImageProducer.java: New file.
4408 * java/awt/image/ImageObserver.java: New file.
4410 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4412 Merged implementation of java.applet from classpath:
4413 * java/applet/Applet.java: New file.
4414 * java/applet/AppletContext.java: New file.
4415 * java/applet/AppletStub.java: New file.
4416 * java/applet/AudioClip.java: New file.
4418 * Makefile.am: Added new java.applet classes.
4419 * Makefile.in: Rebuilt.
4421 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4424 * java/util/ResourceBundle.java (getLocale): stub.
4425 * Makefile.am: Added new AWT classes.
4426 * Makefile.in: Rebuilt.
4427 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4428 constructors. Fix toString() and paramString().
4429 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4430 * java/awt/CheckboxGroup.java: New class.
4431 * java/awt/ColorModel.java: New class.
4432 * java/awt/Component.java: Added stubs for most methods. Implemented
4434 * java/awt/Container.java: ditto.
4435 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4436 * java/awt/Cursor.java: ditto.
4437 * java/awt/Event.java: Fix paramString().
4438 * java/awt/EventQueue.java: New class. Implemented.
4439 * java/awt/Font.java: Added additional stub methods. Implemented
4441 * java/awt/FontMetrics.java: New class. Stubbed.
4442 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4444 * java/awt/Insets.java: New class. Implemented.
4445 * java/awt/Menu.java: Add new methods. Partially implemented.
4446 * java/awt/MenuItem.java: Add new methods and fields. Partially
4448 * java/awt/MenuShortcut.java: New class. Implemented.
4449 * java/awt/Panel.java: New class. Placeholder.
4450 * java/awt/PopupMenu.java: New class. Stubbed.
4451 * java/awt/Rectangle.java: New class. Implemented.
4452 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4453 * java/awt/event/ActionEvent.java: Implement paramString().
4454 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4455 * java/awt/event/ComponentEvent.java: Implement paramString().
4456 * java/awt/event/ContainerEvent.java: Implement paramString().
4457 * java/awt/event/FocusEvent.java: Implement paramString().
4458 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4459 * java/awt/event/HierarchyBoundsListener.java: New class.
4460 * java/awt/event/HierarchyEvent.java: New class.
4461 * java/awt/event/HierarchyListener.java: New class.
4462 * java/awt/event/InputMethodEvent.java: Implement paramString().
4463 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4464 exception if !catchExceptions.
4465 * java/awt/event/ItemEvent.java: Implement paramString().
4466 * java/awt/event/KeyEvent.java: Implement paramString().
4467 * java/awt/event/MouseEvent.java: Implement paramString().
4468 * java/awt/event/PaintEvent.java: Implement paramString().
4469 * java/awt/event/TextEvent.java: Implement paramString().
4470 * java/awt/event/WindowEvent.java: Implement paramString().
4472 AWT Peer interfaces:
4473 * java/awt/peer/ButtonPeer.java: New file.
4474 * java/awt/peer/ListPeer.java: New file.
4475 * java/awt/peer/CanvasPeer.java: New file.
4476 * java/awt/peer/MenuBarPeer.java: New file.
4477 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4478 * java/awt/peer/MenuComponentPeer.java: New file.
4479 * java/awt/peer/CheckboxPeer.java: New file.
4480 * java/awt/peer/MenuItemPeer.java: New file.
4481 * java/awt/peer/ChoicePeer.java: New file.
4482 * java/awt/peer/MenuPeer.java: New file.
4483 * java/awt/peer/ComponentPeer.java: Implemented.
4484 * java/awt/peer/PanelPeer.java: New file.
4485 * java/awt/peer/ContainerPeer.java: Implemented.
4486 * java/awt/peer/PopupMenuPeer.java: New file.
4487 * java/awt/peer/DialogPeer.java: New file.
4488 * java/awt/peer/ScrollPanePeer.java: New file.
4489 * java/awt/peer/FileDialogPeer.java: New file.
4490 * java/awt/peer/ScrollbarPeer.java: New file.
4491 * java/awt/peer/FontPeer.java: New file.
4492 * java/awt/peer/TextAreaPeer.java: New file.
4493 * java/awt/peer/FramePeer.java: Implemented.
4494 * java/awt/peer/TextComponentPeer.java: New file.
4495 * java/awt/peer/LabelPeer.java: New file.
4496 * java/awt/peer/TextFieldPeer.java: New file.
4497 * java/awt/peer/LightweightPeer.java: New file.
4498 * java/awt/peer/WindowPeer.java: Implemented.
4500 2000-07-06 Tom Tromey <tromey@cygnus.com>
4502 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4503 Initialize static final String fields.
4505 2000-07-03 Tom Tromey <tromey@cygnus.com>
4507 * java/io/PrintWriter.java (print): Call write(String), not
4508 print(String). See PR libgcj/277.
4509 (print(String)): Use write, not out.write.
4511 2000-06-30 Tom Tromey <tromey@cygnus.com>
4513 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4515 2000-06-27 Andrew Haley <aph@cygnus.com>
4517 * java/io/File.java (createTempFile): Close the FileDescriptor
4518 used to create a temp file. Fixes some of PR 203.
4519 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4520 collection if we run out of file handles.
4522 2000-06-28 Warren Levy <warrenl@cygnus.com>
4524 * gnu/java/security/provider/Gnu.java: New file.
4525 * gnu/java/security/provider/SHA.java: New file.
4526 * gnu/java/security/provider/SHA1PRNG.java: New file.
4527 * Makefile.am: Added the above files.
4528 * Makefile.in: Rebuilt.
4530 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4532 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4534 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4535 (destroyed_flag): Removed.
4536 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4537 (activeCount): Added spec note.
4539 2000-06-27 Warren Levy <warrenl@cygnus.com>
4541 * java/security/Principal.java: New file.
4542 * Makefile.am: Added Principal.java.
4543 * Makefile.in: Rebuilt.
4545 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4547 * java/awt/event/MouseEvent.java: Fixed coordinate space
4550 2000-06-27 Tom Tromey <tromey@cygnus.com>
4552 * java/io/PushbackInputStream.java (read): If there are characters
4553 in the buffer, don't also call super.read().
4554 * java/io/PushbackReader.java (read): If there are characters in
4555 the buffer, don't also call super.read().
4557 * java/lang/Double.java (valueOf): Call parseDouble().
4559 2000-06-26 Warren Levy <warrenl@cygnus.com>
4561 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4562 (newVal): Renamed to newValue.
4563 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4564 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4565 (revokeNow): Renamed to invalidateRefs.
4566 * java/io/OptionalDataException.java: Updated FIXME.
4567 (eof): New placeholder field.
4569 * java/io/WriteAbortedException.java (message): Made transient.
4570 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4571 * java/lang/Throwable.java (stackTrace): Made transient.
4572 * java/net/InetAddress.java: Made Serializable.
4573 * java/security/KeyPair.java: Made Serializable.
4574 * java/security/Provider.java: Replaced with Classpath version that
4575 implements serialization and proper methods.
4576 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4577 (limits): Renamed to choiceLimits.
4579 2000-06-24 Tom Tromey <tromey@cygnus.com>
4581 * java/lang/natDouble.cc (parseDouble): Renamed from
4583 * java/lang/Double.java (parseDouble): Renamed from
4584 doubleValueOf. Now public.
4586 2000-06-23 Andrew Haley <aph@cygnus.com>
4588 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4589 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4591 2000-06-23 Tom Tromey <tromey@cygnus.com>
4593 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4594 * java/lang/natDouble.cc: Always include <alloca.h>.
4595 Fix for PR libgcj/267.
4597 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4599 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4600 comply with classpath VM spec.
4601 (add(Group)): Rename to addGroup().
4602 * java/lang/Thread.java (Thread): Use addThread().
4603 * java/lang/natThread.cc (finish_): Use removeThread().
4605 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4607 * java/lang/ThreadGroup.java: Merged with classpath.
4608 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4609 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4611 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4612 ThreadGroup.root if Thread.currentThread is null. Honour the
4613 ThreadGroup's max priority setting.
4615 2000-06-18 Tom Tromey <tromey@cygnus.com>
4617 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4618 returned class. For PR gcj/260.
4620 2000-06-16 Tom Tromey <tromey@cygnus.com>
4622 Fix for PR libgcj/261:
4623 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4625 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4626 argument. (This is a patch from long ago that somehow went
4629 2000-06-15 Tom Tromey <tromey@cygnus.com>
4631 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4635 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4637 Fix for PR java.lang/258:
4638 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4639 JV_STATE_DONE, to prevent accidental initialization.
4640 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4641 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4642 interface or an abstract class. Remove redundant initializeClass calls.
4643 Remove duplicate if_idt test.
4644 (_Jv_InterfaceAssignableFrom): New function.
4645 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4647 2000-05-31 Tom Tromey <tromey@cygnus.com>
4649 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4650 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4651 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4652 (NUM_OBJECT_METHODS): New define.
4653 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4654 `array_vtable' parameter. Added assertion.
4655 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4658 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4660 * gcj/cni.h: Include <string.h>.
4661 * defineclass.cc: Include <alloca.h>.
4662 * interpret.cc: Ditto.
4663 * gij.cc: Include <stdlib.h>.
4665 2000-05-30 Tom Tromey <tromey@cygnus.com>
4667 * include/name-finder.h: Include <sys/wait.h>.
4668 (_Jv_name_finder::pid): Now of type `pid_t'.
4669 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4670 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4673 2000-05-24 Warren Levy <warrenl@cygnus.com>
4675 * java/io/ObjectOutputStream.java (writeObject): Use component type
4676 when writing arrays.
4679 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4681 Fix for PR libgcj/226:
4682 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4683 since this is an installed header.
4685 Fix for PR libgcj/228:
4686 * java/util/zip/ZipFile (getInputStream): Create inflater with
4689 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4690 with DataFormatException.
4692 2000-05-20 Tom Tromey <tromey@cygnus.com>
4694 * Makefile.in: Rebuilt.
4695 * Makefile.am (hack1): Removed.
4696 (awto_files): Likewise.
4697 (libgcjawt_la_SOURCES): Likewise.
4698 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4699 (libgcjawt_la_DEPENDENCIES): Likewise.
4700 (libgcjawt_la_LIBADD): Likewise.
4701 (libgcjawt_la_LDFLAGS): Likewise.
4702 (libgcjawt_la_LINK): Likewise.
4703 ($(awt_java_source_files:.java=.class)): Likewise.
4704 (libgcj.zip): Don't depend on AWT files.
4705 (MOSTLYCLEANFILES): Don't include AWT files.
4706 ($(awto_files)): Removed.
4707 (nat_headers): Removed AWT files.
4708 (cond_awt_java_source_files): Removed.
4709 (ordinary_java_source_files): Added awt_java_source_files.
4710 * libgcj.spec.in (*lib): Removed -lgcjawt.
4711 * configure: Rebuilt.
4712 * configure.in: Removed --enable-java-awt option.
4714 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4716 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4717 (ZipEntry): Copy the `name' field.
4718 (clone): Implement JDK1.2 method.
4719 (setCompressedSize): ditto.
4722 2000-05-19 Tom Tromey <tromey@cygnus.com>
4724 * java/io/BufferedWriter.java: Merged with Classpath.
4725 * java/io/BufferedOutputStream.java: Merged with Classpath.
4727 2000-05-16 Andrew Haley <aph@cygnus.com>
4729 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4730 build_ia64_frame_state.
4731 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4734 2000-05-15 Warren Levy <warrenl@cygnus.com>
4736 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4737 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4738 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4739 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4740 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4741 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4742 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4743 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4744 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4745 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4746 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4747 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4748 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4749 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4750 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4751 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4752 * gnu/gcj/io/NullOutputStream.java: Removed.
4753 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4754 * gnu/gcj/lang/ArrayHelper.java: Removed.
4755 * gnu/gcj/lang/ClassHelper.java: Removed.
4756 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4758 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4759 * gnu/java/beans/EmptyBeanInfo.java: New file.
4760 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4761 * gnu/java/beans/IntrospectionIncubator.java: New file.
4762 * gnu/java/beans/editors/ColorEditor.java: New file.
4763 * gnu/java/beans/editors/FontEditor.java: New file.
4764 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4765 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4766 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4767 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4768 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4769 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4770 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4771 * gnu/java/beans/editors/StringEditor.java: New file.
4772 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4773 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4774 * gnu/java/io/NullOutputStream.java: New file.
4775 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4776 * gnu/java/lang/ArrayHelper.java: New file.
4777 * gnu/java/lang/ClassHelper.java: New file.
4778 * gnu/java/lang/reflect/TypeSignature.java: New file.
4780 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4781 namespace back to the original Classpath gnu/java namespace.
4782 * Makefile.in: Rebuilt.
4784 * java/beans/Beans.java: Namespace change.
4785 * java/beans/EventSetDescriptor.java: Namespace change.
4786 * java/beans/Introspector.java: Namespace change.
4787 * java/beans/PropertyEditorManager.java: Namespace change.
4788 * java/io/ObjectInputStream.java: Namespace change.
4789 * java/io/ObjectOutputStream.java: Namespace change.
4790 * java/io/ObjectStreamClass.java: Namespace change.
4791 * java/io/ObjectStreamField.java: Namespace change.
4793 2000-04-21 Warren Levy <warrenl@cygnus.com>
4795 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4796 now that compiler patch is available.
4797 Removed unneeded System.loadLibrary.
4798 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4799 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4801 2000-04-19 Andrew Haley <aph@cygnus.com>
4803 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4804 and target classes have been initialized.
4806 2000-04-19 Andrew Haley <aph@cygnus.com>
4808 * java/lang/String.java: implement Serializable, Comparable.
4809 (compareTo (Object)): New method.
4811 2000-04-19 Warren Levy <warrenl@cygnus.com>
4813 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4814 instead of getField to retrieve non-public field.
4815 (getSerialPersistantFields): Ditto.
4817 2000-04-18 Warren Levy <warrenl@cygnus.com>
4819 * mauve-libgcj: Turned off object serialization tests temporarily
4820 due to compiler error.
4822 2000-04-17 Warren Levy <warrenl@cygnus.com>
4824 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4825 to avoid build problem.
4827 * mauve-libgcj: Turned on object serialization tests.
4829 2000-04-17 Tom Tromey <tromey@cygnus.com>
4831 * libgcj.spec.in (*lib): Added -lgcjawt.
4833 2000-04-17 Andrew Haley <aph@cygnus.com>
4835 * Makefile.am: Add new files:
4836 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4838 * Makefile.in: Rebuilt.
4840 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4841 interface that has no implementations.
4842 Check for an attempt to assign an abstract class to an interface.
4844 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4845 if we fail to find MessageDigest.getInstance ("SHA").
4847 * gnu/gcj/io/SimpleSHSStream.java: New file.
4848 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4849 * gnu/gcj/io/shs.cc: New file.
4850 * gnu/gcj/io/shs.h: new file.
4852 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4855 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4856 punctuation from the classname of an array element.
4858 * gcj/javaprims.h: Add SimpleDigestStream.
4860 2000-04-17 Andrew Haley <aph@cygnus.com>
4862 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4863 to getPrivateField for superclasses.
4865 2000-04-14 Andrew Haley <aph@cygnus.com>
4867 * Makefile.am: Add new files:
4868 java/io/ObjectOutputStream$PutField.h,
4869 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4870 java/io/natObjectOutputStream.cc
4871 * Makefile.in: Rebuilt.
4872 * gcj/Makefile.in: Rebuilt.
4873 * include/Makefile.in: Rebuilt.
4874 * java/lang/Class.h (getPrivateField): New method.
4875 (getPrivateMethod): Ditto.
4876 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4877 and java::io::ObjectStreamClass our friends.
4878 * java/lang/natClass.cc (getPrivateField): New method.
4879 (getPrivateMethod): Ditto.
4880 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4881 * gcj/javaprims.h: Add serialization classes.
4882 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4883 (setByteField): Ditto.
4884 (setCharField): Ditto.
4885 (setDoubleField): Ditto.
4886 (setFloatField): Ditto.
4887 (setIntField): Ditto.
4888 (setLongField): Ditto.
4889 (setShortField): Ditto.
4890 (setObjectField): Ditto.
4891 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4893 (getByteField): Ditto.
4894 (getCharField): Ditto.
4895 (getDoubleField): Ditto.
4896 (getFloatField): Ditto.
4897 (getIntField): Ditto.
4898 (getLongField): Ditto.
4899 (getShortField): Ditto.
4900 (getObjectField): Ditto.
4901 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4903 (getSerialPersistantFields): Ditto.
4904 (getDefinedSUID): Ditto.
4905 * java/io/natObjectOutputStream.cc: New file.
4906 * java/io/natObjectInputStream.cc: New file.
4908 2000-04-13 Warren Levy <warrenl@cygnus.com>
4910 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4911 problems. Revert to previous version to reproduce and when fixed.
4913 2000-04-13 Warren Levy <warrenl@cygnus.com>
4915 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4916 * gnu/gcj/io/NullOutputStream.java: New file.
4917 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4918 * java/io/BlockDataException.java: New file.
4919 * java/io/Externalizable.java: New file.
4920 * java/io/InvalidClassException.java: New file.
4921 * java/io/InvalidObjectException.java: New file.
4922 * java/io/NotActiveException.java: New file.
4923 * java/io/NotSerializableException.java: New file.
4924 * java/io/ObjectInput.java: New file.
4925 * java/io/ObjectInputStream.java: New file.
4926 * java/io/ObjectInputValidation.java: New file.
4927 * java/io/ObjectOutput.java: New file.
4928 * java/io/ObjectOutputStream.java: New file.
4929 * java/io/ObjectStreamClass.java: New file.
4930 * java/io/ObjectStreamConstants.java: New file.
4931 * java/io/ObjectStreamField.java: New file.
4932 * java/io/Replaceable.java: New file.
4933 * java/io/Resolvable.java: New file.
4934 * java/io/SerializablePermission.java: New file.
4935 * java/io/WriteAbortedException.java: New file.
4936 * java/security/BasicPermission.java: New file.
4937 * java/security/DigestOutputStream.java: New file.
4938 * java/security/Guard.java: New file.
4939 * java/security/Permission.java: New file.
4940 * java/security/PermissionCollection.java: New file.
4941 * Makefile.am: Added above files.
4942 * Makefile.in: Rebuilt.
4944 * java/beans/Beans.java (instantiate): Activated serialization code.
4945 * java/lang/SecurityManager.java (checkPermission): New method.
4947 2000-04-12 Warren Levy <warrenl@cygnus.com>
4949 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4950 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4951 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4952 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4953 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4954 * gnu/gcj/beans/editors/FontEditor.java: New file.
4955 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4956 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4957 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4958 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4959 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4960 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4961 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4962 * gnu/gcj/beans/editors/StringEditor.java: New file.
4963 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4964 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4965 * gnu/gcj/lang/ArrayHelper.java: New file.
4966 * gnu/gcj/lang/ClassHelper.java: New file.
4967 * java/beans/BeanDescriptor.java: New file.
4968 * java/beans/BeanInfo.java: New file.
4969 * java/beans/Beans.java: New file.
4970 * java/beans/Customizer.java: New file.
4971 * java/beans/DesignMode.java: New file.
4972 * java/beans/EventSetDescriptor.java: New file.
4973 * java/beans/FeatureDescriptor.java: New file.
4974 * java/beans/IndexedPropertyDescriptor.java: New file.
4975 * java/beans/IntrospectionException.java: New file.
4976 * java/beans/Introspector.java: New file.
4977 * java/beans/MethodDescriptor.java: New file.
4978 * java/beans/ParameterDescriptor.java: New file.
4979 * java/beans/PropertyChangeEvent.java: New file.
4980 * java/beans/PropertyChangeListener.java: New file.
4981 * java/beans/PropertyChangeSupport.java: New file.
4982 * java/beans/PropertyDescriptor.java: New file.
4983 * java/beans/PropertyEditor.java: New file.
4984 * java/beans/PropertyEditorManager.java: New file.
4985 * java/beans/PropertyEditorSupport.java: New file.
4986 * java/beans/PropertyVetoException.java: New file.
4987 * java/beans/SimpleBeanInfo.java: New file.
4988 * java/beans/VetoableChangeListener.java: New file.
4989 * java/beans/VetoableChangeSupport.java: New file.
4990 * java/beans/Visibility.java: New file.
4991 * java/beans/beancontext/BeanContext.java: New file.
4992 * java/beans/beancontext/BeanContextChild.java: New file.
4993 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4994 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4995 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4996 * java/beans/beancontext/BeanContextEvent.java: New file.
4997 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4998 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4999 * java/beans/beancontext/BeanContextProxy.java: New file.
5000 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5002 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5003 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5005 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5006 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5008 * java/beans/beancontext/BeanContextServices.java: New file.
5009 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5010 * java/util/AbstractCollection.java: New file.
5011 * java/util/AbstractList.java: New file.
5012 * java/util/Arrays.java: New file.
5013 * Makefile.am: Added above files.
5014 * Makefile.in: Rebuilt.
5016 2000-04-11 Warren Levy <warrenl@cygnus.com>
5018 * java/awt/AWTError.java: New file.
5019 * java/awt/AWTEvent.java: New file.
5020 * java/awt/AWTException.java: New file.
5021 * java/awt/ActiveEvent.java: New file.
5022 * java/awt/Adjustable.java: New file.
5023 * java/awt/BorderLayout.java: New file.
5024 * java/awt/Color.java: New file.
5025 * java/awt/Component.java: New file.
5026 * java/awt/Container.java: New file.
5027 * java/awt/Dimension.java: New file.
5028 * java/awt/Event.java: New file.
5029 * java/awt/Font.java: New file.
5030 * java/awt/Frame.java: New file.
5031 * java/awt/Graphics.java: New file.
5032 * java/awt/IllegalComponentStateException.java: New file.
5033 * java/awt/Image.java: New file.
5034 * java/awt/ItemSelectable.java: New file.
5035 * java/awt/LayoutManager.java: New file.
5036 * java/awt/LayoutManager2.java: New file.
5037 * java/awt/Menu.java: New file.
5038 * java/awt/MenuBar.java: New file.
5039 * java/awt/MenuComponent.java: New file.
5040 * java/awt/MenuContainer.java: New file.
5041 * java/awt/MenuItem.java: New file.
5042 * java/awt/Paint.java: New file.
5043 * java/awt/PaintContext.java: New file.
5044 * java/awt/Point.java: New file.
5045 * java/awt/Rectangle.java: New file.
5046 * java/awt/Shape.java: New file.
5047 * java/awt/TextArea.java: New file.
5048 * java/awt/TextComponent.java: New file.
5049 * java/awt/Toolkit.java: New file.
5050 * java/awt/Transparency.java: New file.
5051 * java/awt/Window.java: New file.
5052 * java/awt/natToolkit.cc: New file.
5053 * java/awt/event/AWTEventListener.java: New file.
5054 * java/awt/event/ActionEvent.java: New file.
5055 * java/awt/event/ActionListener.java: New file.
5056 * java/awt/event/AdjustmentEvent.java: New file.
5057 * java/awt/event/AdjustmentListener.java: New file.
5058 * java/awt/event/ComponentAdapter.java: New file.
5059 * java/awt/event/ComponentEvent.java: New file.
5060 * java/awt/event/ComponentListener.java: New file.
5061 * java/awt/event/ContainerAdapter.java: New file.
5062 * java/awt/event/ContainerEvent.java: New file.
5063 * java/awt/event/ContainerListener.java: New file.
5064 * java/awt/event/FocusAdapter.java: New file.
5065 * java/awt/event/FocusEvent.java: New file.
5066 * java/awt/event/FocusListener.java: New file.
5067 * java/awt/event/InputEvent.java: New file.
5068 * java/awt/event/InputMethodEvent.java: New file.
5069 * java/awt/event/InputMethodListener.java: New file.
5070 * java/awt/event/InvocationEvent.java: New file.
5071 * java/awt/event/ItemEvent.java: New file.
5072 * java/awt/event/ItemListener.java: New file.
5073 * java/awt/event/KeyAdapter.java: New file.
5074 * java/awt/event/KeyEvent.java: New file.
5075 * java/awt/event/KeyListener.java: New file.
5076 * java/awt/event/MouseAdapter.java: New file.
5077 * java/awt/event/MouseEvent.java: New file.
5078 * java/awt/event/MouseListener.java: New file.
5079 * java/awt/event/MouseMotionAdapter.java: New file.
5080 * java/awt/event/MouseMotionListener.java: New file.
5081 * java/awt/event/PaintEvent.java: New file.
5082 * java/awt/event/TextEvent.java: New file.
5083 * java/awt/event/TextListener.java: New file.
5084 * java/awt/event/WindowAdapter.java: New file.
5085 * java/awt/event/WindowEvent.java: New file.
5086 * java/awt/event/WindowListener.java: New file.
5087 * java/awt/geom/Dimension2D.java: New file.
5088 * java/awt/geom/Point2D.java: New file.
5089 * java/awt/peer/ComponentPeer.java: New file.
5090 * java/awt/peer/ContainerPeer.java: New file.
5091 * java/awt/peer/FramePeer.java: New file.
5092 * java/awt/peer/WindowPeer.java: New file.
5093 * java/util/Collection.java: New file.
5094 * java/util/Comparator.java: New file.
5095 * java/util/Iterator.java: New file.
5096 * java/util/List.java: New file.
5097 * java/util/ListIterator.java: New file.
5098 * Makefile.am: Added above files.
5099 * Makefile.in: Rebuilt.
5101 2000-04-10 Warren Levy <warrenl@cygnus.com>
5103 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5104 * java/lang/FirstThread.java: Ditto.
5105 * java/lang/StringBuffer.java: Ditto.
5106 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5108 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5109 Special case handled in java.math.BigInteger.
5110 * java/math/BigInteger.java (divide): Handle the special case when
5111 dividing by 1 and the high bit of the dividend is set.
5112 (setShiftRight): Handle case when count == 0.
5114 2000-04-05 Andrew Haley <aph@cygnus.com>
5116 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5119 2000-04-05 Andrew Haley <aph@cygnus.com>
5121 * sysdep/ia64.c (rse_address_add): Delete.
5122 (IS_NaT_COLLECTION_ADDR): Delete.
5123 (ia64_backtrace_helper): check for null unwind_info.
5125 * sysdep/ia64-frame.h: add calc_caller_bsp.
5127 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5130 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5131 (_Jv_remI): Likewise.
5132 (_Jv_divJ): Likewise.
5133 (_Jv_remJ): Likewise.
5135 * interpret.cc (continue1): Use divide subroutines to guarantee
5136 correct Java standard behaviour.
5137 Floating-point division should not abort; make it so.
5139 2000-03-29 Tom Tromey <tromey@cygnus.com>
5141 * configure: Rebuilt.
5142 * configure.in: Test against `libgcj_sjlj', not
5143 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5144 to be set even when using sjlj.
5146 2000-03-24 Andrew Haley <aph@cygnus.com>
5148 * Makefile.am: Add file addr2name.awk.
5149 * Makefile.in: Rebuilt.
5150 * addr2name.awk: New file.
5151 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5153 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5156 2000-03-22 Andrew Haley <aph@cygnus.com>
5158 * configure.host: Add -funwind-tables for IA64.
5159 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5160 * Makefile.in: Rebuilt.
5161 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5162 * sysdep/ia64.c: New file.
5163 * sysdep/ia64-frame.h: New file.
5164 * configure.in: Add sysdep/ia64.c for ia64.
5165 * configure: Rebuilt.
5167 2000-03-17 Andrew Haley <aph@cygnus.com>
5169 * java/lang/natString.cc: Remove `register' keyword.
5170 interpret.cc: ditto.
5172 2000-03-16 Andrew Haley <aph@cygnus.com>
5174 * configure.host (ia64): Enable interpreter.
5176 2000-03-14 Hans Boehm <boehm@acm.org>
5178 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5180 2000-03-14 Andrew Haley <aph@cygnus.com>
5182 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5185 2000-03-10 Andrew Haley <aph@cygnus.com>
5187 * java/lang/ieeefp.h: Import latest version from fdlibm.
5189 2000-03-14 Andrew Haley <aph@cygnus.com>
5191 * prims.cc (_Jv_ThrowSignal): New function.
5192 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5194 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5195 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5196 * include/ppc-signal.h: New file.
5198 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5200 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5201 * java/lang/natThread.java (initialize_native): Cast `data' to
5203 * gnu/gcj/RawData.java: Clarify documentation.
5205 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5206 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5207 `jarFile', not `jarFileURL'.
5209 2000-05-15 Andrew Haley <aph@cygnus.com>
5211 * include/ppc-signal.h: New file.
5213 2000-05-11 Tom Tromey <tromey@cygnus.com>
5215 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5216 file headers, don't include `size' in the skip call.
5218 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5220 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5221 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5223 (replace): Reimplemented. Fix javadoc.
5224 (reverse): Call ensureCapacity_unsynchronized().
5225 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5227 (replace): Calculate length for arraycopy() correctly.
5229 2000-05-09 Tom Tromey <tromey@cygnus.com>
5231 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5233 (insert(int,char[],int,int): New method.
5234 (delete): New method from Classpath.
5235 (deleteCharAt): Likewise.
5236 (substring): Likewise.
5237 (shared): No longer private.
5238 Added JavaDoc comments from Classpath.
5239 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5242 2000-05-07 Tom Tromey <tromey@cygnus.com>
5244 * Makefile.in: Rebuilt.
5245 * Makefile.am (LIBLINK): New macro.
5246 (libgcj_la_LINK): Use it.
5247 (libgcjawt_la_LINK): Likewise.
5249 2000-05-06 Tom Tromey <tromey@cygnus.com>
5251 * Makefile.in: Rebuilt.
5252 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5254 2000-05-05 Tom Tromey <tromey@cygnus.com>
5256 Fix for PR libgcj/220:
5257 * Makefile.in: Rebuilt.
5258 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5259 (jv_convert_LDFLAGS): Likewise.
5260 (libgcj_la_LDFLAGS): Likewise.
5261 (GCJLINK): New macro.
5262 (jv_convert_LINK): Use it.
5263 (gij_LINK): Likewise.
5264 (libgcj_la_LINK): New macro.
5265 (libgcjawt_la_LINK): Likewise.
5267 2000-05-04 Tom Tromey <tromey@cygnus.com>
5269 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5271 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5275 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5277 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5278 (_Jv_IsAssignableFrom): Ditto.
5279 (_Jv_IsInstanceOf): Ditto.
5280 (_Jv_CheckCast): Ditto.
5281 (_Jv_CheckArrayStore): Ditto.
5282 * java/lang/Class.h (_Jv_InitClass): Ditto.
5283 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5288 (_Jv_MonitorExit): Ditto.
5289 * boehm.cc (_Jv_MarkObj): Ditto.
5290 (_Jv_MarkObj): Ditto.
5291 (_Jv_MarkArray): Ditto.
5292 * prims.cc (_Jv_AllocObject): Ditto.
5293 (_Jv_NewObjectArray): Ditto.
5294 (_Jv_NewPrimArray): Ditto.
5295 (_Jv_Malloc): Ditto.
5296 (_Jv_Realloc): Ditto.
5297 (_Jv_MallocUnchecked): Ditto.
5303 2000-05-04 Tom Tromey <tromey@cygnus.com>
5305 * java/util/Locale.java (Locale): Don't explicitly check for
5307 * java/util/Hashtable.java (containsKey): Don't explicitly check
5310 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5312 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5314 * java/text/StringCharacterIterator.java
5315 (StringCharacterIterator): Don't check for null.
5316 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5318 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5319 check for null pointer.
5320 (leaveGroup): Likewise.
5321 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5323 (setData): Likewise.
5324 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5327 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5329 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5330 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5331 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5332 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5333 -rpath for in-gcc builds.
5334 * Makefile.in: Rebuilt.
5336 2000-04-28 Tom Tromey <tromey@cygnus.com>
5338 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5341 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5343 * libjava/java/lang/String.java (toString): Remove `final' hack.
5345 2000-04-05 Tom Tromey <tromey@cygnus.com>
5347 Runtime support for PR gcj/2:
5348 * prims.cc (_Jv_ThrowNullPointerException): New function.
5349 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5351 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5353 * prims.cc (_Jv_NewObjectArray): Fix typo.
5355 2000-04-26 Tom Tromey <tromey@cygnus.com>
5357 * Makefile.in: Rebuilt.
5358 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5360 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5362 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5365 2000-04-22 Anthony Green <green@cygnus.com>
5367 * include/jvm.h (__builtin_expect): Define as unused for now.
5368 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5372 (_Jv_MonitorExit): Ditto.
5373 * boehm.cc (_Jv_MarkObj): Ditto.
5374 (_Jv_MarkObj): Ditto.
5375 (_Jv_MarkArray): Ditto.
5376 (_Jv_AllocBytes): Ditto.
5377 * prims.cc (_Jv_AllocObject): Ditto.
5378 (_Jv_NewObjectArray): Ditto.
5379 (_Jv_NewPrimArray): Ditto.
5380 (_Jv_Malloc): Ditto.
5381 (_Jv_Realloc): Ditto.
5382 (_Jv_MallocUnchecked): Ditto.
5388 * include/Makefile.in: Rebuilt.
5389 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5391 2000-04-21 Tom Tromey <tromey@cygnus.com>
5393 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5394 Yet another new version from Classpath.
5396 Fix for PR libgcj/15:
5397 * java/util/natGregorianCalendar.cc (_REENTRANT,
5398 _POSIX_PTHREAD_SEMANTICS): Don't define.
5399 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5400 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5402 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5404 * configure: Rebuilt.
5405 * configure.in: If using POSIX threads, define _REENTRANT if
5406 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5407 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5409 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5410 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5411 version from Classpath.
5413 Fix for PR libgcj/213:
5414 * Makefile.in: Rebuilt.
5415 * Makefile.am (gij_SOURCES): Added gij.cc.
5416 (EXTRA_gij_SOURCES): Removed.
5417 (gij_LDADD): Removed gij.lo.
5418 (gij_DEPENDENCIES): Likewise.
5419 ($(gij_OBJECTS)): Depend on nat_headers.
5421 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5422 `setURL', not `url.set'.
5424 2000-04-20 Tom Tromey <tromey@cygnus.com>
5426 Fix for PR java.io/204:
5427 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5428 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5431 Fix for PR libgcj/212:
5432 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5433 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5434 * java/lang/Class.h (_Jv_word): Declare.
5436 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5438 2000-04-19 Tom Tromey <tromey@cygnus.com>
5440 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5441 doesn't have a loader.
5443 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5445 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5446 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5448 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5450 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5452 (available): Initialize `where' to prevent bogus compiler warning.
5454 2000-04-12 Tom Tromey <tromey@cygnus.com>
5456 * java/lang/natString.cc (intern): Temporarily disable finalizer
5459 * java/lang/natString.cc (unintern): Added `obj' argument.
5460 (intern): Register finalizer for string.
5461 * java/lang/String.java (unintern): Now static; added obj
5464 2000-04-11 Tom Tromey <tromey@cygnus.com>
5466 * java/util/Vector.java (VectorEnumeration): Now `final'.
5467 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5468 (HashtableEnumeration): Likewise.
5469 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5470 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5472 2000-04-10 Warren Levy <warrenl@cygnus.com>
5474 * java/io/ObjectStreamException.java: New file.
5475 * java/io/OptionalDataException.java: New file.
5476 * java/io/StreamCorruptedException.java: New file.
5477 * java/math/BigDecimal.java: New file.
5478 * java/sql/CallableStatement.java: New file.
5479 * java/sql/Connection.java: New file.
5480 * java/sql/DataTruncation.java: New file.
5481 * java/sql/DatabaseMetaData.java: New file.
5482 * java/sql/Date.java: New file.
5483 * java/sql/Driver.java: New file.
5484 * java/sql/DriverManager.java: New file.
5485 * java/sql/DriverPropertyInfo.java: New file.
5486 * java/sql/PreparedStatement.java: New file.
5487 * java/sql/ResultSet.java: New file.
5488 * java/sql/ResultSetMetaData.java: New file.
5489 * java/sql/SQLException.java: New file.
5490 * java/sql/SQLWarning.java: New file.
5491 * java/sql/Statement.java: New file.
5492 * java/sql/Time.java: New file.
5493 * java/sql/Timestamp.java: New file.
5494 * java/sql/Types.java: New file.
5495 * Makefile.am: Added above new files.
5496 * Makefile.in: Rebuilt.
5498 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5499 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5500 DatagramSocket constructor instead of null.
5502 2000-04-08 Anthony Green <green@cygnus.com>
5504 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5507 2000-04-08 Anthony Green <green@cygnus.com>
5509 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5510 (_Jv_MutexUnlock): Ditto.
5511 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5512 (_Jv_MutexUnlock): Ditto.
5514 2000-04-08 Anthony Green <green@cygnus.com>
5516 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5517 (ensureCapacity_unsynchronized): New private method.
5518 (append): Use ensureCapacity_unsynchronized.
5520 2000-04-08 Tom Tromey <tromey@cygnus.com>
5522 * Makefile.in: Rebuilt.
5523 * Makefile.am (awt_java_source_files): Added new files.
5524 * java/awt/IllegalComponentStateException.java: New file.
5525 * java/awt/ItemSelectable.java: New file.
5526 * java/awt/event/WindowEvent.java: Finished.
5527 * java/awt/event/TextEvent.java: Finished.
5528 * java/awt/event/ContainerEvent.java: New file.
5529 * java/awt/Component.java (getX, getY): New methods.
5530 * java/awt/event/PaintEvent.java: New file.
5531 * java/awt/event/MouseEvent.java: New file.
5532 * java/awt/ActiveEvent.java: New file.
5533 * java/awt/event/KeyEvent.java: Finished.
5534 * java/awt/event/ItemEvent.java: New file.
5535 * java/awt/Adjustable.java: New file.
5536 * java/awt/event/InputMethodEvent.java: New file.
5537 * java/awt/event/InputEvent.java: Finished.
5538 * java/awt/event/FocusEvent.java: New file.
5539 * java/awt/event/MouseMotionAdapter.java: New file.
5540 * java/awt/event/MouseAdapter.java: New file.
5541 * java/awt/event/KeyAdapter.java: New file.
5542 * java/awt/event/FocusAdapter.java: New file.
5543 * java/awt/event/ContainerAdapter.java: New file.
5544 * java/awt/event/ComponentEvent.java: Finished.
5545 * java/awt/event/AdjustmentEvent.java: New file.
5546 * java/awt/event/ComponentAdapter.java: New file.
5547 * java/awt/event/ActionEvent.java: Finished.
5548 * java/awt/event/MouseMotionListener.java: New file.
5549 * java/awt/event/MouseListener.java: New file.
5550 * java/awt/event/ItemListener.java: New file.
5551 * java/awt/event/InputMethodListener.java: New file.
5552 * java/awt/event/ContainerListener.java: New file.
5553 * java/awt/event/FocusListener.java: New file.
5554 * java/awt/event/ComponentListener.java: New file.
5555 * java/awt/event/AWTEventListener.java: New file.
5556 * java/awt/event/AdjustmentListener.java: New file.
5558 2000-04-08 Anthony Green <green@cygnus.com>
5560 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5561 check when we have to.
5563 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5566 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5569 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5570 inline hasMoreElements.
5572 2000-04-05 Tom Tromey <tromey@cygnus.com>
5574 * configure: Rebuilt.
5575 * configure.in: Recognize --enable-java-awt.
5576 (AWT): New conditional.
5577 * Makefile.in: Rebuilt.
5578 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5580 (libgcjawt_la_SOURCES): New macro.
5581 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5582 (libgcjawt_la_DEPENDENCIES): Likewise.
5583 (libgcjawt_la_LIBADD): Likewise.
5584 (libgcjawt_la_LDFLAGS): Likewise.
5585 (libgcj.zip): Depend on cond_java_awt_source_files
5586 (cond_awt_java_source_files): New macro.
5587 (MOSTLYCLEANFILES): Added awto_files.
5588 (awto_files): New macro. Use where javao_files used.
5589 (nat_headers): Use cond_awt_java_source_files.
5591 2000-04-04 Tom Tromey <tromey@cygnus.com>
5593 * Makefile.in: Rebuilt.
5594 * Makefile.am (awt_java_source_files): Added AWTException.java.
5595 * java/awt/AWTException.java: New file.
5597 2000-04-03 Tom Tromey <tromey@cygnus.com>
5599 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5600 commentary from Alex.
5602 * Makefile.in: Rebuilt.
5603 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5606 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5608 * configure: Rebuilt.
5609 * configure.in: Add --disable-jvmpi.
5610 * include/config.h.in: Rebuilt.
5611 * acconfig.h: Add ENABLE_JVMPI.
5613 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5614 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5615 (_Jv_JVMPI_Notify_THREAD_END): New define.
5616 (_Jv_JVMPI_Notify_THREAD_END): New define.
5617 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5618 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5619 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5621 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5624 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5625 (finish_): Generate JVMPI thread end events.
5626 (run_): Generate JVMPI thread start events.
5627 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5628 preloaded JNI library.
5629 Include JVMPI headers if necessary.
5630 (run): Generate JVMPI thread start events.
5632 * boehm.cc: Define GC_disable and GC_enable.
5633 (_Jv_DisableGC): New function.
5634 (_Jv_EnableGC): New function.
5635 (disable_gc_mutex): Declare.
5636 * nogc.cc (_Jv_DisableGC): New function.
5637 (_Jv_EnableGC): New function.
5639 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5640 (_Jv_JVMPI_Interface): Define.
5641 (jvmpiEnableEvent): New function.
5642 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5644 * include/jvmpi.h: New file.
5646 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5648 * Makefile.in: New #defines and friends for Thread.h.
5649 * Makefile.am: Ditto.
5650 * posix-threads.cc: (struct starter): Remove `object'.
5651 (_Jv_CondWait): Use interruptable condition variables and new
5652 recursive mutexes. New return codes on interrupt or non-ownership
5654 (_Jv_CondNotify): Ditto.
5655 (_Jv_CondNotifyAll): Ditto.
5656 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5657 the target thread by signaling its wait condition.
5658 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5659 not the starter struct. Initialize wait_mutex and wait_cond.
5660 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5662 (_Jv_MutexUnlock): Ditto.
5663 (really_start): Set info->data->thread from pthread_self() to work
5664 around a race condition. Destroy wait_mutex and wait_cond when run()
5666 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5667 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5669 startable_flag: New private field.
5670 (Thread): Initialize `startable_flag'.
5671 (toString): Check for null thread group.
5672 * java/lang/natThread.cc: (struct natThread): New fields
5673 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5674 (class locker): Removed.
5675 (initialize_native): Initialize `join_cond' and `join_mutex'.
5676 (interrupt): Now just calls _Jv_ThreadInterrupt().
5677 (join): Simplified. Just wait on the target thread's join condition.
5678 (finish_): Remove join list code. Unset thread group. Signal
5679 potential joiners by notifying the dying threads join_cond.
5680 (start): Check for illegal restarts.
5681 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5683 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5684 #defines and #ifdefs.
5685 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5686 `wait_mutex', `next'.
5687 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5688 directly mapping to pthread_cond_t.
5689 (struct _Jv_Mutex_t): New recursive implementation.
5690 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5691 _Jv_HaveCondDestroy: Never define this for posix-threads.
5692 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5693 (_Jv_CondNotifyAll): Ditto.
5694 (_Jv_MutexLock): Ditto.
5695 (_Jv_MutexUnlock): Ditto.
5696 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5697 (_Jv_MutexDestroy): Ditto.
5698 (_Jv_CondDestroy): Removed.
5699 (_Jv_PthreadGetMutex): Removed.
5700 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5701 error. Add a FIXME about this.
5702 (_Jv_CondNotifyAll): Ditto.
5703 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5704 _JV_NOT_OWNER on other errors. Add FIXME.
5706 2000-03-26 Tom Tromey <tromey@cygnus.com>
5708 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5710 (call): Don't throw exception here.
5712 2000-03-26 Tom Tromey <tromey@cygnus.com>
5714 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5715 * interpret.cc: Use SIZEOF_VOID_P.
5716 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5717 (_Jv_loadLong): Likewise.
5718 (_Jv_storeDouble): Likewise.
5719 * configure: Rebuilt.
5720 * configure.in: Check size of void*.
5722 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5724 2000-03-26 Hans Boehm <boehm@acm.org>
5726 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5727 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5729 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5730 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5731 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5732 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5734 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5735 (FFI_RAW_SIZE): Likewise.
5736 (_Jv_InterpMethod::ncode): Use them.
5737 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5738 STORED): Define differently on a 64 bit machine.
5739 (continue1): Use ffi_java_raw_call when appropriate.
5741 2000-03-24 Warren Levy <warrenl@cygnus.com>
5743 * java/math/BigInteger.java(divide): Handle the special case when
5744 dividing by 1 and the high bit of the dividend is set.
5745 (setShiftRight): Handle case when count == 0.
5747 2000-03-24 Warren Levy <warrenl@cygnus.com>
5749 * java/awt/Font.java(isBold): Fix syntax error.
5751 * java/awt/Frame.java(postEvent): ditto.
5752 * java/awt/Menu.java(postEvent): ditto.
5753 * java/awt/MenuBar.java(postEvent): ditto.
5754 * java/awt/Toolkit.java(init): Included a stub.
5756 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5758 * java/awt/Event.java: Add all the event type constants.
5759 (Event): Implemented constructors.
5760 (controlDown): Implemented.
5761 (metaDown): Implemented.
5762 (paramString): Stubbed.
5763 (shiftDown): Implemented.
5764 (toString): Implemented.
5765 (translate): Implemented.
5767 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5769 * java/lang/natClass.cc (isInstance): Initialize `this'.
5770 (isAssignableFrom): Initialize `this' and `klass'.
5771 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5772 implemented by any loaded class, so return false.
5773 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5774 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5776 2000-03-19 Warren Levy <warrenl@cygnus.com>
5778 * java/awt/Color.java: Specified java.io for Serializable.
5779 * java/awt/Toolkit.java: Imported java.net.URL.
5781 2000-03-19 Warren Levy <warrenl@cygnus.com>
5783 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5785 2000-03-16 Warren Levy <warrenl@cygnus.com>
5787 * java/awt/Color.java: New file.
5788 * java/awt/Graphics.java: New file.
5789 * java/awt/Image.java: New file.
5790 * java/awt/Paint.java: New file.
5791 * java/awt/PaintContext.java: New file.
5792 * java/awt/Transparency.java: New file.
5793 * java/util/Collection.java: New file.
5794 * java/util/Comparator.java: New file.
5795 * java/util/Iterator.java: New file.
5796 * java/util/List.java: New file.
5797 * java/util/ListIterator.java: New file.
5798 * Makefile.am: Added above new files.
5799 * Makefile.in: Rebuilt.
5801 * java/awt/Font.java (PLAIN): New field.
5803 (ITALIC): New field.
5804 (ROMAN_BASELINE): New field.
5805 (CENTER_BASELINE): New field.
5806 (HANGING_BASELINE): New field.
5810 (pointSize): New field.
5811 (Font): Implemented constructor.
5812 (isPlain): Implemented method.
5813 (isBold): Implemented method.
5814 (isItalic): Implemented method.
5815 (getName): Implemented method.
5816 (getStyle): Implemented method.
5817 (getSize): Implemented method.
5818 (getSize2D): Implemented method.
5820 * java/awt/Frame.java (getFont): Stubbed.
5821 (postEvent): Stubbed.
5823 * java/awt/Menu.java (postEvent): Stubbed.
5824 * java/awt/MenuBar.java (getFont): Stubbed.
5825 (postEvent): Stubbed.
5826 * java/awt/Toolkit.java (getImage): Added abstract method.
5828 2000-03-15 Tom Tromey <tromey@cygnus.com>
5830 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5832 * prims.cc (win32_exception_handler): Reformatted.
5834 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5835 (_Jv_HaveMutexDestroy): Likewise.
5837 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5839 * java/io/natFileDescriptorWin32.cc: New file.
5840 * java/io/natFileWin32.cc: New file.
5841 * java/net/natInetAddress.cc: Added conditional inclusion of
5842 Windows / Winsock headers.
5843 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5844 inclusion of Windows / Winsock headers.
5845 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5846 Windows / Winsock headers.
5847 * include/win32-signal.h: New file.
5848 * include/win32-threads.h: New file.
5849 * win32-threads.cc: New file.
5850 * exception.cc (win32_get_restart_frame): New function.
5851 * prims.cc (win32_exception_handler): New function.
5852 (main_init) Performs Winsock initialisation.
5853 (main_init) Installs exeception handler.
5855 2000-03-14 Tom Tromey <tromey@cygnus.com>
5857 * jni.cc (mangled_name): Fixed assertion.
5858 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5859 turned assert into actual failure.
5861 2000-03-09 Warren Levy <warrenl@cygnus.com>
5863 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5864 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5865 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5867 2000-03-09 Warren Levy <warrenl@cygnus.com>
5869 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5870 * java/security/DigestException.java: New file.
5871 * java/security/GeneralSecurityException.java: New file.
5872 * java/security/InvalidAlgorithmParameterException.java: New file.
5873 * java/security/InvalidKeyException.java: New file.
5874 * java/security/InvalidParameterException.java: New file.
5875 * java/security/Key.java: New file.
5876 * java/security/KeyException.java: New file.
5877 * java/security/KeyPair.java: New file.
5878 * java/security/KeyPairGenerator.java: New file.
5879 * java/security/KeyPairGeneratorSpi.java: New file.
5880 * java/security/NoSuchProviderException.java: New file.
5881 * java/security/PrivateKey.java: New file.
5882 * java/security/Provider.java: New file.
5883 * java/security/PublicKey.java: New file.
5884 * java/security/SecureRandom.java: New file.
5885 * java/security/Security.java: New file.
5886 * java/security/Signature.java: New file.
5887 * java/security/SignatureException.java: New file.
5888 * java/security/interfaces/DSAKey.java: New file.
5889 * java/security/interfaces/DSAParams.java: New file.
5890 * java/security/interfaces/DSAPrivateKey.java: New file.
5891 * java/security/interfaces/DSAPublicKey.java: New file.
5892 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5893 * java/security/interfaces/RSAPrivateKey.java: New file.
5894 * java/security/interfaces/RSAPublicKey.java: New file.
5895 * java/security/spec/AlgorithmParameterSpec.java: New file.
5896 * java/security/spec/InvalidKeySpecException.java: New file.
5897 * java/security/spec/InvalidParameterSpecException.java: New file.
5898 * java/security/spec/KeySpec.java: New file.
5899 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5900 * java/security/spec/RSAPrivateKeySpec.java: New file.
5901 * java/security/spec/RSAPublicKeySpec.java: New file.
5902 * Makefile.am: Added above java.security files.
5903 * Makefile.in: Rebuilt.
5905 * java/security/MessageDigest.java: Rewritten.
5906 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5908 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5912 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5914 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5915 _Jv_PrepareConstantTimeTables.
5916 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5917 classes should have an IDT, so don't return if klass is an array
5920 2000-03-08 Tom Tromey <tromey@cygnus.com>
5922 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5923 of `void' to be created.
5925 2000-03-08 Warren Levy <warrenl@cygnus.com>
5927 * java/math/BigInteger.java(signum): Handle zero properly.
5929 2000-03-07 Tom Tromey <tromey@cygnus.com>
5931 * All files: Updated copyright information.
5932 * COPYING: New file.
5933 * COPYING.LIB: Removed.
5934 * LIBGCJ_LICENSE: We now use GPL + special exception.
5936 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5938 * resolve.cc (_Jv_SearchMethodInClass): New function.
5939 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5940 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5942 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5944 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5945 (struct _Jv_ifaces): New declaration.
5946 JV_CLASS: New macro definition.
5947 (getComponentType): Relocate below isArray() for inlining.
5948 (getModifiers): Declare `inline'.
5949 (getSuperclass): Ditto.
5951 (isPrimitive): Ditto.
5952 (_Jv_IsAssignableFrom): New prototype.
5953 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5955 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5956 Check for JV_STATE_DONE before invoking initializeClass().
5957 (_Jv_PrepareConstantTimeTables): New prototype.
5958 (_Jv_GetInterfaces): Ditto.
5959 (_Jv_GenerateITable): Ditto.
5960 (_Jv_GetMethodString): Ditto.
5961 (_Jv_AppendPartialITable): Ditto.
5962 (_Jv_FindIIndex): Ditto.
5963 depth, ancestors, idt: New class fields.
5965 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5966 inline function `_Jv_IsAssignableFrom'. Use that function.
5967 (isInstance): Declare `inline'.
5968 (initializeClass): Get lock on class before checking `state'. Unlock
5969 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5971 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5972 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5973 class->depth and ancestor table.
5974 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5975 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5976 _Jv_IsAssignableFrom.
5977 (_Jv_CheckArrayStore): Ditto.
5978 (_Jv_LookupInterfaceMethodIdx): New function.
5979 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5980 (_Jv_PrepareConstantTimeTables): New function.
5981 (_Jv_IndexOf): Ditto.
5982 (_Jv_GetInterfaces): Ditto.
5983 (_Jv_GenerateITable): Ditto.
5984 (_Jv_GetMethodString): Ditto.
5985 (_Jv_AppendPartialITable): Ditto.
5986 iindex_mutex, iindex_mutex_initialized: New static fields.
5987 (_Jv_FindIIndex): New function.
5989 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5991 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5992 (_Jv_CheckArrayStore): Ditto.
5993 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5994 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5995 Moved to gcj/array.h.
5996 (_Jv_Realloc): New function.
5998 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6000 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6001 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6002 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6003 JvNewDoubleArray): Implementations moved from prims.cc and
6006 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6008 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6010 2000-03-06 Tom Tromey <tromey@cygnus.com>
6012 * jni.cc (MARK_NONE): New define.
6013 (MARK_USER): Likewise.
6014 (MARK_SYSTEM): Likewise.
6015 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6017 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6018 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6019 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6020 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6022 (call): Use MARK_SYSTEM.
6023 (_Jv_GetJNIEnvNewFrame): New function.
6024 (_Jv_LookupJNIMethod): New function.
6025 (_Jv_JNI_PopSystemFrame): New function.
6026 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6028 2000-03-05 Tom Tromey <tromey@cygnus.com>
6030 Fix for PR libgcj/43:
6031 * include/Makefile.in: Rebuilt.
6032 * include/Makefile.am (include_HEADERS): New define.
6034 2000-03-05 Anthony Green <green@redhat.com>
6036 * gcj/javaprims.h ("Java"): Remove FirstThread.
6038 * configure.host: Fix __NO_MATH_INLNES botch.
6040 * Makefile.in: Rebuilt.
6041 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6042 (gnu/gcj/runtime/FirstThread.h): Moved.
6043 (ordinary_java_source_files): Move FirstThread.java.
6044 * prims.cc: Deal with FirstThread movement.
6046 (_Jv_RunMain): Ditto.
6048 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6049 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6051 2000-03-05 Warren Levy <warrenl@cygnus.com>
6053 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6054 Handle null addresses.
6056 2000-03-04 Anthony Green <green@redhat.com>
6058 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6061 2000-03-04 Anthony Green <green@redhat.com>
6063 * configure: Rebuilt.
6064 * configure.in (ZLIBTESTSPEC): New macro.
6065 (GCTESTSPEC): New macro.
6066 (LIBGCJTESTSPEC): New macro.
6067 * libgcj-test.spec.in: New file.
6069 2000-03-02 Tom Tromey <tromey@cygnus.com>
6071 * include/java-interp.h: Don't include MethodInvocation.h.
6072 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6073 * Makefile.in: Rebuilt.
6074 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6075 (ordinary_java_source_files): Don't mention
6076 MethodInvocation.java.
6077 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6078 * interpret.cc (MethodInvocation::continue1): Removed.
6079 (run): Handle exceptions here.
6080 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6082 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6084 (defineClass2): Removed.
6086 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6088 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6090 (hack_call): Removed.
6092 * java/lang/Class.h (Class): Removed hackRunInitializers,
6094 * java/lang/natClass.cc (hackRunInitializers): Removed.
6095 (initializeClass): Catch exceptions here.
6096 Include ExceptionInInitializerError.h.
6097 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6100 * java/lang/Object.h (Object): Don't mention hack12_6.
6101 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6103 * java/lang/Object.java (hack12_6): Removed.
6105 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6106 (start): Use run_, not run__.
6107 * java/lang/Thread.java (run_): Renamed from run__; old run_
6110 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6111 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6112 (_Jv_JNI_DefineClass): Likewise.
6113 (_Jv_JNI_ThrowNew): Likewise.
6114 (_Jv_JNI_AllocObject): Likewise.
6115 (_Jv_JNI_GetAnyMethodID): Likewise.
6116 (_Jv_JNI_CallAnyMethodV): Likewise.
6117 (_Jv_JNI_CallAnyMethodA): Likewise.
6118 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6119 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6120 (_Jv_JNI_GetAnyFieldID): Likewise.
6121 (_Jv_JNI_NewString): Likewise.
6122 (_Jv_JNI_NewStringUTF): Likewise.
6123 (_Jv_JNI_GetStringUTFChars): Likewise.
6124 (_Jv_JNI_NewObjectArray): Likewise.
6125 (_Jv_JNI_NewPrimitiveArray): Likewise.
6126 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6127 (_Jv_JNI_GetStringRegion): Likewise.
6128 (_Jv_JNI_GetStringUTFRegion): Likewise.
6129 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6130 (_Jv_JNI_MonitorEnter): Likewise.
6131 (_Jv_JNI_MonitorExit): Likewise.
6132 (_Jv_JNI_ToReflectedField): Likewise.
6133 (_Jv_JNI_ToReflectedMethod): Likewise.
6134 (_Jv_JNI_RegisterNatives): Likewise.
6135 (_Jv_JNI_AttachCurrentThread): Likewise.
6136 (_Jv_JNI_DestroyJavaVM): Likewise.
6138 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6140 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6141 error caused by the incorrect casting of a long to an int.
6143 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6145 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6146 SIGSEV caused by use of the wrong instance variable.
6148 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6150 * java/io/File.java (File(String, String)): For dirPath, treat an
6151 empty String the same as `null'.
6153 2000-02-26 Anthony Green <green@cygnus.com>
6155 * gnu/gcj/io/MimeTypes.java: Test for null.
6157 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6158 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6160 * java/net/URLConnection.java: Update copyright notice.
6162 2000-02-25 Tom Tromey <tromey@cygnus.com>
6164 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6167 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6169 * java/net/URLConnection.java (initializeDateFormats): New
6171 (getHeaderFieldDate): Call initializeDateFormats if required.
6172 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6174 Fix for PR libgcj/38.
6176 2000-02-24 Warren Levy <warrenl@cygnus.com>
6178 * java/math/BigInteger.java(ival): Made private.
6182 2000-02-20 Anthony Green <green@cygnus.com>
6184 * Makefile.in: Rebuilt.
6185 * Makefile.am (ordinary_java_source_files): Add
6186 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6188 * scripts/MakeDefaultMimeTypes.java: New file.
6189 * scripts/mime.types: New file.
6190 * scripts/classes.pl: Moved from top level.
6191 * classes.pl: Moved to scripts directory.
6193 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6195 * gnu/gcj/io/MimeTypes.java: New file.
6196 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6198 2000-02-20 Tom Tromey <tromey@cygnus.com>
6200 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6202 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6204 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6207 2000-02-18 Tom Tromey <tromey@cygnus.com>
6209 * include/jvm.h (_Jv_GetJavaVM): Declare.
6210 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6211 (_Jv_MethodBase::get_method): New method.
6212 (_Jv_JNIMethod::set_function): New method.
6213 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6214 (_Jv_JNI_RegisterNatives): New function.
6215 (_Jv_JNIFunctions): Updated for new functions.
6216 (_Jv_GetJavaVM): New function.
6217 (_Jv_JNI_GetJavaVM): Use it. Now static.
6218 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6219 is already a Java thread but does not have a JNIEnv yet.
6221 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6224 2000-02-17 Tom Tromey <tromey@cygnus.com>
6226 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6229 2000-02-16 Tom Tromey <tromey@cygnus.com>
6231 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6233 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6234 (_Jv_JNI_NewObject): Likewise.
6235 (_Jv_JNI_NewObjectA): Likewise.
6236 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6237 as "return" type to _Jv_CallAnyMethodA.
6238 (_Jv_JNI_CallAnyMethodA): Likewise.
6239 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6241 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6244 2000-02-15 Tom Tromey <tromey@cygnus.com>
6246 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6248 (init_cif): Added `rtype_p' argument.
6249 * include/java-interp.h (class _Jv_MethodBase): Added
6251 (class _Jv_InterpMethod): Removed args_raw_size.
6252 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6253 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6254 class pointer as well as the ordinary arguments.
6256 * jni.cc (mangled_name): Skip leading `(' in signature.
6258 * jni.cc (add_char): Added missing `else'.
6260 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6263 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6267 * java/lang/natRuntime.cc (_load): Include library path with
6270 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6273 * java/lang/natThread.cc (dumpStack): Removed.
6274 * java/lang/Thread.java (dumpStack): Implemented.
6276 2000-02-15 Tom Tromey <tromey@cygnus.com>
6278 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6279 with `lib' for loadLibrary. Fixes PR gcj/150.
6281 2000-02-14 Warren Levy <warrenl@cygnus.com>
6283 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6285 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6289 (modPow): Rewritten to not use the naive, slow, brute force approach.
6290 (isProbablePrime): Implemented.
6291 (testBit): Implemented.
6292 (flipBit): Implemented.
6293 (getLowestSetBit): Implemented.
6295 2000-02-16 Anthony Green <green@redhat.com>
6297 * configure.host: Use the same options for i386 and i486 as we do
6300 2000-02-12 Tom Tromey <tromey@cygnus.com>
6302 * java/io/File.java (createTempFile): Use low bits from counter,
6305 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6307 * THANKS: More thanks.
6309 2000-02-11 Tom Tromey <tromey@cygnus.com>
6311 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6312 astore instruction. From Hans Boehm.
6314 2000-02-11 Warren Levy <warrenl@cygnus.com>
6316 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6317 (BigInteger(String)): New constructor.
6318 (not): Rewritten using version from Kawa's BitOps class.
6319 (valueOf): New private methods from Kawa's BitOps class.
6326 (andNot): Implemented.
6327 (clearBit): Implemented.
6328 (setBit): Implemented.
6329 (bitCount): Implemented.
6330 (toByteArray): Implemented.
6332 2000-02-11 Tom Tromey <tromey@cygnus.com>
6334 * java/io/File.java (nextValue): Now synchronized.
6336 2000-02-10 Tom Tromey <tromey@cygnus.com>
6338 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6339 * java/io/FileDescriptor.java (EXCL): New static field.
6340 * java/io/File.java (tmpdir): New static field.
6341 (createTempFile): New method.
6342 (nextValue): New method.
6343 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6346 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6347 (jboolean): Declare as an attributed int, not a bool.
6348 (_Jv_func): Declare differently for C.
6350 * gnu/gcj/jni/natNativeThread.cc: New file.
6351 * gnu/gcj/jni/NativeThread.java: New file.
6352 * java/lang/Thread.java (data): Now a RawData.
6353 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6355 * Makefile.in: Rebuilt.
6356 * Makefile.am (java/lang/Thread.h): New target.
6357 (ordinary_java_source_files): Added NativeThread.java.
6358 (nat_source_files): Added natNativeThread.cc.
6359 * java/lang/natThread.cc: Include <jni.h>
6360 (struct natThread): Added `jni_env' field.
6361 (_Jv_GetCurrentJNIEnv): New function.
6362 (_Jv_SetCurrentJNIEnv): Likewise.
6363 (initialize_native): Initialize jni_env.
6365 * jni.cc (ThreadGroupClass): New define.
6366 (_Jv_JNI_InvokeFunctions): New structure.
6367 (JNI_GetCreatedJavaVMs): New function.
6368 (the_vm): New global.
6369 (JNI_GetDefaultJavaVMInitArgs): New function.
6370 Include NativeThread.h.
6371 (NativeThreadClass): New define.
6372 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6373 (_Jv_JNI_DestroyJavaVM): New function.
6374 (_Jv_JNI_AttachCurrentThread): New function.
6375 (_Jv_JNI_DetachCurrentThread): New function.
6376 (_Jv_JNI_GetEnv): New function.
6377 (JNI_CreateJavaVM): New function.
6378 (_Jv_JNI_GetJavaVM): New function.
6379 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6380 * include/jni.h (JavaVMAttachArgs): New structure.
6381 (JNI_EDETACHED): New define.
6382 (JNI_EVERSION): Likewise.
6383 (JavaVM): Define properly.
6384 (struct JNIInvokeInterface): New structure.
6385 (class _Jv_JavaVM): New class.
6386 (JNI_OnLoad, JNI_OnUnload): Declare.
6387 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6388 JNI_GetCreatedJavaVMs): Declare.
6389 (JavaVMInitArgs): New typedef.
6390 (JavaVMOption): Likewise.
6391 (JNI_ERR): New define.
6394 2000-02-10 Andrew Haley <aph@cygnus.com>
6396 * interpret.cc: Don't include fdlibm.h.
6397 Replace #if with #ifdef throughout.
6398 Declare extern __ieee754_fmod.
6399 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6401 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6402 Search class hierarchy for superclass vtable.
6404 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6405 off the end of a pointer list.
6407 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6411 2000-02-09 Tom Tromey <tromey@cygnus.com>
6413 * java/lang/natRuntime.cc (_load): Call add_library.
6414 (loadLibraryInternal): Likewise.
6416 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6417 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6418 (Output_iconv::finalize): Likewise.
6420 2000-02-08 Tom Tromey <tromey@cygnus.com>
6422 * java/util/Properties.java (setProperty): New method.
6423 (store): New method.
6425 2000-02-07 Tom Tromey <tromey@cygnus.com>
6427 * java/lang/Runtime.java (_load): Declare.
6428 (load, loadLibrary): Wrote in terms of _load.
6429 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6431 (loadLibrary): Likewise.
6433 (_load): New method.
6434 (loadLibrary, load): Removed.
6436 * jni.cc (ThrowableClass): New define.
6437 (_Jv_JNI_Throw): Check argument.
6438 (_Jv_JNI_ThrowNew): Likewise.
6439 (wrap_value): Don't wrap object if it is NULL.
6440 (_Jv_JNI_DefineClass): Use wrap_value.
6441 (_Jv_JNI_FindClass): Likewise.
6442 (_Jv_JNI_GetSuperclass): Likewise.
6443 (_Jv_JNI_ExceptionOccurred): Likewise.
6444 (_Jv_JNI_AllocObject): Likewise.
6445 (_Jv_JNI_GetObjectClass): Likewise.
6446 (_Jv_JNI_NewString): Likewise.
6447 (_Jv_JNI_NewStringUTF): Likewise.
6448 (_Jv_JNI_NewObjectArray): Likewise.
6449 (_Jv_JNI_GetObjectArrayElement): Likewise.
6450 (_Jv_JNI_NewPrimitiveArray): Likewise.
6451 (_Jv_JNI_ToReflectedField): Likewise.
6452 (_Jv_JNI_ToReflectedMethod): Likewise.
6453 (_Jv_JNI_AllocObject): Check argument.
6454 (_Jv_JNI_NewObjectV): Likewise.
6455 (_Jv_JNI_NewObject): Likewise.
6456 (_Jv_JNI_NewObjectA): Likewise.
6457 (_Jv_JNI_GetObjectClass): Likewise.
6458 (_Jv_JNI_GetField): Likewise.
6459 (_Jv_JNI_SetField): Likewise.
6461 * interpret.cc (PUSHL): Don't use expression statement.
6466 * jni.cc (add_char): Conditional on INTERPRETER.
6467 (mangled_name): Likewise.
6469 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6471 (class _Jv_JNIMethod): Likewise.
6473 2000-02-04 Warren Levy <warrenl@cygnus.com>
6475 * Makefile.am: Added MPN.java and BigInteger.java.
6476 * Makefile.in: Rebuilt.
6477 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6479 * java/math/BigInteger.java: New file. Based primarily on
6480 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6482 2000-02-04 Tom Tromey <tromey@cygnus.com>
6484 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6486 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6487 if the method is native.
6488 * resolve.cc (ncode): Don't handle native methods.
6489 (_Jv_JNIMethod::ncode): New method.
6490 (_Jv_PrepareClass): Handle native methods.
6491 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6492 Include AbstractMethodError.h.
6493 (add_char): New function.
6494 (mangled_name): Likewise.
6495 * include/java-interp.h (class _Jv_JNIMethod): New class.
6496 (class _Jv_MethodBase): New class.
6497 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6498 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6501 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6502 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6503 libraries): New globals.
6504 (add_library): New function.
6505 (_Jv_FindSymbolInExecutable): New function.
6507 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6510 2000-02-04 Andrew Haley <aph@cygnus.com>
6512 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6513 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6514 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6515 printStackTrace to printRawStackTrace.
6517 2000-02-03 Tom Tromey <tromey@cygnus.com>
6519 * java/util/Calendar.java (toString): New method.
6520 * java/util/SimpleTimeZone.java (clone): New method.
6521 (toString): New method.
6522 * java/util/TimeZone.java (clone): New method.
6523 * java/text/SimpleDateFormat.java (clone): New method.
6524 * java/text/NumberFormat.java (clone): New method.
6525 (equals): New method.
6526 * java/text/Format.java (clone): New method.
6527 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6529 (clone): New method.
6530 * java/text/DateFormat.java (clone): New method.
6531 * java/text/Collator.java (clone): New method.
6533 2000-02-03 Tom Tromey <tromey@cygnus.com>
6535 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6538 2000-02-01 Tom Tromey <tromey@cygnus.com>
6540 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6541 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6542 constructing the closure if the function is native.
6543 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6544 a template function, #if'd out, or static.
6545 Include <java-interp.h>.
6547 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6549 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6551 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6552 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6554 (wrap_value): New function.
6555 (_Jv_JNI_CallAnyMethodV): Use it.
6556 (_Jv_JNI_CallAnyMethodA): Likewise.
6557 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6558 (_Jv_JNI_GetStaticField): Likewise.
6560 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6561 (_Jv_JNI_GetStaticField): Likewise.
6563 2000-01-31 Tom Tromey <tromey@cygnus.com>
6565 * prims.cc (_Jv_MallocUnchecked): New function.
6566 (main_init): Call _Jv_JNI_Init.
6567 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6568 (_Jv_JNI_Init): Declare.
6569 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6571 (_Jv_JNI_NewGlobalRef): New function.
6572 (_Jv_JNI_DeleteGlobalRef): New function.
6573 (_Jv_JNI_DeleteLocalRef): New function.
6574 (_Jv_JNI_conversion_call): Initialize and clear local reference
6576 (_Jv_JNI_NewLocalRef): New function.
6577 (struct _Jv_JNI_LocalFrame): New structure.
6578 (_Jv_JNI_PushLocalFrame): New function.
6579 (_Jv_JNI_EnsureLocalCapacity): New function.
6580 (FRAME_SIZE): New define.
6581 (_Jv_JNI_GetStringChars): Mark string, not characters.
6582 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6583 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6584 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6586 (_Jv_JNI_DefineClass): Make return value a local ref.
6587 (_Jv_JNI_FindClass): Likewise.
6588 (_Jv_JNI_GetSuperclass): Likewise.
6589 (_Jv_JNI_ExceptionOccurred): Likewise.
6590 (_Jv_JNI_AllocObject): Likewise.
6591 (_Jv_JNI_GetObjectClass): Likewise.
6592 (_Jv_JNI_CallAnyMethodV): Likewise.
6593 (_Jv_JNI_NewString): Likewise.
6594 (_Jv_JNI_NewStringUTF): Likewise.
6595 (_Jv_JNI_NewObjectArray): Likewise.
6596 (_Jv_JNI_GetObjectArrayElement): Likewise.
6597 (_Jv_JNI_ToReflectedField): Likewise.
6598 (_Jv_JNI_ToReflectedMethod): Likewise.
6599 (_Jv_JNIFunctions): Updated table for new functions.
6600 (_Jv_JNI_Init): New function.
6601 (mark_for_gc): Wrote.
6602 (unmark_for_gc): Wrote.
6603 * include/jni.h (struct JNINativeInterface): Removed name from
6604 PopLocalFrame parameter.
6605 (class _Jv_JNIEnv): Added `locals' field.
6607 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6609 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6612 2000-01-30 Tom Tromey <tromey@cygnus.com>
6614 * include/config.h.in: Rebuilt.
6615 * acconfig.h (HAVE_ICONV): Define.
6616 * configure: Rebuilt.
6617 * configure.in: Check for `iconv' function.
6618 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6619 no specific encoder exists.
6620 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6621 no specific encoder exists.
6622 * Makefile.in: Rebuilt.
6623 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6625 (nat_source_files): Added natIconv.cc.
6626 * gnu/gcj/convert/natIconv.cc: New file.
6627 * gnu/gcj/convert/Input_iconv.java: New file.
6628 * gnu/gcj/convert/Output_iconv.java: New file.
6630 2000-01-28 Tom Tromey <tromey@cygnus.com>
6632 * Makefile.in: Rebuilt.
6633 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6635 2000-01-26 Tom Tromey <tromey@cygnus.com>
6637 * gcj/method.h (JvNumMethods): Moved from Class.h.
6638 (JvGetFirstMethod): Likewise.
6639 * java/lang/Class.h (Object): Updated decl of
6640 _Jv_JNI_ToReflectedField.
6641 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6642 * Makefile.in: Rebuilt.
6643 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6644 argument of _Jv_JNI_ToReflectedField.
6645 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6647 (java/lang/reflect/Method.h): Likewise.
6648 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6650 (jweak): New typedef.
6651 (struct JNINativeInterface): Correctly declare remaining entries.
6652 * jni.cc: Include Class.h, ClassLoader.h.
6653 (_Jv_JNI_FindClass): New function.
6654 (_Jv_JNI_DefineClass): New function.
6655 (_Jv_JNI_conversion_call): New function.
6656 (_Jv_JNI_FindClass): Use current class loader to find class.
6657 (_Jv_JNI_ExceptionCheck): New function.
6658 (_Jv_JNI_FromReflectedField): Now static.
6659 (MethodClass): New define.
6660 (_Jv_JNI_FromReflectedMethod): New function.
6661 (_Jv_JNI_ToReflectedMethod): Likewise.
6663 (_Jv_JNI_IsAssignableFrom): Renamed.
6664 (_Jv_JNI_GetStringRegion): New function.
6665 Include StringIndexOutOfBoundsException.h.
6666 (_Jv_JNI_GetStringUTFRegion): New function.
6667 (_Jv_JNIFunctions): Updated for new functions.
6668 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6669 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6670 (_Jv_JNI_GetStringCritical): New function.
6671 (_Jv_JNI_ReleaseStringCritical): Likewise.
6672 (get_throwable): Removed.
6673 (GCJ_JV_JNIENV_FRIEND): Removed.
6674 (__GCJ_JNI_IMPL__): Define.
6677 * resolve.cc (get_ffi_type_from_signature): Handle case where
6680 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6682 * interpret.cc (run): Don't call println.
6683 Don't include PrintStream.h.
6685 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6686 nameIndex. Use "jint" as type for boffset.
6687 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6689 (Class): Likewise. Also changed type of method_count,
6690 vtable_method_count, size_in_bytes, field_count,
6691 static_field_count, interface_count.
6692 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6695 2000-01-21 Tom Tromey <tromey@cygnus.com>
6697 * java/lang/reflect/natConstructor.cc (newInstance): Use
6699 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6700 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6701 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6704 (invoke): Use _Jv_CallAnyMethodA.
6706 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6707 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6709 (struct _Jv_Method): Added getNextMethod method.
6710 (JvNumMethods): New function.
6711 (JvGetFirstMethod): Likewise.
6712 * gcj/field.h (JvGetFirstStaticField): New function.
6713 (JvNumStaticFields): Likewise.
6714 (getNextField): Renamed from getNextInstanceField.
6715 (struct _Jv_Field): New method getClass.
6716 * jni.cc: Wrote many new functions.
6717 * include/jni.h (JNI_TRUE): Define.
6718 (JNI_FALSE): Likewise.
6719 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6720 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6721 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6722 (jfieldID, jmethodID): Likewise.
6723 (JNI_COMMIT, JNI_ABORT): New defines.
6724 (JNINativeMethod): New struct.
6725 (struct JNINativeInterface): Correctly declared more entries.
6726 (class _Jv_JNIEnv): Added `ex' member.
6727 (JNI_VERSION_1_1): New define.
6728 (JNI_VERSION_1_2): Likewise.
6730 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6731 getNextInstanceField.
6733 2000-01-20 Tom Tromey <tromey@cygnus.com>
6735 * resolve.cc (StringClass): Removed.
6736 * defineclass.cc (StringClass): Removed.
6738 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6742 2000-01-19 Tom Tromey <tromey@cygnus.com>
6744 * interpret.cc (PC_REGISTER_ASM): Removed.
6746 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6747 From Bryce McKinlay.
6749 * All files: Updated copyright to reflect Cygnus purchase.
6751 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6753 * configure: Rebuilt.
6754 * configure.in: Recognize --disable-interpreter.
6756 2000-01-18 Andrew Haley <aph@cygnus.com>
6758 * name-finder.cc (lookup): Check for dladdr function.
6759 acconfig.h (HAVE_DLADDR): Add.
6760 configure.in: Check for HAVE_DLADDR
6762 include/config.h.in: Rebuilt.
6764 2000-01-17 Andrew Haley <aph@cygnus.com>
6766 * prims.cc (_Jv_RunMain): Set the name of this executable.
6768 2000-01-17 Tom Tromey <tromey@cygnus.com>
6770 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6771 when backtrace can't be computed.
6773 * configure: Rebuilt.
6774 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6776 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6777 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6778 (_Jv_FindClassInCache): Likewise.
6779 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6780 (findSystemClass): Try to load class from compiled module.
6782 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6783 (loadLibrary): Likewise.
6784 (lt_preloaded_symbols): Define.
6785 (loadLibraryInternal): New method.
6786 * include/config.h.in: Rebuilt.
6787 * acconfig.h (USE_LTDL): Added.
6788 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6789 (INCLUDES): Added $(INCLTDL).
6790 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6791 (libgcj_la_LIBADD): Likewise.
6792 * aclocal.m4, configure: Rebuilt.
6793 * configure.in: Added libltdl support.
6795 2000-01-15 Tom Tromey <tromey@cygnus.com>
6797 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6799 2000-01-14 Andrew Haley <aph@cygnus.com>
6801 * java/lang/natThrowable.cc: New file.
6803 * java/lang/Throwable.java (fillInStackTrace): Make native.
6804 (printStackTrace): Call native method to do this.
6805 (Throwable): Call fillInStackTrace.
6806 (stackTrace): New variable.
6808 * include/jvm.h: Add _Jv_ThisExecutable functions.
6810 * prims.cc: (_Jv_execName): New variable.
6811 (catch_segv): Call fillInStackTrace.
6813 (_Jv_ThisExecutable): New functions.
6814 (JvRunMain): Set the name of this executable.
6816 * Makefile.am: Add java/lang/natThrowable.cc.
6818 * Makefile.in: Rebuilt.
6820 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6822 * configure.in: Force link with __frame_state_for in
6823 FORCELIBGCCSPEC. Add new checks for backtrace.
6824 * include/config.h.in: Rebuilt.
6826 * name-finder.cc: New file.
6827 * include/name-finder.h: New file.
6829 2000-01-16 Anthony Green <green@cygnus.com>
6831 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6834 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6836 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6838 2000-01-13 Tom Tromey <tromey@cygnus.com>
6840 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6841 not system loader, as initiating loader.
6843 2000-01-11 Tom Tromey <tromey@cygnus.com>
6845 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6846 HP/UX. From David Scott Urban.
6848 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6850 * java/lang/natMath.cc (pow): Cast args to `double', not
6853 (IEEEremainder): Likewise.
6854 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6855 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6857 2000-01-09 Anthony Green <green@cygnus.com>
6859 * java/lang/natString.cc (init): Test for overflow condition
6860 during out of bounds check.
6861 (getChars): Throw StringIndexOutOfBoundsException, not
6862 ArrayIndexOutOfBoundsException.
6864 (regionMatches): Obey case option during string comparison.
6866 * configure.host (ligcj_interpreter): New variable. Enable
6867 interpreter by default on IA-32.
6868 * configure.in: Examine libgcj_interpreter.
6869 * configure: Rebuilt.
6871 2000-01-07 Tom Tromey <tromey@cygnus.com>
6873 * mauve-libgcj: Don't disable ClassTest.
6875 * java/lang/natClass.cc (getClasses): Wrote.
6877 2000-01-06 Tom Tromey <tromey@cygnus.com>
6879 * java/lang/natClass.cc (_getConstructors): Correctly check
6880 whether method name is the init name.
6881 (getMethod): Look at accflags on method in `klass', not `this'.
6883 2000-01-05 Tom Tromey <tromey@cygnus.com>
6885 * java/lang/natClass.cc (getMethod): Compute offset relative to
6886 `klass's methods table, not `this's table.
6888 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6889 In unwrapping/widening case, check whether `k' is null, not
6890 whether it is primitive. Initialize `num' from `argelts', not
6891 `paramelts'. Correct create and pass arguments to ffi_call.
6892 Don't let presence of `this' argument affect index used to look in
6894 (COPY): Set appropriate element in `values' vector.
6896 * java/lang/natClass.cc: Include <gcj/method.h>.
6898 * java/lang/Class.h (_getMethods): Correctly declare as private,
6901 * java/lang/Class.h (_getMethods): Declare.
6902 * java/lang/Class.java (_getMethods): Declare.
6903 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6904 (getDeclaredClasses): Always return empty array.
6905 (_getMethods): New method.
6906 (getMethods): Wrote.
6907 (getDeclaredMethod): Return `rmethod'.
6908 (finit_name): New global.
6909 (getDeclaredMethods): Check for finit_name.
6910 (_getMethods): Likewise.
6911 (getMethod): Only return public methods.
6913 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6914 jboolean and select correct ffi type on that basis.
6915 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6916 Constructor call always has `void' return type.
6918 2000-01-04 Tom Tromey <tromey@cygnus.com>
6920 * java/lang/Class.h (getSignature): Updated.
6921 * java/lang/Class.java (getSignature): Updated.
6922 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6924 (getConstructor): Ensure constructor is public.
6925 (_getConstructors): Check for public-ness of constructor when
6926 `declared' is false, not when it is true.
6928 2000-01-04 Warren Levy <warrenl@cygnus.com>
6930 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6932 (receive): Set the sender's address in the DatagramPacket.
6934 2000-01-04 Tom Tromey <tromey@cygnus.com>
6936 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6937 declaring class as return_type argument to
6938 _Jv_CallNonvirtualMethodA.
6939 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6940 constructor case, create object and use it as `this' argument.
6941 * java/lang/Class.h (_getConstructors): Declare.
6942 (_getFields): Declare.
6943 * java/lang/Class.java (getConstructors): Wrote.
6944 (_getConstructors): New native method.
6945 (getDeclaredConstructors): Wrote.
6946 (_getFields): Declare new native method.
6947 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6949 (getMethod): Work correctly when class is primitive.
6950 (getDeclaredMethods): Likewise. Compute offset using `method',
6952 (getDeclaredMethod): Likewise.
6953 (getConstructor): Wrote.
6954 (ConstructorClass): New define.
6955 (getDeclaredConstructor): Wrote.
6956 (_getConstructors): New method.
6957 (_getFields): New method.
6960 * Makefile.in: Rebuilt.
6961 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6963 * prims.cc: Remove `#pragma implementation'.
6964 * gcj/array.h: Remove `#pragma interface'.
6966 * prims.cc (_Jv_equaln): New function.
6967 * java/lang/Class.java (getSignature): Declare.
6968 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6969 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6971 (getSignature): New method.
6972 (getDeclaredMethod): Wrote.
6974 Include StringBuffer.h.
6975 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6976 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6978 (getSignature): Declare.
6979 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6980 (_Jv_equaln): Declare.
6981 (_Jv_CallNonvirtualMethodA): Declare.
6982 * Makefile.in: Rebuilt.
6983 * Makefile.am (nat_source_files): Added natConstructor.cc.
6984 (java/lang/reflect/Constructor.h): New target.
6985 * java/lang/reflect/natConstructor.cc: New file.
6986 * java/lang/reflect/Constructor.java (newInstance): Now native.
6987 (declaringClass): Renamed from decl_class.
6988 (offset): Renamed from index.
6989 (getType): New native method.
6990 (getModifiers): Now native.
6991 (getParameterTypes): Call getType if required.
6992 (hashCode): Include hash code from declaring class.
6993 (modifiers): Removed.
6994 (toString): Call getType if required.
6995 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6996 * java/lang/reflect/natMethod.cc (hack_call): New method.
6997 Removed `#if 0' around FFI code.
6998 Include <gnu/gcj/RawData.h>.
6999 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7000 IllegalArgumentException when argument object and class disagree.
7001 (_Jv_GetTypesFromSignature): New function.
7003 (ObjectClass): New define.
7004 (_Jv_CallNonvirtualMethodA): New function.
7005 * java/lang/reflect/Method.java (hack_trampoline): New method.
7006 (hack_call): New native method.