1 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
5 * Makefile.am: New friends for java/lang/Thread.h.
6 * prims.cc (runFirst): Removed.
7 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
8 (_Jv_RunMain): Now takes either a klass or class name parameter.
9 Create a gnu.gcj.runtime.FirstThread and attach the native thread
10 to that, then run it using _Jv_ThreadRun. Remove special handling of
11 jar files, instead pass is_jar parameter through to FirstThread.
12 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
13 of _Jv_AttachCurrentThread.
14 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
15 (run): New method. Take care of looking up main class manifest
16 attribute and calling forName if neccessary. Then call call_main.
17 (call_main): New native method.
18 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
19 relocated from prims.cc. Look up and call main method.
20 * java/lang/Thread.java (run_): Removed.
21 * java/lang/natThread.cc (run_): Renamed to...
22 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
23 (_Jv_NotifyThreadStart): here. New function.
24 (countStackFrames, destroy, resume, suspend, stop): Throw
25 UnsupportedOperationExceptions rather than JvFail'ing.
26 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
27 Existing version wraps new variant.
30 2001-08-23 Tom Tromey <tromey@redhat.com>
32 * java/lang/reflect/Field.java (toString): Use
33 Method.appendClassName.
34 * java/lang/reflect/Constructor.java (toString): Use
35 Method.appendClassName.
36 * java/lang/reflect/Method.java: Reindented.
37 (appendClassName): New method.
39 * defineclass.cc (handleMethod ): Initialize `throws' field of
41 (read_one_method_attribute): Handle Exceptions attribute.
42 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
43 (ObjectClass): Removed.
44 (getType): Compute `exception_types'.
45 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
47 2001-08-21 Anthony Green <green@redhat.com>
49 * java/lang/natClassLoader.cc (findClass): Search for
50 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
52 2001-08-21 Jeff Sturm <jsturm@one-point.com>
54 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
57 2001-08-20 Tom Tromey <tromey@redhat.com>
59 * java/awt/GridBagConstraints.java: Removed comment.
61 * jni.cc (nathash, nathash_count, nathash_size): New globals.
62 (DELETED_ENTRY): New define.
64 (nathash_find_slot): Likewise.
65 (natrehash): Likewise.
66 (nathash_add): Likewise.
67 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
69 (nathash_find): New function.
70 (_Jv_LookupJNIMethod): Use it. Synchronize body.
71 (call): Synchronize around assignment.
73 2001-08-17 Jeff Sturm <jsturm@one-point.com>
75 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
76 starting from zero offset.
78 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
80 * boehm.cc: Include gc_local_alloc.h if appropriate.
81 (GC_GENERIC_MALLOC): Don't define.
82 (MAYBE_MARK): Redefine for GC 6.0.
83 (_Jv_MarkObj): Mark class differently.
84 (_Jv_AllocArray): Use GC_generic_malloc.
86 2001-08-17 Mark J Roberts <mjr@anarcast.net>
88 * java/math/BigInteger.java (randBytes): New method.
89 (BigInteger(int,Random)): Use randBytes.
91 2001-08-17 Tom Tromey <tromey@redhat.com>
93 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
95 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
97 * BigInteger.java: fix right shifts by nonzero multiples of 32.
99 2001-08-15 Tom Tromey <tromey@redhat.com>
101 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
102 (local_ref_table, global_ref_table): Now IdentityHashMap.
103 (_Jv_JNI_Init): Updated for new types.
104 (mark_for_gc): Likewise.
105 (unmark_for_gc): Likewise.
106 * gcj/javaprims.h: Rebuilt class list.
107 * Makefile.in: Rebuilt.
108 * Makefile.am (core_java_source_files): Added new file.
109 * java/util/IdentityHashMap.java: New file.
111 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
114 2001-08-09 Tom Tromey <tromey@redhat.com>
116 * java/awt/image/SampleModel.java (getPixel): Set correct array
117 element. From Chris Meyer.
119 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
121 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
122 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
124 2001-08-06 Tom Tromey <tromey@redhat.com>
126 * java/io/InputStreamReader.java (refill): Only call refill on
127 BufferedInputStream when appropriate constraints are met.
129 2001-08-05 Tom Tromey <tromey@redhat.com>
131 * java/io/StringWriter.java: Merged with Classpath.
132 * java/io/InputStream.java: Merged with Classpath.
133 * java/io/OutputStream.java: Merged with Classpath.
134 * java/io/PushbackInputStream.java: Merged with Classpath.
135 * java/io/CharArrayReader.java: Merged with Classpath.
136 * java/io/CharArrayWriter.java: Merged with Classpath.
138 2001-08-02 Tom Tromey <tromey@redhat.com>
140 * prims.cc (JNI_OnLoad): Don't declare.
141 (_JNI_OnLoad): Don't define.
142 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
144 2001-08-02 Tom Tromey <tromey@redhat.com>
146 * java/io/RandomAccessFile.java (seek): Let seek go past end of
148 (skipBytes): Don't fail if seeking past end of file.
149 * java/io/FileInputStream.java (skip): Don't fail if seeking past
151 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
153 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
155 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
157 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
159 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
161 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
162 to initialize global_ref_table/local_ref_table.
164 2001-08-02 Tom Tromey <tromey@redhat.com>
166 * configure: Rebuilt.
167 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
170 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
172 * include/posix.h (_POSIX_PII_SOCKET): Define.
173 * configure.in (HAVE_SOCKLEN_T): Define.
174 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
176 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
177 (java::net::PlainSocketImpl::accept): Use it.
178 Fixes PRs libgcj/3694, libgcj/3696.
180 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
181 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
182 * configure, include/config.h.in: Regenerate.
183 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
184 (mcastGrp): Likewise.
185 (java::net::PlainDatagramSocketImpl::setOption): Guard against
186 missing IPV6_MULTICAST_IF.
187 Fixes PR libgcj/3694.
189 2001-08-01 Jeff Sturm <jsturm@one-point.com>
191 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
193 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
195 * Makefile.in: Rebuilt.
196 * Makefile.am (GCJLINK): Added --tag=GCJ.
199 2001-07-30 Tom Tromey <tromey@redhat.com>
201 * java/util/Date.java: Re-merged with Classpath.
203 2001-07-30 Jeff Sturm <jsturm@one-point.com>
205 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
206 (_Jv_bind): New static function.
207 (bind): Use _Jv_bind.
208 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
209 (_Jv_bind, _Jv_connect): New static functions.
210 (bind): Use _Jv_bind.
211 (connect): Use _Jv_connect.
213 2001-07-30 Tom Tromey <tromey@redhat.com>
214 Corey Minyard <minyard@acm.org>
216 * gnu/gcj/convert/natIconv.cc (done): New methods.
217 * gnu/gcj/convert/Output_iconv.java (done): New method.
218 * gnu/gcj/convert/Input_iconv.java (done): New method.
219 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
221 (getDefaultEncodingClass): Removed.
222 (getDefaultEncoder): Use getEncoder.
224 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
226 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
228 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
230 (getDefaultDecodingClass): Removed.
231 (getDefaultDecoder): Use getDecoder.
232 (getDecoder): Look up decoder in cache.
234 * java/lang/natString.cc (init): Call `done' on converter.
235 (getBytes): Likewise.
237 2001-07-30 Tom Tromey <tromey@redhat.com>
239 * java/lang/Integer.java: Merged with Classpath.
241 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
243 * java/util/GregorianCalendar.java (GregorianCalendar): Call
244 setTimeInMillis() to set the default/current time.
246 2001-07-29 Mark Wielaard <mark@klomp.org>
248 * HACKING: add description on updating namespace
250 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
252 * java/util/Calendar.java (set): Never recompute fields here. They
253 will already be set if someone set time explicitly, and it can cause
254 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
255 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
256 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
258 * java/text/SimpleDateFormat.java (defaultCentury): New field.
259 (readObject): Call set2DigitYearStart if appropriate so that
260 defaultCentury is calculated.
261 (SimpleDateFormat): Don't bother clearing calendar here. Call
262 computeCenturyStart().
263 (set2DigitYearStart): Calculate and set defaultCentury.
264 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
266 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
267 2 numeric digits, use the 80-20 heuristic to parse the value into a
268 default century based on defaultCenturyStart.
269 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
271 2001-07-25 Tom Tromey <tromey@redhat.com>
273 * Makefile.in: Rebuilt.
274 * Makefile.am (libgcj.jar): Correctly fail when bytecode
277 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
279 * prims.cc (_JNI_OnLoad): New function.
280 (JNI_OnLoad): Use it.
281 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
283 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
285 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
286 Makefile.in: Regenerate.
288 2001-07-24 Tom Tromey <tromey@redhat.com>
290 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
293 2001-07-23 Tom Tromey <tromey@redhat.com>
295 * gcj/javaprims.h: Rebuilt class list.
296 * Makefile.in: Rebuilt.
297 * Makefile.am (core_java_source_files): Added VMClassLoader.
298 * java/lang/VMClassLoader.java: New file.
299 * java/lang/Boolean.java: Merged with Classpath.
300 * java/lang/Byte.java: Merged with Classpath.
301 * java/lang/Integer.java: Merged with Classpath.
302 * java/lang/Long.java: Merged with Classpath.
303 * java/lang/Number.java: Merged with Classpath.
304 * java/lang/Short.java: Merged with Classpath.
306 2001-07-22 Jeff Sturm <jsturm@one-point.com>
308 * configure.host: Enable hash synchronization for alpha*-*.
309 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
311 * java/lang/natObject.cc (compare_and_swap, release_set,
312 compare_and_swap_release): Added inline functions for alpha.
314 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
316 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
317 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
318 back to old RFC 2133 variants if missing.
320 2001-07-18 Tom Tromey <tromey@redhat.com>
322 * java/io/natFileWin32.cc (_access): Renamed.
324 * java/io/natFile.cc (_access): Renamed.
326 * java/io/File.java (access, stat): Add leading `_' to name.
329 2001-07-18 Tom Tromey <tromey@redhat.com>
332 * libgcj.spec.in (*lib): Added LIBICONV.
333 * configure: Rebuilt.
334 * configure.in: Call AM_ICONV. Don't check for iconv function.
335 Add parameters to JV_HASH_SYNCHRONIZATION define.
336 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
338 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
340 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
341 not by setting its size field.
343 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
345 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
348 2001-07-12 Tom Tromey <tromey@redhat.com>
349 David Brownell <david-b@pacbell.net>
351 Fix for PR libgcj/3426:
352 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
354 (read): Throw exception if character conversion fails.
355 * java/io/BufferedInputStream.java (refill): Now package-private.
356 * java/io/InputStreamReader.java (ready): Simplified.
357 (refill): New method.
360 2001-07-12 Tom Tromey <tromey@redhat.com>
362 Report from Henner Zeller:
363 * java/io/FileOutputStream.java (FileOutputStream): Throw
364 FileNotFoundException, not IOException.
366 2001-07-10 Anthony Green <green@redhat.com>
368 * Makefile.in: Rebuilt.
369 * Makefile.am: Add new files.
370 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
371 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
372 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
373 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
374 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
375 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
376 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
377 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
378 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
379 org/w3c/dom/ranges/DocumentRange.java,
380 org/w3c/dom/ranges/Range.java,
381 org/w3c/dom/ranges/RangeException.java,
382 org/w3c/dom/traversal/DocumentTraversal.java,
383 org/w3c/dom/traversal/NodeFilter.java,
384 org/w3c/dom/traversal/NodeIterator.java,
385 org/w3c/dom/traversal/TreeWalker.java,
386 org/xml/sax/ext/DeclHandler.java,
387 org/xml/sax/ext/LexicalHandler.java,
388 org/xml/sax/helpers/AttributeListImpl.java,
389 org/xml/sax/helpers/AttributesImpl.java,
390 org/xml/sax/helpers/DefaultHandler.java,
391 org/xml/sax/helpers/LocatorImpl.java,
392 org/xml/sax/helpers/NamespaceSupport.java,
393 org/xml/sax/helpers/ParserAdapter.java,
394 org/xml/sax/helpers/ParserFactory.java,
395 org/xml/sax/helpers/XMLFilterImpl.java,
396 org/xml/sax/helpers/XMLReaderAdapter.java,
397 org/xml/sax/helpers/XMLReaderFactory.java,
398 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
399 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
400 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
401 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
402 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
403 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
404 org/xml/sax/SAXNotRecognizedException.java,
405 org/xml/sax/SAXNotSupportedException.java,
406 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
407 org/xml/sax/XMLReader.java: New files.
409 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
411 * Makefile.am: Added `java/lang/ThreadLocal.java'.
412 * Makefile.in: Regenerate.
413 * java/lang/ThreadLocal.java: Initial import.
415 2001-07-07 Jeff Sturm <jsturm@one-point.com>
417 * Makefile.am (libgcj.jar): Don't recursively make
418 built_java_source_files. Avoid long command lines.
419 Don't change to $(srcdir) to invoke javac.
420 (libgcj.la, libgcjx.la); Avoid long command lines.
421 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
422 * Makefile.in: Rebuilt.
424 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
426 * include/i386-signal.h: Don't do anything with unsigned divide
427 overflow except throw an exception.
429 2001-07-05 Tom Tromey <tromey@redhat.com>
432 * java/lang/Class.h (Class(void)): Now private. Removed
433 implementation. From dmorsberger@sensysdl.com.
435 2001-07-02 Tom Tromey <tromey@redhat.com>
437 Fix for PR bootstrap/3281:
438 * aclocal.m4, configure: Rebuilt.
439 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
440 Correctly compute libgcj_basedir.
441 (mkinstalldirs): Define and subst.
443 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
446 * java/io/LineNumberReader.java (reset): Pass correct arguments to
449 2001-06-27 Tom Tromey <tromey@redhat.com>
451 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
454 2001-06-25 Tom Tromey <tromey@redhat.com>
456 * scripts/encodings.pl: Generate lower-case names. Updated URL
457 for `character-sets' file.
458 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
460 Rebuilt list of aliases.
462 2001-06-25 Tom Tromey <tromey@redhat.com>
464 * java/io/natFileDescriptorPosix.cc (open): Change error message
465 formatting. From David Brownell.
467 2001-06-21 Tom Tromey <tromey@redhat.com>
469 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
472 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
474 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
475 extraneous/malformed sign word.
477 2001-06-15 Tom Tromey <tromey@redhat.com>
479 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
481 2001-06-15 Tom Tromey <tromey@redhat.com>
483 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
484 NULL if no library on the list has the symbol.
485 (init): Call add_library on the program itself.
486 * prims.cc (JvRunMain): Initialize Runtime before searching for
488 (_Jv_RunMain): Likewise.
490 2001-06-15 Tom Tromey <tromey@redhat.com>
492 * jni.cc (ClassClass): Removed; updated all users.
493 (ObjectClass): Likewise.
494 (ThrowableClass): Likewise.
495 (MethodClass): Likewise.
496 (ThreadGroupClass): Likewise.
497 (local_ref_table): Renamed from `ref_table'.
498 (global_ref_table): New global.
499 (_Jv_JNI_Init): Initialize both ref tables.
500 (mark_for_gc): Added `ref_table' parameter.
501 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
503 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
504 (_Jv_JNI_DeleteGlobalRef): Likewise.
505 (_Jv_JNI_DeleteLocalRef): Likewise.
506 (_Jv_JNI_NewLocalRef): Likewise.
507 (_Jv_JNI_PopLocalFrame): Likewise.
508 (_Jv_JNI_GetStringChars): Likewise.
509 (_Jv_JNI_ReleaseStringChars): Likewise.
510 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
511 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
513 2001-06-14 Tom Tromey <tromey@redhat.com>
515 Fix for PR libgcj/3144:
516 * java/util/Date.java: Merged with Classpath.
518 2001-06-12 Tom Tromey <tromey@redhat.com>
520 * aclocal.m4, configure: Rebuilt.
521 * acinclude.m4: Find configure.host in srcdir.
523 2001-06-07 Tom Tromey <tromey@redhat.com>
525 Fix for PR libgcj/3059:
526 * java/lang/natSystem.cc (init_properties): Define `java.home'.
527 * Makefile.in: Rebuilt.
528 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
530 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
532 * exception.cc (cstdlib): Replaces stdlib.h.
533 (_Jv_Throw): Use std::abort().
534 (PERSONALITY_FUNCTION): Likewise.
536 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
538 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
539 nothing, as in autoconf 2.50.
540 * aclocal.m4, configure: Rebuilt.
542 2001-06-08 Tom Tromey <tromey@redhat.com>
544 * configure: Rebuilt.
545 * configure.in: Compute new aux dir using `pwd'.
547 2001-06-07 Tom Tromey <tromey@redhat.com>
549 For PR bootstrap/3075:
550 * configure, aclocal.m4, Makefile.am: Rebuilt.
551 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
552 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
553 relative to libgcj_basedir.
554 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
555 AC_CANONICAL_SYSTEM here.
556 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
558 ($(extra_headers)): New target.
560 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
561 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
563 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
564 table index is within allowed bounds. Ensure that we dont try to access
565 class itable at a negative offset. Avoid an ancestor table lookup if
566 source is a primitive type class.
567 (isInstance): Remove redundant isPrimitive() check.
569 2001-06-04 Tom Tromey <tromey@redhat.com>
571 * java/security/PublicKey.java: Extend Key.
572 * java/security/PrivateKey.java: Extend Key.
574 2001-06-02 Anthony Green <green@redhat.com>
576 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
577 alternate when USE_LTDL not defined.
579 2001-06-02 Anthony Green <green@redhat.com>
581 * configure: Rebuild.
582 * configure.in: Remove data_start hack.
583 * libgcj.spec.in: Ditto.
584 * Makefile.in: Rebuild.
585 * Makefile.am: Ditto.
586 * libgcjdata.c: Remove.
588 2001-06-02 Anthony Green <green@redhat.com>
590 * configure: Rebuild.
591 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
592 --without-libffi option. Tweak --disable-java-net processing.
593 * Makefile.in: Rebuild.
594 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
595 * include/config.h.in: Rebuild.
596 * acconfig.h (USE_LIBFFI): Define.
597 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
599 2001-06-02 Anthony Green <green@redhat.com>
601 * configure: Rebuilt.
602 * configure.in: Test for sigaction on native builds.
603 * prims.cc: Check HAVE_SIGACTION.
604 * include/config.h.in: Rebuilt.
606 2001-05-31 Jeff Sturm <jsturm@one-point.com>
608 * natFile.cc (get_entry): Removed functions.
609 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
610 Allocate enough storage for d_name if using readdir_r.
612 2001-05-31 Tom Tromey <tromey@redhat.com>
614 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
616 (write): Loop until write completes. From Corey Minyard.
618 2001-05-29 Laurent Guerby <guerby@acm.org>
620 * java/awt/geom/Rectangle2D.java: fix doc typo.
622 2001-05-31 Tom Tromey <tromey@redhat.com>
624 * java/sql/DriverManager.java (getDrivers): Handle case where
625 driver's class loader is null. From Corey Minyard.
627 2001-05-29 Tom Tromey <tromey@redhat.com>
629 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
631 * configure: Rebuilt.
632 * configure.in: Only add multilib support code if we just rebuilt
635 2001-05-29 Andrew Haley <aph@redhat.com>
637 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
638 pointer: the dwarf unwinder in libgcc will do everything that's
640 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
641 more than we absolutely need to.
642 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
643 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
645 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
647 * configure: Rebuilt.
648 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
650 (SIGNAL_HANDLER): Use siginfo style handler.
651 (INIT_SEGV): Likewise.
652 (INIT_FPE): Likewise.
653 * include/ppc-signal.h: Delete whole file.
655 2001-05-24 Tom Tromey <tromey@redhat.com>
657 * java/lang/natString.cc (init): Throw
658 ArrayIndexOutOfBoundsException.
659 (getChars): Likewise.
660 (getBytes): Likewise.
663 * configure.in: Only allow hash synchronization when POSIX threads
665 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
668 2001-05-23 Tom Tromey <tromey@redhat.com>
670 * Makefile.in: Rebuilt.
671 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
673 Revert patch of 2001-05-21:
674 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
675 (libgcj_la_LIBADD): Likewise.
676 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
677 (libgcjx_la_LIBADD): Likewise.
679 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
680 * gcj/Makefile.in: Rebuilt.
681 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
682 * gcj/javaprims.h: Include gcj/libgcj-config.h.
683 * gcj/libgcj-config.h.in: New file.
684 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
685 * configure: Rebuilt.
686 * configure.in: Enable hash synchronization by default on some
688 (HASH_SYNC_SPEC): New subst.
689 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
690 Correctly use `test -z' instead of `test -n' in a couple places.
691 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
693 * configure.host (enable_java_net_default): Initialize.
694 (enable_hash_synchronization_default): New variable.
696 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
698 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
699 synchronization in use.
700 (_Jv_MarkArray): Likewise.
701 (_Jv_AllocBytes): Don't check return result.
702 (handle_out_of_memory): New function.
703 (_Jv_InitGC): Set GC_oom_fn.
704 (trace_one_vtable): New global.
705 (_Jv_AllocTraceOne): New function.
706 * configure.in: Added --enable-hash-synchronization.
707 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
708 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
709 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
710 (_Jv_AllocArray): Likewise.
711 (_Jv_AllocBytes): Likewise.
712 (_Jv_AllocPtrFreeObject): New function.
713 (_Jv_AllocTraceOne): Likewise.
714 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
716 (self_cache): New global.
717 (_Jv_ThreadSelf_out_of_line): New function.
718 * prims.cc (_Jv_AllocBytesChecked): Removed.
719 (_Jv_ThrowNoMemory): New function.
720 (_Jv_AllocObject): Don't check for null return from allocator.
721 (_Jv_NewObjectArray): Likewise.
722 (_Jv_AllocPtrFreeObject): New function.
723 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
724 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
725 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
726 * include/boehm-gc.h (_Jv_AllocObj): Define.
727 (_Jv_AllocPtrFreeObj): Define.
728 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
729 (_Jv_ThrowNoMemory): Declare.
730 (_Jv_AllocTraceOne): Declare.
731 (_Jv_AllocBytesChecked): Removed.
732 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
733 _Jv_MutexUnlock): Handle LOCK_DEBUG.
734 (_Jv_ThreadSelf): Handle case where system pthread_self() is
736 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
738 * java/lang/Object.h (sync_info): Conditional upon presence of
739 hash synchronization.
740 * java/lang/natObject.cc: Much new code to handle thin locks and
741 hash synchronization.
742 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
745 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
747 * gij.cc (version): Update copyright year.
749 2001-05-22 Anthony Green <green@redhat.com>
751 * configure.in: Tweak canadian cross test, and don't redefine GCJ
754 2001-05-21 Per Bothner <per@bothner.com>
756 Implement invocation interface; don't create new thread for main.
757 * java/lang/Thread.java (gen_name): Make native.
758 (<init>(Thread,THreadGroup,Runnable,String)): New private
759 constructor, used by other constructors, and _Jv_AttachCurrentThread.
760 * java/lang/natThread.cc (gen_name): New implementation.
761 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
762 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
763 (_Jv_CreateJavaVM): New runtime initialization procedure.
764 (runFirst): New proecdure - mostly code from old FirstThread::run.
765 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
766 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
767 JvDetachCurrentThread): New inline wrappers.
768 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
769 _Jv_DetachCurrentThread): New declarations.
770 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
771 (getMain): new static method.
772 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
773 by runFirst in prims.cc.
774 (java/lang/Thread.h): Update for new invocation interface.
775 * include/posix-threads.h (_Jv_ThreadRegister,
776 _Jv_ThreadUnRegister): New declarations.
777 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
778 (really_start): Use new _Jv_ThreadRegister.
779 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
780 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
781 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
782 Complain of called when _Jv_OnlyThread already set.
783 (_Jv_ThreadStart): Always JvFail.
784 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
785 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
786 * win32-threads.cc (struct starter): Remove objet field -
787 we use _Jv_Thread_t's new thread_obj field instead.
788 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
789 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
790 (really_start): Use new _Jv_ThreadRegister.
791 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
792 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
793 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
794 Removed - no longer needed with new invocation interface.
795 * Makefile.am: Update for removed/added files.
797 2001-05-21 Per Bothner <per@bothner.com>
799 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
800 (libgcj_la_LIBADD): Likewise.
801 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
803 2001-05-21 Per Bothner <per@bothner.com>
805 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
806 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
807 taken from old Integer.toString code.
808 (Integer::valueOf): Use _Jv_FormatInt.
809 * java/lang/Integer.java (toString): Just use call String.valueOf.
810 * java/lang/Long.java (toString): Fix typo in comment.
811 * java/lang/String.java (valueOf(int)): Make native.
812 * java/lang/StringBuffer.java (append(int)): Make native.
813 * java/lang/natStringBuffer.cc: New file, for append(jint).
814 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
816 2001-05-21 Tom Tromey <tromey@redhat.com>
818 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
820 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
822 * include/dwarf2-signal.h: New file.
823 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
824 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
825 * configure: Rebuilt.
827 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
829 * configure.in: Update boehm-gc include dir for new GC version.
830 * configure: Rebuilt.
831 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
833 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
834 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
835 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
838 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
840 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
841 (_Jv_MutexInit): Likewise.
843 2001-05-18 Tom Tromey <tromey@redhat.com>
845 * Makefile.in: Rebuilt.
846 * Makefile.am (awt_java_source_files): Added Polygon.java.
848 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
850 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
851 * gcj/javaprims.h: ... here.
852 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
854 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
856 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
857 with length of ioffset table.
858 (_Jv_IsAssignableFrom): Likewise.
860 2001-05-17 Per Bothner <per@bothner.com>
862 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
864 2001-05-16 Tom Tromey <tromey@redhat.com>
866 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
869 2001-05-15 Tom Tromey <tromey@redhat.com>
871 * java/util/GregorianCalendar.java (computeTime): Only call
874 2001-05-14 Tom Tromey <tromey@redhat.com>
876 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
877 ZONE_OFFSET just before computing the time.
879 2001-05-12 Zack Weinberg <zackw@stanford.edu>
881 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
882 * Makefile.in: Regenerate (by hand).
883 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
884 * doc/cni.sgml: Document #pragma GCC java_exceptions.
886 2001-05-11 Richard Henderson <rth@redhat.com>
888 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
889 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
891 2001-05-11 Richard Henderson <rth@redhat.com>
893 * exception.cc: Include unwind-pe.h. Remove all pointer
896 2001-05-10 Tom Tromey <tromey@redhat.com>
898 * Makefile.in: Rebuilt.
899 * Makefile.am (awt_java_source_files): Added Polygon.java.
900 * java/awt/Polygon.java: New file.
902 * java/awt/geom/AffineTransform.java
903 (setToRotation(double,double,double)): New method.
904 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
905 (setToShear): Likewise.
907 2001-05-10 Tom Tromey <tromey@redhat.com>
909 * java/util/GregorianCalendar.java: Imported from Classpath.
910 * gnu/java/locale/LocaleInformation_nl.java: New file from
912 * gnu/java/locale/LocaleInformation_en.java: Likewise.
913 * gnu/java/locale/LocaleInformation_de.java: Likewise.
914 * gnu/java/locale/LocaleInformation.java: Likewise.
915 * natGregorianCalendar.cc: Removed.
916 * Makefile.in: Rebuilt.
917 * Makefile.am (nat_source_files): Removed
918 natGregorianCalendar.cc.
920 2001-05-10 Tom Tromey <tromey@redhat.com>
922 * java/text/SimpleDateFormat.java (computeCenturyStart): New
924 (defaultCenturyStart): Use it.
925 (readObject): Likewise.
926 (SimpleDateFormat): Clear the calendar. Set the grouping on the
928 (parse): Copy the calendar before modifying it. Correctly handle
931 * java/util/Calendar.java (clear): Set field value(s) to 0.
933 2001-05-10 Jeff Sturm <jsturm@one-point.com>
935 * Calendar.java (get): Clear areFieldsSet if requested field
937 (set): Unset fields that depend on new value.
939 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
941 * java/lang/Class.h (_Jv_Self): New union type.
942 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
943 Jeff Sturm and Fergus Henderson.
945 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
947 * java/lang/ClassLoader.java: Remove dead code fragment.
949 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
951 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
953 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
955 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
957 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
958 * configure.host (EXCEPTIONSPEC): New.
959 * configure.in (EXCEPTIONSPEC): New.
960 * configure: Rebuilt.
962 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
964 * doc/*.texi: Remove generated documentation.
966 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
968 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
969 (performDelete): Fix #endif placement.
971 2001-04-27 Zack Weinberg <zackw@stanford.edu>
973 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
974 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
975 (_Jv_ThreadDestroyData): Use _Jv_Free.
976 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
979 2001-04-27 Tom Tromey <tromey@redhat.com>
981 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
983 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
985 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
987 * include/jni.h (struct JNINativeInterface): Fixed types in
988 Get/Set*ArrayRegion declarations.
989 (class _Jv_JNIEnv): Likewise.
991 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
993 * configure.in: Obtain THREADS with `gcc -v'.
994 * configure: Rebuilt.
996 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
999 * java/io/ObjectStreamClass.java (setClass): Calculate
1000 serialVersionUID for local class and compare it against the UID
1001 from the Object Stream. Throw InvalidClassException upon mismatch.
1002 (setUID): Renamed to...
1003 (getClassUID): this. Return the calculated class UID rather than
1004 setting uid field directly.
1005 (getDefinedSUID): Removed.
1006 * java/io/ObjectInputStream.java (resolveClass): Use the
1007 three-argument Class.forName().
1008 * java/io/InvalidClassException (toString): Don't include classname in
1009 result if it is null.
1011 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1013 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1014 Wrap use of inet_pton in HAVE_INET6.
1016 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1018 java.security merge and ClassLoader compliance fixes.
1020 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1021 New protectionDomain field.
1022 (forName): Add initialize parameter. Fixes declaration to comply with
1024 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1025 variant. Honour "initialize" flag.
1026 (getProtectionDomain0): New method.
1027 * java/lang/Class.java: Fix forName() declaration.
1028 (getPackage): New method based on Classpath implementation.
1029 (getProtectionDomain0): New native method decl.
1030 (getProtectionDomain): New method.
1031 * java/lang/ClassLoader.java (getParent): Now final.
1032 (definedPackages): New field.
1034 (defineClass): New variant with protectionDomain argument.
1035 (definePackage): New.
1037 (findSystemClass): Now final.
1038 (getSystemResourceAsStream): Remove redundant "final" modifier.
1039 (getSystemResource): Remove redundant "final" modifier.
1040 (getResources): Now final.
1041 (protectionDomainPermission): New static field.
1042 (unknownProtectionDomain): Ditto.
1043 (defaultProtectionDomain): Ditto.
1044 (getSystemClassLoader): Now non-native.
1045 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1046 arguments for Class.forName().
1047 * java/lang/Package.java: New file.
1048 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1049 (instance): Static initialize singleton.
1050 (findClass): Override this, not findSystemClass.
1051 * java/lang/natClassLoader.cc (defineClass0): Set class's
1052 protectionDomain field as specified.
1053 (getSystemClassLoader): Removed.
1054 (findClass): Renamed from findSystemClass. Call the interpreter via
1055 URLClassLoader.findClass if loading class via dlopen fails.
1057 * java/security/*.java: java.security import/merge with Classpath.
1058 * java/security/acl/*.java: Likewise.
1059 * java/security/interfaces/*.java: Likewise.
1060 * java/security/spec/*.java: Likewise.
1061 * java/net/NetPermission.java: Likewise.
1062 * java/net/SocketPermission.java: Likewise.
1063 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1065 * Makefile.am: Add new classes.
1066 * Makefile.in: Rebuilt.
1067 * gcj/javaprims.h: CNI namespace rebuild.
1069 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
1071 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1072 for libtool tests. Pre-create gnu/classpath/Configuration.java.
1073 * configure: Rebuilt.
1075 2001-04-21 Tom Tromey <tromey@redhat.com>
1077 * Makefile.in: Rebuilt.
1078 * Makefile.am (awt_java_source_files): Added Line2D.java.
1079 * java/awt/geom/Line2D.java: Wrote.
1081 * java/awt/Menu.java (addNotify): Wrote.
1083 * java/awt/PopupMenu.java (addNotify): Implemented.
1086 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1087 * java/awt/List.java (addNotify): Call super.addNotify.
1088 * java/awt/Label.java (addNotify): Call super.addNotify.
1089 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1090 * java/awt/Dialog.java (addNotify): Call super.addNotify.
1091 * java/awt/Choice.java (addNotify): Call super.addNotify.
1092 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1093 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1095 * java/awt/List.java (replaceItem): Notify peer.
1097 * java/awt/geom/Rectangle2D.java
1098 (Float.setRect(float,float,float,float)): New method.
1100 * java/awt/event/ContainerEvent.java (getContainer): Now returns
1103 * java/awt/RenderingHints.java (Key): Class now public.
1105 * java/awt/Rectangle.java (Rectangle): Now implements
1107 (getPathIterator): Removed.
1109 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1112 * java/awt/FileDialog.java: Wrote.
1114 * java/awt/EventQueue.java (isDispatchThread): Now public.
1115 (invokeLater): Likewise.
1117 * java/awt/Component.java (setCursor): Update peer.
1118 (getFontMetrics): Use peer.
1120 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1123 2001-04-20 Tom Tromey <tromey@redhat.com>
1125 * java/awt/List.java: Wrote.
1126 * java/awt/Dialog.java: Wrote.
1128 2001-04-20 Warren Levy <warrenl@redhat.com>
1130 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1131 * java/text/SimpleDateFormat.java
1132 (indexInArray): Removed private method.
1133 (processYear): Removed private method.
1134 (parseLenient): Removed private method.
1135 (parseLeadingZeros): Removed private method.
1136 (parseStrict): Removed private method.
1137 (expect): Added new private method.
1138 (parse): Reverted to pre-Classpath merge version with minor fixes.
1139 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1142 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1144 * java/io/File.java (normalizePath): New private method.
1145 (File (String)): Use normalizePath().
1146 (File (String, String)): Likewise.
1148 * Makefile.am (libffi_files): Removed.
1149 (libgcj.la): Link libffi as a convenience library instead of
1150 refering to its object files directly.
1151 * Makefile.in: Rebuilt.
1153 2001-04-08 Per Bothner <per@bothner.com>
1155 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
1156 Recalculate hash, since Utf8Const's hash is only 16 bits.
1158 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
1159 bits of hash to calculate step for chaining.
1161 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
1162 when 2/3 full, rather than 3/4 full.
1164 2001-04-06 Tom Tromey <tromey@redhat.com>
1166 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1167 (wrap_value<T*>): New specialization.
1168 (_Jv_JNI_PopLocalFrame): Update env->locals.
1170 2001-04-05 Tom Tromey <tromey@redhat.com>
1172 * libtool-version: Updated current.
1174 2001-04-04 Andreas Jaeger <aj@suse.de>
1176 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1177 * gcj/Makefile.in: Rebuilt.
1178 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1179 * Makefile.in: Rebuilt.
1180 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1181 * testsuite/Makefile.in: Rebuild.
1182 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1183 * include/Makefile.in: Rebuild.
1185 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1187 * testsuite/lib/libjava.exp: Correct typo: 'output from source
1188 compiled test', not 'execution from source compiled test'.
1189 Use UNTESTED, not XFAIL, for tests which are not run because
1190 they depend on a previous test which failed.
1192 2001-04-02 Richard Henderson <rth@redhat.com>
1194 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1195 the same tree as gcc.
1196 * configure: Rebuilt.
1198 * exception.cc (_Jv_Throw): Clarify commentary.
1200 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
1202 * jni.cc (wrap_value<jclass>): New specialization.
1204 2001-04-02 Tom Tromey <tromey@redhat.com>
1206 * java/io/PrintStream.java (out): Removed field. Fixes PR
1208 (write): Call flush, not out.flush, per spec.
1209 (close): Flush output stream, per spec. Handle
1210 InterruptedIOException.
1211 (checkError): Likewise.
1212 (flush, print, write): Handle InterruptedIOException per spec.
1213 (PrintStream): Don't create BufferedOutputStream.
1214 (work_bytes): New field.
1215 (writeChars): Use work_bytes. Don't assume `out' is a
1216 BufferedOutputStream.
1218 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
1220 * java/text/MessageFormat.java (setLocale): Added missing `else'.
1223 2001-03-30 Tom Tromey <tromey@redhat.com>
1225 * jni.cc (add_char): Correctly encode non-ascii characters.
1226 (add_char): Define even when INTERPRETER not defined.
1227 (mangled_name): Likewise.
1228 (_Jv_GetJNIEnvNewFrame): Likewise.
1229 (_Jv_LookupJNIMethod): Likewise.
1231 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1233 * configure.host: Enable interpreter for PPC.
1235 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
1237 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1238 to "file.separator", "path.separator", and "java.io.tmpdir" property
1240 * java/io/File.java: Likewise.
1241 * java/io/natFile.cc (init_native): Likewise.
1242 * java/io/natFileWin32.cc (init_native): Likewise.
1244 2001-04-01 Per Bothner <per@bothner.com>
1246 * java/lang/natString.cc (intern): If string's data does not point to
1247 this String, make a fresh String that does.
1249 * java/lang/natString.cc (unintern): Replace by static function.
1250 * java/lang/String.java (unintern): Remove method.
1252 2001-04-01 Per Bothner <per@bothner.com>
1254 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
1255 (finish): def.deflate needs to be called in a loop.
1256 (inbuf, inbufLength): New private fields.
1257 (write(int)): Use inbuf.
1258 (write(byte[],int,int): Check if pending output in inbuf.
1259 * ZipOutputStream.java: Don't use Deflater if stored.
1260 Use a Checksum object directly, not via a CheckedOutputStream.
1261 (uncompressed_size): New field,
1262 (closeEntry): Only write data_directory if needed.
1263 (write): If STORED, write directly.
1264 Always update crc, and uncompressed_size.
1265 (write_entry): Fix lots of protocol erors.
1267 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
1269 1.3-Compliant Implementation of java.io.File.
1270 * java/lang/natSystem.cc (init_properties): Get "file.separator",
1271 "path.separator", and "java.io.tmpdir" from the File class, instead
1272 of setting them explicitly.
1273 * java/io/File.java: Do not canonicalize paths for security manager
1274 checks. Call init_native() from static initializer. Do not pass path
1275 argument to native methods. New native method declarations. Some
1276 security manager checks moved to checkWrite().
1277 (equals): Check file system case sensitivity and act appropriatly.
1278 (hashCode): Likewise.
1279 (isHidden): New method implemented.
1280 (performList): Changed prototype. Now takes a class argument specifying
1281 the class of the returned array: Strings or File objects. Also added
1282 FileFilter argument.
1283 (listFiles): New variants with "File" return type implemented.
1284 (createTempFile): Use createNewFile(). Use maxPathLen.
1285 (setReadOnly): New method implemented.
1286 (listRoots): Likewise.
1287 (compareTo): Likewise.
1288 (setLastModified): Likewise.
1289 (checkWrite): New method.
1291 * java/io/natFile.cc: Various functions no longer take canonical path
1293 (stat): Handle ISHIDDEN query.
1294 (isAbsolute): Remove WIN32 cruft.
1295 (performList): New arguments. Handle returning either File[] or String[]
1296 arrays. Check with FileFilter or FilenameFilter arguments as
1297 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1298 (performSetReadOnly): New method implemented.
1299 (performListRoots): Likewise.
1300 (performSetLastModified): Likewise.
1301 (performCreate): Likewise.
1302 (init_native): New initialization function.
1303 * java/io/natFileWin32.cc: Various functions no longer take canonical
1305 (stat): Add FIXME about ISHIDDEN query.
1306 (performList): New arguments. Handle returning either File[] or String[]
1307 arrays. Check with FileFilter or FilenameFilter arguments as
1308 appropriate. Use an ArrayList, not a Vector, for the temporary list.
1309 (performSetReadOnly): New. Stubbed.
1310 (performListRoots): Likewise.
1311 (performSetLastModified): Likewise.
1312 (performCreate): Likewise.
1313 (init_native) New initialization function.
1314 * configure.in: Check for utime() and chmod().
1315 * configure: Rebuilt.
1316 * include/config.h.in: Rebuilt.
1318 Resolves PR libgcj/1759.
1320 2001-03-28 Richard Henderson <rth@redhat.com>
1322 IA-64 ABI Exception Handling:
1323 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1324 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1325 Remove EXCEPTIONSPEC.
1326 * configure.host (libgcj_sjlj): Remove.
1327 * configure.in (EXCEPTIONSPEC): Remove.
1328 (enable-sjlj-exceptions): Detect if not specified.
1329 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1330 what header we're looking for.
1331 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1332 * Makefile.in, configure: Regenerate.
1333 * exception.cc: Don't declare libgcc2 stuff.
1334 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1335 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1336 (win32_get_restart_frame): Remove.
1337 (struct java_exception_header): New.
1338 (__gcj_exception_class): New.
1339 (get_exception_header_from_ue): New.
1340 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1341 (size_of_encoded_value, read_encoded_value): New.
1342 (read_uleb128, read_sleb128, parse_lsda_header): New.
1343 (get_ttype_entry, __gcj_personality_sj0): New.
1344 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1346 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1348 * javax/naming/InitialContext.java (init): Fix typo.
1349 (composeName): Remove unnecessary semicolon.
1350 (addToEnvironment): Remove unnecessary semicolon.
1351 (addToEnvironment): Use put() instead of add().
1353 * javax/naming/InitialContext.java (InitialContext):
1355 (destroySubcontext): Method doesn't return a result.
1356 * javax/naming/Context.java: Import java.util.Hashtable.
1357 * javax/naming/Name.java: Import java.util.Enumeration.
1359 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1361 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1362 objects in subdirectories.
1363 * Makefile.in: Rebuilt.
1365 2001-03-25 Richard Henderson <rth@redhat.com>
1367 * exception.cc (java_eh_info): Make value type jthrowable.
1368 (_Jv_type_matcher): Remove now unneeded cast.
1369 (_Jv_Throw): Make argument type jthrowable. Munge name
1370 for SJLJ_EXCEPTIONS here ...
1371 * gcj/cni.h: ... not here.
1373 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1375 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1376 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1377 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1378 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1379 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1380 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1381 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1382 java/lang/natClass.cc, java/lang/natClassLoader.cc,
1383 java/lang/natDouble.cc, java/lang/natObject.cc,
1384 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1385 java/lang/natString.cc, java/lang/natSystem.cc,
1386 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1387 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1388 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1389 java/util/zip/natInflater.cc:
1390 Use throw, not JvThrow or _Jv_Throw.
1392 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
1394 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1395 paramater, bump it to 1.
1396 * java/util/Hashtable.java (Hashtable): Likewise.
1398 2001-03-23 Per Bothner <per@bothner.com>
1400 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
1401 check for errors, since we don't want to throw exception on
1402 overflow/underflow. Instead, trim whitespace, and then check that
1403 _strtod_r uses up all the rest of the string.
1405 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
1406 ancestors array is invalid for interfaces, so do that *after*
1407 check that the target type is not an interface.
1409 2000-03-23 Jeff Sturm <jsturm@one-point.com>
1411 * prims.cc (_Jv_FindClassFromSignature): Check return of
1412 recursive call. Do not abort on invalid signature; return NULL
1415 2001-03-22 Tom Tromey <tromey@redhat.com>
1417 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1418 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1420 * include/jvm.h (_Jv_ResolveField): Declare.
1421 * include/java-interp.h (_Jv_ResolveField): Don't declare.
1422 * resolve.cc (_Jv_ResolveField): No longer conditional on
1425 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
1427 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1428 for libtool hacking.
1429 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1430 to a temporary file, then invoke libtool with the -objectlist
1432 (libgcjx.la): Likewise.
1433 * Makefile.in: Rebuilt.
1435 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1437 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1439 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
1441 * jni.cc (add_char): Handle `.' like `/'.
1443 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1445 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1446 initialize if exception_types is null.
1447 * java/lang/reflect/Constructor.java: Likewise.
1448 * java/lang/reflect/natConstructor.cc (getType): Initialize
1449 exception_types to an empty Object array.
1451 2001-03-21 Tom Tromey <tromey@redhat.com>
1453 * configure: Rebuilt.
1454 * configure.in (GCJFLAGS): Subst.
1455 * Makefile.in: Rebuilt.
1456 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1457 (gij_LDFLAGS): Likewise.
1458 (JC1FLAGS): Added GCJFLAGS and removed -g.
1460 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1461 read/write case. Fixes PR libgcj/2338.
1463 2001-03-20 Warren Levy <warrenl@redhat.com>
1465 * java/util/TimeZone.java: Sync up with Classpath. Includes new
1466 and corrected SimpleTimeZone's for the timezones hash table.
1468 2001-03-19 Per Bothner <per@bothner.com>
1470 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
1471 "canonicalize" "../../xxx" to "/xxx".
1473 2001-03-19 Mark Wielaard <mark@klomp.org>
1475 * java/util/ArrayList.java: Remove RCS keywords from comments
1476 * java/util/BasicMapEntry.java: idem
1477 * java/util/Dictionary.java: idem
1478 * java/util/HashSet.java: idem
1480 * java/util/EventObject.java: reindent
1481 * java/util/Properties.java: idem
1482 * java/util/SortedMap.java: idem
1484 * java/util/Enumeration.java: Merge with Classpath
1485 * java/util/EventListener.java: idem
1486 * java/util/Observable.java: idem
1487 * java/util/Observer.java: idem
1488 * java/util/Stack.java: idem
1490 2001-03-17 Tom Tromey <tromey@redhat.com>
1492 * java/lang/natString.cc (rehash): Don't bother with memset;
1493 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
1495 (UNMASK_PTR): New macro.
1496 (intern): Unmask pointer before returning it. Register finalizer
1498 (unintern): Handle case where
1499 (MASK_PTR): New macro.
1500 (PTR_MAKSED): Likewise.
1501 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1503 2001-03-01 Andrew Haley <aph@redhat.com>
1505 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1506 stackTrace buffer to a correctly aligned pointer array.
1508 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
1510 * java/lang/Runtime.java (_exit): Declare new package-private native.
1511 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1512 without a security manager check.
1513 (exit): Call _exit after security check.
1514 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1516 * java/lang/System.java (setSecurityManager): If a security manager
1517 is already in place, call checkPermission.
1518 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1519 throws an exception, try to deal with it gracefully.
1520 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1521 Only try to print the subordinate stack trace if "exception" is set.
1522 Print our class name first.
1524 2001-03-08 Tom Tromey <tromey@redhat.com>
1526 * java/io/ObjectStreamClass.java (setUID): Don't write interface
1527 info for array classes.
1528 Fixes PR libgcj/1971.
1530 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
1532 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1535 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
1537 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1538 instead of the new JDK1.2 API. This is simpler and makes
1539 back-porting the classes to JDK1.1 trivial.
1540 (readObject): likewise.
1542 2001-03-01 Per Bothner <per@bothner.com>
1544 Changes merged from Kawa's gnu.math.
1545 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1546 (rshift(int[],int[],int,int): Removed - not needed.
1547 (gcd): Use rshift0 rather than rshift.
1548 * java/math/BigInteger.java (setShiftRight): Likewise.
1549 (divide): Simplify by using rshift0.
1550 (divide): Zero-extend results if high-order bit set.
1552 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1554 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1557 2001-02-23 Per Bothner <per@bothner.com>
1559 Change to sometimes include class name in ClassFormatError message.
1560 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1561 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
1562 boolean instead of throwing ClassFormatError on failure.
1563 (throw_class_format_error): Change static function to method.
1564 (_Jv_ClassReader): New inline methods verify_identifier,
1565 two overloads of verify_classname, verify_field_signature, and
1566 verify_method_signature
1567 * include/java-interp.h: Update declarations to return bool.
1568 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
1569 ClassFormatError since _Jv_VerifyClassName now returns bool.
1571 2001-02-23 Per Bothner <per@bothner.com>
1573 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
1574 c++filt to select java-style output.
1576 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
1578 Fix for PR java/2040:
1579 * java/util/HashMap.java (HashMap): Don't throw exception for
1580 loadFactor > 1. Add exception messages.
1581 * java/util/Hashtable.java (Hashtable): Likewise.
1583 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
1585 Disable libgcjx by default.
1586 * configure.in: Add support for --enable-java-awt configure option.
1587 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1588 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1589 * Makefile.in: Rebuilt.
1590 * configure: Rebuilt.
1592 2001-02-20 Tom Tromey <tromey@redhat.com>
1594 * java/io/PipedWriter.java (flush): Throw exception if stream
1596 * java/io/OutputStreamWriter.java (write): Throw exception if
1598 (writeChars): Don't throw exception if stream closed.
1599 * java/io/CharArrayWriter.java (closed): New field.
1601 (flush): Throw exception if stream closed.
1602 (reset): Synchronize on correct lock. Allow stream to be
1604 (toCharArray, toString, writeTo): Synchronize.
1605 (write): Throwe exception if stream closed.
1606 * java/io/BufferedWriter.java (close): Clear `buffer'.
1607 (flush): Throw IOException if stream is closed.
1610 2001-02-16 Tom Tromey <tromey@cygnus.com>
1612 * java/lang/ThreadGroup.java (activeCount): Only include threads
1614 (enumerate): Likewise.
1616 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1618 * java/lang/Integer.java (getInteger): Return default argument if
1619 property is not set. Don't call decode with null argument.
1620 * java/lang/Long.java (getLong): Likewise.
1622 * java/io/CharArrayReader.java (CharArrayReader): Throw
1623 IllegalArgumentException if constructor arguments are illegal.
1624 (ready): Return false if no more characters can be read.
1625 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1627 2001-02-17 Mark Wielaard <mark@klomp.org>
1629 * java/util/TimerTask.java: New version from Classpath.
1631 2001-02-17 Mark Wielaard <mark@klomp.org>
1633 Remerge with Classpath
1634 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
1635 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1636 (readByte): Use convertToByte().
1637 (readChar): Use convertToChar().
1638 (readInt): Use convertToInt().
1639 (readLong): Use convertToLong().
1640 (readShort): Use convertToShort().
1641 (readUnsignedByte): Use convertToUnsignedByte().
1642 (readUnsignedShort): Use convertToUnsignedShort().
1643 (readUTF): Use convertToUTF().
1645 (convertToBoolean): Resurrected.
1646 (convertToByte): Ditto.
1647 (convertToChar): Ditto.
1648 (convertToInt): Ditto.
1649 (convertToLong): Ditto.
1650 (convertToShort): Ditto.
1651 (convertToUnsignedByte): Ditto.
1652 (convertToUnsignedShort): Ditto.
1653 (convertToUTF): Ditto.
1655 2001-02-17 Mark Wielaard <mark@klomp.org>
1659 2001-02-17 Mark Wielaard <mark@klomp.org>
1661 * java/io/DataInputStream.java: update copyright notice
1662 * java/io/PrintWriter.java: idem
1663 * java/io/Reader.java: idem
1664 * java/io/StreamTokenizer.java: idem
1665 * java/io/StringReader.java: idem
1666 * java/lang/reflect/ReflectPermission.java: idem
1668 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
1670 * java/util/TreeSet.java (clone): Made subclass safe, use
1671 super.clone(), not new.
1672 * java/util/TreeMap.java (clone): Likewise.
1674 * java/util/TreeMap.java (nil): Made non-final.
1675 (clone): Create new nil node for copy.
1677 * java/util/HashSet.java (clone): Made subclass safe, use
1678 super.clone(), not new.
1680 2001-02-14 Andrew Haley <aph@redhat.com>
1682 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1685 2001-02-15 Anthony Green <green@redhat.com>
1687 * defineclass.cc: Don't include alloca.h.
1688 (prepare_pool_entry): Convert alloca to __builtin_alloca.
1689 * interpret.cc (run_normal): Ditto.
1691 * java/lang/natDouble.cc (parseDouble): Ditto.
1693 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1695 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1697 * java/util/Collections.java (ReverseComparator): New static class.
1698 (reverseOrder): Return static instance of ReverseComparator.
1700 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1701 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1702 Rectangle.clone(), not Object.clone().
1704 * java/util/HashSet.java (clone): Remove try/catch.
1706 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1707 * java/util/Collection.java: Likewise.
1708 * java/util/Comparator.java: Likewise.
1709 * java/util/Dictionary.java: Likewise.
1710 * java/util/Iterator.java: Likewise.
1711 * java/util/ListIterator.java: Likewise.
1712 * java/util/Map.java: Likewise.
1713 * java/util/Set.java: Likewise.
1715 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
1717 * java/util/TreeMap.java: New file.
1718 * java/util/TreeSet.java: New file.
1719 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1720 * Makefile.in: Rebuilt.
1721 * java/util/HashSet.java (clone): Use constructor instead of calling
1723 * java/util/SortedSet.java: Sync with classpath.
1724 * java/util/HashMap.java (hash): Use if statement instead of ternary,
1727 * java/lang/natClass.cc (getSignature): Don't try to dereference
1728 param_types if it is null. Instead, take this to mean "no parameters".
1729 * java/lang/TreeMap.java (TreeIterator.next): Throw
1730 NoSuchElementException in preference to ConcurrentModificationException.
1731 (TreeIterator.remove): Throw IllegalStateException in preference to
1732 ConcurrentModificationException.
1733 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1734 throw a NoSuchElementException.
1735 (SubMap.lastKey): Likewise.
1737 2001-02-13 Tom Tromey <tromey@redhat.com>
1739 * java/io/PipedReader.java (ready): Throw IOException if pipe
1741 * java/io/FilterReader.java (close): Don't clear `in'.
1742 * java/io/CharArrayReader.java (mark): Throw IOException if stream
1744 (read, ready, reset, skip): Added exception message.
1745 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1746 Perform checkStatus check inside synchronized block.
1748 2001-02-13 Tom Tromey <tromey@redhat.com>
1750 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1752 2001-02-13 Tom Tromey <tromey@redhat.com>
1754 Fix for PR libgcj/1351:
1755 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1757 Include Thread.h and InterruptedIOException.h.
1759 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
1761 * java/io/BlockDataException.java: Removed.
1762 * java/io/ObjectInputStream.java (readObject): Throw
1763 StreamCorruptedException, not BlockDataException.
1764 * Makefile.am: Remove BlockDataException.
1765 * Makefile.in: Rebuild.
1767 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
1768 Tom Tromey <tromey@redhat.com>
1770 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1773 2001-02-09 Tom Tromey <tromey@redhat.com>
1775 * java/util/Timer.java: New version from Classpath.
1777 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
1779 * java/lang/Double.java (doubleToRawLongBits): Now native.
1780 * java/lang/Float.java (floatToRawIntBits): Likewise.
1781 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1782 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1784 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
1786 * java/io/File.java (java.net): Imported.
1787 (getAbsoluteFile): Added.
1788 (getCanonicalPath): Likewise.
1791 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
1793 * java/lang/Byte.java: Remove redundant instanceof and null checks.
1794 * java/lang/Integer.java: Likewise.
1795 * java/lang/Long.java: Likewise.
1796 * java/lang/Short.java: Likewise.
1797 * java/lang/Double.java: Likewise.
1798 (doubleToRawLongBits): New method.
1799 * java/lang/Float.java: As above.
1800 (floatToRawIntBits): New method.
1802 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1803 IOException if stream closed.
1805 2001-02-08 Tom Tromey <tromey@redhat.com>
1807 * java/lang/Float.java (parseFloat): New method.
1809 2001-02-08 Tom Tromey <tromey@redhat.com>
1811 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
1812 * java/io/InputStreamReader.java (ready, read): Throw IOException
1813 if stream has been closed.
1815 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1817 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1818 Change sources.redhat.com and sourceware.cygnus.com references to
1821 2001-02-07 Tom Tromey <tromey@redhat.com>
1823 Fix for PR libgcj/1906:
1824 * java/text/MessageFormat.java (setLocale): Use named class
1827 (format(Object,StringBuffer,FieldPosition)): Special case if
1828 argument is an Object[].
1830 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
1832 * java/util/Arrays.java: Removed "cmp" methods.
1833 (qsort): Don't use "cmp".
1836 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
1838 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1839 sort. Fix for PR java/1895.
1841 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
1843 * configure.host: Use sjlj-exceptions for Alpha.
1845 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
1847 * libgcj.spec.in: Don't force static libgcc into the executable.
1848 * configure.in (FORCELIBGCCSPEC): Removed.
1849 * configure: Rebuilt.
1851 2001-01-31 Tom Tromey <tromey@redhat.com>
1853 * Makefile.in: Rebuilt.
1854 * Makefile.am (LTCXXCOMPILE): New macro.
1856 2001-01-26 Andrew Haley <aph@redhat.com>
1858 (INIT_FPE): Use a direct system call to set the handler.
1860 2001-01-27 Richard Henderson <rth@redhat.com>
1862 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1864 2001-01-27 Tom Tromey <tromey@redhat.com>
1866 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1867 native interface structure.
1869 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
1871 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1873 (read (byte[], int, int)): Only call readNextBlock() if the block
1874 buffer would actually be overrun. Increment blockDataPosition.
1875 (callReadMethod): Propagate exceptions from invocation target.
1876 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1877 exceptions from invocation target.
1879 2001-01-26 Tom Tromey <tromey@redhat.com>
1881 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1882 to internal representation.
1883 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
1884 _Jv_FindClassFromSignature.
1886 2001-01-26 Warren Levy <warrenl@redhat.com>
1888 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1889 and timezone if they are available on the system.
1891 2001-01-24 Tom Tromey <tromey@redhat.com>
1893 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1895 2001-01-24 Tom Tromey <tromey@redhat.com>
1897 * Makefile.in: Rebuilt.
1898 * Makefile.am (c_source_files): Added sf_fabs.c.
1899 * java/lang/sf_fabs.c: New file.
1901 2001-01-19 Warren Levy <warrenl@redhat.com>
1903 * java/text/SimpleDateFormat.java (format): Compute hour for cases
1904 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1905 correctly. Adjust properly from 0-23 clock hour.
1907 2001-01-17 Mark Wielaard <mark@klomp.org>
1909 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1911 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
1913 * java/lang/Class.h (isInterface): Move implementation from
1914 natClass.cc. Declare inline.
1915 (Class): Add default constructor.
1916 * java/lang/Object.h: Update comments.
1917 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1918 initialize superclass, saving a call if super is already initialized.
1920 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
1922 * prims.cc (init_prim_class): Deleted.
1923 (DECLARE_PRIM_TYPE): Rewritten.
1924 * java/lang/Class.h (stdio.h): Include removed.
1925 (stddef.h): Included.
1926 (java/lang/reflect/Modifier.h): Likewise.
1927 (Class): Contructor now takes arguments, initializes fields.
1928 (initializePrim): Prototype deleted.
1929 * java/lang/natClass.cc (initializePrim): Deleted.
1931 2001-01-16 Warren Levy <warrenl@redhat.com>
1933 * java/math/BigInteger.java: Update Copyright year.
1935 2001-01-16 Hans Boehm <hans_boehm@hp.com>
1937 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1940 2001-01-14 Mark Wielaard <mark@klomp.org>
1941 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1942 (decode): Merge comments with Classpath, don't throw Exception
1944 2001-01-12 Tom Tromey <tromey@redhat.com>
1946 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1950 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1951 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1952 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1953 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1954 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1956 * java/lang/natSystem.cc: Include locale.h if it exists.
1957 * configure: Rebuilt.
1958 * configure.in: Check for locale.h.
1960 2001-01-11 Tom Tromey <tromey@redhat.com>
1962 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1963 (Cursor(int), getPredefinedCursor): Throw exception if argument
1966 2001-01-03 Tom Tromey <tromey@redhat.com>
1968 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1969 (getLocationOnScreen): Wrote.
1971 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1973 * Makefile.am: Re-enable dependencies.
1974 * Makefile.in: Rebuilt.
1976 2001-01-10 Warren Levy <warrenl@redhat.com>
1978 * java/math/BigDecimal.java (divide): Fixed comment.
1980 2001-01-10 Warren Levy <warrenl@redhat.com>
1982 Fix for PR libgcj/1596:
1983 * java/math/BigDecimal.java (divide): Check newScale for validity.
1984 Ensure that BigInteger.pow() is called with a non-negative value.
1985 (setScale (int)): New public method.
1986 (setScale (int,int)): New public method.
1988 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1990 Fix for PR libgcj/1338:
1991 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1992 commentChar. Fixed typos in comments.
1994 2001-01-08 Warren Levy <warrenl@redhat.com>
1996 Fix for PR libgcj/1411:
1997 * Makefile.am: Removed java/util/natTimeZone.cc.
1998 * Makefile.in: Rebuilt.
1999 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2000 missing localized timezone names.
2001 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2002 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2003 (init_properties): Set user.timezone property.
2004 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2005 default timezone names; removed non-standard ones. Use standard
2007 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2009 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2011 (getDefaultTimeZoneId): Removed.
2013 * java/util/natTimeZone.cc: Removed.
2015 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2017 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2018 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2019 (_Jv_GetArrayClass): New inline function.
2020 (arrayclass): New field.
2021 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2022 _Jv_GetArrayElementFromElementType.
2023 (_Jv_NewPrimArray): Ditto.
2024 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2025 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2026 Set Modifier::ABSTRACT.
2027 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2028 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2029 Now synchronized. Array classes are now referenced from
2030 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2031 Set array classes' accessibility flags correctly. Optimize so that
2032 all array classes share the same IDT.
2033 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2034 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2035 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2036 in superclasses from overwriting classes own fields.
2037 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2038 Modifier::isAbstract().
2039 (null_idt): New static field.
2040 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2042 (_Jv_IndexOf): Made inline.
2043 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2045 2001-01-08 Tom Tromey <tromey@redhat.com>
2047 Fix for PR java/1586:
2048 * Makefile.in: Rebuilt.
2049 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2051 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2053 * Makefile.am: Use the new "-M -MF" option for generating dependencies
2054 from the c++ compiler.
2055 * Makefile.in: Rebuilt.
2057 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2059 All files with updated copyright.
2060 * prims.cc (class _Jv_PrimClass): Removed.
2061 (init_prim_class): New function.
2062 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2063 `_Jv_PrimClass' in primitive type declarations. Assign to the
2064 value returned by `init_prim_class.'
2065 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2066 primitive type declarations.
2067 (JvPrimClass): Cast to `jclass' removed.
2068 * java/lang/Class.h (Class): New constructor.
2069 (Class): New copy constructor.
2070 (initializePrim): New prototype.
2071 (_Jv_PrimClass): Field removed.
2072 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2073 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2074 (class java::lang::Object): `finalize' moved up front.
2075 * java/lang/natClass.cc
2076 (isAssignableFrom): Turned outline.
2077 (isInstance): Likewise.
2078 (isInterface): Likewise, fixed indentation.
2079 (initializePrim): New function.
2081 2001-01-07 Anthony Green <green@redhat.com>
2083 * Makefile.am (texinfo): Add texinfo target for generating texinfo
2085 * Makefile.in: Rebuilt.
2087 * scripts/TexinfoDoclet.java: New file.
2089 * doc/java-applet.texi, doc/java-lang-reflect.texi,
2090 doc/java-awt-color.texi, doc/java-lang.texi,
2091 doc/java-awt-datatransfer.texi, doc/java-math.texi,
2092 doc/java-awt-event.texi, doc/java-net.texi,
2093 doc/java-awt-geom.texi, doc/java-security-spec.texi,
2094 doc/java-awt-image.texi, doc/java-security.texi,
2095 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2096 doc/java-text.texi, doc/java-beans-beancontext.texi,
2097 doc/java-util-jar.texi, doc/java-beans.texi,
2098 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2099 doc/java-lang-ref.texi: New files.
2101 2001-01-07 Anthony Green <green@redhat.com>
2103 * java/net/URLConnection.java (setDoOutput): URLConnection's may
2104 be used for both input and output, so don't clear doInput.
2106 * java/lang/StringBuffer.java: Fix comments.
2108 2001-01-06 Anthony Green <green@redhat.com>
2110 * java/beans/PropertyDescriptor.java: Fix comment.
2111 * java/io/PushbackReader.java: Fix comment.
2112 * java/io/ObjectStreamClass.java: Fix comment.
2113 * java/io/DataInputStream.java: Fix comment.
2114 * java/io/PipedInputStream.java: Fix comments.
2115 * java/io/PipedReader.java: Fix comments.
2116 * java/sql/DatabaseMetaData.java: Fix comments.
2118 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
2120 * java/io/PipedReader: Synchronize on "lock" instead of this.
2122 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
2124 * java/lang/Thread.java: Update comment.
2126 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2127 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2128 * java/io/PipedReader: New implementation based on new
2130 * java/io/PipedWriter: Updated to match new PipedReader.
2132 2001-01-03 Tom Tromey <tromey@redhat.com>
2134 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2135 (getViewportSize): Insets include scrollbar size.
2136 (doLayout): Finished.
2137 (getScrollPosition): Wrote.
2138 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2140 2001-01-02 Tom Tromey <tromey@redhat.com>
2142 * java/awt/ScrollPane.java: Wrote.
2143 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2146 * java/awt/Panel.java (Panel()): Fixed.
2148 * java/awt/Component.java (isShowing): Return false if no peer
2149 exists, and true if component is visible and no parent exists.
2150 (getLocationOnScreen): Wrote.
2151 (getPreferredSize): Removed FIXME comment.
2152 (getMinimumSize): Likewise.
2153 (getAlignmentX, getAlignmentY): Wrote.
2155 (requestFocus): Wrote.
2156 (transferFocus): Wrote.
2157 (findNextFocusComponent): New method.
2158 (hasFocus()): Wrote.
2159 (checkImage): Wrote.
2160 (enableEvents): Call setEventMask on the peer.
2162 * java/awt/Container.java (list): Use super.list() to print self.
2163 (findNextFocusComponent): New method.
2164 (setLayout): Call invalidate.
2165 (findComponentAt): Wrote.
2167 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
2169 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2170 the correct versions of various linuxthreads functions get linked.
2171 * Makefile.in: Rebuilt.
2172 * java/lang/natThread.cc (finalize_native): New static function. Call
2173 _Jv_ThreadDestroyData.
2174 (initialize_native): Register finalizer for "data".
2175 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2176 (_Jv_ThreadDestroyData): New prototype.
2177 * include/win32-threads.h: Ditto.
2178 * include/no-threads.h: Ditto.
2179 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2180 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2181 move mutex and condition variable destroy code from:
2182 (really_start): ...here.
2183 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2184 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2185 (_Jv_ThreadDestroyData): Implemented.
2186 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2187 (_Jv_AllocArray): Ditto.
2189 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
2191 * java/sql/DriverManager.java (getConnection): Don't set user/password
2194 2000-12-27 Warren Levy <warrenl@redhat.com>
2196 Fix for PR libgcj/1358:
2197 * java/lang/System.java: Update Copyright date properly.
2198 * java/util/Calendar.java: Fix typo in comment.
2199 (set): Set 24-hour clock hour instead of 12-hour clock hour.
2200 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2201 initialize times. Spec says to set H:M:S values to zero only if
2203 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2204 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2205 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2206 timezones and GMT offsets, being careful to account for units of
2207 milliseconds vs. seconds.
2209 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
2211 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2212 not be assigned to Object.
2214 Fix for PR libgcj/1516:
2215 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2217 (can_widen): Declared inline. Remove redundant checks for void
2218 arguments and char->short conversion. Add special case for boolean
2220 (ffi_type): Declared inline.
2221 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2223 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
2225 * java/sql/SQLWarning.java: Fixed typo in comment.
2227 2000-12-26 Tom Tromey <tromey@redhat.com>
2229 * java/awt/MenuItem.java (paramString): Now protected.
2231 * java/awt/MenuShortcut.java: Implements Serializable.
2233 * java/awt/MenuBar.java: Rewrote from scratch.
2235 * java/awt/MenuComponent.java (removeNotify): Wrote.
2236 Implements Serializable.
2238 * java/awt/GridBagConstraints.java (GridBagConstraints): New
2241 * java/awt/CheckboxMenuItem.java: Wrote.
2243 2000-12-25 Tom Tromey <tromey@redhat.com>
2245 * java/awt/MenuContainer.java: Fixed typo.
2247 * Makefile.in: Rebuilt.
2248 * Makefile.am (awt_java_source_files): Added SystemColor.java.
2249 * java/awt/SystemColor.java: New file.
2251 * java/awt/Color.java (rgba): Now package-private.
2253 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2255 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2258 * java/awt/MenuItem.java (addNotify): New method.
2259 (MenuItem(String,MenuShortcut)): New constructor.
2260 (setLabel): Notify peer of change.
2261 (setEnabled): Likewise.
2263 * java/awt/GridLayout.java (toString): New method.
2265 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2266 (FlowLayout): Check for LEADING and TRAILING.
2267 (setAlignment): Likewise.
2268 (layoutContainer): Handle component orientation.
2270 * java/awt/Component.java (orientatin): New field.
2271 (setComponentOrientation): Wrote.
2272 (getComponentOrientation): Wrote.
2274 * java/awt/Event.java (Event): Implements Serializable.
2275 (consumed): New field for serialization.
2276 * java/awt/Dimension.java (Dimension): Implements Serializable.
2277 * java/awt/Cursor.java (Cursor): Implements Serializable.
2278 * java/awt/Container.java (Container): No longer abstract.
2280 * java/awt/Choice.java: Wrote.
2281 * java/awt/Checkbox.java: Wrote.
2282 * java/awt/ItemSelectable.java: Documented.
2283 * java/awt/CheckboxGroup.java: Wrote.
2285 * java/awt/CardLayout.java (layoutContainer): Directly use fields
2287 (getSize): Likewise.
2289 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
2291 * java/io/FileDescriptor.java: Initialize fd to -1.
2292 Remove default constructor.
2294 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
2296 * java/lang/mprec.h: Change C9X reference to refer to C99.
2298 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
2300 * java/lang/Throwable.java (trace_enabled): New static field.
2301 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2302 trace_enabled not set.
2303 * prims.cc (main_init): Turn off trace_enabled while creating
2304 default exception objects.
2306 2000-12-21 Tom Tromey <tromey@redhat.com>
2308 * java/beans/PropertyChangeListener.java: Extends EventListener.
2309 * java/beans/VetoableChangeListener.java: Extends EventListener.
2311 * java/util/zip/Deflater.java (update, init): Now private.
2313 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
2315 * java/util/BasicMapEntry.java: Re-added.
2316 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2317 (putAll): Test for BasicMapEntry.
2318 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2319 (putAll): Test for BasicMapEntry.
2320 Change references from `HashMap.Entry' to `Entry' in various places.
2321 * Makefile.am: Add BasicMapEntry.java.
2322 * Makefile.in: Rebuilt.
2324 2000-12-18 Warren Levy <warrenl@redhat.com>
2326 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2327 need to set timezone to a valid non-null value. Partial fix for
2330 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2332 * java/awt/Window.java (addNotify): Remove peer casting hack now that
2334 * java/awt/Button.java (addNotify): Likewise.
2335 * java/awt/Label.java (addNotify): Likewise.
2336 * java/awt/Panel.java (addNotify): Likewise.
2337 * java/awt/Scrollbar.java (addNotify): Likewise.
2338 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2339 Remove redundant null checks.
2341 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2343 * COPYING: Update to current
2344 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2345 to 19yy as example year in copyright notice).
2347 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
2349 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2350 end-of-stream if avail_in is 0.
2352 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
2354 * java/util/ArrayList.java (data): Declare transient.
2355 (serialPersistantFields): Removed.
2356 (readObject): Use defaultReadObject(), not readFields().
2357 (writeObject): Use defaultWriteObject(), not writeFields().
2359 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
2361 * java/util/Hashtable.java (put): Remove `last' variable.
2362 Link new entry to head of list.
2363 * java/util/HashMap.java (put): Ditto.
2365 2000-12-15 Tom Tromey <tromey@redhat.com>
2367 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2368 loader to Class.forName.
2370 2000-12-14 Tom Tromey <tromey@redhat.com>
2372 * java/util/ResourceBundle.java
2373 (getBundle(String,Locale,ClassLoader)): New method.
2374 (trySomeGetBundle): Added `loader' argument.
2375 (partialGetBundle): Likewise.
2377 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2378 maximumFractionDigits, maximumIntegerDigits,
2379 minimumFractionDigits, minimumIntegerDigits): Now
2382 * java/lang/Thread.java (checkAccess): Now final.
2384 * java/lang/RuntimePermission.java: Class now final.
2386 * java/io/StringWriter.java (StringWriter(int)): Now public.
2388 * java/io/SerializablePermission.java (legal_names): Now private.
2390 * java/lang/Character.java: Updated UnicodeBlock constants.
2391 * scripts/blocks.pl: Special case private use and surrogate
2394 2000-12-12 Tom Tromey <tromey@redhat.com>
2396 * Makefile.in: Rebuilt.
2397 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2399 (GCJCOMPILE): Use it.
2402 2000-12-11 Tom Tromey <tromey@redhat.com>
2404 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2405 New static final fields.
2407 * scripts/classes.pl (scan): Skip lines with leading `*'.
2408 Fix for PR libgcj/378.
2410 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2412 * configure.in: Remove check for -fuse-divide-subroutine.
2413 * configure: Rebuilt.
2415 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2417 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2419 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
2421 * Makefile.am: Add HashSet.java and java/lang/ref classes.
2422 Remove BasicMapEntry.java and Bucket.java.
2423 * Makefile.in: Rebuilt.
2424 * java/util/HashMap.java: Rewritten.
2425 * java/util/HashSet.java: Imported from classpath.
2426 * java/util/WeakHashMap.java: Imported from classpath.
2427 * java/util/Hashtable.java: Rewritten based on new HashMap code.
2428 * java/util/Bucket.java: Deleted.
2429 * java/util/BasicMapEntry.java: Deleted.
2430 * java/util/Collections.java (search): Use a for-loop, not iterator
2432 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2433 of elements in source.
2434 (max): Use a for-loop.
2436 (reverse): Keep track of positions instead of using Iterator's
2437 nextIndex() and previousIndex().
2438 (shuffle(List)): Initialize defaultRandom if required using
2439 double-check thread safety idiom. Call two-argument shuffle method
2440 using defaultRandom.
2441 (defaultRandom): New field.
2442 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2443 using previousIndex() and nextIndex().
2444 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2445 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2446 * java/util/AbstractMap.java (toString): Use StringBuffer.
2447 * java/lang/ref/PhantomReference.java: Imported from classpath.
2448 * java/lang/ref/SoftReference.java: Ditto.
2449 * java/lang/ref/Reference.java: Ditto.
2450 * java/lang/ref/WeakReference.java: Ditto.
2451 * java/lang/ref/ReferenceQueue.java: Ditto.
2453 2000-12-10 Richard Henderson <rth@redhat.com>
2455 * configure.host: Recognize alpha*-*, not alphaev6-*.
2457 2000-12-09 Anthony Green <green@redhat.com>
2459 * configure.host: Enable interpreter for Alpha.
2461 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
2463 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2464 (ZIP): Points at fastjar instead of zip.
2465 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2466 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2467 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2468 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2469 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2470 ($(x_java_source_files:.java=.class):): Likewise.
2471 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2473 (CLEANFILES): libgcj.jar replaces libgcj.zip.
2474 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2475 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2476 java/lang/String.h:, java/lang/reflect/Constructor.h:,
2477 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2478 gnu/gcj/runtime/VMClassLoader.h:,
2479 java/io/ObjectInputStream$$GetField.h:,
2480 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2481 (Makefile.in): Rebuilt.
2483 2000-12-08 Tom Tromey <tromey@redhat.com>
2486 * configure: Rebuilt.
2487 * configure.in: Use echo, not `:', to create .d files.
2489 2000-12-08 Warren Levy <warrenl@redhat.com>
2491 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2492 NullPointerException so proper check of offset can be done.
2494 2000-12-08 Warren Levy <warrenl@redhat.com>
2496 * java/io/FileInputStream.java (close): Check if the fd is valid.
2497 * java/io/RandomAccessFile.java (close): Ditto.
2498 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2499 * java/net/PlainSocketImpl.java (close): Ditto.
2501 2000-12-06 Tom Tromey <tromey@redhat.com>
2503 * java/awt/GridBagConstraints.java: Filled in values for static
2506 * java/util/BitSet.java: Updated copyright notice.
2508 * Makefile.in: Rebuilt.
2509 * Makefile.am (awt_java_source_files): Added new file.
2510 * java/awt/GridBagConstraints.java: New file.
2512 2000-12-05 Tom Tromey <tromey@redhat.com>
2514 * java/text/Collator.java (decomposeCharacter, decmp, strength):
2515 Now package-private, not protected.
2516 * java/text/DateFormatSymbols.java (equals): Now private.
2517 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2518 * java/util/BitSet.java: Class no longer final.
2520 2000-12-04 Warren Levy <warrenl@redhat.com>
2522 * java/util/TimeZone.java (getAvailableIDs): Activated commented
2523 out code dependent on compiler and library changes.
2525 2000-12-04 Warren Levy <warrenl@redhat.com>
2527 * java/io/FilePermission.java: Made class final per spec.
2528 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2529 method name to match spec (fixed typo).
2530 * java/util/LinkedList.java: Implements List.
2532 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
2534 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2535 Edgar Villanueva <edgarvil@home.com>.
2537 2000-12-03 Tom Tromey <tromey@redhat.com>
2539 * java/awt/geom/Point2D.java: Added protected constructor.
2540 (equals): New method.
2541 (Float.setLocation(float,float)): New method.
2542 * java/awt/geom/Dimension2D.java: Added protected constructor.
2543 * java/awt/geom/AffineTransform.java: Made all constants public.
2544 (concatenate): Fixed typo in name.
2545 * java/awt/event/WindowAdapter.java: Class now abstract.
2546 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2547 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2550 * java/awt/AWTError.java: Extend Error, not
2551 IllegalStateException.
2553 * Makefile.in: Rebuilt.
2554 * Makefile.am (awt_java_source_files): Added new file.
2555 * java/awt/geom/RoundRectangle2D.java: New file.
2557 * Makefile.in: Rebuilt.
2558 * Makefile.am (awt_java_source_files): Added new file.
2559 * java/awt/FlowLayout.java: New file.
2561 * Makefile.in: Rebuilt.
2562 * Makefile.am (awt_java_source_files): Added new file.
2563 * java/awt/GridLayout.java: New file.
2565 2000-12-02 Tom Tromey <tromey@redhat.com>
2567 * Makefile.in: Rebuilt.
2568 * Makefile.am (awt_java_source_files): Added new files.
2569 * java/awt/CardLayout.java: New file.
2570 * java/awt/AWTPermission.java: New file.
2572 2000-12-01 Tom Tromey <tromey@redhat.com>
2574 * java/util/Vector.java (insertElementAt): Unconditionally
2575 increment elementCount.
2576 (removeRange): Clear unused slots in vector.
2578 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
2580 * java/lang/natMath.cc: Declare fabsf() function.
2581 * java/lang/mprec.h: Don't include math.h.
2582 * java/lang/dtoa.c: Include string.h.
2583 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2586 From Adam Welc <welc@cs.purdue.edu>:
2587 * java/util/LinkedList.java (removeFirst): Update `first' field.
2588 Handle the last == first case.
2589 (removeLast): Update `last' field. Handle the last == first case.
2591 2000-12-01 Warren Levy <warrenl@cygnus.com>
2593 * Makefile.am: Added entries for new java.sql modules.
2594 * Makefile.in: Rebuilt.
2596 2000-12-01 Warren Levy <warrenl@cygnus.com>
2598 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2599 that aren't quite 1.2 compatible yet.
2601 2000-11-30 Warren Levy <warrenl@cygnus.com>
2603 * java/sql/Array.java: New file from classpath.
2604 * java/sql/BatchUpdateException.java: Ditto.
2605 * java/sql/Blob.java: Ditto.
2606 * java/sql/Clob.java: Ditto.
2607 * java/sql/Ref.java: Ditto.
2608 * java/sql/SQLData.java: Ditto.
2609 * java/sql/SQLInput.java: Ditto.
2610 * java/sql/SQLOutput.java: Ditto.
2611 * java/sql/Struct.java: Ditto.
2612 * java/sql/CallableStatement.java: Merged file from claspath.
2613 * java/sql/Connection.java: Ditto.
2614 * java/sql/DataTruncation.java: Ditto.
2615 * java/sql/DatabaseMetaData.java: Ditto.
2616 * java/sql/DriverManager.java: Ditto.
2617 * java/sql/PreparedStatement.java: Ditto.
2618 * java/sql/ResultSet.java: Ditto.
2619 * java/sql/ResultSetMetaData.java: Ditto.
2620 * java/sql/SQLException.java: Ditto.
2621 * java/sql/SQLWarning.java: Ditto.
2622 * java/sql/Statement.java: Ditto.
2623 * java/sql/Types.java: Ditto.
2625 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
2627 * java/lang/natSystem.cc (init_properties): Set user.language and
2629 * configure.in: Check for setlocale.
2630 * configure: Rebuilt.
2631 * include/config.h.in: Rebuilt.
2633 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2634 the infate() call didn't deliver any output. Throw a ZipException if
2635 the needsDictionary() call returns true.
2636 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2637 * java/io/InputStreamReader: Use the default buffer size for the
2638 contained BufferedInputStream.
2640 2000-11-28 Warren Levy <warrenl@cygnus.com>
2642 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2643 more time zone entries.
2644 * java/text/SimpleDateFormat.java (format): Added case for
2647 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
2649 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2650 directly rather than read() in all cases. Make primitive read
2651 implementations more efficient, as defined in JDK online docs.
2652 (skipBytes): Behave like the JDK's implementation.
2653 * java/io/BufferedReader.java: Merge classpath docs. Check for a
2654 closed stream with checkStatus() whenever an IOException can be
2656 (checkStatus): New private method.
2658 2000-11-27 Warren Levy <warrenl@cygnus.com>
2660 * Makefile.am: Added natTimeZone.cc.
2661 * Makefile.in: Rebuilt.
2662 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2663 * java/text/DateFormatSymbols.java (ampms): Made package private.
2664 (eras): Made package private.
2665 (months): Made package private.
2666 (shortMonths): Made package private.
2667 (shortWeekdays): Made package private.
2668 (weekdays): Made package private.
2669 (formatPrefixes): New private field.
2670 (localPatternCharsDefault): Made private.
2671 (dateFormats): New package private field.
2672 (timeFormats): New package private field.
2673 (formatsForKey): New private method.
2674 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2675 (DateFormatSymbols(DateFormatSymbols)): Ditto.
2676 * java/text/SimpleDateFormat.java: Merged with Classpath.
2677 * java/util/TimeZone.java: Merged with Classpath.
2678 * java/util/natTimeZone.cc: New file.
2680 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
2682 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2683 (addElement): Don't increment elementCount twice. Doh.
2684 * java/util/ArrayList.java (add): Only call ensureCapacity if the
2685 array needs to be expanded.
2687 * java/util/Collections.java (UnmodifiableCollection): Implement
2689 (UnmodifiableList): Throw UnsupportedOperationException from
2690 modification methods. Set `l' from the one-parameter constructor.
2691 (UnmodifiableMap): Implement toString().
2692 (SynchronizedCollection): Ditto.
2693 (SynchronizedList): Set `l' from the one-parameter constructor.
2694 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2695 (SynchronizedMap): Implement toString().
2697 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
2699 * javax/naming/NameParser.java,
2700 javax/naming/directory/AttributeInUseException.java,
2701 javax/naming/directory/AttributeModificationException.java,
2702 javax/naming/directory/InvalidAttributeIdentifierException.java,
2703 javax/naming/directory/InvalidAttributesException.java,
2704 javax/naming/directory/InvalidAttributeValueException.java,
2705 javax/naming/directory/InvalidSearchControlsException.java,
2706 javax/naming/directory/InvalidSearchFilterException.java,
2707 javax/naming/directory/NoSuchAttributeException.java,
2708 javax/naming/directory/SchemaViolationException.java: New files.
2710 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
2712 * javax/naming/InitialContext.java (rebind): Implement.
2713 (unbind): Implement.
2714 (rename): Implement.
2716 (listBindings): Implement.
2717 (destroySubcontext): Implement.
2718 (createSubcontext): Implement.
2719 (lookupLink): Implement.
2720 (getNameParser): Implement.
2721 (composeName): Implement.
2722 (addToEnvironment): Implement.
2724 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2726 * javax/naming/AuthenticationException.java,
2727 javax/naming/AuthenticationNotSupportedException.java,
2728 javax/naming/CannotProceedException.java,
2729 javax/naming/CommunicationException.java,
2730 javax/naming/ConfigurationException.java,
2731 javax/naming/ContextNotEmptyException.java,
2732 javax/naming/InsufficientResourcesException.java,
2733 javax/naming/InterruptedNamingException.java,
2734 javax/naming/InvalidNameException.java,
2735 javax/naming/LimitExceededException.java,
2736 javax/naming/LinkException.java,
2737 javax/naming/LinkLoopException.java,
2738 javax/naming/MalformedLinkException.java,
2739 javax/naming/NameAlreadyBoundException.java,
2740 javax/naming/NameNotFoundException.java,
2741 javax/naming/NamingSecurityException.java,
2742 javax/naming/NoPermissionException.java,
2743 javax/naming/NotContextException.java,
2744 javax/naming/PartialResultException.java,
2745 javax/naming/ReferralException.java,
2746 javax/naming/ServiceUnavailableException.java,
2747 javax/naming/SizeLimitExceededException.java,
2748 javax/naming/TimeLimitExceededException.java: New files.
2750 * javax/naming/Name.java (clone): New method.
2751 (compareTo): New method.
2752 (isEmpty): New method.
2753 (getAll): New method.
2754 (getPrefix): New method.
2755 (getSuffix): New method.
2756 (startsWith): New method.
2757 (endsWith): New method.
2758 (addAll): New method.
2759 (addAll): New method.
2762 (remove): New method.
2764 * javax/naming/Context.java (lookup): New method.
2765 (rebind): New method.
2766 (unbind): New method.
2767 (rename): New method.
2769 (listBindings): New method.
2770 (destroySubcontext): New method.
2771 (createSubcontext): New method.
2772 (lookupLink): New method.
2773 (getNameParser): New method.
2774 (composeName): New method.
2775 (addToEnvironment): New method.
2776 (removeFromEnvironment): New method.
2777 (getEnvironment): New method.
2778 (close): New method.
2779 (getNameInNamespace): New method.
2781 * javax/naming/InitialContext.java (lookup): New method.
2782 (rebind): New method.
2783 (unbind): New method.
2784 (rename): New method.
2786 (listBindings): New method.
2787 (destroySubcontext): New method.
2788 (createSubcontext): New method.
2789 (lookupLink): New method.
2790 (getNameParser): New method.
2791 (composeName): New method.
2792 (addToEnvironment): New method.
2793 (removeFromEnvironment): New method.
2794 (getEnvironment): New method.
2795 (close): New method.
2796 (getNameInNamespace): New method.
2798 2000-11-26 Tom Tromey <tromey@cygnus.com>
2800 * Makefile.in: Rebuilt.
2801 * Makefile.am (core_java_source_files): Added
2802 RuntimePermission.java.
2803 * java/lang/RuntimePermission.java: Imported from Classpath.
2804 * java/lang/Thread.java (getContextClassLoader): Now
2805 synchronized. Added security code.
2806 (setContextClassLoader): Likewise.
2808 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2809 length field of array.
2810 (_Jv_NewPrimArray): Likewise.
2811 * gcj/array.h (__JArray): `length' field now const. Added
2814 2000-11-26 Anthony Green <green@redhat.com>
2816 * javax/naming/spi/NamingManager.java,
2817 javax/naming/spi/ObjectFactory.java,
2818 javax/naming/spi/InitialContextFactory.java,
2819 javax/naming/spi/InitialContextFactoryBuilder.java,
2820 javax/naming/RefAddr.java, javax/naming/Reference.java,
2821 javax/naming/NamingException.java, javax/naming/Context.java,
2822 javax/naming/Referenceable.java,
2823 javax/naming/directory/InitialDirContext.java,
2824 javax/naming/directory/DirContext.java,
2825 javax/naming/directory/Attributes.java,
2826 javax/naming/directory/Attribute.java,
2827 javax/naming/StringRefAddr.java,
2828 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2829 javax/naming/InitialContext.java,
2830 javax/naming/NoInitialContextException.java: New files.
2832 2000-11-25 Anthony Green <green@redhat.com>
2834 * prims.cc (_Jv_NewObjectArray): Undo placement change.
2835 (_Jv_NewPrimArray): Likewise.
2836 * gcj/array.h (__JArray): Undo const change. Removed constructor.
2837 (class JArray): Removed constructor.
2839 * java/lang/Thread.java (context_class_loader): New private data.
2840 (getContextClassLoader): New method.
2841 (setContextClassLoader): New method.
2842 (Thread): Initialize context_class_loader.
2844 * java/net/URLClassLoader.java: Import java.util.Enumeration.
2845 (getResource): Rename to findResource.
2846 (findResource): New method. Used to be getResource.
2847 (getResourceAsStream): Deleted.
2848 (jarFileize): Extracted logic from URLClassLoader constructor into
2849 this new private method.
2850 (addURL): New protected method.
2851 (URLClassLoader): Call jarFileize. Use addElement instead of
2853 (findResources): New method.
2855 * java/lang/ClassLoader.java: Import java.util.Enumeration.
2856 (getResource): Implement correct logic.
2857 (findResource): New method.
2858 (getResources): New method.
2859 (findClass): Create a ClassNotFoundException with the name of the
2860 class rather than nothing at all.
2861 (defineClass) Only throw ClassFormatError.
2863 * java/lang/Class.java (forName): New method.
2864 * java/lang/Class.h (forName): New method.
2865 * java/lang/natClass.cc (forName): New method.
2867 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2869 * java/lang/System.java (setProperties): Only call init_properties()
2870 if properties is null.
2871 (getProperties): Ditto.
2872 (getProperty): Ditto.
2873 (setProperty): Call init_properties if properties are null.
2874 (prop_init): Remove field.
2875 * java/lang/natSystem.cc (init_properties): Synchronize the entire
2876 method. Check for null properties after synchronizing instead of
2877 prop_init flag. Set the properties field last for thread safety.
2879 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2880 test for gcj.dumpobjects property and enable object stream dumping
2882 (dumpElement): No longer native.
2883 (dumpElementln): Ditto.
2884 (setDump): Do not define.
2885 * java/io/natObjectInputStream.cc (dumpElement): Removed.
2886 (dumpElementln): Removed.
2889 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
2891 * configure: Rebuilt.
2892 * Makefile.in: Rebuilt.
2893 * Makefile.am (built_java_source_files): Add Configuration.java.
2894 * configure.in: Add Configuration.java to CONFIG_FILES. Set
2895 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2896 Create `gnu' directory in the build tree.
2897 * gnu/classpath/Configuration.java.in: New file.
2899 2000-11-24 Tom Tromey <tromey@cygnus.com>
2901 * prims.cc (_Jv_NewObjectArray): Use placement new to create
2903 (_Jv_NewPrimArray): Likewise.
2905 * gcj/array.h (__JArray): `length' field now const. Added
2907 (class JArray): Added constructor.
2909 2000-11-23 Mark Wielaard <mark@klomp.org>
2911 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2914 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
2916 * java/util/Vector.java: Improve exception messages.
2917 (Vector): Check initialCapacity for IllegalArgumentException.
2918 (tromToSize): Don't check for elementCount == elementData.length
2920 (toArray): Don't try to set null marker if target array is the same
2921 length as the vector.
2923 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
2925 * Makefile.in: Rebuilt.
2926 * Makefile.am (core_java_source_files): Added Collections.java.
2927 * java/util/List.java: Merged from classpath.
2928 * java/util/Vector.java: Ditto.
2929 * java/util/Collections.java: From classpath.
2930 * java/util/ArrayList.java (addAll(Collection)): Call
2931 addAll(int,Collection) instead of duplicating code.
2932 (indexOf): Clean up int initialization.
2933 (clear): Set cleared array entries to null, to allow garbage
2935 * java/util/List.java: Minor formatting fixes.
2936 * java/util/SimpleTimeZone.java: ditto.
2938 2000-11-18 Tom Tromey <tromey@cygnus.com>
2940 * Makefile.in: Rebuilt.
2941 * Makefile.am (core_java_source_files): Added new files.
2942 * java/lang/reflect/ReflectPermission.java: New class.
2943 * java/io/FileFilter.java: From Classpath
2944 * java/io/FilePermission.java: From Classpath.
2946 2000-11-17 Tom Tromey <tromey@cygnus.com>
2948 * java/lang/reflect/AccessibleObject.java (isAccessible,
2949 setAccessible): Now public.
2951 * java/lang/natString.cc: Include Locale.h.
2952 (toUpperCase): Added `locale' argument. Handle locale
2954 (toLowerCase): Added `locale' argument. Handle locale
2956 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2957 CAPITAL_I): New defines.
2958 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2961 (toUpperCase, toLowerCase): New methods. Variants which accept
2964 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2967 * java/util/PropertyPermission.java: Re-merged from Classpath.
2969 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2971 * java/text/StringCharacterIterator.java: Reindented.
2972 (setText): New method.
2974 2000-11-17 Mark Wielaard <mark@klomp.org>
2976 Merge with Classpath (changes by Bryce McKinlay)
2977 * java/util/jar/*.java: Reformat all to unofficial standard coding
2978 style. No changes of substance.
2980 2000-11-17 Mark Wielaard <mark@klomp.org>
2982 * java/util/zip/*.java: Javadoc updates.
2984 2000-11-17 Tom Tromey <tromey@cygnus.com>
2986 * java/text/CollationKey.java: Implement Comparable.
2987 (compareTo(Object)): New method.
2988 * java/text/Collator.java (compare(Object,Object)): New method.
2989 Implement Comparator.
2991 * java/util/zip/InflaterInputStream.java (available): New method.
2992 (close): New method.
2993 (read, available, skip, fill): Throw exception if stream closed.
2994 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2995 getNextEntry): Throw exception if closed.
2997 2000-11-16 Tom Tromey <tromey@cygnus.com>
2999 * java/io/PushbackReader.java: Merged with Classpath.
3000 * java/util/Arrays.java: Updated from Classpath.
3002 * scripts/blocks.pl: New file.
3003 * java/lang/Character.java (Subset): New class.
3004 (UnicodeBlock): New class.
3006 * java/lang/Math.java (toDegrees, toRadians): New methods.
3008 * java/lang/Float.java: Implement Comparable.
3009 (compareTo): New methods.
3010 * java/lang/Double.java: Implement Comparable.
3011 (compareTo): New methods.
3013 2000-11-16 Warren Levy <warrenl@cygnus.com>
3015 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3017 (listeners): Made transient.
3018 (source): Renamed from 'bean'.
3019 (children): New field for serialization.
3020 (propertyChangeSupportSerializedDataVersion): Ditto.
3021 (serialVersionUID): Ditto.
3022 (writeObject): New serialization method.
3023 (readObject): New serialization method.
3024 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3026 (listeners): Made transient.
3027 (source): Renamed from 'bean'.
3028 (children): New field for serialization.
3029 (vetoableChangeSupportSerializedDataVersion): Ditto.
3030 (serialVersionUID): Ditto.
3031 (writeObject): New serialization method.
3032 (readObject): New serialization method.
3033 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3034 to allow constructor to have a return type (i.e. the class that the
3035 constructor constructs).
3037 2000-11-14 Tom Tromey <tromey@cygnus.com>
3039 * Makefile.in: Rebuilt.
3040 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3043 2000-11-02 Warren Levy <warrenl@cygnus.com>
3045 * java/io/ObjectInputStream.java (readObject): Added code to
3046 conditionally dump out the serialized data.
3047 Handle ENDBLOCKDATA case a bit more gracefully since the current
3048 behavior doesn't seem to work as expected.
3049 (readStreamHeader): Added code for serialized data dumper.
3050 (readNextBlock): Ditto.
3051 (readFields): Ditto.
3052 (dump): New private static field for turning on/off dumper.
3053 (setDump): New native method.
3054 (dumpElement): New native method.
3055 (dumpElementln): New native method.
3056 * java/io/natObjectInputStream.cc (setDump): New method.
3057 (dumpElement): New method.
3058 (dumpElementln): New method.
3060 2000-11-02 Warren Levy <warrenl@cygnus.com>
3062 * java/net/InetAddress.java (addr): Renamed from 'address'.
3063 (address): New field to match Serialized Form doc.
3064 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3065 (family): New serialization field.
3066 (serialVersionUID): New field.
3067 (readObject): New method.
3068 (writeObject): New method.
3069 (getFamily): New native method.
3070 (InetAddress): Set family.
3071 * java/net/natInetAddress.cc (getFamily): New method.
3072 (addr): Renamed from 'address'.
3073 (hostName): Renamed from 'hostname' to match Serialized Form doc.
3074 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3075 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3077 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
3079 * java/util/AbstractList.java (SubList): Make it a top-level private
3081 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3083 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3084 * Makefile.in: Rebuilt.
3086 2000-11-02 Tom Tromey <tromey@cygnus.com>
3088 * Makefile.in: Rebuilt.
3089 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3092 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3094 * java/util/AbstractList.java (remove): Comment out modCount increment
3095 to work around compiler bug.
3098 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
3100 * java/util/AbstractList.java: Throw messages with
3101 IndexOutOfBoundsExceptions.
3102 (listIterator()): Call listIterator(0).
3103 (size): New field. Initialize to size().
3104 (hasNext): Test position against size, not size().
3105 (remove): Increment knownMod by one instead of resetting it from
3108 (SubList.upMod): Removed.
3109 (SubList.set): Don't call upMod() or update knownMod.
3110 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3111 (SubList.remove): Ditto.
3112 (SubList.addAll): Don't call backingList.size(). Increment size from
3114 (SubList.iterator): New method. Call listIterator(0).
3115 (SubList.listIterator): New method. Restore code to return an anonymous
3116 listIterator implementation (with some changes).
3117 * java/util/AbstractSequentialList.java: Throw messages with
3118 IndexOutOfBoundsExceptions.
3119 (addAll): Add a specnote.
3120 * java/util/ArrayList.java (removeRange): Get the math right.
3121 (addAll): Increment modCount _before_ creating iterator.
3122 * java/util/LinkedList.java: Rewritten, mostly.
3124 2000-11-01 Tom Tromey <tromey@cygnus.com>
3126 * scripts/encodings.pl: Added `ASCII' alias.
3127 * Makefile.in: Rebuilt.
3128 * Makefile.am (convert_source_files): Added new files.
3129 * gnu/gcj/convert/Input_ASCII.java: New file.
3130 * gnu/gcj/convert/Output_ASCII.java: New file.
3131 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3132 out-of-range characters.
3133 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3134 (read): Swap bytes if required. Treat `count' as character count,
3136 (write): Likewise. Also, handle case where iconv fails on a given
3138 (init): Put encoding into exception.
3139 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3140 (static): Call iconv_init. Rebuilt alias list.
3141 (iconv_init): New private method.
3143 2000-11-01 Tom Tromey <tromey@cygnus.com>
3145 * Makefile.in: Rebuilt.
3146 * Makefile.am (install-exec-hook): Only make a single symlink, and
3147 remove the destination before making the link.
3148 * configure: Rebuilt.
3149 * configure.in: Call AC_PROG_LN_S.
3151 2000-10-31 Warren Levy <warrenl@cygnus.com>
3153 * jni.cc: Added include of java/lang/ThreadGroup.h.
3154 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3155 per change of 2000-10-05.
3157 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
3159 * java/util/BitSet.java: Updated @specnote.
3161 * java/io/Reader.java: Merge docs from classpath.
3162 (skip): Synchronize on `lock'.
3163 * java/io/FileReader.java: Import correct implementation from
3165 * java/io/StringReader.java: Merge docs from classpath.
3166 (ready): Throw IOException if stream is closed.
3168 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
3170 * java/util/AbstractCollection.java (addAll): Use size() instead of
3171 hasNext() in iterator loop.
3173 (contains): Ditto. Simplify loop.
3174 (containsAll): Ditto.
3179 (toString): Ditto. Use string concatenation operators, not
3181 * java/util/AbstractList.java (addAll): Use size() instead of
3182 hasNext() in iterator loop.
3185 (indexOf): Ditto. Don't take null check outside of the loop.
3186 (iterator): Return an AbstractListItr instead of anonymous class.
3187 (lastIndexOf): Use a for loop bounded by size() instead of
3188 hasPrevious() in iterator loop.
3189 (listIterator): Return an AbstractListItr.
3190 (removeRange): Remove bounds checking code and docs.
3191 (AbstractListItr): New inner class. Code moved here from
3193 (SubList.iterator): Removed. Use default implementation from
3194 AbstractList instead.
3195 (SubList.listIterator): As above.
3196 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3197 instead of hasNext() in iterator loop.
3198 (containsValue): Ditto.
3204 (toString): Ditto. Use string concatenation operators, not
3206 * java/util/AbstractSequentialList.java (addAll): Use a for loop
3207 bounded by size() instead of hasNext() in iterator loop.
3208 * java/util/AbstractSet.java (hashCode): Don't catch exception as
3209 part of normal execution flow. Do an explicit null check instead.
3210 * java/util/ArrayList.java (_iSize): Rename to `size'.
3211 (_arData): Rename to `data'.
3212 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3215 (removeRange): Make protected. Don't check bounds.
3216 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3218 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3220 (addAll (int, Collection)): Check lower bounds. Simplify exception
3222 (clone): Clone the data array too.
3223 (indexOf): Inline doesEqual().
3224 (lastIndexOf): Ditto.
3225 (clear): Don't set array data to null.
3226 (set): Check lower bounds. Simplify exception string.
3227 (toArray): Correct comment.
3228 (trimToSize): Don't update modCount, this is not a structural change.
3231 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3233 (toString): Declare `bit' as long, not int.
3234 (data): Made package-private, not private.
3236 2000-10-27 Warren Levy <warrenl@cygnus.com>
3238 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3239 array elements to true.
3241 2000-10-27 Warren Levy <warrenl@cygnus.com>
3243 * Makefile.am: Added locale files from Classpath.
3244 * Makefile.in: Rebuilt.
3245 * gnu/java/locale/Calendar.java: New file.
3246 * gnu/java/locale/Calendar_de.java: New file.
3247 * gnu/java/locale/Calendar_en.java: New file.
3248 * gnu/java/locale/Calendar_nl.java: New file.
3249 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3250 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3251 serialization compatibility.
3252 (scale): Made private.
3253 (serialVersionUID): New field.
3254 * java/math/BigInteger.java (ival): Made transient.
3255 (words): Made transient.
3256 (bitCount): New serialization field.
3258 (firstNonzeroByteNum): Ditto.
3259 (lowestSetBit): Ditto.
3262 (serialVersionUID): New field.
3263 (readObject): New method.
3264 (writeObject): New method.
3265 * java/util/BitSet.java (serialVersionUID): New field.
3266 * java/util/Calendar.java: Replaced with Classpath file.
3267 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3268 of getDefault() for TimeZone or Locale instead of passing nulls.
3269 * java/util/Locale.java (serialVersionUID): New field.
3270 (writeObject): New method.
3271 (readObject): New method.
3272 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3274 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
3276 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3277 (core_java_source_files): Put java.lang, java.io, and java.util here.
3278 (ordinary_java_source_files): Order so that core_java_source_files are
3280 (java_source_files): Reorder so that special_java_source_files are
3282 * configure.in: Don't pass -I flag to gcj.
3283 * Makefile.in: Rebuilt.
3284 * configure: Rebuilt.
3286 2000-10-25 Tom Tromey <tromey@cygnus.com>
3288 * Makefile.in: Rebuilt.
3289 * Makefile.am (install-exec-hook): New target.
3291 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
3293 * java/util/EventObject.java: Merged from classpath.
3295 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3298 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3300 * java/util/AbstractSet.java (equals): Re-installed original code.
3302 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3304 * Makefile.am: Added rules for libgcjx library.
3305 * Makefile.in: Rebuilt.
3306 * configure.in: Added check for X.
3307 * configure: Rebuilt.
3308 * gnu/awt/LightweightRedirector.java: New file.
3309 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3310 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3311 * gnu/awt/j2d/Graphics2DImpl.java: New file.
3312 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3313 * gnu/awt/j2d/MappedRaster.java: New file.
3314 * gnu/awt/xlib/XCanvasPeer.java: New file.
3315 * gnu/awt/xlib/XEventLoop.java: New file.
3316 * gnu/awt/xlib/XEventQueue.java: New file.
3317 * gnu/awt/xlib/XFontMetrics.java: New file.
3318 * gnu/awt/xlib/XFramePeer.java: New file.
3319 * gnu/awt/xlib/XGraphics.java: New file.
3320 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3321 * gnu/awt/xlib/XPanelPeer.java: New file.
3322 * gnu/awt/xlib/XToolkit.java: New file.
3323 * gnu/gcj/xlib/Clip.java: New file.
3324 * gnu/gcj/xlib/Colormap.java: New file.
3325 * gnu/gcj/xlib/Display.java: New file.
3326 * gnu/gcj/xlib/Drawable.java: New file.
3327 * gnu/gcj/xlib/Font.java: New file.
3328 * gnu/gcj/xlib/GC.java: New file.
3329 * gnu/gcj/xlib/Pixmap.java: New file.
3330 * gnu/gcj/xlib/Screen.java: New file.
3331 * gnu/gcj/xlib/Visual.java: New file.
3332 * gnu/gcj/xlib/WMSizeHints.java: New file.
3333 * gnu/gcj/xlib/Window.java: New file.
3334 * gnu/gcj/xlib/WindowAttributes.java: New file.
3335 * gnu/gcj/xlib/XAnyEvent.java: New file.
3336 * gnu/gcj/xlib/XButtonEvent.java: New file.
3337 * gnu/gcj/xlib/XColor.java: New file.
3338 * gnu/gcj/xlib/XConfigureEvent.java: New file.
3339 * gnu/gcj/xlib/XConnectException.java: New file.
3340 * gnu/gcj/xlib/XEvent.java: New file.
3341 * gnu/gcj/xlib/XException.java: New file.
3342 * gnu/gcj/xlib/XExposeEvent.java: New file.
3343 * gnu/gcj/xlib/XID.java: New file.
3344 * gnu/gcj/xlib/XImage.java: New file.
3345 * gnu/gcj/xlib/XUnmapEvent.java: New file.
3346 * gnu/gcj/xlib/natClip.cc: New file.
3347 * gnu/gcj/xlib/natColormap.cc: New file.
3348 * gnu/gcj/xlib/natDisplay.cc: New file.
3349 * gnu/gcj/xlib/natDrawable.cc: New file.
3350 * gnu/gcj/xlib/natFont.cc: New file.
3351 * gnu/gcj/xlib/natGC.cc: New file.
3352 * gnu/gcj/xlib/natPixmap.cc: New file.
3353 * gnu/gcj/xlib/natScreen.cc: New file.
3354 * gnu/gcj/xlib/natVisual.cc: New file.
3355 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3356 * gnu/gcj/xlib/natWindow.cc: New file.
3357 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3358 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3359 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3360 * gnu/gcj/xlib/natXColor.cc: New file.
3361 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3362 * gnu/gcj/xlib/natXException.cc: New file.
3363 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3364 * gnu/gcj/xlib/natXImage.cc: New file.
3365 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3366 * java/awt/EventDispatchThread.java: Start thead on creation.
3368 2000-10-20 Tom Tromey <tromey@cygnus.com>
3370 From Arno J. Klaassen:
3371 * interpret.cc: Include <stdlib.h> for alloca.
3372 * defineclass.cc: Include <stdlib.h> for alloca.
3374 * Makefile.in: Rebuilt.
3375 * Makefile.am: Include deps.mk.
3376 (GCJCOMPILE): Added -MD, -MT, and -MF.
3377 ($(javao_files)): Don't depend on libgcj.zip.
3378 (all-recursive): New target.
3379 (%.lo:%.cc): Do dependency tracking.
3380 ($(nat_headers)): Don't depend on libgcj.zip.
3381 * configure: Rebuilt.
3382 * configure.in: Make .d files and deps.mk.
3384 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
3386 * exception.cc: Don't #include "exception".
3387 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3389 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3390 * Makefile.in: Updated.
3392 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
3394 * java/awt/peer/ChoicePeer.java (addItem): Removed.
3395 * java/awt/peer/ComponentPeer.java (disable): Removed.
3398 (minimumSize): Removed.
3399 (preferredSize): Removed.
3402 * java/awt/peer/ListPeer.java (addItem): Removed.
3404 (minimumSize): Removed.
3405 (preferredSize): Removed.
3406 (setMultipleSelections): Removed.
3407 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3408 (remove): Renamed from removeMenu.
3409 * java/awt/peer/MenuItemPeer.java (disable): Removed.
3411 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3412 (remove): Renamed from removeItem.
3413 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3414 (getMinimumSize): Removed.
3415 (getPreferredSize): Removed.
3416 (minimumSize): Removed.
3417 (preferredSize): Removed.
3418 (replaceText): Removed.
3419 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3420 (preferredSize): Removed.
3421 (getMinimumSize): Removed.
3422 (getPreferredSize): Removed.
3423 (setEchoCharacter): Removed.
3425 2000-10-10 Warren Levy <warrenl@cygnus.com>
3427 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3428 * java/sql/Date.java (serialVersionUID): New field.
3429 * java/sql/Time.java (serialVersionUID): New field.
3430 * java/sql/Timestamp.java (serialVersionUID): New field.
3431 * java/text/ChoiceFormat.java (serialVersionUID): New field.
3432 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3433 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3434 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3435 (readObject): New serialization method.
3436 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3437 (serialVersionOnStream): New field.
3438 (readObject): New serialization method.
3439 (getMonetaryDecimalSeparator): New method.
3440 (setMonetaryDecimalSeparator): New method.
3441 * java/text/NumberFormat.java (maxFractionDigits): New field.
3442 (maxIntegerDigits): New field.
3443 (minFractionDigits): New field.
3444 (minIntegerDigits): New field.
3445 (serialVersionOnStream): New field.
3446 (serialVersionUID): New field.
3447 (readObject): New serialization method.
3448 (writeObject): New serialization method.
3449 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3450 (serialVersionOnStream): New field.
3451 (serialVersionUID): New field.
3452 (readObject): New serialization method.
3454 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
3456 * configure.in (GCJ): Avoid bogus error message when looking for
3457 (and not finding) gcj in the build tree.
3458 * configure: Rebuilt.
3460 2000-10-09 Tom Tromey <tromey@cygnus.com>
3462 * configure: Rebuilt.
3463 * configure.in: Include sys/types.h when checking for socklen_t.
3464 From Arno J. Klaassen.
3466 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
3468 * include/jvm.h: Enable __builtin_expect().
3470 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3471 the main program. Fix for PR libgcj/341.
3473 2000-10-07 Tom Tromey <tromey@cygnus.com>
3475 * java/util/Properties.java: Merged with Classpath version.
3477 2000-10-05 Tom Tromey <tromey@cygnus.com>
3479 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3480 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3481 * java/lang/Class.h (Object): Added `class$' field.
3482 * java/lang/Object.h (Object): Added `class$' field.
3483 * defineclass.cc (ClassClass): Use `class$' form.
3484 (ClassObject): Likewise.
3485 * resolve.cc (ClassObject): Use `class$' form.
3486 (ObjectClass): Likewise.
3487 * interpret.cc (ClassError): Removed.
3488 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3490 (IntegerClass): Likewise.
3491 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3493 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3494 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3495 SerializableClass): Likewise.
3496 Include Serializable.h, Cloneable.h.
3497 * java/lang/natSystem.cc (SystemClass): Removed.
3498 (init_properties): Use `class$' form.
3499 * java/lang/natObject.cc (CloneableClass): Removed.
3500 (clone): Use `class$' form.
3501 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3502 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3503 ConstructorClass): Likewise.
3504 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3505 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3506 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3507 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3509 (ClassClass): Likewise.
3510 * include/jvm.h (StringClass): Use `class$' form.
3511 * prims.cc (ObjectClass): Removed.
3512 (_Jv_RunMain): Use `class$' form.
3513 (_Jv_AllocObject): Likewise.
3514 * jni.cc (ClassClass): Use `class$' form.
3515 (ThrowableClass): Likewise.
3516 (ObjectClass): Likewise.
3517 (MethodClass): Likewise.
3518 (ThreadGroupClass): Likewise.
3519 (NativeThreadClass): Likewise.
3520 * boehm.cc (ObjectClass): Removed.
3521 (ClassClass): Removed.
3522 (_Jv_MarkObj): Use `class$' form.
3523 * gcj/field.h (JvFieldIsRef): Use `class$' form.
3526 2000-10-05 Warren Levy <warrenl@cygnus.com>
3528 * Makefile.am: Removed java/io/Replaceable.java and
3529 java/io/Resolvable.java.
3530 * Makefile.in: Rebuilt.
3531 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3533 * java/io/ObjectInputStream.java (processResolution): Fixed typo
3535 (processResolution): Handle readResolve method via reflection with
3536 removal of Resolvable interface.
3537 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3538 method via reflection with removal of Replaceable interface.
3539 * java/io/Replaceable.java: Removed.
3540 * java/io/Resolvable.java: Removed.
3541 * java/security/Key.java (serialVersionUID): New field.
3542 * java/security/Provider.java (serialVersionUID): New field.
3543 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3545 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3547 * java/sql/DataTruncation.java (serialVersionUID): New field.
3548 * java/sql/SQLException.java (serialVersionUID): New field.
3549 * java/sql/SQLWarning.java (serialVersionUID): New field.
3550 * java/util/Date.java (serialVersionUID): New field.
3551 (millis): Made transient.
3552 (readObject): New method.
3553 (writeObject): New method.
3555 2000-10-05 Tom Tromey <tromey@cygnus.com>
3557 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3559 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
3561 * prims.cc (_Jv_argv, _Jv_argc): New fields.
3562 (JvRunMain): Set _Jv_argv and _Jv_argc.
3563 * java/awt/Component.java: Minor fixes.
3564 * java/awt/Image.java (UndefinedProperty): Initialize final field.
3565 * java/awt/Toolkit.java (systemEventQueue): Removed.
3566 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3567 * java/awt/Window.java (getToolkit): Don't call super.
3568 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3569 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3570 * gnu/awt/gtk/GtkComponentPeer.java: New file.
3571 * gnu/awt/gtk/GtkContainerPeer.java: New file.
3572 * gnu/awt/gtk/GtkFramePeer.java: New file.
3573 * gnu/awt/gtk/GtkMainThread.java: New file.
3574 * gnu/awt/gtk/GtkToolkit.java: New file.
3575 * gnu/awt/gtk/GtkWindowPeer.java: New file.
3576 * gnu/awt/gtk/gtkcommon.cc: New file.
3577 * gnu/awt/gtk/gtkcommon.h: New file.
3578 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3579 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3580 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3581 * gnu/awt/gtk/natGtkMainThread.cc: New file.
3582 * gnu/awt/gtk/natGtkToolkit.cc: New file.
3583 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3585 2000-09-30 Tom Tromey <tromey@cygnus.com>
3587 * posix-threads.cc (_Jv_CondWait): Check to see if we are
3588 interrupted before modifying the cv's wait set.
3591 2000-09-30 Hans Boehm <boehm@acm.org>
3592 Bryce McKinlay <bryce@albatross.co.nz>
3594 Implement bitmap descriptor based marking for Boehm GC.
3596 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3597 * configure: Rebuilt.
3598 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3599 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3600 method get_finalizer().
3601 (struct _Jv_ArrayVTable): Ditto. Declare method array with
3602 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3603 (_Jv_AllocObj): Add new jclass parameter.
3604 (_Jv_AllocArray): Ditto.
3605 (_Jv_BuildGCDescr): New prototype.
3606 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3607 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3608 get_finalizer() instead of direct finalizer vtable offset.
3609 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3610 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3611 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3612 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3613 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3614 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3615 (_Jv_DetermineVTableIndex): Ditto.
3616 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3617 calculations to account for new gc_descr field.
3618 * boehm.cc: #include gc_gcj.h.
3619 (obj_kind_x, obj_free_list): `#if 0'-ed away.
3620 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3621 New commentary from HB. Mark the classes vtable.
3622 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3623 (GC_DEFAULT_DESCR): New #define.
3624 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3625 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3626 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3627 scan conservativly if size is less than min_heap_addr. Set vtable
3628 pointer of new object before returning.
3629 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3630 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3631 allocation for obj_kind_x.
3632 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3633 (_Jv_AllocObj): Set vtable on returned object.
3634 (_Jv_AllocArray): Ditto.
3635 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3636 (_Jv_NewPrimArray): Ditto.
3637 (_Jv_AllocObj): Declare as a friend.
3638 (_Jv_AllocArray): Ditto.
3639 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3640 from &ObjectClass into new array class. Remove offset-by-one
3641 adjustments from `method' size calculations to account for gc_descr
3644 2000-09-26 Tom Tromey <tromey@cygnus.com>
3646 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3647 `remove', not `add'.
3649 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3651 * java/lang/natSystem.cc (file_encoding): Added return statement.
3653 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3655 * Makefile.am: Re-work shell commands that exceeded command-line
3657 * Makefile.in: Rebuilt.
3659 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3661 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3662 * java/lang/natDouble.cc: Likewise.
3663 * java/lang/reflect/natMethod.cc: Likewise.
3664 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
3666 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
3668 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3670 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
3671 * acinclude.m4: Arrange for automake to not bring in a new
3672 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
3673 * Makefile.am: Leave it up to automake to subst GCJ.
3674 * aclocal.m4, configure, Makefile.in: Rebuilt.
3676 2000-09-13 Tom Tromey <tromey@cygnus.com>
3678 * java/lang/reflect/natArray.cc (BooleanClass): New define.
3679 (get): Ensure Boolean class is initialized.
3680 * java/lang/reflect/natField.cc (BooleanClass): New define.
3681 (get): Ensure Boolean class is initialized.
3683 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
3685 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3686 Initialize with anonymous class.
3687 (compareToIgnoreCase): New method.
3689 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3690 (uncaughtException): Set had_uncaught_exception.
3691 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3692 exit with error status if set.
3693 (_Jv_RunMain): Ditto.
3695 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
3697 * configure: Rebuilt with new ../libtool.m4.
3699 2000-09-11 Tom Tromey <tromey@cygnus.com>
3701 * java/lang/reflect/Field.java (toString): Don't rely on
3704 2000-09-08 Tom Tromey <tromey@cygnus.com>
3706 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3707 default decoder use iconv.
3708 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3709 Let default encoder use iconv.
3710 * configure: Rebuilt.
3711 * configure.in: Check for nl_langinfo and <langinfo.h>.
3712 * java/lang/natSystem.cc (file_encoding): New function.
3713 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3715 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3717 * acinclude.m4: Simplify the tests for CC and CXX.
3718 * aclocal.m4, configure: Rebuilt.
3720 * acinclude.m4: Include libtool macros from the source tree.
3721 * aclocal.m4, configure: Rebuilt.
3723 2000-09-08 Warren Levy <warrenl@cygnus.com>
3725 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3726 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3727 * java/io/File.java (writeObject): Added.
3728 (readObject): Added.
3729 (serialVersionUID): Added.
3730 * java/io/ObjectOutputStream.java (writeObject): Initialized
3731 fieldsAlreadyWritten before recursion rather than after.
3732 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3733 * java/io/OptionalDataException.java (serialVersionUID): Added.
3734 (OptionalDataException): Made package private.
3735 * java/io/SyncFailedException.java (SyncFailedException): Removed
3736 default constructor to match spec.
3737 * java/lang/Boolean.java (serialVersionUID): Added.
3738 * java/lang/Byte.java (serialVersionUID): Added.
3739 * java/lang/Character.java (serialVersionUID): Added.
3740 * java/lang/Double.java (serialVersionUID): Added.
3741 * java/lang/Float.java (serialVersionUID): Added.
3742 * java/lang/Integer.java (serialVersionUID): Added.
3743 * java/lang/Long.java (serialVersionUID): Added.
3744 * java/lang/Number.java (serialVersionUID): Added.
3745 * java/lang/Short.java (serialVersionUID): Added.
3746 * java/lang/String.java (serialVersionUID): Added.
3747 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3749 * java/lang/reflect/InvocationTargetException.java
3750 (serialVersionUID): Added.
3751 * java/net/URL.java (handler): Made transient.
3752 (hashCode): Added field for serialization, per spec. and use
3753 cached value if available.
3754 (serialVersionUID): Added.
3755 (URL): Initialize hashCode.
3756 (set): Adjust hashCode.
3757 (readObject): New Method to initialize the protocol handler when
3759 (writeObject): New method.
3760 * java/text/BreakIterator.java: Removed 'implements Serializable'.
3761 * java/text/Collator.java: Removed 'implements Serializable'.
3762 * java/util/GregorianCalendar.java (serialVersionUID): Added.
3763 * java/util/Properties.java (serialVersionUID): Added.
3764 * java/util/Random.java (serialVersionUID): Added.
3765 (seed): Made private.
3766 (nextNextGaussian): Made private.
3767 (haveNextNextGaussian): Made private.
3768 * java/util/Stack.java (serialVersionUID): Added.
3769 * java/util/TimeZone.java (serialVersionUID): Added.
3770 * java/util/Vector.java (serialVersionUID): Added.
3772 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
3774 * Makefile.am (Thread.h): Don't be friends with native threads
3776 * Makefile.in: Rebuilt.
3777 * java/lang/Thread.java (interrupt_flag): Make package-private.
3779 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
3781 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
3782 to avoid long long division.
3784 2000-09-06 Tom Tromey <tromey@cygnus.com>
3786 * java/lang/reflect/Constructor.java (toString): Use `getName' for
3788 * java/lang/reflect/Method.java (toString): Use `getName' for
3791 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
3792 `args' if method takes no parameters.
3794 Fix for PR java.lang/339:
3795 * java/lang/natPosixProcess.cc (fail): New function.
3796 (cleanup): New function.
3797 (startProcess): Use them. Create pipe so child can communicate
3798 exec failure back to parent.
3800 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3802 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3804 (send): Undo last patch. Remove the label only.
3806 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3808 * java/net/natInetAdress.cc: Ditto.
3810 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3812 2000-09-05 Tom Tromey <tromey@cygnus.com>
3814 * doc/cni.sgml: Updated from master copy.
3816 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
3818 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3820 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3822 * java/lang/fdlibm.h: #undef __P if previously defined.
3823 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3824 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3828 2000-09-04 Tom Tromey <tromey@cygnus.com>
3830 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3833 2000-09-04 Anthony Green <green@redhat.com>
3835 Fix for PR java.io/203:
3836 * java/io/File.java (createTempFile): Obey directory argument.
3837 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
3838 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3839 variable to set java.io.tmpdir on non-WIN32 systems.
3841 2000-09-04 Anthony Green <green@redhat.com>
3843 * java/io/File.java (deleteOnExit): New method.
3844 * gnu/gcj/runtime/FileDeleter.java: New class.
3845 * java/lang/natRuntime.cc (exit): Call
3846 FileDeleter.deleteOnExitNow()
3847 * Makefile.am: Add FileDeleter.java.
3848 * Makefile.in: Rebuilt.
3850 2000-09-02 Tom Tromey <tromey@cygnus.com>
3852 * Makefile.in: Rebuilt.
3853 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3854 environment variable.
3856 2000-09-01 Andrew Haley <aph@redhat.com>
3858 * java/io/StreamTokenizer.java: Don't throw a
3859 NumberFormatException if a field is numeric as far as the
3860 StreamTokenizer is concerned but not as far as Double.valueOf() is
3861 concerned: return a zero instead.
3863 2000-08-30 Tom Tromey <tromey@cygnus.com>
3865 * Makefile.in: Rebuilt.
3866 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3868 2000-08-28 Tom Tromey <tromey@cygnus.com>
3870 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3871 gnu/gcj/awt/ComponentDataBlitOp.java,
3872 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3873 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3874 java/awt/color/ICC_ColorSpace.java,
3875 java/awt/color/ICC_Profile.java,
3876 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3877 java/awt/image/ComponentColorModel.java,
3878 java/awt/image/ComponentSampleModel.java,
3879 java/awt/image/DataBuffer.java,
3880 java/awt/image/DataBufferByte.java,
3881 java/awt/image/DataBufferInt.java,
3882 java/awt/image/DataBufferUShort.java,
3883 java/awt/image/DirectColorModel.java,
3884 java/awt/image/IndexColorModel.java,
3885 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3886 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3887 java/awt/image/SinglePixelPackedSampleModel.java,
3888 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3889 Removed Latin-1 copyright symbols.
3890 * java/util/zip/ZipFile.java: Indentation fixes.
3892 2000-08-27 Mark Wielaard <mark@klomp.org>
3894 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3895 constructor, close can delete the file, finalize calls close.
3896 * java/util/jar/JarFile.java: Constructor that takes mode now
3899 2000-08-27 Anthony Green <green@redhat.com>
3901 * java/util/ArrayList.java, java/util/Timer.java,
3902 java/util/LinkedList.java, java/util/TimerTask.java,
3903 java/util/HashMap.java, java/util/AbstractMap.java,
3904 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3905 java/util/SortedSet.java: Imported from GNU Classpath.
3906 * Makefile.in: Rebuilt.
3907 * Makefile.am: Added new files.
3909 2000-08-26 Anthony Green <green@redhat.com>
3911 * Makefile.in: Rebuilt.
3912 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3915 * prims.cc: Include ClassLoader.h.
3916 (_Jv_RunMain): When executing jar files, classpath must be the jar
3917 file only. Lose our reference to the system ClassLoader in order
3918 to get a new one with the correct classpath.
3919 * java/lang/natSystem.cc (init_properties): When executing a jar
3920 file, only use the jar file for java.class.path.
3922 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3923 for bytecode archives.
3925 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3926 exists, but not Main-Class.
3928 2000-08-23 Mark Wielaard <mark@klomp.org>
3930 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3931 return -1 when fill() has no more data for the Inflater.
3933 2000-08-23 Mark Wielaard <mark@klomp.org>
3935 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3936 write(String) already does.
3938 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3940 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3941 to `alive_flag', call `init'.
3942 (init): New native method.
3943 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3946 2000-08-21 Mark Wielaard <mark@klomp.org>
3948 * Makefile.in: Rebuilt.
3949 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3951 (java/lang/reflect/Field.h): Likewise.
3952 (java/lang/reflect/Method.h): Likewise.
3953 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3956 2000-08-21 Tom Tromey <tromey@cygnus.com>
3958 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3961 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3963 * java/lang/natSystem.cc (init_properties): Change sourceware
3964 reference to sources.redhat.com.
3966 * include/java-props.h: Add _Jv_Jar_Class_Path.
3967 * prims.cc: Ditto. Set it from `gij -jar file' option.
3969 * java/lang/natSystem.cc (init_properties): Set java.class.path
3971 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3973 * java/util/PropertyPermission.java: Import from GNU Classpath.
3974 * Makefile.in: Rebuilt.
3975 * Makefile.am: Add java/util/PropertyPermission.java.
3976 * java/lang/System.java: Add setProperty method.
3978 * gij.cc (main): Add -jar option to execute jar files.
3979 (help): Describe -jar option.
3980 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3981 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3982 * gnu/gcj/runtime/FirstThread.java (main): New method.
3984 * java/util/jar/Attributes.java: Correct comment spelling.
3986 2000-08-20 Mark Wielaard <mark@klomp.org>
3988 * java/util/zip/Adler32.java: Make private variables really private
3989 * java/util/zip/CRC32.java: Make private variables really private
3990 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3992 * java/util/zip/InflaterInputStream.java: skip() could skip to
3994 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3995 * java/util/zip/ZipFile.java: size() new 1.2 method
3996 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3997 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4000 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4002 * java/util/jar/JarFile.java: Don't call
4003 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4006 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4008 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4009 Read the entire contents of the class file, not just what is
4012 * java/net/JarURLConnection.java: getEntry doesn't take any
4013 arguments. Return null if element is null.
4015 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4016 size from the archive, not the inflated size.
4018 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4019 java.util.zip.ZipFile.getEntry.
4021 * gij.cc (help): Change sourceware reference to
4024 2000-08-19 Tom Tromey <tromey@cygnus.com>
4026 * java/util/zip/ZipInputStream.java (createZipEntry):
4029 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
4031 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
4032 java/util/jar/JarException.java, java/util/jar/JarFile.java,
4033 java/util/jar/JarInputStream.java,
4034 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
4035 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
4036 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
4037 java/security/cert/CRL.java, java/security/cert/CRLException.java,
4038 java/security/cert/Certificate.java,
4039 java/security/cert/CertificateEncodingException.java,
4040 java/security/cert/CertificateException.java,
4041 java/security/cert/CertificateExpiredException.java,
4042 java/security/cert/CertificateFactory.java,
4043 java/security/cert/CertificateFactorySpi.java,
4044 java/security/cert/CertificateNotYetValidException.java,
4045 java/security/cert/CertificateParsingException.java,
4046 java/security/cert/X509CRL.java,
4047 java/security/cert/X509CRLEntry.java,
4048 java/security/cert/X509Certificate.java,
4049 java/security/cert/X509Extension.java: Imported from Classpath.
4050 * java/util/Hashtable.java: Imported from Classpath.
4052 * java/util/zip/ZipInputStream.java: Create stub for
4055 * gcj/javaprims.h: Updated class list.
4057 * Makefile.in, gcj/Makefile.in: Rebuilt.
4058 * Makefile.am (ordinary_java_source_files): Add these new classes.
4060 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4062 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
4063 * gnu/gcj/awt/GLightweightPeer.java: New file.
4064 * java/awt/BorderLayout.java: Implemented all methods.
4065 * java/awt/Button.java (actionListener, actionCommand): Renamed
4066 and modifier change.
4067 (addNotify): Call super.
4068 (dispatchEventImpl): New method.
4069 (getListeners): New method.
4070 (label): Made package-private, not private.
4071 * java/awt/Canvas.java: Implemented class body.
4072 * java/awt/Color.java (brighter): New method.
4073 (darker): New method.
4074 (hashCode): New method.
4075 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
4076 (getGraphicsConfiguration): Delegate to
4077 getGraphicsConfigurationImpl().
4078 (getGraphicsConfigurationImpl): New method.
4079 (getToolkit): Only return value from peer if not null.
4080 (isDisplayable): Check with parent.
4081 (isShowing): No parent implies not showing.
4082 (getForeground): Check parent property if local is null.
4083 (getBackground): Likewise.
4084 (getFont): Likewise.
4085 (setForeground): Inform peer.
4086 (setBackground): Likewise
4087 (setLocale): Invalidate component.
4088 (getColorModel): Implemented.
4089 (setLocation): Invalidate, or ignore if no change.
4090 (setSize): Invalidate, or ignore if no change.
4091 (setBounds): Invalidate, or ignore if no change.
4092 (isOpaque): By default, heavyweight implies opaque.
4093 (isLightweight): Implemented.
4094 (getMaximumSize): Implemented.
4095 (doLayout): Implemented, NOP.
4096 (validate): Implemented, NOP.
4097 (invalidate): Only propagate to parent if parent was valid.
4098 (getGraphics): Implemented.
4099 (getFontMetrics): Implemented.
4100 (update): Implemented.
4101 (paintAll): Implemented.
4102 (repaint): Implemented all repaint methods.
4103 (print): Implemented.
4104 (printAll): Implemented.
4105 (createImage): Implemented.
4106 (dispatchEvent): Give the peer a chance to handle the event.
4107 (dispatchEventImpl): Dispatch paint events.
4108 (enableEvents): Lightweights enable events on parent component.
4109 (coalesceEvents): Coalesce paint events, and select event type
4111 (coalescePaintEvents): New method.
4112 (processEvent): Fix unfortunate ordering of statements, and call
4113 correct method for MOUSE_CLICKED.
4114 (processPaintEvent): New method.
4115 (addNotify): Allow container to notify children before event
4116 mask is set in peer.
4117 (addNotifyContainerChildren): New method.
4118 (removeNotify): Visibility should not change on removeNotify.
4119 (paramString): Implemented.
4120 (list): Implemented two of the list methods.
4121 * Container (myInsets): Removed, insets are managed by peer.
4122 (getInsets): Query peer.
4123 (addImpl): Fix reparenting, enable events for lightweights,
4124 initialize component array.
4125 (validate): Call doLayout in validateTree() instead.
4126 (validateTree): Do nothing if already valid. Call beginValidate(),
4127 endValidate() on peer. Call validateTree() instead of validate()
4128 for children that are containers. Mark valid after validation of
4130 (setFont): Partial implementation.
4131 (paint): Implemented.
4132 (visitChildren): New method.
4133 (visitChild): New method.
4134 (update): Implemented.
4135 (print): Implemented.
4136 (paintComponents): Implemented.
4137 (printComponents): Consider translation and clipping.
4138 (getComponentAt): Ignore invisible children. Return this if no
4140 (addNotify): Call super.
4141 (addNotifyContainerChildren): New method.
4142 (paramString): Implemented.
4143 (list): Implemented.
4144 * java/awt/EventQueue (invokeAndWait): Get system event queue the
4146 (invokeLater): Likewise.
4147 (isDispatchThread): Likewise.
4148 * java/awt/FontMetrics (getLeading): Formula change.
4149 (getDescent): Consider leading also.
4150 (getMaxAscent): Default to getAscent().
4151 (getMaxDescent): Default to getDescent.
4152 (getMaxAdvance): Return value signifying unknown.
4153 (charWidth): Both methods implemented.
4154 (charsWidth): Implemented.
4155 (bytesWidth): Implemented.
4156 (getWidths): Implemented.
4157 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
4159 (Frame): Rearragend constuctor chaining to disallow null being
4160 passed as a graphics configuration.
4161 (getTitle): Return empty string if null.
4163 (getIconImage): New method.
4164 (setIconImage): New method.
4165 (finalize): New method.
4166 (setMenuBar): Notify peer.
4167 (isResizable): New method.
4168 (setResizable): New method.
4169 (getState): New method.
4171 (remove): Implemented.
4172 (removeNotify): New method.
4173 (getFrames): New method.
4174 * java/awt/Graphics.java: Implemented body of class.
4175 * java/awt/Graphics2D.java: New file.
4176 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
4177 * java/awt/Image.java: Implemented body of class.
4178 * java/awt/Panel.java (Panel): Call correct super constructor.
4179 (addNotify): Implemented.
4180 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
4181 * java/awt/RenderingHints.java: New file.
4182 * java/awt/Toolkit.java (createComponent): Implemented.
4183 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
4184 * java/awt/Window.java (Window): Two new constructors. Reordered
4185 constructor chaining.
4186 (getGraphicsConfigurationImpl): New method.
4187 (finalize): Call super.
4188 (addNotify): Call super.
4189 (pack): Do layout stuff.
4190 (show): Ensure that peer exists and that component is valid.
4191 (dispose): Dispose owned children.
4192 (getOwner): Simplify code, casting null pointers is valid.
4193 (getGraphicsConfiguration): Ask peer if local value is null.
4194 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
4196 * java/awt/image/BufferedImage.java: New file.
4197 * java/awt/image/RasterOp.java: New file.
4198 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
4199 More powerfull replacement for getColorModel().
4200 (getColorModel) Removed.
4201 (setEventMask) New method.
4202 * Makefile.am: Added new files.
4203 * Makefile.in: Rebuilt.
4205 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
4207 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
4208 (finit_leg_name): New global.
4209 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
4210 `$finit$'. This is a backward compatibility hack.
4211 (java::lang::Class::_getMethods): Likewise.
4213 2000-08-15 Andrew Haley <aph@cygnus.com>
4215 * include/jvm.h (_Jv_HashCode): New hash code.
4217 2000-08-15 Tom Tromey <tromey@cygnus.com>
4219 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
4221 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
4223 * THANKS: More thanks.
4225 2000-08-10 Tom Tromey <tromey@cygnus.com>
4227 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
4229 (connect): Likewise.
4231 (getOption): Likewise.
4232 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
4233 case when errno not set.
4236 (receive): Likewise.
4237 (mcastGrp): Likewise.
4238 (setOption): Likewise.
4239 (getOption): Likewise.
4241 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
4242 John Stracke <francis@ecal.com>
4244 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
4245 (connect): Don't falsely claim HTTP/1.1 compliance. Call
4247 (disconnect): Don't unset connected flag.
4248 (getHeaderField (String)): Call connect() if not connected.
4249 (getHeaderField (int)): Ditto.
4250 (getHeaderFieldKey): Ditto.
4251 (getHttpHeaders): Don't call connect().
4252 * java/net/HttpURLConnection.java (instanceFollowRedirects,
4253 gotResponseVals): New fields.
4254 (getResponseCode): Call getResponseVals() conditionally.
4255 (getResponseMessage): Ditto.
4256 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
4258 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
4260 * Makefile.am: Move beans and applet classes to awt_java_source_files.
4261 * Makefile.in: Rebuilt.
4262 * java/awt/Color.java (getTransparency): New method.
4263 * java/awt/Component.java: Various updates.
4264 * java/awt/Container.java (removeNotify): Call super.removeNotify()
4265 after dealing with children.
4266 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
4267 * java/awt/Window.java: Various new methods and updates.
4268 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
4270 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
4271 * java/awt/event/WindowEvent.java (paramString): Ditto.
4272 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
4274 * java/awt/geom/Point2D.java (clone): Ditto.
4275 * java/awt/geom/RectangularShape.java (clone): Ditto.
4276 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
4277 isAlphaPremultiplied): Make package-private, not private.
4279 2000-08-08 Tom Tromey <tromey@cygnus.com>
4281 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
4282 surrogate characters.
4283 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
4285 (write): Correct handling of surrogate characters.
4287 2000-08-07 Tom Tromey <tromey@cygnus.com>
4289 * java/lang/reflect/Method.java (hashCode): Use getName().
4290 (toString): Likewise.
4291 * java/lang/reflect/natMethod.cc (getType): Initialize
4294 * java/lang/reflect/Method.java (toString): Use Class.getName, not
4296 * java/lang/reflect/Field.java (toString): Correct formatting.
4299 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
4301 (receive): Streamlined.
4303 2000-08-05 Tom Tromey <tromey@cygnus.com>
4305 * java/io/PrintWriter.java: Merged comments from Classpath.
4306 (printlnUnsynchronized): Removed.
4307 (println()): Print the separator.
4308 (println): Call println(), not printlnUnsynchronized.
4309 (out): Now protected, to match spec.
4311 2000-08-04 Tom Tromey <tromey@cygnus.com>
4313 * java/io/StreamTokenizer.java (TT_NONE): Now private.
4314 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
4317 2000-08-03 Warren Levy <warrenl@cygnus.com>
4319 * java/io/ObjectInputStream.java (readFields): Turn off
4320 readDataFromBlock while reading via GetField.
4321 (GetField$1.get(String, Object)): Pass Class of default value to
4323 (getField): Allow for null default values.
4325 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4326 (PutField$1.put): Fixed calls of checkType in most of the put
4327 methods to pass the correct parameter.
4328 (PutField$1.put(String, Object)): Allow for null value arg.
4329 (PutField$1.write): Turn off writeDataAsBlocks while writing via
4332 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
4333 typo in spec'ed field name.
4334 (getSerialPersistentFields): Changed spelling of method to match
4335 the correct spelling of the spec'ed field name.
4337 2000-08-03 Tom Tromey <tromey@cygnus.com>
4339 * Makefile.in: Rebuilt.
4340 * Makefile.am (awt_java_source_files): Added new files.
4342 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4344 * Makefile.am: Add new AWT stubs.
4345 * java/awt/Canvas.java: New placeholder class.
4346 * java/awt/Checkbox.java: Ditto.
4347 * java/awt/CheckboxMenuItem.java: Ditto.
4348 * java/awt/Choice.java: Ditto.
4349 * java/awt/Dialog.java: Ditto.
4350 * java/awt/FileDialog.java: Ditto.
4351 * java/awt/List.java: Ditto.
4352 * java/awt/ScrollPane.java: Ditto.
4353 * java/awt/TextField.java: Ditto.
4354 * java/awt/datatransfer/Clipboard.java: Ditto.
4355 * java/awt/Component.java (treeLock): Now a static String. Add comment.
4356 * java/awt/MenuItem.java (MenuItem): Add default constructor.
4357 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
4358 Some commented out. Partially implemented.
4359 * java/awt/natToolkit.cc: Removed file.
4361 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
4363 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
4364 Fixes "make -j" builds.
4365 * Makefile.in: Rebuild.
4367 2000-08-02 Tom Tromey <tromey@cygnus.com>
4369 * Makefile.in: Rebuilt.
4370 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
4371 * java/net/natPlainSocketImpl.cc: Include posix.h.
4372 (accept): Use _Jv_select.
4373 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
4374 (receive): Use _Jv_select.
4375 * java/io/natFileDescriptorPosix.cc: Include posix.h.
4376 (available): Use _Jv_select.
4377 * java/lang/natSystem.cc: Include posix.h.
4378 (currentTimeMillis): Use _Jv_gettimeofday.
4379 * include/posix.h: New file.
4380 * posix.cc: New file.
4382 * scripts/encodings.pl: New file.
4383 * Makefile.in: Rebuilt.
4384 * Makefile.am (convert_source_files): Added IOConverter.java.
4385 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
4387 (getDefaultDecodingClass): Canonicalize default encoding name.
4388 (getEncoder): Likewise.
4389 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
4391 (getDefaultDecodingClass): Canonicalize default encoding name.
4392 (getDecoder): Likewise.
4393 * gnu/gcj/convert/IOConverter.java: New file.
4395 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
4397 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
4398 to match C declaration in ffi.h.
4399 * Makefile.am: Add java/awt/Button.java.
4400 * Makefile.in: Rebuilt.
4402 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
4404 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
4405 cast of the second argument to `ffi_raw_call' changed to match
4408 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4410 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
4411 argument to `ffi_raw_call' changed to match prototype.
4413 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
4415 * java/awt/Component.java (toString): Implemented.
4416 * java/awt/Container.java (addImpl): Remove FIXME. Only call
4417 dispatchEvent() to dispatch the event.
4418 (removeImpl): Ditto.
4420 2000-07-30 Anthony Green <green@redhat.com>
4422 * java/awt/Component.java: Add treeLock object.
4423 (getTreeLock): Implement.
4424 (isShowing): Implement.
4426 2000-07-30 Tom Tromey <tromey@cygnus.com>
4428 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
4430 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
4432 * java/awt/Window.java (addNotify): Wrote.
4433 (addWindowListener): Wrote.
4435 (getWarningString): Wrote.
4436 (processEvent): Wrote.
4437 (processWindowEvent): Wrote.
4438 (removeWindowListener): Wrote.
4439 (show): Call validate(), setVisible().
4443 * java/awt/Toolkit.java (createWindow): Declare.
4445 * java/awt/Frame.java (addNotify): Use getToolkit to find
4448 * java/awt/Component.java (invalidate): Wrote.
4450 (getToolkit): Wrote.
4452 * java/awt/Container.java (addContainerListener): Removed
4454 (removeContainerListener): Likewise.
4456 (add(Component)): Use it.
4457 (add(String,Component)): Likewise.
4458 (add(Component,int)): Likewise.
4459 (add(Component,Object)): Likewise.
4460 (add(Component,Object,int)): Likewise.
4462 (getAlignmentX): Wrote.
4463 (getAlignmentY): Wrote.
4464 (getComponentAt): Wrote.
4465 (getMaximumSize): Wrote.
4466 (invalidate): Wrote.
4467 (list(PrintStream,int)): Wrote.
4468 (list(PrintWriter,int)): Wrote.
4469 (getMinimumSize): Wrote.
4470 (getPreferredSize): Wrote.
4471 (printComponents): Wrote.
4472 (processContainerEvent): Look at containerListener, not
4474 (remove): Added event processing and peer destruction.
4475 (removeAll): Use remove.
4476 (removeNotify): Wrote.
4478 (validateTree): Wrote.
4480 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
4481 * java/awt/Label.java (addNotify): Do nothing if peer exists.
4482 * java/awt/Container.java (addNotify): Don't create Container
4484 * java/awt/Button.java (addNotify): Do nothing if peer exists.
4486 2000-07-30 Tom Tromey <tromey@cygnus.com>
4488 * java/awt/Container.java (remove(int)): Wrote.
4489 (remove(Component)): Wrote.
4490 (add(Component)): Wrote.
4491 (add(Component,int)): Wrote.
4493 (addNotify): Set our own peer.
4494 * java/awt/Scrollbar.java (listeners): Changed type.
4495 (Scrollbar): Don't initialize listeners.
4497 (setValue): Call setValues.
4498 (setMinimum): Likewise.
4499 (setMaxPriority): Likewise.
4500 (setVisibleAmount): Likewise.
4502 (setUnitIncrement): Forward to peer.
4503 (setLineIncrement): Call setUnitIncrement.
4504 (setPageIncrement): Call setBlockIncrement.
4505 (setBlockIncrement): Forward to peer.
4506 (addAdjustmentListener): Rewrote.
4507 (removeAdjustmentListener): Rewrote.
4508 (processAdjustmentEvent): Rewrote.
4509 (paramString): Wrote.
4510 * Makefile.in: Rebuilt.
4511 * Makefile.am (awt_java_source_files): Added Button.java.
4512 * java/awt/Button.java: New file.
4513 * java/awt/Toolkit.java (createLabel): Declare.
4514 (createButton): Likewise.
4515 (createScrollbar): Likewise.
4516 (createContainer): Likewise.
4517 * java/awt/Label.java (addNotify): Wrote.
4518 (setAlignment): Call setAlignment in the peer.
4519 (setText): Call setText in the peer.
4521 2000-07-28 Warren Levy <warrenl@cygnus.com>
4523 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
4524 NotSerializableException with just the class name.
4526 2000-07-26 Andrew Haley <aph@cygnus.com>
4528 * interpret.cc (continue1): Insert missing break into switch.
4530 2000-07-28 Warren Levy <warrenl@cygnus.com>
4532 * java/io/ObjectStreamException.java: Made constructors protected.
4534 2000-07-27 Tom Tromey <tromey@cygnus.com>
4536 * java/io/OutputStreamWriter.java (close): Only flush if not
4539 2000-07-27 Warren Levy <warrenl@cygnus.com>
4541 * mauve-libgcj: Activated serialization tests.
4542 * gcj/field.h (getModifiers): Mask off unknown flags.
4543 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
4544 spurious bits don't cause discrepancies.
4545 * java/io/ObjectOutputStream.java: Fixed typo in comment.
4546 * java/io/ObjectStreamClass.java: Fixed typos in comments.
4547 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
4548 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
4549 * java/lang/Throwable.java (serialVersionUID): New field.
4550 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
4551 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
4553 * java/lang/reflect/natMethod.cc: Ditto.
4554 * java/security/Key.java (serialVersionUID): Removed field for now.
4555 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
4556 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
4558 2000-07-22 Tom Tromey <tromey@cygnus.com>
4560 * java/awt/geom/RectangularShape.java (getPathIterator):
4563 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4565 * libjava/java/awt/image/ColorModel.java: New file, replaces the
4566 stub libjava/java/awt/ColorModel.java which was located in the
4568 * libjava/java/awt/image/ComponentColorModel.java: New file.
4569 * libjava/java/awt/image/ComponentSampleModel.java: New file.
4570 * libjava/java/awt/image/DataBuffer.java: New file.
4571 * libjava/java/awt/image/DataBufferByte.java: New file.
4572 * libjava/java/awt/image/DataBufferInt.java: New file.
4573 * libjava/java/awt/image/DataBufferUShort.java: New file.
4574 * libjava/java/awt/image/DirectColorModel.java: New file.
4575 * libjava/java/awt/image/PackedColorModel.java: New file.
4576 * libjava/java/awt/image/Raster.java: New file.
4577 * libjava/java/awt/image/SampleModel.java: New file.
4578 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
4580 * libjava/java/awt/image/IndexColorModel.java: New file.
4581 * libjava/java/awt/image/ImageConsumer.java: Removed import of
4582 java.awt.ColorModel stub.
4584 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
4585 * gnu/gcj/util/Buffers.java: New file, utility class.
4587 * libjava/Makefile.am: Updated to include new files.
4588 * libjava/Makefile.in: Rebuilt.
4590 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
4592 * java/io/StreamTokenizer.java: Merged with classpath.
4594 2000-07-20 Tom Tromey <tromey@cygnus.com>
4596 * Makefile.in: Rebuilt.
4597 * Makefile.am (awt_java_source_files): Updated for new files.
4598 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
4599 * java/awt/Label.java: New file.
4600 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
4601 (createIntersection, createUnion, getBounds2D): New methods.
4602 * java/awt/Scrollbar.java: New file.
4603 * java/awt/Shape.java: Updated to 1.2.
4604 * java/awt/geom/AffineTransform.java: New file.
4605 * java/awt/geom/Ellipse2D.java: New file.
4606 * java/awt/geom/NoninvertibleTransformException.java: New file.
4607 * java/awt/geom/PathIterator.java: New file.
4608 * java/awt/geom/Rectangle2D.java: New file.
4609 * java/awt/geom/RectangularShape.java: New file.
4610 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
4611 * java/awt/geom/IllegalPathStateException.java: New file.
4613 * scripts/showval.java: New file.
4615 * scripts/classes.pl (scan): Print inner classes properly.
4616 * gcj/javaprims.h: Updated class list.
4618 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
4619 initialize String fields for interpreted classes. Fixes bug
4620 reported by Hans Boehm.
4622 * java/io/File.java (getParentFile): New method, from Classpath
4623 via Oskar Liljeblad.
4625 * java/util/Vector.java (remove(Object)): Implemented.
4627 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
4629 * java/lang/natThrowable.cc (fillInStackTrace): Check for
4630 zero return from backtrace().
4632 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
4634 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
4636 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
4637 before calling notifyAll().
4639 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
4641 Add missing files from last check-in:
4642 * java/awt/image/ImageConsumer.java: New file.
4643 * java/awt/image/ImageProducer.java: New file.
4644 * java/awt/image/ImageObserver.java: New file.
4646 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4648 Merged implementation of java.applet from classpath:
4649 * java/applet/Applet.java: New file.
4650 * java/applet/AppletContext.java: New file.
4651 * java/applet/AppletStub.java: New file.
4652 * java/applet/AudioClip.java: New file.
4654 * Makefile.am: Added new java.applet classes.
4655 * Makefile.in: Rebuilt.
4657 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
4660 * java/util/ResourceBundle.java (getLocale): stub.
4661 * Makefile.am: Added new AWT classes.
4662 * Makefile.in: Rebuilt.
4663 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
4664 constructors. Fix toString() and paramString().
4665 * java/awt/AWTEventMulticaster.java: New class. Implemented.
4666 * java/awt/CheckboxGroup.java: New class.
4667 * java/awt/ColorModel.java: New class.
4668 * java/awt/Component.java: Added stubs for most methods. Implemented
4670 * java/awt/Container.java: ditto.
4671 * java/awt/ComponentOrientation.java: New class. Partly implemented.
4672 * java/awt/Cursor.java: ditto.
4673 * java/awt/Event.java: Fix paramString().
4674 * java/awt/EventQueue.java: New class. Implemented.
4675 * java/awt/Font.java: Added additional stub methods. Implemented
4677 * java/awt/FontMetrics.java: New class. Stubbed.
4678 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
4680 * java/awt/Insets.java: New class. Implemented.
4681 * java/awt/Menu.java: Add new methods. Partially implemented.
4682 * java/awt/MenuItem.java: Add new methods and fields. Partially
4684 * java/awt/MenuShortcut.java: New class. Implemented.
4685 * java/awt/Panel.java: New class. Placeholder.
4686 * java/awt/PopupMenu.java: New class. Stubbed.
4687 * java/awt/Rectangle.java: New class. Implemented.
4688 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
4689 * java/awt/event/ActionEvent.java: Implement paramString().
4690 * java/awt/event/AdjustmentEvent.java: Implement paramString().
4691 * java/awt/event/ComponentEvent.java: Implement paramString().
4692 * java/awt/event/ContainerEvent.java: Implement paramString().
4693 * java/awt/event/FocusEvent.java: Implement paramString().
4694 * java/awt/event/HierarchyBoundsAdapter.java: New class.
4695 * java/awt/event/HierarchyBoundsListener.java: New class.
4696 * java/awt/event/HierarchyEvent.java: New class.
4697 * java/awt/event/HierarchyListener.java: New class.
4698 * java/awt/event/InputMethodEvent.java: Implement paramString().
4699 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
4700 exception if !catchExceptions.
4701 * java/awt/event/ItemEvent.java: Implement paramString().
4702 * java/awt/event/KeyEvent.java: Implement paramString().
4703 * java/awt/event/MouseEvent.java: Implement paramString().
4704 * java/awt/event/PaintEvent.java: Implement paramString().
4705 * java/awt/event/TextEvent.java: Implement paramString().
4706 * java/awt/event/WindowEvent.java: Implement paramString().
4708 AWT Peer interfaces:
4709 * java/awt/peer/ButtonPeer.java: New file.
4710 * java/awt/peer/ListPeer.java: New file.
4711 * java/awt/peer/CanvasPeer.java: New file.
4712 * java/awt/peer/MenuBarPeer.java: New file.
4713 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
4714 * java/awt/peer/MenuComponentPeer.java: New file.
4715 * java/awt/peer/CheckboxPeer.java: New file.
4716 * java/awt/peer/MenuItemPeer.java: New file.
4717 * java/awt/peer/ChoicePeer.java: New file.
4718 * java/awt/peer/MenuPeer.java: New file.
4719 * java/awt/peer/ComponentPeer.java: Implemented.
4720 * java/awt/peer/PanelPeer.java: New file.
4721 * java/awt/peer/ContainerPeer.java: Implemented.
4722 * java/awt/peer/PopupMenuPeer.java: New file.
4723 * java/awt/peer/DialogPeer.java: New file.
4724 * java/awt/peer/ScrollPanePeer.java: New file.
4725 * java/awt/peer/FileDialogPeer.java: New file.
4726 * java/awt/peer/ScrollbarPeer.java: New file.
4727 * java/awt/peer/FontPeer.java: New file.
4728 * java/awt/peer/TextAreaPeer.java: New file.
4729 * java/awt/peer/FramePeer.java: Implemented.
4730 * java/awt/peer/TextComponentPeer.java: New file.
4731 * java/awt/peer/LabelPeer.java: New file.
4732 * java/awt/peer/TextFieldPeer.java: New file.
4733 * java/awt/peer/LightweightPeer.java: New file.
4734 * java/awt/peer/WindowPeer.java: Implemented.
4736 2000-07-06 Tom Tromey <tromey@cygnus.com>
4738 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
4739 Initialize static final String fields.
4741 2000-07-03 Tom Tromey <tromey@cygnus.com>
4743 * java/io/PrintWriter.java (print): Call write(String), not
4744 print(String). See PR libgcj/277.
4745 (print(String)): Use write, not out.write.
4747 2000-06-30 Tom Tromey <tromey@cygnus.com>
4749 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
4751 2000-06-27 Andrew Haley <aph@cygnus.com>
4753 * java/io/File.java (createTempFile): Close the FileDescriptor
4754 used to create a temp file. Fixes some of PR 203.
4755 * java/io/natFileDescriptorPosix.cc (open): Call garbage
4756 collection if we run out of file handles.
4758 2000-06-28 Warren Levy <warrenl@cygnus.com>
4760 * gnu/java/security/provider/Gnu.java: New file.
4761 * gnu/java/security/provider/SHA.java: New file.
4762 * gnu/java/security/provider/SHA1PRNG.java: New file.
4763 * Makefile.am: Added the above files.
4764 * Makefile.in: Rebuilt.
4766 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
4768 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
4770 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
4771 (destroyed_flag): Removed.
4772 (isDestroyed, removeGroup, removeThread): Test for parent == null.
4773 (activeCount): Added spec note.
4775 2000-06-27 Warren Levy <warrenl@cygnus.com>
4777 * java/security/Principal.java: New file.
4778 * Makefile.am: Added Principal.java.
4779 * Makefile.in: Rebuilt.
4781 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4783 * java/awt/event/MouseEvent.java: Fixed coordinate space
4786 2000-06-27 Tom Tromey <tromey@cygnus.com>
4788 * java/io/PushbackInputStream.java (read): If there are characters
4789 in the buffer, don't also call super.read().
4790 * java/io/PushbackReader.java (read): If there are characters in
4791 the buffer, don't also call super.read().
4793 * java/lang/Double.java (valueOf): Call parseDouble().
4795 2000-06-26 Warren Levy <warrenl@cygnus.com>
4797 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4798 (newVal): Renamed to newValue.
4799 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4800 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4801 (revokeNow): Renamed to invalidateRefs.
4802 * java/io/OptionalDataException.java: Updated FIXME.
4803 (eof): New placeholder field.
4805 * java/io/WriteAbortedException.java (message): Made transient.
4806 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4807 * java/lang/Throwable.java (stackTrace): Made transient.
4808 * java/net/InetAddress.java: Made Serializable.
4809 * java/security/KeyPair.java: Made Serializable.
4810 * java/security/Provider.java: Replaced with Classpath version that
4811 implements serialization and proper methods.
4812 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4813 (limits): Renamed to choiceLimits.
4815 2000-06-24 Tom Tromey <tromey@cygnus.com>
4817 * java/lang/natDouble.cc (parseDouble): Renamed from
4819 * java/lang/Double.java (parseDouble): Renamed from
4820 doubleValueOf. Now public.
4822 2000-06-23 Andrew Haley <aph@cygnus.com>
4824 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4825 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4827 2000-06-23 Tom Tromey <tromey@cygnus.com>
4829 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4830 * java/lang/natDouble.cc: Always include <alloca.h>.
4831 Fix for PR libgcj/267.
4833 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
4835 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4836 comply with classpath VM spec.
4837 (add(Group)): Rename to addGroup().
4838 * java/lang/Thread.java (Thread): Use addThread().
4839 * java/lang/natThread.cc (finish_): Use removeThread().
4841 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
4843 * java/lang/ThreadGroup.java: Merged with classpath.
4844 * prims.cc (_Jv_RunMain): Don't use `main_group'.
4845 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4847 * java/lang/Thread.java (Thread): Bootstrap initial thread from
4848 ThreadGroup.root if Thread.currentThread is null. Honour the
4849 ThreadGroup's max priority setting.
4851 2000-06-18 Tom Tromey <tromey@cygnus.com>
4853 * java/lang/natClass.cc (forName): Removed dead code. Initialize
4854 returned class. For PR gcj/260.
4856 2000-06-16 Tom Tromey <tromey@cygnus.com>
4858 Fix for PR libgcj/261:
4859 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4861 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4862 argument. (This is a patch from long ago that somehow went
4865 2000-06-15 Tom Tromey <tromey@cygnus.com>
4867 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4871 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
4873 Fix for PR java.lang/258:
4874 * prims.cc (_Jv_PrimClass): Set state of primitive class to
4875 JV_STATE_DONE, to prevent accidental initialization.
4876 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4877 _Jv_InterfaceAssignableFrom if target is an interface and source is an
4878 interface or an abstract class. Remove redundant initializeClass calls.
4879 Remove duplicate if_idt test.
4880 (_Jv_InterfaceAssignableFrom): New function.
4881 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4883 2000-05-31 Tom Tromey <tromey@cygnus.com>
4885 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4886 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4887 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4888 (NUM_OBJECT_METHODS): New define.
4889 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4890 `array_vtable' parameter. Added assertion.
4891 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4894 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
4896 * gcj/cni.h: Include <string.h>.
4897 * defineclass.cc: Include <alloca.h>.
4898 * interpret.cc: Ditto.
4899 * gij.cc: Include <stdlib.h>.
4901 2000-05-30 Tom Tromey <tromey@cygnus.com>
4903 * include/name-finder.h: Include <sys/wait.h>.
4904 (_Jv_name_finder::pid): Now of type `pid_t'.
4905 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4906 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4909 2000-05-24 Warren Levy <warrenl@cygnus.com>
4911 * java/io/ObjectOutputStream.java (writeObject): Use component type
4912 when writing arrays.
4915 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4917 Fix for PR libgcj/226:
4918 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4919 since this is an installed header.
4921 Fix for PR libgcj/228:
4922 * java/util/zip/ZipFile (getInputStream): Create inflater with
4925 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4926 with DataFormatException.
4928 2000-05-20 Tom Tromey <tromey@cygnus.com>
4930 * Makefile.in: Rebuilt.
4931 * Makefile.am (hack1): Removed.
4932 (awto_files): Likewise.
4933 (libgcjawt_la_SOURCES): Likewise.
4934 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4935 (libgcjawt_la_DEPENDENCIES): Likewise.
4936 (libgcjawt_la_LIBADD): Likewise.
4937 (libgcjawt_la_LDFLAGS): Likewise.
4938 (libgcjawt_la_LINK): Likewise.
4939 ($(awt_java_source_files:.java=.class)): Likewise.
4940 (libgcj.zip): Don't depend on AWT files.
4941 (MOSTLYCLEANFILES): Don't include AWT files.
4942 ($(awto_files)): Removed.
4943 (nat_headers): Removed AWT files.
4944 (cond_awt_java_source_files): Removed.
4945 (ordinary_java_source_files): Added awt_java_source_files.
4946 * libgcj.spec.in (*lib): Removed -lgcjawt.
4947 * configure: Rebuilt.
4948 * configure.in: Removed --enable-java-awt option.
4950 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4952 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4953 (ZipEntry): Copy the `name' field.
4954 (clone): Implement JDK1.2 method.
4955 (setCompressedSize): ditto.
4958 2000-05-19 Tom Tromey <tromey@cygnus.com>
4960 * java/io/BufferedWriter.java: Merged with Classpath.
4961 * java/io/BufferedOutputStream.java: Merged with Classpath.
4963 2000-05-16 Andrew Haley <aph@cygnus.com>
4965 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4966 build_ia64_frame_state.
4967 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4970 2000-05-15 Warren Levy <warrenl@cygnus.com>
4972 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4973 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4974 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4975 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4976 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4977 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4978 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4979 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4980 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4981 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4982 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4983 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4984 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4985 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4986 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4987 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4988 * gnu/gcj/io/NullOutputStream.java: Removed.
4989 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4990 * gnu/gcj/lang/ArrayHelper.java: Removed.
4991 * gnu/gcj/lang/ClassHelper.java: Removed.
4992 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4994 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4995 * gnu/java/beans/EmptyBeanInfo.java: New file.
4996 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4997 * gnu/java/beans/IntrospectionIncubator.java: New file.
4998 * gnu/java/beans/editors/ColorEditor.java: New file.
4999 * gnu/java/beans/editors/FontEditor.java: New file.
5000 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5001 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5002 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5003 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5004 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5005 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5006 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5007 * gnu/java/beans/editors/StringEditor.java: New file.
5008 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5009 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5010 * gnu/java/io/NullOutputStream.java: New file.
5011 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5012 * gnu/java/lang/ArrayHelper.java: New file.
5013 * gnu/java/lang/ClassHelper.java: New file.
5014 * gnu/java/lang/reflect/TypeSignature.java: New file.
5016 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5017 namespace back to the original Classpath gnu/java namespace.
5018 * Makefile.in: Rebuilt.
5020 * java/beans/Beans.java: Namespace change.
5021 * java/beans/EventSetDescriptor.java: Namespace change.
5022 * java/beans/Introspector.java: Namespace change.
5023 * java/beans/PropertyEditorManager.java: Namespace change.
5024 * java/io/ObjectInputStream.java: Namespace change.
5025 * java/io/ObjectOutputStream.java: Namespace change.
5026 * java/io/ObjectStreamClass.java: Namespace change.
5027 * java/io/ObjectStreamField.java: Namespace change.
5029 2000-04-21 Warren Levy <warrenl@cygnus.com>
5031 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
5032 now that compiler patch is available.
5033 Removed unneeded System.loadLibrary.
5034 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
5035 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
5037 2000-04-19 Andrew Haley <aph@cygnus.com>
5039 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
5040 and target classes have been initialized.
5042 2000-04-19 Andrew Haley <aph@cygnus.com>
5044 * java/lang/String.java: implement Serializable, Comparable.
5045 (compareTo (Object)): New method.
5047 2000-04-19 Warren Levy <warrenl@cygnus.com>
5049 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
5050 instead of getField to retrieve non-public field.
5051 (getSerialPersistantFields): Ditto.
5053 2000-04-18 Warren Levy <warrenl@cygnus.com>
5055 * mauve-libgcj: Turned off object serialization tests temporarily
5056 due to compiler error.
5058 2000-04-17 Warren Levy <warrenl@cygnus.com>
5060 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
5061 to avoid build problem.
5063 * mauve-libgcj: Turned on object serialization tests.
5065 2000-04-17 Tom Tromey <tromey@cygnus.com>
5067 * libgcj.spec.in (*lib): Added -lgcjawt.
5069 2000-04-17 Andrew Haley <aph@cygnus.com>
5071 * Makefile.am: Add new files:
5072 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
5074 * Makefile.in: Rebuilt.
5076 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
5077 interface that has no implementations.
5078 Check for an attempt to assign an abstract class to an interface.
5080 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
5081 if we fail to find MessageDigest.getInstance ("SHA").
5083 * gnu/gcj/io/SimpleSHSStream.java: New file.
5084 * gnu/gcj/io/natSimpleSHSStream.java: New file.
5085 * gnu/gcj/io/shs.cc: New file.
5086 * gnu/gcj/io/shs.h: new file.
5088 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
5091 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
5092 punctuation from the classname of an array element.
5094 * gcj/javaprims.h: Add SimpleDigestStream.
5096 2000-04-17 Andrew Haley <aph@cygnus.com>
5098 * java/lang/natClass.cc (getPrivateField): Make recursive calls
5099 to getPrivateField for superclasses.
5101 2000-04-14 Andrew Haley <aph@cygnus.com>
5103 * Makefile.am: Add new files:
5104 java/io/ObjectOutputStream$PutField.h,
5105 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
5106 java/io/natObjectOutputStream.cc
5107 * Makefile.in: Rebuilt.
5108 * gcj/Makefile.in: Rebuilt.
5109 * include/Makefile.in: Rebuilt.
5110 * java/lang/Class.h (getPrivateField): New method.
5111 (getPrivateMethod): Ditto.
5112 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
5113 and java::io::ObjectStreamClass our friends.
5114 * java/lang/natClass.cc (getPrivateField): New method.
5115 (getPrivateMethod): Ditto.
5116 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
5117 * gcj/javaprims.h: Add serialization classes.
5118 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
5119 (setByteField): Ditto.
5120 (setCharField): Ditto.
5121 (setDoubleField): Ditto.
5122 (setFloatField): Ditto.
5123 (setIntField): Ditto.
5124 (setLongField): Ditto.
5125 (setShortField): Ditto.
5126 (setObjectField): Ditto.
5127 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
5129 (getByteField): Ditto.
5130 (getCharField): Ditto.
5131 (getDoubleField): Ditto.
5132 (getFloatField): Ditto.
5133 (getIntField): Ditto.
5134 (getLongField): Ditto.
5135 (getShortField): Ditto.
5136 (getObjectField): Ditto.
5137 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
5139 (getSerialPersistantFields): Ditto.
5140 (getDefinedSUID): Ditto.
5141 * java/io/natObjectOutputStream.cc: New file.
5142 * java/io/natObjectInputStream.cc: New file.
5144 2000-04-13 Warren Levy <warrenl@cygnus.com>
5146 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
5147 problems. Revert to previous version to reproduce and when fixed.
5149 2000-04-13 Warren Levy <warrenl@cygnus.com>
5151 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
5152 * gnu/gcj/io/NullOutputStream.java: New file.
5153 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
5154 * java/io/BlockDataException.java: New file.
5155 * java/io/Externalizable.java: New file.
5156 * java/io/InvalidClassException.java: New file.
5157 * java/io/InvalidObjectException.java: New file.
5158 * java/io/NotActiveException.java: New file.
5159 * java/io/NotSerializableException.java: New file.
5160 * java/io/ObjectInput.java: New file.
5161 * java/io/ObjectInputStream.java: New file.
5162 * java/io/ObjectInputValidation.java: New file.
5163 * java/io/ObjectOutput.java: New file.
5164 * java/io/ObjectOutputStream.java: New file.
5165 * java/io/ObjectStreamClass.java: New file.
5166 * java/io/ObjectStreamConstants.java: New file.
5167 * java/io/ObjectStreamField.java: New file.
5168 * java/io/Replaceable.java: New file.
5169 * java/io/Resolvable.java: New file.
5170 * java/io/SerializablePermission.java: New file.
5171 * java/io/WriteAbortedException.java: New file.
5172 * java/security/BasicPermission.java: New file.
5173 * java/security/DigestOutputStream.java: New file.
5174 * java/security/Guard.java: New file.
5175 * java/security/Permission.java: New file.
5176 * java/security/PermissionCollection.java: New file.
5177 * Makefile.am: Added above files.
5178 * Makefile.in: Rebuilt.
5180 * java/beans/Beans.java (instantiate): Activated serialization code.
5181 * java/lang/SecurityManager.java (checkPermission): New method.
5183 2000-04-12 Warren Levy <warrenl@cygnus.com>
5185 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
5186 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
5187 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
5188 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
5189 * gnu/gcj/beans/editors/ColorEditor.java: New file.
5190 * gnu/gcj/beans/editors/FontEditor.java: New file.
5191 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
5192 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
5193 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
5194 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
5195 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
5196 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
5197 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
5198 * gnu/gcj/beans/editors/StringEditor.java: New file.
5199 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
5200 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
5201 * gnu/gcj/lang/ArrayHelper.java: New file.
5202 * gnu/gcj/lang/ClassHelper.java: New file.
5203 * java/beans/BeanDescriptor.java: New file.
5204 * java/beans/BeanInfo.java: New file.
5205 * java/beans/Beans.java: New file.
5206 * java/beans/Customizer.java: New file.
5207 * java/beans/DesignMode.java: New file.
5208 * java/beans/EventSetDescriptor.java: New file.
5209 * java/beans/FeatureDescriptor.java: New file.
5210 * java/beans/IndexedPropertyDescriptor.java: New file.
5211 * java/beans/IntrospectionException.java: New file.
5212 * java/beans/Introspector.java: New file.
5213 * java/beans/MethodDescriptor.java: New file.
5214 * java/beans/ParameterDescriptor.java: New file.
5215 * java/beans/PropertyChangeEvent.java: New file.
5216 * java/beans/PropertyChangeListener.java: New file.
5217 * java/beans/PropertyChangeSupport.java: New file.
5218 * java/beans/PropertyDescriptor.java: New file.
5219 * java/beans/PropertyEditor.java: New file.
5220 * java/beans/PropertyEditorManager.java: New file.
5221 * java/beans/PropertyEditorSupport.java: New file.
5222 * java/beans/PropertyVetoException.java: New file.
5223 * java/beans/SimpleBeanInfo.java: New file.
5224 * java/beans/VetoableChangeListener.java: New file.
5225 * java/beans/VetoableChangeSupport.java: New file.
5226 * java/beans/Visibility.java: New file.
5227 * java/beans/beancontext/BeanContext.java: New file.
5228 * java/beans/beancontext/BeanContextChild.java: New file.
5229 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
5230 * java/beans/beancontext/BeanContextChildSupport.java: New file.
5231 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
5232 * java/beans/beancontext/BeanContextEvent.java: New file.
5233 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
5234 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
5235 * java/beans/beancontext/BeanContextProxy.java: New file.
5236 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
5238 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
5239 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
5241 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
5242 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
5244 * java/beans/beancontext/BeanContextServices.java: New file.
5245 * java/beans/beancontext/BeanContextServicesListener.java: New file.
5246 * java/util/AbstractCollection.java: New file.
5247 * java/util/AbstractList.java: New file.
5248 * java/util/Arrays.java: New file.
5249 * Makefile.am: Added above files.
5250 * Makefile.in: Rebuilt.
5252 2000-04-11 Warren Levy <warrenl@cygnus.com>
5254 * java/awt/AWTError.java: New file.
5255 * java/awt/AWTEvent.java: New file.
5256 * java/awt/AWTException.java: New file.
5257 * java/awt/ActiveEvent.java: New file.
5258 * java/awt/Adjustable.java: New file.
5259 * java/awt/BorderLayout.java: New file.
5260 * java/awt/Color.java: New file.
5261 * java/awt/Component.java: New file.
5262 * java/awt/Container.java: New file.
5263 * java/awt/Dimension.java: New file.
5264 * java/awt/Event.java: New file.
5265 * java/awt/Font.java: New file.
5266 * java/awt/Frame.java: New file.
5267 * java/awt/Graphics.java: New file.
5268 * java/awt/IllegalComponentStateException.java: New file.
5269 * java/awt/Image.java: New file.
5270 * java/awt/ItemSelectable.java: New file.
5271 * java/awt/LayoutManager.java: New file.
5272 * java/awt/LayoutManager2.java: New file.
5273 * java/awt/Menu.java: New file.
5274 * java/awt/MenuBar.java: New file.
5275 * java/awt/MenuComponent.java: New file.
5276 * java/awt/MenuContainer.java: New file.
5277 * java/awt/MenuItem.java: New file.
5278 * java/awt/Paint.java: New file.
5279 * java/awt/PaintContext.java: New file.
5280 * java/awt/Point.java: New file.
5281 * java/awt/Rectangle.java: New file.
5282 * java/awt/Shape.java: New file.
5283 * java/awt/TextArea.java: New file.
5284 * java/awt/TextComponent.java: New file.
5285 * java/awt/Toolkit.java: New file.
5286 * java/awt/Transparency.java: New file.
5287 * java/awt/Window.java: New file.
5288 * java/awt/natToolkit.cc: New file.
5289 * java/awt/event/AWTEventListener.java: New file.
5290 * java/awt/event/ActionEvent.java: New file.
5291 * java/awt/event/ActionListener.java: New file.
5292 * java/awt/event/AdjustmentEvent.java: New file.
5293 * java/awt/event/AdjustmentListener.java: New file.
5294 * java/awt/event/ComponentAdapter.java: New file.
5295 * java/awt/event/ComponentEvent.java: New file.
5296 * java/awt/event/ComponentListener.java: New file.
5297 * java/awt/event/ContainerAdapter.java: New file.
5298 * java/awt/event/ContainerEvent.java: New file.
5299 * java/awt/event/ContainerListener.java: New file.
5300 * java/awt/event/FocusAdapter.java: New file.
5301 * java/awt/event/FocusEvent.java: New file.
5302 * java/awt/event/FocusListener.java: New file.
5303 * java/awt/event/InputEvent.java: New file.
5304 * java/awt/event/InputMethodEvent.java: New file.
5305 * java/awt/event/InputMethodListener.java: New file.
5306 * java/awt/event/InvocationEvent.java: New file.
5307 * java/awt/event/ItemEvent.java: New file.
5308 * java/awt/event/ItemListener.java: New file.
5309 * java/awt/event/KeyAdapter.java: New file.
5310 * java/awt/event/KeyEvent.java: New file.
5311 * java/awt/event/KeyListener.java: New file.
5312 * java/awt/event/MouseAdapter.java: New file.
5313 * java/awt/event/MouseEvent.java: New file.
5314 * java/awt/event/MouseListener.java: New file.
5315 * java/awt/event/MouseMotionAdapter.java: New file.
5316 * java/awt/event/MouseMotionListener.java: New file.
5317 * java/awt/event/PaintEvent.java: New file.
5318 * java/awt/event/TextEvent.java: New file.
5319 * java/awt/event/TextListener.java: New file.
5320 * java/awt/event/WindowAdapter.java: New file.
5321 * java/awt/event/WindowEvent.java: New file.
5322 * java/awt/event/WindowListener.java: New file.
5323 * java/awt/geom/Dimension2D.java: New file.
5324 * java/awt/geom/Point2D.java: New file.
5325 * java/awt/peer/ComponentPeer.java: New file.
5326 * java/awt/peer/ContainerPeer.java: New file.
5327 * java/awt/peer/FramePeer.java: New file.
5328 * java/awt/peer/WindowPeer.java: New file.
5329 * java/util/Collection.java: New file.
5330 * java/util/Comparator.java: New file.
5331 * java/util/Iterator.java: New file.
5332 * java/util/List.java: New file.
5333 * java/util/ListIterator.java: New file.
5334 * Makefile.am: Added above files.
5335 * Makefile.in: Rebuilt.
5337 2000-04-10 Warren Levy <warrenl@cygnus.com>
5339 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
5340 * java/lang/FirstThread.java: Ditto.
5341 * java/lang/StringBuffer.java: Ditto.
5342 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5344 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
5345 Special case handled in java.math.BigInteger.
5346 * java/math/BigInteger.java (divide): Handle the special case when
5347 dividing by 1 and the high bit of the dividend is set.
5348 (setShiftRight): Handle case when count == 0.
5350 2000-04-05 Andrew Haley <aph@cygnus.com>
5352 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
5355 2000-04-05 Andrew Haley <aph@cygnus.com>
5357 * sysdep/ia64.c (rse_address_add): Delete.
5358 (IS_NaT_COLLECTION_ADDR): Delete.
5359 (ia64_backtrace_helper): check for null unwind_info.
5361 * sysdep/ia64-frame.h: add calc_caller_bsp.
5363 * java/lang/natThrowable.cc (printRawStackTrace): Flush
5366 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
5367 (_Jv_remI): Likewise.
5368 (_Jv_divJ): Likewise.
5369 (_Jv_remJ): Likewise.
5371 * interpret.cc (continue1): Use divide subroutines to guarantee
5372 correct Java standard behaviour.
5373 Floating-point division should not abort; make it so.
5375 2000-03-29 Tom Tromey <tromey@cygnus.com>
5377 * configure: Rebuilt.
5378 * configure.in: Test against `libgcj_sjlj', not
5379 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
5380 to be set even when using sjlj.
5382 2000-03-24 Andrew Haley <aph@cygnus.com>
5384 * Makefile.am: Add file addr2name.awk.
5385 * Makefile.in: Rebuilt.
5386 * addr2name.awk: New file.
5387 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
5389 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
5392 2000-03-22 Andrew Haley <aph@cygnus.com>
5394 * configure.host: Add -funwind-tables for IA64.
5395 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
5396 * Makefile.in: Rebuilt.
5397 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
5398 * sysdep/ia64.c: New file.
5399 * sysdep/ia64-frame.h: New file.
5400 * configure.in: Add sysdep/ia64.c for ia64.
5401 * configure: Rebuilt.
5403 2000-03-17 Andrew Haley <aph@cygnus.com>
5405 * java/lang/natString.cc: Remove `register' keyword.
5406 interpret.cc: ditto.
5408 2000-03-16 Andrew Haley <aph@cygnus.com>
5410 * configure.host (ia64): Enable interpreter.
5412 2000-03-14 Hans Boehm <boehm@acm.org>
5414 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
5416 2000-03-14 Andrew Haley <aph@cygnus.com>
5418 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
5421 2000-03-10 Andrew Haley <aph@cygnus.com>
5423 * java/lang/ieeefp.h: Import latest version from fdlibm.
5425 2000-03-14 Andrew Haley <aph@cygnus.com>
5427 * prims.cc (_Jv_ThrowSignal): New function.
5428 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
5430 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
5431 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
5432 * include/ppc-signal.h: New file.
5434 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
5436 * java/lang/Thread.java: Declare `data' as Object, not RawData.
5437 * java/lang/natThread.java (initialize_native): Cast `data' to
5439 * gnu/gcj/RawData.java: Clarify documentation.
5441 From Gregory R. Warnes <warnes@biostat.washington.edu>:
5442 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
5443 `jarFile', not `jarFileURL'.
5445 2000-05-15 Andrew Haley <aph@cygnus.com>
5447 * include/ppc-signal.h: New file.
5449 2000-05-11 Tom Tromey <tromey@cygnus.com>
5451 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
5452 file headers, don't include `size' in the skip call.
5454 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
5456 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
5457 Avoid arrayCopy() call where possible. Update `count' _after_ calling
5459 (replace): Reimplemented. Fix javadoc.
5460 (reverse): Call ensureCapacity_unsynchronized().
5461 (StringBuffer (String)): Use DEFAULT_CAPACITY.
5463 (replace): Calculate length for arraycopy() correctly.
5465 2000-05-09 Tom Tromey <tromey@cygnus.com>
5467 * java/lang/StringBuffer.java (toString): Don't mark buffer as
5469 (insert(int,char[],int,int): New method.
5470 (delete): New method from Classpath.
5471 (deleteCharAt): Likewise.
5472 (substring): Likewise.
5473 (shared): No longer private.
5474 Added JavaDoc comments from Classpath.
5475 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
5478 2000-05-07 Tom Tromey <tromey@cygnus.com>
5480 * Makefile.in: Rebuilt.
5481 * Makefile.am (LIBLINK): New macro.
5482 (libgcj_la_LINK): Use it.
5483 (libgcjawt_la_LINK): Likewise.
5485 2000-05-06 Tom Tromey <tromey@cygnus.com>
5487 * Makefile.in: Rebuilt.
5488 * Makefile.am (libgcj.zip): Don't pass -L to javac.
5490 2000-05-05 Tom Tromey <tromey@cygnus.com>
5492 Fix for PR libgcj/220:
5493 * Makefile.in: Rebuilt.
5494 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
5495 (jv_convert_LDFLAGS): Likewise.
5496 (libgcj_la_LDFLAGS): Likewise.
5497 (GCJLINK): New macro.
5498 (jv_convert_LINK): Use it.
5499 (gij_LINK): Likewise.
5500 (libgcj_la_LINK): New macro.
5501 (libgcjawt_la_LINK): Likewise.
5503 2000-05-04 Tom Tromey <tromey@cygnus.com>
5505 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
5507 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
5511 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
5513 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
5514 (_Jv_IsAssignableFrom): Ditto.
5515 (_Jv_IsInstanceOf): Ditto.
5516 (_Jv_CheckCast): Ditto.
5517 (_Jv_CheckArrayStore): Ditto.
5518 * java/lang/Class.h (_Jv_InitClass): Ditto.
5519 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
5524 (_Jv_MonitorExit): Ditto.
5525 * boehm.cc (_Jv_MarkObj): Ditto.
5526 (_Jv_MarkObj): Ditto.
5527 (_Jv_MarkArray): Ditto.
5528 * prims.cc (_Jv_AllocObject): Ditto.
5529 (_Jv_NewObjectArray): Ditto.
5530 (_Jv_NewPrimArray): Ditto.
5531 (_Jv_Malloc): Ditto.
5532 (_Jv_Realloc): Ditto.
5533 (_Jv_MallocUnchecked): Ditto.
5539 2000-05-04 Tom Tromey <tromey@cygnus.com>
5541 * java/util/Locale.java (Locale): Don't explicitly check for
5543 * java/util/Hashtable.java (containsKey): Don't explicitly check
5546 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
5548 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
5550 * java/text/StringCharacterIterator.java
5551 (StringCharacterIterator): Don't check for null.
5552 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
5554 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
5555 check for null pointer.
5556 (leaveGroup): Likewise.
5557 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
5559 (setData): Likewise.
5560 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
5563 2000-04-28 Jakub Jelinek <jakub@redhat.com>
5565 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
5566 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
5567 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
5568 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
5569 -rpath for in-gcc builds.
5570 * Makefile.in: Rebuilt.
5572 2000-04-28 Tom Tromey <tromey@cygnus.com>
5574 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
5577 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
5579 * libjava/java/lang/String.java (toString): Remove `final' hack.
5581 2000-04-05 Tom Tromey <tromey@cygnus.com>
5583 Runtime support for PR gcj/2:
5584 * prims.cc (_Jv_ThrowNullPointerException): New function.
5585 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
5587 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
5589 * prims.cc (_Jv_NewObjectArray): Fix typo.
5591 2000-04-26 Tom Tromey <tromey@cygnus.com>
5593 * Makefile.in: Rebuilt.
5594 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
5596 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
5598 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
5601 2000-04-22 Anthony Green <green@cygnus.com>
5603 * include/jvm.h (__builtin_expect): Define as unused for now.
5604 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
5608 (_Jv_MonitorExit): Ditto.
5609 * boehm.cc (_Jv_MarkObj): Ditto.
5610 (_Jv_MarkObj): Ditto.
5611 (_Jv_MarkArray): Ditto.
5612 (_Jv_AllocBytes): Ditto.
5613 * prims.cc (_Jv_AllocObject): Ditto.
5614 (_Jv_NewObjectArray): Ditto.
5615 (_Jv_NewPrimArray): Ditto.
5616 (_Jv_Malloc): Ditto.
5617 (_Jv_Realloc): Ditto.
5618 (_Jv_MallocUnchecked): Ditto.
5624 * include/Makefile.in: Rebuilt.
5625 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
5627 2000-04-21 Tom Tromey <tromey@cygnus.com>
5629 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
5630 Yet another new version from Classpath.
5632 Fix for PR libgcj/15:
5633 * java/util/natGregorianCalendar.cc (_REENTRANT,
5634 _POSIX_PTHREAD_SEMANTICS): Don't define.
5635 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
5636 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
5638 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
5640 * configure: Rebuilt.
5641 * configure.in: If using POSIX threads, define _REENTRANT if
5642 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
5643 GETHOSTBYNAME_R_NEEDS_REENTRANT.
5645 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5646 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
5647 version from Classpath.
5649 Fix for PR libgcj/213:
5650 * Makefile.in: Rebuilt.
5651 * Makefile.am (gij_SOURCES): Added gij.cc.
5652 (EXTRA_gij_SOURCES): Removed.
5653 (gij_LDADD): Removed gij.lo.
5654 (gij_DEPENDENCIES): Likewise.
5655 ($(gij_OBJECTS)): Depend on nat_headers.
5657 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
5658 `setURL', not `url.set'.
5660 2000-04-20 Tom Tromey <tromey@cygnus.com>
5662 Fix for PR java.io/204:
5663 * java/io/PipedInputStream.java, java/io/PipedReader.java,
5664 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
5667 Fix for PR libgcj/212:
5668 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
5669 * include/jvm.h (_Jv_word, _Jv_word2): Define.
5670 * java/lang/Class.h (_Jv_word): Declare.
5672 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
5674 2000-04-19 Tom Tromey <tromey@cygnus.com>
5676 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
5677 doesn't have a loader.
5679 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
5681 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
5682 MAYBE_MARK to ptr_t, for compatibility with new GC version.
5684 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
5686 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
5688 (available): Initialize `where' to prevent bogus compiler warning.
5690 2000-04-12 Tom Tromey <tromey@cygnus.com>
5692 * java/lang/natString.cc (intern): Temporarily disable finalizer
5695 * java/lang/natString.cc (unintern): Added `obj' argument.
5696 (intern): Register finalizer for string.
5697 * java/lang/String.java (unintern): Now static; added obj
5700 2000-04-11 Tom Tromey <tromey@cygnus.com>
5702 * java/util/Vector.java (VectorEnumeration): Now `final'.
5703 * java/util/Hashtable.java (HashtableEntry): Now `final'.
5704 (HashtableEnumeration): Likewise.
5705 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
5706 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
5708 2000-04-10 Warren Levy <warrenl@cygnus.com>
5710 * java/io/ObjectStreamException.java: New file.
5711 * java/io/OptionalDataException.java: New file.
5712 * java/io/StreamCorruptedException.java: New file.
5713 * java/math/BigDecimal.java: New file.
5714 * java/sql/CallableStatement.java: New file.
5715 * java/sql/Connection.java: New file.
5716 * java/sql/DataTruncation.java: New file.
5717 * java/sql/DatabaseMetaData.java: New file.
5718 * java/sql/Date.java: New file.
5719 * java/sql/Driver.java: New file.
5720 * java/sql/DriverManager.java: New file.
5721 * java/sql/DriverPropertyInfo.java: New file.
5722 * java/sql/PreparedStatement.java: New file.
5723 * java/sql/ResultSet.java: New file.
5724 * java/sql/ResultSetMetaData.java: New file.
5725 * java/sql/SQLException.java: New file.
5726 * java/sql/SQLWarning.java: New file.
5727 * java/sql/Statement.java: New file.
5728 * java/sql/Time.java: New file.
5729 * java/sql/Timestamp.java: New file.
5730 * java/sql/Types.java: New file.
5731 * Makefile.am: Added above new files.
5732 * Makefile.in: Rebuilt.
5734 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
5735 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
5736 DatagramSocket constructor instead of null.
5738 2000-04-08 Anthony Green <green@cygnus.com>
5740 * include/posix-threads.h (_Jv_MutexUnlock): Replace
5743 2000-04-08 Anthony Green <green@cygnus.com>
5745 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
5746 (_Jv_MutexUnlock): Ditto.
5747 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
5748 (_Jv_MutexUnlock): Ditto.
5750 2000-04-08 Anthony Green <green@cygnus.com>
5752 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
5753 (ensureCapacity_unsynchronized): New private method.
5754 (append): Use ensureCapacity_unsynchronized.
5756 2000-04-08 Tom Tromey <tromey@cygnus.com>
5758 * Makefile.in: Rebuilt.
5759 * Makefile.am (awt_java_source_files): Added new files.
5760 * java/awt/IllegalComponentStateException.java: New file.
5761 * java/awt/ItemSelectable.java: New file.
5762 * java/awt/event/WindowEvent.java: Finished.
5763 * java/awt/event/TextEvent.java: Finished.
5764 * java/awt/event/ContainerEvent.java: New file.
5765 * java/awt/Component.java (getX, getY): New methods.
5766 * java/awt/event/PaintEvent.java: New file.
5767 * java/awt/event/MouseEvent.java: New file.
5768 * java/awt/ActiveEvent.java: New file.
5769 * java/awt/event/KeyEvent.java: Finished.
5770 * java/awt/event/ItemEvent.java: New file.
5771 * java/awt/Adjustable.java: New file.
5772 * java/awt/event/InputMethodEvent.java: New file.
5773 * java/awt/event/InputEvent.java: Finished.
5774 * java/awt/event/FocusEvent.java: New file.
5775 * java/awt/event/MouseMotionAdapter.java: New file.
5776 * java/awt/event/MouseAdapter.java: New file.
5777 * java/awt/event/KeyAdapter.java: New file.
5778 * java/awt/event/FocusAdapter.java: New file.
5779 * java/awt/event/ContainerAdapter.java: New file.
5780 * java/awt/event/ComponentEvent.java: Finished.
5781 * java/awt/event/AdjustmentEvent.java: New file.
5782 * java/awt/event/ComponentAdapter.java: New file.
5783 * java/awt/event/ActionEvent.java: Finished.
5784 * java/awt/event/MouseMotionListener.java: New file.
5785 * java/awt/event/MouseListener.java: New file.
5786 * java/awt/event/ItemListener.java: New file.
5787 * java/awt/event/InputMethodListener.java: New file.
5788 * java/awt/event/ContainerListener.java: New file.
5789 * java/awt/event/FocusListener.java: New file.
5790 * java/awt/event/ComponentListener.java: New file.
5791 * java/awt/event/AWTEventListener.java: New file.
5792 * java/awt/event/AdjustmentListener.java: New file.
5794 2000-04-08 Anthony Green <green@cygnus.com>
5796 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5797 check when we have to.
5799 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5802 * java/util/StringTokenizer.java: Minor optimization. Eliminates
5805 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5806 inline hasMoreElements.
5808 2000-04-05 Tom Tromey <tromey@cygnus.com>
5810 * configure: Rebuilt.
5811 * configure.in: Recognize --enable-java-awt.
5812 (AWT): New conditional.
5813 * Makefile.in: Rebuilt.
5814 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5816 (libgcjawt_la_SOURCES): New macro.
5817 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5818 (libgcjawt_la_DEPENDENCIES): Likewise.
5819 (libgcjawt_la_LIBADD): Likewise.
5820 (libgcjawt_la_LDFLAGS): Likewise.
5821 (libgcj.zip): Depend on cond_java_awt_source_files
5822 (cond_awt_java_source_files): New macro.
5823 (MOSTLYCLEANFILES): Added awto_files.
5824 (awto_files): New macro. Use where javao_files used.
5825 (nat_headers): Use cond_awt_java_source_files.
5827 2000-04-04 Tom Tromey <tromey@cygnus.com>
5829 * Makefile.in: Rebuilt.
5830 * Makefile.am (awt_java_source_files): Added AWTException.java.
5831 * java/awt/AWTException.java: New file.
5833 2000-04-03 Tom Tromey <tromey@cygnus.com>
5835 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5836 commentary from Alex.
5838 * Makefile.in: Rebuilt.
5839 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5842 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
5844 * configure: Rebuilt.
5845 * configure.in: Add --disable-jvmpi.
5846 * include/config.h.in: Rebuilt.
5847 * acconfig.h: Add ENABLE_JVMPI.
5849 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5850 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5851 (_Jv_JVMPI_Notify_THREAD_END): New define.
5852 (_Jv_JVMPI_Notify_THREAD_END): New define.
5853 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5854 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5855 (_Jv_JVMPI_Notify_THREAD_END): Declare.
5857 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5860 * java/lang/natThread.cc: Include JVMPI headers if necessary.
5861 (finish_): Generate JVMPI thread end events.
5862 (run_): Generate JVMPI thread start events.
5863 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5864 preloaded JNI library.
5865 Include JVMPI headers if necessary.
5866 (run): Generate JVMPI thread start events.
5868 * boehm.cc: Define GC_disable and GC_enable.
5869 (_Jv_DisableGC): New function.
5870 (_Jv_EnableGC): New function.
5871 (disable_gc_mutex): Declare.
5872 * nogc.cc (_Jv_DisableGC): New function.
5873 (_Jv_EnableGC): New function.
5875 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5876 (_Jv_JVMPI_Interface): Define.
5877 (jvmpiEnableEvent): New function.
5878 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5880 * include/jvmpi.h: New file.
5882 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
5884 * Makefile.in: New #defines and friends for Thread.h.
5885 * Makefile.am: Ditto.
5886 * posix-threads.cc: (struct starter): Remove `object'.
5887 (_Jv_CondWait): Use interruptable condition variables and new
5888 recursive mutexes. New return codes on interrupt or non-ownership
5890 (_Jv_CondNotify): Ditto.
5891 (_Jv_CondNotifyAll): Ditto.
5892 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5893 the target thread by signaling its wait condition.
5894 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5895 not the starter struct. Initialize wait_mutex and wait_cond.
5896 (_Jv_MutexLock): New recursive mutex implementation. Moved from
5898 (_Jv_MutexUnlock): Ditto.
5899 (really_start): Set info->data->thread from pthread_self() to work
5900 around a race condition. Destroy wait_mutex and wait_cond when run()
5902 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5903 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5905 startable_flag: New private field.
5906 (Thread): Initialize `startable_flag'.
5907 (toString): Check for null thread group.
5908 * java/lang/natThread.cc: (struct natThread): New fields
5909 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5910 (class locker): Removed.
5911 (initialize_native): Initialize `join_cond' and `join_mutex'.
5912 (interrupt): Now just calls _Jv_ThreadInterrupt().
5913 (join): Simplified. Just wait on the target thread's join condition.
5914 (finish_): Remove join list code. Unset thread group. Signal
5915 potential joiners by notifying the dying threads join_cond.
5916 (start): Check for illegal restarts.
5917 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5919 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5920 #defines and #ifdefs.
5921 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5922 `wait_mutex', `next'.
5923 (struct _Jv_ConditionVariable_t): Define as a struct instead of
5924 directly mapping to pthread_cond_t.
5925 (struct _Jv_Mutex_t): New recursive implementation.
5926 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5927 _Jv_HaveCondDestroy: Never define this for posix-threads.
5928 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5929 (_Jv_CondNotifyAll): Ditto.
5930 (_Jv_MutexLock): Ditto.
5931 (_Jv_MutexUnlock): Ditto.
5932 (_Jv_MutexInit): Changed to reflect new mutex implementation.
5933 (_Jv_MutexDestroy): Ditto.
5934 (_Jv_CondDestroy): Removed.
5935 (_Jv_PthreadGetMutex): Removed.
5936 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5937 error. Add a FIXME about this.
5938 (_Jv_CondNotifyAll): Ditto.
5939 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5940 _JV_NOT_OWNER on other errors. Add FIXME.
5942 2000-03-26 Tom Tromey <tromey@cygnus.com>
5944 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5946 (call): Don't throw exception here.
5948 2000-03-26 Tom Tromey <tromey@cygnus.com>
5950 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5951 * interpret.cc: Use SIZEOF_VOID_P.
5952 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5953 (_Jv_loadLong): Likewise.
5954 (_Jv_storeDouble): Likewise.
5955 * configure: Rebuilt.
5956 * configure.in: Check size of void*.
5958 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5960 2000-03-26 Hans Boehm <boehm@acm.org>
5962 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5963 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5965 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5966 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5967 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5968 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5970 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5971 (FFI_RAW_SIZE): Likewise.
5972 (_Jv_InterpMethod::ncode): Use them.
5973 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5974 STORED): Define differently on a 64 bit machine.
5975 (continue1): Use ffi_java_raw_call when appropriate.
5977 2000-03-24 Warren Levy <warrenl@cygnus.com>
5979 * java/math/BigInteger.java(divide): Handle the special case when
5980 dividing by 1 and the high bit of the dividend is set.
5981 (setShiftRight): Handle case when count == 0.
5983 2000-03-24 Warren Levy <warrenl@cygnus.com>
5985 * java/awt/Font.java(isBold): Fix syntax error.
5987 * java/awt/Frame.java(postEvent): ditto.
5988 * java/awt/Menu.java(postEvent): ditto.
5989 * java/awt/MenuBar.java(postEvent): ditto.
5990 * java/awt/Toolkit.java(init): Included a stub.
5992 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5994 * java/awt/Event.java: Add all the event type constants.
5995 (Event): Implemented constructors.
5996 (controlDown): Implemented.
5997 (metaDown): Implemented.
5998 (paramString): Stubbed.
5999 (shiftDown): Implemented.
6000 (toString): Implemented.
6001 (translate): Implemented.
6003 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6005 * java/lang/natClass.cc (isInstance): Initialize `this'.
6006 (isAssignableFrom): Initialize `this' and `klass'.
6007 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6008 implemented by any loaded class, so return false.
6009 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6010 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6012 2000-03-19 Warren Levy <warrenl@cygnus.com>
6014 * java/awt/Color.java: Specified java.io for Serializable.
6015 * java/awt/Toolkit.java: Imported java.net.URL.
6017 2000-03-19 Warren Levy <warrenl@cygnus.com>
6019 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6021 2000-03-16 Warren Levy <warrenl@cygnus.com>
6023 * java/awt/Color.java: New file.
6024 * java/awt/Graphics.java: New file.
6025 * java/awt/Image.java: New file.
6026 * java/awt/Paint.java: New file.
6027 * java/awt/PaintContext.java: New file.
6028 * java/awt/Transparency.java: New file.
6029 * java/util/Collection.java: New file.
6030 * java/util/Comparator.java: New file.
6031 * java/util/Iterator.java: New file.
6032 * java/util/List.java: New file.
6033 * java/util/ListIterator.java: New file.
6034 * Makefile.am: Added above new files.
6035 * Makefile.in: Rebuilt.
6037 * java/awt/Font.java (PLAIN): New field.
6039 (ITALIC): New field.
6040 (ROMAN_BASELINE): New field.
6041 (CENTER_BASELINE): New field.
6042 (HANGING_BASELINE): New field.
6046 (pointSize): New field.
6047 (Font): Implemented constructor.
6048 (isPlain): Implemented method.
6049 (isBold): Implemented method.
6050 (isItalic): Implemented method.
6051 (getName): Implemented method.
6052 (getStyle): Implemented method.
6053 (getSize): Implemented method.
6054 (getSize2D): Implemented method.
6056 * java/awt/Frame.java (getFont): Stubbed.
6057 (postEvent): Stubbed.
6059 * java/awt/Menu.java (postEvent): Stubbed.
6060 * java/awt/MenuBar.java (getFont): Stubbed.
6061 (postEvent): Stubbed.
6062 * java/awt/Toolkit.java (getImage): Added abstract method.
6064 2000-03-15 Tom Tromey <tromey@cygnus.com>
6066 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
6068 * prims.cc (win32_exception_handler): Reformatted.
6070 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
6071 (_Jv_HaveMutexDestroy): Likewise.
6073 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
6075 * java/io/natFileDescriptorWin32.cc: New file.
6076 * java/io/natFileWin32.cc: New file.
6077 * java/net/natInetAddress.cc: Added conditional inclusion of
6078 Windows / Winsock headers.
6079 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
6080 inclusion of Windows / Winsock headers.
6081 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
6082 Windows / Winsock headers.
6083 * include/win32-signal.h: New file.
6084 * include/win32-threads.h: New file.
6085 * win32-threads.cc: New file.
6086 * exception.cc (win32_get_restart_frame): New function.
6087 * prims.cc (win32_exception_handler): New function.
6088 (main_init) Performs Winsock initialisation.
6089 (main_init) Installs exeception handler.
6091 2000-03-14 Tom Tromey <tromey@cygnus.com>
6093 * jni.cc (mangled_name): Fixed assertion.
6094 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
6095 turned assert into actual failure.
6097 2000-03-09 Warren Levy <warrenl@cygnus.com>
6099 * java/security/Key.java(serialVersionUID): Set to 0 for now.
6100 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
6101 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
6103 2000-03-09 Warren Levy <warrenl@cygnus.com>
6105 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
6106 * java/security/DigestException.java: New file.
6107 * java/security/GeneralSecurityException.java: New file.
6108 * java/security/InvalidAlgorithmParameterException.java: New file.
6109 * java/security/InvalidKeyException.java: New file.
6110 * java/security/InvalidParameterException.java: New file.
6111 * java/security/Key.java: New file.
6112 * java/security/KeyException.java: New file.
6113 * java/security/KeyPair.java: New file.
6114 * java/security/KeyPairGenerator.java: New file.
6115 * java/security/KeyPairGeneratorSpi.java: New file.
6116 * java/security/NoSuchProviderException.java: New file.
6117 * java/security/PrivateKey.java: New file.
6118 * java/security/Provider.java: New file.
6119 * java/security/PublicKey.java: New file.
6120 * java/security/SecureRandom.java: New file.
6121 * java/security/Security.java: New file.
6122 * java/security/Signature.java: New file.
6123 * java/security/SignatureException.java: New file.
6124 * java/security/interfaces/DSAKey.java: New file.
6125 * java/security/interfaces/DSAParams.java: New file.
6126 * java/security/interfaces/DSAPrivateKey.java: New file.
6127 * java/security/interfaces/DSAPublicKey.java: New file.
6128 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
6129 * java/security/interfaces/RSAPrivateKey.java: New file.
6130 * java/security/interfaces/RSAPublicKey.java: New file.
6131 * java/security/spec/AlgorithmParameterSpec.java: New file.
6132 * java/security/spec/InvalidKeySpecException.java: New file.
6133 * java/security/spec/InvalidParameterSpecException.java: New file.
6134 * java/security/spec/KeySpec.java: New file.
6135 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
6136 * java/security/spec/RSAPrivateKeySpec.java: New file.
6137 * java/security/spec/RSAPublicKeySpec.java: New file.
6138 * Makefile.am: Added above java.security files.
6139 * Makefile.in: Rebuilt.
6141 * java/security/MessageDigest.java: Rewritten.
6142 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
6144 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6148 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
6150 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
6151 _Jv_PrepareConstantTimeTables.
6152 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
6153 classes should have an IDT, so don't return if klass is an array
6156 2000-03-08 Tom Tromey <tromey@cygnus.com>
6158 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
6159 of `void' to be created.
6161 2000-03-08 Warren Levy <warrenl@cygnus.com>
6163 * java/math/BigInteger.java(signum): Handle zero properly.
6165 2000-03-07 Tom Tromey <tromey@cygnus.com>
6167 * All files: Updated copyright information.
6168 * COPYING: New file.
6169 * COPYING.LIB: Removed.
6170 * LIBGCJ_LICENSE: We now use GPL + special exception.
6172 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6174 * resolve.cc (_Jv_SearchMethodInClass): New function.
6175 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
6176 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
6178 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
6180 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
6181 (struct _Jv_ifaces): New declaration.
6182 JV_CLASS: New macro definition.
6183 (getComponentType): Relocate below isArray() for inlining.
6184 (getModifiers): Declare `inline'.
6185 (getSuperclass): Ditto.
6187 (isPrimitive): Ditto.
6188 (_Jv_IsAssignableFrom): New prototype.
6189 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
6191 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
6192 Check for JV_STATE_DONE before invoking initializeClass().
6193 (_Jv_PrepareConstantTimeTables): New prototype.
6194 (_Jv_GetInterfaces): Ditto.
6195 (_Jv_GenerateITable): Ditto.
6196 (_Jv_GetMethodString): Ditto.
6197 (_Jv_AppendPartialITable): Ditto.
6198 (_Jv_FindIIndex): Ditto.
6199 depth, ancestors, idt: New class fields.
6201 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
6202 inline function `_Jv_IsAssignableFrom'. Use that function.
6203 (isInstance): Declare `inline'.
6204 (initializeClass): Get lock on class before checking `state'. Unlock
6205 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
6207 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
6208 (_Jv_IsAssignableFrom): New inline function. Test assignability using
6209 class->depth and ancestor table.
6210 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
6211 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
6212 _Jv_IsAssignableFrom.
6213 (_Jv_CheckArrayStore): Ditto.
6214 (_Jv_LookupInterfaceMethodIdx): New function.
6215 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
6216 (_Jv_PrepareConstantTimeTables): New function.
6217 (_Jv_IndexOf): Ditto.
6218 (_Jv_GetInterfaces): Ditto.
6219 (_Jv_GenerateITable): Ditto.
6220 (_Jv_GetMethodString): Ditto.
6221 (_Jv_AppendPartialITable): Ditto.
6222 iindex_mutex, iindex_mutex_initialized: New static fields.
6223 (_Jv_FindIIndex): New function.
6225 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
6227 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
6228 (_Jv_CheckArrayStore): Ditto.
6229 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
6230 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
6231 Moved to gcj/array.h.
6232 (_Jv_Realloc): New function.
6234 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
6236 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
6237 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
6238 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
6239 JvNewDoubleArray): Implementations moved from prims.cc and
6242 * gcj/javaprims.h (_Jv_Realloc): Prototype.
6244 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
6246 2000-03-06 Tom Tromey <tromey@cygnus.com>
6248 * jni.cc (MARK_NONE): New define.
6249 (MARK_USER): Likewise.
6250 (MARK_SYSTEM): Likewise.
6251 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
6253 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
6254 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
6255 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
6256 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
6258 (call): Use MARK_SYSTEM.
6259 (_Jv_GetJNIEnvNewFrame): New function.
6260 (_Jv_LookupJNIMethod): New function.
6261 (_Jv_JNI_PopSystemFrame): New function.
6262 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
6264 2000-03-05 Tom Tromey <tromey@cygnus.com>
6266 Fix for PR libgcj/43:
6267 * include/Makefile.in: Rebuilt.
6268 * include/Makefile.am (include_HEADERS): New define.
6270 2000-03-05 Anthony Green <green@redhat.com>
6272 * gcj/javaprims.h ("Java"): Remove FirstThread.
6274 * configure.host: Fix __NO_MATH_INLNES botch.
6276 * Makefile.in: Rebuilt.
6277 * Makefile.am (nat_source_files): Move natFirstThread.cc.
6278 (gnu/gcj/runtime/FirstThread.h): Moved.
6279 (ordinary_java_source_files): Move FirstThread.java.
6280 * prims.cc: Deal with FirstThread movement.
6282 (_Jv_RunMain): Ditto.
6284 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
6285 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
6287 2000-03-05 Warren Levy <warrenl@cygnus.com>
6289 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
6290 Handle null addresses.
6292 2000-03-04 Anthony Green <green@redhat.com>
6294 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
6297 2000-03-04 Anthony Green <green@redhat.com>
6299 * configure: Rebuilt.
6300 * configure.in (ZLIBTESTSPEC): New macro.
6301 (GCTESTSPEC): New macro.
6302 (LIBGCJTESTSPEC): New macro.
6303 * libgcj-test.spec.in: New file.
6305 2000-03-02 Tom Tromey <tromey@cygnus.com>
6307 * include/java-interp.h: Don't include MethodInvocation.h.
6308 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
6309 * Makefile.in: Rebuilt.
6310 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
6311 (ordinary_java_source_files): Don't mention
6312 MethodInvocation.java.
6313 * gnu/gcj/runtime/MethodInvocation.java: Removed.
6314 * interpret.cc (MethodInvocation::continue1): Removed.
6315 (run): Handle exceptions here.
6316 * java/lang/ClassLoader.java (defineClass1, defineClass2):
6318 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
6320 (defineClass2): Removed.
6322 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
6324 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
6326 (hack_call): Removed.
6328 * java/lang/Class.h (Class): Removed hackRunInitializers,
6330 * java/lang/natClass.cc (hackRunInitializers): Removed.
6331 (initializeClass): Catch exceptions here.
6332 Include ExceptionInInitializerError.h.
6333 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
6336 * java/lang/Object.h (Object): Don't mention hack12_6.
6337 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
6339 * java/lang/Object.java (hack12_6): Removed.
6341 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
6342 (start): Use run_, not run__.
6343 * java/lang/Thread.java (run_): Renamed from run__; old run_
6346 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
6347 (_Jv_JNI_EnsureLocalCapacity): Likewise.
6348 (_Jv_JNI_DefineClass): Likewise.
6349 (_Jv_JNI_ThrowNew): Likewise.
6350 (_Jv_JNI_AllocObject): Likewise.
6351 (_Jv_JNI_GetAnyMethodID): Likewise.
6352 (_Jv_JNI_CallAnyMethodV): Likewise.
6353 (_Jv_JNI_CallAnyMethodA): Likewise.
6354 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6355 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
6356 (_Jv_JNI_GetAnyFieldID): Likewise.
6357 (_Jv_JNI_NewString): Likewise.
6358 (_Jv_JNI_NewStringUTF): Likewise.
6359 (_Jv_JNI_GetStringUTFChars): Likewise.
6360 (_Jv_JNI_NewObjectArray): Likewise.
6361 (_Jv_JNI_NewPrimitiveArray): Likewise.
6362 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
6363 (_Jv_JNI_GetStringRegion): Likewise.
6364 (_Jv_JNI_GetStringUTFRegion): Likewise.
6365 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
6366 (_Jv_JNI_MonitorEnter): Likewise.
6367 (_Jv_JNI_MonitorExit): Likewise.
6368 (_Jv_JNI_ToReflectedField): Likewise.
6369 (_Jv_JNI_ToReflectedMethod): Likewise.
6370 (_Jv_JNI_RegisterNatives): Likewise.
6371 (_Jv_JNI_AttachCurrentThread): Likewise.
6372 (_Jv_JNI_DestroyJavaVM): Likewise.
6374 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6376 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
6377 error caused by the incorrect casting of a long to an int.
6379 2000-02-28 Mo DeJong <mdejong@cygnus.com>
6381 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
6382 SIGSEV caused by use of the wrong instance variable.
6384 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
6386 * java/io/File.java (File(String, String)): For dirPath, treat an
6387 empty String the same as `null'.
6389 2000-02-26 Anthony Green <green@cygnus.com>
6391 * gnu/gcj/io/MimeTypes.java: Test for null.
6393 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
6394 (JNI_GetCreatedJavaVMs): Remove compiler warning.
6396 * java/net/URLConnection.java: Update copyright notice.
6398 2000-02-25 Tom Tromey <tromey@cygnus.com>
6400 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
6403 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
6405 * java/net/URLConnection.java (initializeDateFormats): New
6407 (getHeaderFieldDate): Call initializeDateFormats if required.
6408 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
6410 Fix for PR libgcj/38.
6412 2000-02-24 Warren Levy <warrenl@cygnus.com>
6414 * java/math/BigInteger.java(ival): Made private.
6418 2000-02-20 Anthony Green <green@cygnus.com>
6420 * Makefile.in: Rebuilt.
6421 * Makefile.am (ordinary_java_source_files): Add
6422 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
6424 * scripts/MakeDefaultMimeTypes.java: New file.
6425 * scripts/mime.types: New file.
6426 * scripts/classes.pl: Moved from top level.
6427 * classes.pl: Moved to scripts directory.
6429 * java/net/URLConnection.java: Implement guessContentTypeFromName.
6431 * gnu/gcj/io/MimeTypes.java: New file.
6432 * gnu/gcj/io/DefaultMimeTypes.java: New file.
6434 2000-02-20 Tom Tromey <tromey@cygnus.com>
6436 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
6438 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
6440 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
6443 2000-02-18 Tom Tromey <tromey@cygnus.com>
6445 * include/jvm.h (_Jv_GetJavaVM): Declare.
6446 * include/java-interp.h (_Jv_GetFirstMethod): New function.
6447 (_Jv_MethodBase::get_method): New method.
6448 (_Jv_JNIMethod::set_function): New method.
6449 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
6450 (_Jv_JNI_RegisterNatives): New function.
6451 (_Jv_JNIFunctions): Updated for new functions.
6452 (_Jv_GetJavaVM): New function.
6453 (_Jv_JNI_GetJavaVM): Use it. Now static.
6454 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
6455 is already a Java thread but does not have a JNIEnv yet.
6457 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
6460 2000-02-17 Tom Tromey <tromey@cygnus.com>
6462 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
6465 2000-02-16 Tom Tromey <tromey@cygnus.com>
6467 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
6469 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
6470 (_Jv_JNI_NewObject): Likewise.
6471 (_Jv_JNI_NewObjectA): Likewise.
6472 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
6473 as "return" type to _Jv_CallAnyMethodA.
6474 (_Jv_JNI_CallAnyMethodA): Likewise.
6475 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
6477 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
6480 2000-02-15 Tom Tromey <tromey@cygnus.com>
6482 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
6484 (init_cif): Added `rtype_p' argument.
6485 * include/java-interp.h (class _Jv_MethodBase): Added
6487 (class _Jv_InterpMethod): Removed args_raw_size.
6488 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
6489 * jni.cc (call): Pass JNIEnv and (for static methods only) the
6490 class pointer as well as the ordinary arguments.
6492 * jni.cc (mangled_name): Skip leading `(' in signature.
6494 * jni.cc (add_char): Added missing `else'.
6496 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
6499 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
6503 * java/lang/natRuntime.cc (_load): Include library path with
6506 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
6509 * java/lang/natThread.cc (dumpStack): Removed.
6510 * java/lang/Thread.java (dumpStack): Implemented.
6512 2000-02-15 Tom Tromey <tromey@cygnus.com>
6514 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
6515 with `lib' for loadLibrary. Fixes PR gcj/150.
6517 2000-02-14 Warren Levy <warrenl@cygnus.com>
6519 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
6521 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
6525 (modPow): Rewritten to not use the naive, slow, brute force approach.
6526 (isProbablePrime): Implemented.
6527 (testBit): Implemented.
6528 (flipBit): Implemented.
6529 (getLowestSetBit): Implemented.
6531 2000-02-16 Anthony Green <green@redhat.com>
6533 * configure.host: Use the same options for i386 and i486 as we do
6536 2000-02-12 Tom Tromey <tromey@cygnus.com>
6538 * java/io/File.java (createTempFile): Use low bits from counter,
6541 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
6543 * THANKS: More thanks.
6545 2000-02-11 Tom Tromey <tromey@cygnus.com>
6547 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
6548 astore instruction. From Hans Boehm.
6550 2000-02-11 Warren Levy <warrenl@cygnus.com>
6552 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
6553 (BigInteger(String)): New constructor.
6554 (not): Rewritten using version from Kawa's BitOps class.
6555 (valueOf): New private methods from Kawa's BitOps class.
6562 (andNot): Implemented.
6563 (clearBit): Implemented.
6564 (setBit): Implemented.
6565 (bitCount): Implemented.
6566 (toByteArray): Implemented.
6568 2000-02-11 Tom Tromey <tromey@cygnus.com>
6570 * java/io/File.java (nextValue): Now synchronized.
6572 2000-02-10 Tom Tromey <tromey@cygnus.com>
6574 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
6575 * java/io/FileDescriptor.java (EXCL): New static field.
6576 * java/io/File.java (tmpdir): New static field.
6577 (createTempFile): New method.
6578 (nextValue): New method.
6579 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
6582 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
6583 (jboolean): Declare as an attributed int, not a bool.
6584 (_Jv_func): Declare differently for C.
6586 * gnu/gcj/jni/natNativeThread.cc: New file.
6587 * gnu/gcj/jni/NativeThread.java: New file.
6588 * java/lang/Thread.java (data): Now a RawData.
6589 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
6591 * Makefile.in: Rebuilt.
6592 * Makefile.am (java/lang/Thread.h): New target.
6593 (ordinary_java_source_files): Added NativeThread.java.
6594 (nat_source_files): Added natNativeThread.cc.
6595 * java/lang/natThread.cc: Include <jni.h>
6596 (struct natThread): Added `jni_env' field.
6597 (_Jv_GetCurrentJNIEnv): New function.
6598 (_Jv_SetCurrentJNIEnv): Likewise.
6599 (initialize_native): Initialize jni_env.
6601 * jni.cc (ThreadGroupClass): New define.
6602 (_Jv_JNI_InvokeFunctions): New structure.
6603 (JNI_GetCreatedJavaVMs): New function.
6604 (the_vm): New global.
6605 (JNI_GetDefaultJavaVMInitArgs): New function.
6606 Include NativeThread.h.
6607 (NativeThreadClass): New define.
6608 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
6609 (_Jv_JNI_DestroyJavaVM): New function.
6610 (_Jv_JNI_AttachCurrentThread): New function.
6611 (_Jv_JNI_DetachCurrentThread): New function.
6612 (_Jv_JNI_GetEnv): New function.
6613 (JNI_CreateJavaVM): New function.
6614 (_Jv_JNI_GetJavaVM): New function.
6615 (_Jv_JNIFunctions): Added entry for GetJavaVM.
6616 * include/jni.h (JavaVMAttachArgs): New structure.
6617 (JNI_EDETACHED): New define.
6618 (JNI_EVERSION): Likewise.
6619 (JavaVM): Define properly.
6620 (struct JNIInvokeInterface): New structure.
6621 (class _Jv_JavaVM): New class.
6622 (JNI_OnLoad, JNI_OnUnload): Declare.
6623 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
6624 JNI_GetCreatedJavaVMs): Declare.
6625 (JavaVMInitArgs): New typedef.
6626 (JavaVMOption): Likewise.
6627 (JNI_ERR): New define.
6630 2000-02-10 Andrew Haley <aph@cygnus.com>
6632 * interpret.cc: Don't include fdlibm.h.
6633 Replace #if with #ifdef throughout.
6634 Declare extern __ieee754_fmod.
6635 (continue1): Remove op_getfield, op_getstatic, op_putfield,
6637 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
6638 Search class hierarchy for superclass vtable.
6640 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
6641 off the end of a pointer list.
6643 * java/lang/natThread.cc (stop): Don't abort, throw an exception
6647 2000-02-09 Tom Tromey <tromey@cygnus.com>
6649 * java/lang/natRuntime.cc (_load): Call add_library.
6650 (loadLibraryInternal): Likewise.
6652 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
6653 iconv_close when handle is not NULL. Thanks to Andrew Haley.
6654 (Output_iconv::finalize): Likewise.
6656 2000-02-08 Tom Tromey <tromey@cygnus.com>
6658 * java/util/Properties.java (setProperty): New method.
6659 (store): New method.
6661 2000-02-07 Tom Tromey <tromey@cygnus.com>
6663 * java/lang/Runtime.java (_load): Declare.
6664 (load, loadLibrary): Wrote in terms of _load.
6665 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
6667 (loadLibrary): Likewise.
6669 (_load): New method.
6670 (loadLibrary, load): Removed.
6672 * jni.cc (ThrowableClass): New define.
6673 (_Jv_JNI_Throw): Check argument.
6674 (_Jv_JNI_ThrowNew): Likewise.
6675 (wrap_value): Don't wrap object if it is NULL.
6676 (_Jv_JNI_DefineClass): Use wrap_value.
6677 (_Jv_JNI_FindClass): Likewise.
6678 (_Jv_JNI_GetSuperclass): Likewise.
6679 (_Jv_JNI_ExceptionOccurred): Likewise.
6680 (_Jv_JNI_AllocObject): Likewise.
6681 (_Jv_JNI_GetObjectClass): Likewise.
6682 (_Jv_JNI_NewString): Likewise.
6683 (_Jv_JNI_NewStringUTF): Likewise.
6684 (_Jv_JNI_NewObjectArray): Likewise.
6685 (_Jv_JNI_GetObjectArrayElement): Likewise.
6686 (_Jv_JNI_NewPrimitiveArray): Likewise.
6687 (_Jv_JNI_ToReflectedField): Likewise.
6688 (_Jv_JNI_ToReflectedMethod): Likewise.
6689 (_Jv_JNI_AllocObject): Check argument.
6690 (_Jv_JNI_NewObjectV): Likewise.
6691 (_Jv_JNI_NewObject): Likewise.
6692 (_Jv_JNI_NewObjectA): Likewise.
6693 (_Jv_JNI_GetObjectClass): Likewise.
6694 (_Jv_JNI_GetField): Likewise.
6695 (_Jv_JNI_SetField): Likewise.
6697 * interpret.cc (PUSHL): Don't use expression statement.
6702 * jni.cc (add_char): Conditional on INTERPRETER.
6703 (mangled_name): Likewise.
6705 * include/java-interp.h (class _Jv_MethodBase): Conditional on
6707 (class _Jv_JNIMethod): Likewise.
6709 2000-02-04 Warren Levy <warrenl@cygnus.com>
6711 * Makefile.am: Added MPN.java and BigInteger.java.
6712 * Makefile.in: Rebuilt.
6713 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
6715 * java/math/BigInteger.java: New file. Based primarily on
6716 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
6718 2000-02-04 Tom Tromey <tromey@cygnus.com>
6720 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
6722 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
6723 if the method is native.
6724 * resolve.cc (ncode): Don't handle native methods.
6725 (_Jv_JNIMethod::ncode): New method.
6726 (_Jv_PrepareClass): Handle native methods.
6727 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
6728 Include AbstractMethodError.h.
6729 (add_char): New function.
6730 (mangled_name): Likewise.
6731 * include/java-interp.h (class _Jv_JNIMethod): New class.
6732 (class _Jv_MethodBase): New class.
6733 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
6734 (_Jv_InterpClass): Changed `interpreted_methods' field to type
6737 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
6738 * java/lang/natRuntime.cc (libraries_size, libraries_count,
6739 libraries): New globals.
6740 (add_library): New function.
6741 (_Jv_FindSymbolInExecutable): New function.
6743 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
6746 2000-02-04 Andrew Haley <aph@cygnus.com>
6748 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
6749 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
6750 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6751 printStackTrace to printRawStackTrace.
6753 2000-02-03 Tom Tromey <tromey@cygnus.com>
6755 * java/util/Calendar.java (toString): New method.
6756 * java/util/SimpleTimeZone.java (clone): New method.
6757 (toString): New method.
6758 * java/util/TimeZone.java (clone): New method.
6759 * java/text/SimpleDateFormat.java (clone): New method.
6760 * java/text/NumberFormat.java (clone): New method.
6761 (equals): New method.
6762 * java/text/Format.java (clone): New method.
6763 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
6765 (clone): New method.
6766 * java/text/DateFormat.java (clone): New method.
6767 * java/text/Collator.java (clone): New method.
6769 2000-02-03 Tom Tromey <tromey@cygnus.com>
6771 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6774 2000-02-01 Tom Tromey <tromey@cygnus.com>
6776 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
6777 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
6778 constructing the closure if the function is native.
6779 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
6780 a template function, #if'd out, or static.
6781 Include <java-interp.h>.
6783 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
6785 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6787 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
6788 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
6790 (wrap_value): New function.
6791 (_Jv_JNI_CallAnyMethodV): Use it.
6792 (_Jv_JNI_CallAnyMethodA): Likewise.
6793 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6794 (_Jv_JNI_GetStaticField): Likewise.
6796 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6797 (_Jv_JNI_GetStaticField): Likewise.
6799 2000-01-31 Tom Tromey <tromey@cygnus.com>
6801 * prims.cc (_Jv_MallocUnchecked): New function.
6802 (main_init): Call _Jv_JNI_Init.
6803 * include/jvm.h (_Jv_MallocUnchecked): Declare.
6804 (_Jv_JNI_Init): Declare.
6805 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6807 (_Jv_JNI_NewGlobalRef): New function.
6808 (_Jv_JNI_DeleteGlobalRef): New function.
6809 (_Jv_JNI_DeleteLocalRef): New function.
6810 (_Jv_JNI_conversion_call): Initialize and clear local reference
6812 (_Jv_JNI_NewLocalRef): New function.
6813 (struct _Jv_JNI_LocalFrame): New structure.
6814 (_Jv_JNI_PushLocalFrame): New function.
6815 (_Jv_JNI_EnsureLocalCapacity): New function.
6816 (FRAME_SIZE): New define.
6817 (_Jv_JNI_GetStringChars): Mark string, not characters.
6818 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6819 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6820 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6822 (_Jv_JNI_DefineClass): Make return value a local ref.
6823 (_Jv_JNI_FindClass): Likewise.
6824 (_Jv_JNI_GetSuperclass): Likewise.
6825 (_Jv_JNI_ExceptionOccurred): Likewise.
6826 (_Jv_JNI_AllocObject): Likewise.
6827 (_Jv_JNI_GetObjectClass): Likewise.
6828 (_Jv_JNI_CallAnyMethodV): Likewise.
6829 (_Jv_JNI_NewString): Likewise.
6830 (_Jv_JNI_NewStringUTF): Likewise.
6831 (_Jv_JNI_NewObjectArray): Likewise.
6832 (_Jv_JNI_GetObjectArrayElement): Likewise.
6833 (_Jv_JNI_ToReflectedField): Likewise.
6834 (_Jv_JNI_ToReflectedMethod): Likewise.
6835 (_Jv_JNIFunctions): Updated table for new functions.
6836 (_Jv_JNI_Init): New function.
6837 (mark_for_gc): Wrote.
6838 (unmark_for_gc): Wrote.
6839 * include/jni.h (struct JNINativeInterface): Removed name from
6840 PopLocalFrame parameter.
6841 (class _Jv_JNIEnv): Added `locals' field.
6843 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
6845 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6848 2000-01-30 Tom Tromey <tromey@cygnus.com>
6850 * include/config.h.in: Rebuilt.
6851 * acconfig.h (HAVE_ICONV): Define.
6852 * configure: Rebuilt.
6853 * configure.in: Check for `iconv' function.
6854 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6855 no specific encoder exists.
6856 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6857 no specific encoder exists.
6858 * Makefile.in: Rebuilt.
6859 * Makefile.am (convert_source_files): Mention Input_iconv.java and
6861 (nat_source_files): Added natIconv.cc.
6862 * gnu/gcj/convert/natIconv.cc: New file.
6863 * gnu/gcj/convert/Input_iconv.java: New file.
6864 * gnu/gcj/convert/Output_iconv.java: New file.
6866 2000-01-28 Tom Tromey <tromey@cygnus.com>
6868 * Makefile.in: Rebuilt.
6869 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6871 2000-01-26 Tom Tromey <tromey@cygnus.com>
6873 * gcj/method.h (JvNumMethods): Moved from Class.h.
6874 (JvGetFirstMethod): Likewise.
6875 * java/lang/Class.h (Object): Updated decl of
6876 _Jv_JNI_ToReflectedField.
6877 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6878 * Makefile.in: Rebuilt.
6879 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6880 argument of _Jv_JNI_ToReflectedField.
6881 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6883 (java/lang/reflect/Method.h): Likewise.
6884 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
6886 (jweak): New typedef.
6887 (struct JNINativeInterface): Correctly declare remaining entries.
6888 * jni.cc: Include Class.h, ClassLoader.h.
6889 (_Jv_JNI_FindClass): New function.
6890 (_Jv_JNI_DefineClass): New function.
6891 (_Jv_JNI_conversion_call): New function.
6892 (_Jv_JNI_FindClass): Use current class loader to find class.
6893 (_Jv_JNI_ExceptionCheck): New function.
6894 (_Jv_JNI_FromReflectedField): Now static.
6895 (MethodClass): New define.
6896 (_Jv_JNI_FromReflectedMethod): New function.
6897 (_Jv_JNI_ToReflectedMethod): Likewise.
6899 (_Jv_JNI_IsAssignableFrom): Renamed.
6900 (_Jv_JNI_GetStringRegion): New function.
6901 Include StringIndexOutOfBoundsException.h.
6902 (_Jv_JNI_GetStringUTFRegion): New function.
6903 (_Jv_JNIFunctions): Updated for new functions.
6904 (_Jv_JNI_GetPrimitiveArrayCritical): New function
6905 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6906 (_Jv_JNI_GetStringCritical): New function.
6907 (_Jv_JNI_ReleaseStringCritical): Likewise.
6908 (get_throwable): Removed.
6909 (GCJ_JV_JNIENV_FRIEND): Removed.
6910 (__GCJ_JNI_IMPL__): Define.
6913 * resolve.cc (get_ffi_type_from_signature): Handle case where
6916 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
6918 * interpret.cc (run): Don't call println.
6919 Don't include PrintStream.h.
6921 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6922 nameIndex. Use "jint" as type for boffset.
6923 * java/lang/Class.h (struct _Jv_Method): Made accflags a
6925 (Class): Likewise. Also changed type of method_count,
6926 vtable_method_count, size_in_bytes, field_count,
6927 static_field_count, interface_count.
6928 * gcj/array.h (__JArray): Made `length' a const jsize, not an
6931 2000-01-21 Tom Tromey <tromey@cygnus.com>
6933 * java/lang/reflect/natConstructor.cc (newInstance): Use
6935 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6936 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6937 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6940 (invoke): Use _Jv_CallAnyMethodA.
6942 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6943 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6945 (struct _Jv_Method): Added getNextMethod method.
6946 (JvNumMethods): New function.
6947 (JvGetFirstMethod): Likewise.
6948 * gcj/field.h (JvGetFirstStaticField): New function.
6949 (JvNumStaticFields): Likewise.
6950 (getNextField): Renamed from getNextInstanceField.
6951 (struct _Jv_Field): New method getClass.
6952 * jni.cc: Wrote many new functions.
6953 * include/jni.h (JNI_TRUE): Define.
6954 (JNI_FALSE): Likewise.
6955 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6956 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6957 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6958 (jfieldID, jmethodID): Likewise.
6959 (JNI_COMMIT, JNI_ABORT): New defines.
6960 (JNINativeMethod): New struct.
6961 (struct JNINativeInterface): Correctly declared more entries.
6962 (class _Jv_JNIEnv): Added `ex' member.
6963 (JNI_VERSION_1_1): New define.
6964 (JNI_VERSION_1_2): Likewise.
6966 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6967 getNextInstanceField.
6969 2000-01-20 Tom Tromey <tromey@cygnus.com>
6971 * resolve.cc (StringClass): Removed.
6972 * defineclass.cc (StringClass): Removed.
6974 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6978 2000-01-19 Tom Tromey <tromey@cygnus.com>
6980 * interpret.cc (PC_REGISTER_ASM): Removed.
6982 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6983 From Bryce McKinlay.
6985 * All files: Updated copyright to reflect Cygnus purchase.
6987 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6989 * configure: Rebuilt.
6990 * configure.in: Recognize --disable-interpreter.
6992 2000-01-18 Andrew Haley <aph@cygnus.com>
6994 * name-finder.cc (lookup): Check for dladdr function.
6995 acconfig.h (HAVE_DLADDR): Add.
6996 configure.in: Check for HAVE_DLADDR
6998 include/config.h.in: Rebuilt.
7000 2000-01-17 Andrew Haley <aph@cygnus.com>
7002 * prims.cc (_Jv_RunMain): Set the name of this executable.
7004 2000-01-17 Tom Tromey <tromey@cygnus.com>
7006 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7007 when backtrace can't be computed.
7009 * configure: Rebuilt.
7010 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7012 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7013 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7014 (_Jv_FindClassInCache): Likewise.
7015 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7016 (findSystemClass): Try to load class from compiled module.
7018 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7019 (loadLibrary): Likewise.
7020 (lt_preloaded_symbols): Define.
7021 (loadLibraryInternal): New method.
7022 * include/config.h.in: Rebuilt.
7023 * acconfig.h (USE_LTDL): Added.
7024 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7025 (INCLUDES): Added $(INCLTDL).
7026 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
7027 (libgcj_la_LIBADD): Likewise.
7028 * aclocal.m4, configure: Rebuilt.
7029 * configure.in: Added libltdl support.
7031 2000-01-15 Tom Tromey <tromey@cygnus.com>
7033 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
7035 2000-01-14 Andrew Haley <aph@cygnus.com>
7037 * java/lang/natThrowable.cc: New file.
7039 * java/lang/Throwable.java (fillInStackTrace): Make native.
7040 (printStackTrace): Call native method to do this.
7041 (Throwable): Call fillInStackTrace.
7042 (stackTrace): New variable.
7044 * include/jvm.h: Add _Jv_ThisExecutable functions.
7046 * prims.cc: (_Jv_execName): New variable.
7047 (catch_segv): Call fillInStackTrace.
7049 (_Jv_ThisExecutable): New functions.
7050 (JvRunMain): Set the name of this executable.
7052 * Makefile.am: Add java/lang/natThrowable.cc.
7054 * Makefile.in: Rebuilt.
7056 * acconfig.h: Add HAVE_PROC_SELF_EXE.
7058 * configure.in: Force link with __frame_state_for in
7059 FORCELIBGCCSPEC. Add new checks for backtrace.
7060 * include/config.h.in: Rebuilt.
7062 * name-finder.cc: New file.
7063 * include/name-finder.h: New file.
7065 2000-01-16 Anthony Green <green@cygnus.com>
7067 * java/lang/StringBuffer.java (StringBuffer): Don't special case
7070 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
7072 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
7074 2000-01-13 Tom Tromey <tromey@cygnus.com>
7076 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
7077 not system loader, as initiating loader.
7079 2000-01-11 Tom Tromey <tromey@cygnus.com>
7081 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
7082 HP/UX. From David Scott Urban.
7084 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
7086 * java/lang/natMath.cc (pow): Cast args to `double', not
7089 (IEEEremainder): Likewise.
7090 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
7091 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
7093 2000-01-09 Anthony Green <green@cygnus.com>
7095 * java/lang/natString.cc (init): Test for overflow condition
7096 during out of bounds check.
7097 (getChars): Throw StringIndexOutOfBoundsException, not
7098 ArrayIndexOutOfBoundsException.
7100 (regionMatches): Obey case option during string comparison.
7102 * configure.host (ligcj_interpreter): New variable. Enable
7103 interpreter by default on IA-32.
7104 * configure.in: Examine libgcj_interpreter.
7105 * configure: Rebuilt.
7107 2000-01-07 Tom Tromey <tromey@cygnus.com>
7109 * mauve-libgcj: Don't disable ClassTest.
7111 * java/lang/natClass.cc (getClasses): Wrote.
7113 2000-01-06 Tom Tromey <tromey@cygnus.com>
7115 * java/lang/natClass.cc (_getConstructors): Correctly check
7116 whether method name is the init name.
7117 (getMethod): Look at accflags on method in `klass', not `this'.
7119 2000-01-05 Tom Tromey <tromey@cygnus.com>
7121 * java/lang/natClass.cc (getMethod): Compute offset relative to
7122 `klass's methods table, not `this's table.
7124 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
7125 In unwrapping/widening case, check whether `k' is null, not
7126 whether it is primitive. Initialize `num' from `argelts', not
7127 `paramelts'. Correct create and pass arguments to ffi_call.
7128 Don't let presence of `this' argument affect index used to look in
7130 (COPY): Set appropriate element in `values' vector.
7132 * java/lang/natClass.cc: Include <gcj/method.h>.
7134 * java/lang/Class.h (_getMethods): Correctly declare as private,
7137 * java/lang/Class.h (_getMethods): Declare.
7138 * java/lang/Class.java (_getMethods): Declare.
7139 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
7140 (getDeclaredClasses): Always return empty array.
7141 (_getMethods): New method.
7142 (getMethods): Wrote.
7143 (getDeclaredMethod): Return `rmethod'.
7144 (finit_name): New global.
7145 (getDeclaredMethods): Check for finit_name.
7146 (_getMethods): Likewise.
7147 (getMethod): Only return public methods.
7149 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
7150 jboolean and select correct ffi type on that basis.
7151 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
7152 Constructor call always has `void' return type.
7154 2000-01-04 Tom Tromey <tromey@cygnus.com>
7156 * java/lang/Class.h (getSignature): Updated.
7157 * java/lang/Class.java (getSignature): Updated.
7158 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7160 (getConstructor): Ensure constructor is public.
7161 (_getConstructors): Check for public-ness of constructor when
7162 `declared' is false, not when it is true.
7164 2000-01-04 Warren Levy <warrenl@cygnus.com>
7166 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
7168 (receive): Set the sender's address in the DatagramPacket.
7170 2000-01-04 Tom Tromey <tromey@cygnus.com>
7172 * java/lang/reflect/natConstructor.cc (newInstance): Pass
7173 declaring class as return_type argument to
7174 _Jv_CallNonvirtualMethodA.
7175 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
7176 constructor case, create object and use it as `this' argument.
7177 * java/lang/Class.h (_getConstructors): Declare.
7178 (_getFields): Declare.
7179 * java/lang/Class.java (getConstructors): Wrote.
7180 (_getConstructors): New native method.
7181 (getDeclaredConstructors): Wrote.
7182 (_getFields): Declare new native method.
7183 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
7185 (getMethod): Work correctly when class is primitive.
7186 (getDeclaredMethods): Likewise. Compute offset using `method',
7188 (getDeclaredMethod): Likewise.
7189 (getConstructor): Wrote.
7190 (ConstructorClass): New define.
7191 (getDeclaredConstructor): Wrote.
7192 (_getConstructors): New method.
7193 (_getFields): New method.
7196 * Makefile.in: Rebuilt.
7197 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
7199 * prims.cc: Remove `#pragma implementation'.
7200 * gcj/array.h: Remove `#pragma interface'.
7202 * prims.cc (_Jv_equaln): New function.
7203 * java/lang/Class.java (getSignature): Declare.
7204 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
7205 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
7207 (getSignature): New method.
7208 (getDeclaredMethod): Wrote.
7210 Include StringBuffer.h.
7211 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
7212 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
7214 (getSignature): Declare.
7215 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
7216 (_Jv_equaln): Declare.
7217 (_Jv_CallNonvirtualMethodA): Declare.
7218 * Makefile.in: Rebuilt.
7219 * Makefile.am (nat_source_files): Added natConstructor.cc.
7220 (java/lang/reflect/Constructor.h): New target.
7221 * java/lang/reflect/natConstructor.cc: New file.
7222 * java/lang/reflect/Constructor.java (newInstance): Now native.
7223 (declaringClass): Renamed from decl_class.
7224 (offset): Renamed from index.
7225 (getType): New native method.
7226 (getModifiers): Now native.
7227 (getParameterTypes): Call getType if required.
7228 (hashCode): Include hash code from declaring class.
7229 (modifiers): Removed.
7230 (toString): Call getType if required.
7231 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
7232 * java/lang/reflect/natMethod.cc (hack_call): New method.
7233 Removed `#if 0' around FFI code.
7234 Include <gnu/gcj/RawData.h>.
7235 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
7236 IllegalArgumentException when argument object and class disagree.
7237 (_Jv_GetTypesFromSignature): New function.
7239 (ObjectClass): New define.
7240 (_Jv_CallNonvirtualMethodA): New function.
7241 * java/lang/reflect/Method.java (hack_trampoline): New method.
7242 (hack_call): New native method.