1 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3 * java/lang/Class.h (_Jv_Self): New union type.
4 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
5 Jeff Sturm and Fergus Henderson.
7 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9 * java/lang/ClassLoader.java: Remove dead code fragment.
11 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
13 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
15 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
17 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
19 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
20 * configure.host (EXCEPTIONSPEC): New.
21 * configure.in (EXCEPTIONSPEC): New.
24 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
26 * doc/*.texi: Remove generated documentation.
28 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
30 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
31 (performDelete): Fix #endif placement.
33 2001-04-27 Zack Weinberg <zackw@stanford.edu>
35 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
36 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
37 (_Jv_ThreadDestroyData): Use _Jv_Free.
38 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
41 2001-04-27 Tom Tromey <tromey@redhat.com>
43 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
45 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
47 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
49 * include/jni.h (struct JNINativeInterface): Fixed types in
50 Get/Set*ArrayRegion declarations.
51 (class _Jv_JNIEnv): Likewise.
53 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
55 * configure.in: Obtain THREADS with `gcc -v'.
58 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
61 * java/io/ObjectStreamClass.java (setClass): Calculate
62 serialVersionUID for local class and compare it against the UID
63 from the Object Stream. Throw InvalidClassException upon mismatch.
64 (setUID): Renamed to...
65 (getClassUID): this. Return the calculated class UID rather than
66 setting uid field directly.
67 (getDefinedSUID): Removed.
68 * java/io/ObjectInputStream.java (resolveClass): Use the
69 three-argument Class.forName().
70 * java/io/InvalidClassException (toString): Don't include classname in
73 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
75 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
76 Wrap use of inet_pton in HAVE_INET6.
78 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
80 java.security merge and ClassLoader compliance fixes.
82 * java/lang/Class.h (Class): Include ProtectionDomain.h.
83 New protectionDomain field.
84 (forName): Add initialize parameter. Fixes declaration to comply with
86 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
87 variant. Honour "initialize" flag.
88 (getProtectionDomain0): New method.
89 * java/lang/Class.java: Fix forName() declaration.
90 (getPackage): New method based on Classpath implementation.
91 (getProtectionDomain0): New native method decl.
92 (getProtectionDomain): New method.
93 * java/lang/ClassLoader.java (getParent): Now final.
94 (definedPackages): New field.
96 (defineClass): New variant with protectionDomain argument.
99 (findSystemClass): Now final.
100 (getSystemResourceAsStream): Remove redundant "final" modifier.
101 (getSystemResource): Remove redundant "final" modifier.
102 (getResources): Now final.
103 (protectionDomainPermission): New static field.
104 (unknownProtectionDomain): Ditto.
105 (defaultProtectionDomain): Ditto.
106 (getSystemClassLoader): Now non-native.
107 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
108 arguments for Class.forName().
109 * java/lang/Package.java: New file.
110 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
111 (instance): Static initialize singleton.
112 (findClass): Override this, not findSystemClass.
113 * java/lang/natClassLoader.cc (defineClass0): Set class's
114 protectionDomain field as specified.
115 (getSystemClassLoader): Removed.
116 (findClass): Renamed from findSystemClass. Call the interpreter via
117 URLClassLoader.findClass if loading class via dlopen fails.
119 * java/security/*.java: java.security import/merge with Classpath.
120 * java/security/acl/*.java: Likewise.
121 * java/security/interfaces/*.java: Likewise.
122 * java/security/spec/*.java: Likewise.
123 * java/net/NetPermission.java: Likewise.
124 * java/net/SocketPermission.java: Likewise.
125 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
127 * Makefile.am: Add new classes.
128 * Makefile.in: Rebuilt.
129 * gcj/javaprims.h: CNI namespace rebuild.
131 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
133 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
134 for libtool tests. Pre-create gnu/classpath/Configuration.java.
135 * configure: Rebuilt.
137 2001-04-21 Tom Tromey <tromey@redhat.com>
139 * Makefile.in: Rebuilt.
140 * Makefile.am (awt_java_source_files): Added Line2D.java.
141 * java/awt/geom/Line2D.java: Wrote.
143 * java/awt/Menu.java (addNotify): Wrote.
145 * java/awt/PopupMenu.java (addNotify): Implemented.
148 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
149 * java/awt/List.java (addNotify): Call super.addNotify.
150 * java/awt/Label.java (addNotify): Call super.addNotify.
151 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
152 * java/awt/Dialog.java (addNotify): Call super.addNotify.
153 * java/awt/Choice.java (addNotify): Call super.addNotify.
154 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
155 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
157 * java/awt/List.java (replaceItem): Notify peer.
159 * java/awt/geom/Rectangle2D.java
160 (Float.setRect(float,float,float,float)): New method.
162 * java/awt/event/ContainerEvent.java (getContainer): Now returns
165 * java/awt/RenderingHints.java (Key): Class now public.
167 * java/awt/Rectangle.java (Rectangle): Now implements
169 (getPathIterator): Removed.
171 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
174 * java/awt/FileDialog.java: Wrote.
176 * java/awt/EventQueue.java (isDispatchThread): Now public.
177 (invokeLater): Likewise.
179 * java/awt/Component.java (setCursor): Update peer.
180 (getFontMetrics): Use peer.
182 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
185 2001-04-20 Tom Tromey <tromey@redhat.com>
187 * java/awt/List.java: Wrote.
188 * java/awt/Dialog.java: Wrote.
190 2001-04-20 Warren Levy <warrenl@redhat.com>
192 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
193 * java/text/SimpleDateFormat.java
194 (indexInArray): Removed private method.
195 (processYear): Removed private method.
196 (parseLenient): Removed private method.
197 (parseLeadingZeros): Removed private method.
198 (parseStrict): Removed private method.
199 (expect): Added new private method.
200 (parse): Reverted to pre-Classpath merge version with minor fixes.
201 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
204 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
206 * java/io/File.java (normalizePath): New private method.
207 (File (String)): Use normalizePath().
208 (File (String, String)): Likewise.
210 * Makefile.am (libffi_files): Removed.
211 (libgcj.la): Link libffi as a convenience library instead of
212 refering to its object files directly.
213 * Makefile.in: Rebuilt.
215 2001-04-08 Per Bothner <per@bothner.com>
217 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
218 Recalculate hash, since Utf8Const's hash is only 16 bits.
220 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
221 bits of hash to calculate step for chaining.
223 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
224 when 2/3 full, rather than 3/4 full.
226 2001-04-06 Tom Tromey <tromey@redhat.com>
228 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
229 (wrap_value<T*>): New specialization.
230 (_Jv_JNI_PopLocalFrame): Update env->locals.
232 2001-04-05 Tom Tromey <tromey@redhat.com>
234 * libtool-version: Updated current.
236 2001-04-04 Andreas Jaeger <aj@suse.de>
238 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
239 * gcj/Makefile.in: Rebuilt.
240 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
241 * Makefile.in: Rebuilt.
242 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
243 * testsuite/Makefile.in: Rebuild.
244 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
245 * include/Makefile.in: Rebuild.
247 2001-04-02 Zack Weinberg <zackw@stanford.edu>
249 * testsuite/lib/libjava.exp: Correct typo: 'output from source
250 compiled test', not 'execution from source compiled test'.
251 Use UNTESTED, not XFAIL, for tests which are not run because
252 they depend on a previous test which failed.
254 2001-04-02 Richard Henderson <rth@redhat.com>
256 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
257 the same tree as gcc.
258 * configure: Rebuilt.
260 * exception.cc (_Jv_Throw): Clarify commentary.
262 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
264 * jni.cc (wrap_value<jclass>): New specialization.
266 2001-04-02 Tom Tromey <tromey@redhat.com>
268 * java/io/PrintStream.java (out): Removed field. Fixes PR
270 (write): Call flush, not out.flush, per spec.
271 (close): Flush output stream, per spec. Handle
272 InterruptedIOException.
273 (checkError): Likewise.
274 (flush, print, write): Handle InterruptedIOException per spec.
275 (PrintStream): Don't create BufferedOutputStream.
276 (work_bytes): New field.
277 (writeChars): Use work_bytes. Don't assume `out' is a
278 BufferedOutputStream.
280 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
282 * java/text/MessageFormat.java (setLocale): Added missing `else'.
285 2001-03-30 Tom Tromey <tromey@redhat.com>
287 * jni.cc (add_char): Correctly encode non-ascii characters.
288 (add_char): Define even when INTERPRETER not defined.
289 (mangled_name): Likewise.
290 (_Jv_GetJNIEnvNewFrame): Likewise.
291 (_Jv_LookupJNIMethod): Likewise.
293 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
295 * configure.host: Enable interpreter for PPC.
297 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
299 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
300 to "file.separator", "path.separator", and "java.io.tmpdir" property
302 * java/io/File.java: Likewise.
303 * java/io/natFile.cc (init_native): Likewise.
304 * java/io/natFileWin32.cc (init_native): Likewise.
306 2001-04-01 Per Bothner <per@bothner.com>
308 * java/lang/natString.cc (intern): If string's data does not point to
309 this String, make a fresh String that does.
311 * java/lang/natString.cc (unintern): Replace by static function.
312 * java/lang/String.java (unintern): Remove method.
314 2001-04-01 Per Bothner <per@bothner.com>
316 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
317 (finish): def.deflate needs to be called in a loop.
318 (inbuf, inbufLength): New private fields.
319 (write(int)): Use inbuf.
320 (write(byte[],int,int): Check if pending output in inbuf.
321 * ZipOutputStream.java: Don't use Deflater if stored.
322 Use a Checksum object directly, not via a CheckedOutputStream.
323 (uncompressed_size): New field,
324 (closeEntry): Only write data_directory if needed.
325 (write): If STORED, write directly.
326 Always update crc, and uncompressed_size.
327 (write_entry): Fix lots of protocol erors.
329 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
331 1.3-Compliant Implementation of java.io.File.
332 * java/lang/natSystem.cc (init_properties): Get "file.separator",
333 "path.separator", and "java.io.tmpdir" from the File class, instead
334 of setting them explicitly.
335 * java/io/File.java: Do not canonicalize paths for security manager
336 checks. Call init_native() from static initializer. Do not pass path
337 argument to native methods. New native method declarations. Some
338 security manager checks moved to checkWrite().
339 (equals): Check file system case sensitivity and act appropriatly.
340 (hashCode): Likewise.
341 (isHidden): New method implemented.
342 (performList): Changed prototype. Now takes a class argument specifying
343 the class of the returned array: Strings or File objects. Also added
345 (listFiles): New variants with "File" return type implemented.
346 (createTempFile): Use createNewFile(). Use maxPathLen.
347 (setReadOnly): New method implemented.
348 (listRoots): Likewise.
349 (compareTo): Likewise.
350 (setLastModified): Likewise.
351 (checkWrite): New method.
353 * java/io/natFile.cc: Various functions no longer take canonical path
355 (stat): Handle ISHIDDEN query.
356 (isAbsolute): Remove WIN32 cruft.
357 (performList): New arguments. Handle returning either File[] or String[]
358 arrays. Check with FileFilter or FilenameFilter arguments as
359 appropriate. Use an ArrayList, not a Vector, for the temporary list.
360 (performSetReadOnly): New method implemented.
361 (performListRoots): Likewise.
362 (performSetLastModified): Likewise.
363 (performCreate): Likewise.
364 (init_native): New initialization function.
365 * java/io/natFileWin32.cc: Various functions no longer take canonical
367 (stat): Add FIXME about ISHIDDEN query.
368 (performList): New arguments. Handle returning either File[] or String[]
369 arrays. Check with FileFilter or FilenameFilter arguments as
370 appropriate. Use an ArrayList, not a Vector, for the temporary list.
371 (performSetReadOnly): New. Stubbed.
372 (performListRoots): Likewise.
373 (performSetLastModified): Likewise.
374 (performCreate): Likewise.
375 (init_native) New initialization function.
376 * configure.in: Check for utime() and chmod().
377 * configure: Rebuilt.
378 * include/config.h.in: Rebuilt.
380 Resolves PR libgcj/1759.
382 2001-03-28 Richard Henderson <rth@redhat.com>
384 IA-64 ABI Exception Handling:
385 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
386 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
387 Remove EXCEPTIONSPEC.
388 * configure.host (libgcj_sjlj): Remove.
389 * configure.in (EXCEPTIONSPEC): Remove.
390 (enable-sjlj-exceptions): Detect if not specified.
391 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
392 what header we're looking for.
393 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
394 * Makefile.in, configure: Regenerate.
395 * exception.cc: Don't declare libgcc2 stuff.
396 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
397 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
398 (win32_get_restart_frame): Remove.
399 (struct java_exception_header): New.
400 (__gcj_exception_class): New.
401 (get_exception_header_from_ue): New.
402 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
403 (size_of_encoded_value, read_encoded_value): New.
404 (read_uleb128, read_sleb128, parse_lsda_header): New.
405 (get_ttype_entry, __gcj_personality_sj0): New.
406 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
408 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
410 * javax/naming/InitialContext.java (init): Fix typo.
411 (composeName): Remove unnecessary semicolon.
412 (addToEnvironment): Remove unnecessary semicolon.
413 (addToEnvironment): Use put() instead of add().
415 * javax/naming/InitialContext.java (InitialContext):
417 (destroySubcontext): Method doesn't return a result.
418 * javax/naming/Context.java: Import java.util.Hashtable.
419 * javax/naming/Name.java: Import java.util.Enumeration.
421 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
423 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
424 objects in subdirectories.
425 * Makefile.in: Rebuilt.
427 2001-03-25 Richard Henderson <rth@redhat.com>
429 * exception.cc (java_eh_info): Make value type jthrowable.
430 (_Jv_type_matcher): Remove now unneeded cast.
431 (_Jv_Throw): Make argument type jthrowable. Munge name
432 for SJLJ_EXCEPTIONS here ...
433 * gcj/cni.h: ... not here.
435 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
437 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
438 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
439 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
440 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
441 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
442 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
443 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
444 java/lang/natClass.cc, java/lang/natClassLoader.cc,
445 java/lang/natDouble.cc, java/lang/natObject.cc,
446 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
447 java/lang/natString.cc, java/lang/natSystem.cc,
448 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
449 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
450 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
451 java/util/zip/natInflater.cc:
452 Use throw, not JvThrow or _Jv_Throw.
454 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
456 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
457 paramater, bump it to 1.
458 * java/util/Hashtable.java (Hashtable): Likewise.
460 2001-03-23 Per Bothner <per@bothner.com>
462 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
463 check for errors, since we don't want to throw exception on
464 overflow/underflow. Instead, trim whitespace, and then check that
465 _strtod_r uses up all the rest of the string.
467 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
468 ancestors array is invalid for interfaces, so do that *after*
469 check that the target type is not an interface.
471 2000-03-23 Jeff Sturm <jsturm@one-point.com>
473 * prims.cc (_Jv_FindClassFromSignature): Check return of
474 recursive call. Do not abort on invalid signature; return NULL
477 2001-03-22 Tom Tromey <tromey@redhat.com>
479 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
480 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
482 * include/jvm.h (_Jv_ResolveField): Declare.
483 * include/java-interp.h (_Jv_ResolveField): Don't declare.
484 * resolve.cc (_Jv_ResolveField): No longer conditional on
487 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
489 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
491 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
492 to a temporary file, then invoke libtool with the -objectlist
494 (libgcjx.la): Likewise.
495 * Makefile.in: Rebuilt.
497 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
499 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
501 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
503 * jni.cc (add_char): Handle `.' like `/'.
505 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
507 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
508 initialize if exception_types is null.
509 * java/lang/reflect/Constructor.java: Likewise.
510 * java/lang/reflect/natConstructor.cc (getType): Initialize
511 exception_types to an empty Object array.
513 2001-03-21 Tom Tromey <tromey@redhat.com>
515 * configure: Rebuilt.
516 * configure.in (GCJFLAGS): Subst.
517 * Makefile.in: Rebuilt.
518 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
519 (gij_LDFLAGS): Likewise.
520 (JC1FLAGS): Added GCJFLAGS and removed -g.
522 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
523 read/write case. Fixes PR libgcj/2338.
525 2001-03-20 Warren Levy <warrenl@redhat.com>
527 * java/util/TimeZone.java: Sync up with Classpath. Includes new
528 and corrected SimpleTimeZone's for the timezones hash table.
530 2001-03-19 Per Bothner <per@bothner.com>
532 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
533 "canonicalize" "../../xxx" to "/xxx".
535 2001-03-19 Mark Wielaard <mark@klomp.org>
537 * java/util/ArrayList.java: Remove RCS keywords from comments
538 * java/util/BasicMapEntry.java: idem
539 * java/util/Dictionary.java: idem
540 * java/util/HashSet.java: idem
542 * java/util/EventObject.java: reindent
543 * java/util/Properties.java: idem
544 * java/util/SortedMap.java: idem
546 * java/util/Enumeration.java: Merge with Classpath
547 * java/util/EventListener.java: idem
548 * java/util/Observable.java: idem
549 * java/util/Observer.java: idem
550 * java/util/Stack.java: idem
552 2001-03-17 Tom Tromey <tromey@redhat.com>
554 * java/lang/natString.cc (rehash): Don't bother with memset;
555 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
557 (UNMASK_PTR): New macro.
558 (intern): Unmask pointer before returning it. Register finalizer
560 (unintern): Handle case where
561 (MASK_PTR): New macro.
562 (PTR_MAKSED): Likewise.
563 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
565 2001-03-01 Andrew Haley <aph@redhat.com>
567 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
568 stackTrace buffer to a correctly aligned pointer array.
570 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
572 * java/lang/Runtime.java (_exit): Declare new package-private native.
573 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
574 without a security manager check.
575 (exit): Call _exit after security check.
576 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
578 * java/lang/System.java (setSecurityManager): If a security manager
579 is already in place, call checkPermission.
580 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
581 throws an exception, try to deal with it gracefully.
582 * java/lang/ExceptionInInitializerError.java (printStackTrace):
583 Only try to print the subordinate stack trace if "exception" is set.
584 Print our class name first.
586 2001-03-08 Tom Tromey <tromey@redhat.com>
588 * java/io/ObjectStreamClass.java (setUID): Don't write interface
589 info for array classes.
590 Fixes PR libgcj/1971.
592 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
594 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
597 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
599 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
600 instead of the new JDK1.2 API. This is simpler and makes
601 back-porting the classes to JDK1.1 trivial.
602 (readObject): likewise.
604 2001-03-01 Per Bothner <per@bothner.com>
606 Changes merged from Kawa's gnu.math.
607 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
608 (rshift(int[],int[],int,int): Removed - not needed.
609 (gcd): Use rshift0 rather than rshift.
610 * java/math/BigInteger.java (setShiftRight): Likewise.
611 (divide): Simplify by using rshift0.
612 (divide): Zero-extend results if high-order bit set.
614 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
616 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
619 2001-02-23 Per Bothner <per@bothner.com>
621 Change to sometimes include class name in ClassFormatError message.
622 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
623 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
624 boolean instead of throwing ClassFormatError on failure.
625 (throw_class_format_error): Change static function to method.
626 (_Jv_ClassReader): New inline methods verify_identifier,
627 two overloads of verify_classname, verify_field_signature, and
628 verify_method_signature
629 * include/java-interp.h: Update declarations to return bool.
630 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
631 ClassFormatError since _Jv_VerifyClassName now returns bool.
633 2001-02-23 Per Bothner <per@bothner.com>
635 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
636 c++filt to select java-style output.
638 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
640 Fix for PR java/2040:
641 * java/util/HashMap.java (HashMap): Don't throw exception for
642 loadFactor > 1. Add exception messages.
643 * java/util/Hashtable.java (Hashtable): Likewise.
645 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
647 Disable libgcjx by default.
648 * configure.in: Add support for --enable-java-awt configure option.
649 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
650 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
651 * Makefile.in: Rebuilt.
652 * configure: Rebuilt.
654 2001-02-20 Tom Tromey <tromey@redhat.com>
656 * java/io/PipedWriter.java (flush): Throw exception if stream
658 * java/io/OutputStreamWriter.java (write): Throw exception if
660 (writeChars): Don't throw exception if stream closed.
661 * java/io/CharArrayWriter.java (closed): New field.
663 (flush): Throw exception if stream closed.
664 (reset): Synchronize on correct lock. Allow stream to be
666 (toCharArray, toString, writeTo): Synchronize.
667 (write): Throwe exception if stream closed.
668 * java/io/BufferedWriter.java (close): Clear `buffer'.
669 (flush): Throw IOException if stream is closed.
672 2001-02-16 Tom Tromey <tromey@cygnus.com>
674 * java/lang/ThreadGroup.java (activeCount): Only include threads
676 (enumerate): Likewise.
678 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
680 * java/lang/Integer.java (getInteger): Return default argument if
681 property is not set. Don't call decode with null argument.
682 * java/lang/Long.java (getLong): Likewise.
684 * java/io/CharArrayReader.java (CharArrayReader): Throw
685 IllegalArgumentException if constructor arguments are illegal.
686 (ready): Return false if no more characters can be read.
687 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
689 2001-02-17 Mark Wielaard <mark@klomp.org>
691 * java/util/TimerTask.java: New version from Classpath.
693 2001-02-17 Mark Wielaard <mark@klomp.org>
695 Remerge with Classpath
696 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
697 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
698 (readByte): Use convertToByte().
699 (readChar): Use convertToChar().
700 (readInt): Use convertToInt().
701 (readLong): Use convertToLong().
702 (readShort): Use convertToShort().
703 (readUnsignedByte): Use convertToUnsignedByte().
704 (readUnsignedShort): Use convertToUnsignedShort().
705 (readUTF): Use convertToUTF().
707 (convertToBoolean): Resurrected.
708 (convertToByte): Ditto.
709 (convertToChar): Ditto.
710 (convertToInt): Ditto.
711 (convertToLong): Ditto.
712 (convertToShort): Ditto.
713 (convertToUnsignedByte): Ditto.
714 (convertToUnsignedShort): Ditto.
715 (convertToUTF): Ditto.
717 2001-02-17 Mark Wielaard <mark@klomp.org>
721 2001-02-17 Mark Wielaard <mark@klomp.org>
723 * java/io/DataInputStream.java: update copyright notice
724 * java/io/PrintWriter.java: idem
725 * java/io/Reader.java: idem
726 * java/io/StreamTokenizer.java: idem
727 * java/io/StringReader.java: idem
728 * java/lang/reflect/ReflectPermission.java: idem
730 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
732 * java/util/TreeSet.java (clone): Made subclass safe, use
733 super.clone(), not new.
734 * java/util/TreeMap.java (clone): Likewise.
736 * java/util/TreeMap.java (nil): Made non-final.
737 (clone): Create new nil node for copy.
739 * java/util/HashSet.java (clone): Made subclass safe, use
740 super.clone(), not new.
742 2001-02-14 Andrew Haley <aph@redhat.com>
744 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
747 2001-02-15 Anthony Green <green@redhat.com>
749 * defineclass.cc: Don't include alloca.h.
750 (prepare_pool_entry): Convert alloca to __builtin_alloca.
751 * interpret.cc (run_normal): Ditto.
753 * java/lang/natDouble.cc (parseDouble): Ditto.
755 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
757 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
759 * java/util/Collections.java (ReverseComparator): New static class.
760 (reverseOrder): Return static instance of ReverseComparator.
762 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
763 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
764 Rectangle.clone(), not Object.clone().
766 * java/util/HashSet.java (clone): Remove try/catch.
768 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
769 * java/util/Collection.java: Likewise.
770 * java/util/Comparator.java: Likewise.
771 * java/util/Dictionary.java: Likewise.
772 * java/util/Iterator.java: Likewise.
773 * java/util/ListIterator.java: Likewise.
774 * java/util/Map.java: Likewise.
775 * java/util/Set.java: Likewise.
777 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
779 * java/util/TreeMap.java: New file.
780 * java/util/TreeSet.java: New file.
781 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
782 * Makefile.in: Rebuilt.
783 * java/util/HashSet.java (clone): Use constructor instead of calling
785 * java/util/SortedSet.java: Sync with classpath.
786 * java/util/HashMap.java (hash): Use if statement instead of ternary,
789 * java/lang/natClass.cc (getSignature): Don't try to dereference
790 param_types if it is null. Instead, take this to mean "no parameters".
791 * java/lang/TreeMap.java (TreeIterator.next): Throw
792 NoSuchElementException in preference to ConcurrentModificationException.
793 (TreeIterator.remove): Throw IllegalStateException in preference to
794 ConcurrentModificationException.
795 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
796 throw a NoSuchElementException.
797 (SubMap.lastKey): Likewise.
799 2001-02-13 Tom Tromey <tromey@redhat.com>
801 * java/io/PipedReader.java (ready): Throw IOException if pipe
803 * java/io/FilterReader.java (close): Don't clear `in'.
804 * java/io/CharArrayReader.java (mark): Throw IOException if stream
806 (read, ready, reset, skip): Added exception message.
807 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
808 Perform checkStatus check inside synchronized block.
810 2001-02-13 Tom Tromey <tromey@redhat.com>
812 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
814 2001-02-13 Tom Tromey <tromey@redhat.com>
816 Fix for PR libgcj/1351:
817 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
819 Include Thread.h and InterruptedIOException.h.
821 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
823 * java/io/BlockDataException.java: Removed.
824 * java/io/ObjectInputStream.java (readObject): Throw
825 StreamCorruptedException, not BlockDataException.
826 * Makefile.am: Remove BlockDataException.
827 * Makefile.in: Rebuild.
829 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
830 Tom Tromey <tromey@redhat.com>
832 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
835 2001-02-09 Tom Tromey <tromey@redhat.com>
837 * java/util/Timer.java: New version from Classpath.
839 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
841 * java/lang/Double.java (doubleToRawLongBits): Now native.
842 * java/lang/Float.java (floatToRawIntBits): Likewise.
843 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
844 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
846 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
848 * java/io/File.java (java.net): Imported.
849 (getAbsoluteFile): Added.
850 (getCanonicalPath): Likewise.
853 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
855 * java/lang/Byte.java: Remove redundant instanceof and null checks.
856 * java/lang/Integer.java: Likewise.
857 * java/lang/Long.java: Likewise.
858 * java/lang/Short.java: Likewise.
859 * java/lang/Double.java: Likewise.
860 (doubleToRawLongBits): New method.
861 * java/lang/Float.java: As above.
862 (floatToRawIntBits): New method.
864 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
865 IOException if stream closed.
867 2001-02-08 Tom Tromey <tromey@redhat.com>
869 * java/lang/Float.java (parseFloat): New method.
871 2001-02-08 Tom Tromey <tromey@redhat.com>
873 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
874 * java/io/InputStreamReader.java (ready, read): Throw IOException
875 if stream has been closed.
877 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
879 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
880 Change sources.redhat.com and sourceware.cygnus.com references to
883 2001-02-07 Tom Tromey <tromey@redhat.com>
885 Fix for PR libgcj/1906:
886 * java/text/MessageFormat.java (setLocale): Use named class
889 (format(Object,StringBuffer,FieldPosition)): Special case if
890 argument is an Object[].
892 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
894 * java/util/Arrays.java: Removed "cmp" methods.
895 (qsort): Don't use "cmp".
898 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
900 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
901 sort. Fix for PR java/1895.
903 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
905 * configure.host: Use sjlj-exceptions for Alpha.
907 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
909 * libgcj.spec.in: Don't force static libgcc into the executable.
910 * configure.in (FORCELIBGCCSPEC): Removed.
911 * configure: Rebuilt.
913 2001-01-31 Tom Tromey <tromey@redhat.com>
915 * Makefile.in: Rebuilt.
916 * Makefile.am (LTCXXCOMPILE): New macro.
918 2001-01-26 Andrew Haley <aph@redhat.com>
920 (INIT_FPE): Use a direct system call to set the handler.
922 2001-01-27 Richard Henderson <rth@redhat.com>
924 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
926 2001-01-27 Tom Tromey <tromey@redhat.com>
928 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
929 native interface structure.
931 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
933 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
935 (read (byte[], int, int)): Only call readNextBlock() if the block
936 buffer would actually be overrun. Increment blockDataPosition.
937 (callReadMethod): Propagate exceptions from invocation target.
938 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
939 exceptions from invocation target.
941 2001-01-26 Tom Tromey <tromey@redhat.com>
943 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
944 to internal representation.
945 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
946 _Jv_FindClassFromSignature.
948 2001-01-26 Warren Levy <warrenl@redhat.com>
950 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
951 and timezone if they are available on the system.
953 2001-01-24 Tom Tromey <tromey@redhat.com>
955 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
957 2001-01-24 Tom Tromey <tromey@redhat.com>
959 * Makefile.in: Rebuilt.
960 * Makefile.am (c_source_files): Added sf_fabs.c.
961 * java/lang/sf_fabs.c: New file.
963 2001-01-19 Warren Levy <warrenl@redhat.com>
965 * java/text/SimpleDateFormat.java (format): Compute hour for cases
966 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
967 correctly. Adjust properly from 0-23 clock hour.
969 2001-01-17 Mark Wielaard <mark@klomp.org>
971 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
973 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
975 * java/lang/Class.h (isInterface): Move implementation from
976 natClass.cc. Declare inline.
977 (Class): Add default constructor.
978 * java/lang/Object.h: Update comments.
979 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
980 initialize superclass, saving a call if super is already initialized.
982 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
984 * prims.cc (init_prim_class): Deleted.
985 (DECLARE_PRIM_TYPE): Rewritten.
986 * java/lang/Class.h (stdio.h): Include removed.
987 (stddef.h): Included.
988 (java/lang/reflect/Modifier.h): Likewise.
989 (Class): Contructor now takes arguments, initializes fields.
990 (initializePrim): Prototype deleted.
991 * java/lang/natClass.cc (initializePrim): Deleted.
993 2001-01-16 Warren Levy <warrenl@redhat.com>
995 * java/math/BigInteger.java: Update Copyright year.
997 2001-01-16 Hans Boehm <hans_boehm@hp.com>
999 * java/math/BigInteger.java (setShiftRight): Only do negative shift
1002 2001-01-14 Mark Wielaard <mark@klomp.org>
1003 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1004 (decode): Merge comments with Classpath, don't throw Exception
1006 2001-01-12 Tom Tromey <tromey@redhat.com>
1008 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1012 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1013 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1014 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1015 * gnu/awt/gtk/GtkLabelPeer.java: New file.
1016 * gnu/awt/gtk/GtkButtonPeer.java: New file.
1018 * java/lang/natSystem.cc: Include locale.h if it exists.
1019 * configure: Rebuilt.
1020 * configure.in: Check for locale.h.
1022 2001-01-11 Tom Tromey <tromey@redhat.com>
1024 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1025 (Cursor(int), getPredefinedCursor): Throw exception if argument
1028 2001-01-03 Tom Tromey <tromey@redhat.com>
1030 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1031 (getLocationOnScreen): Wrote.
1033 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
1035 * Makefile.am: Re-enable dependencies.
1036 * Makefile.in: Rebuilt.
1038 2001-01-10 Warren Levy <warrenl@redhat.com>
1040 * java/math/BigDecimal.java (divide): Fixed comment.
1042 2001-01-10 Warren Levy <warrenl@redhat.com>
1044 Fix for PR libgcj/1596:
1045 * java/math/BigDecimal.java (divide): Check newScale for validity.
1046 Ensure that BigInteger.pow() is called with a non-negative value.
1047 (setScale (int)): New public method.
1048 (setScale (int,int)): New public method.
1050 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
1052 Fix for PR libgcj/1338:
1053 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1054 commentChar. Fixed typos in comments.
1056 2001-01-08 Warren Levy <warrenl@redhat.com>
1058 Fix for PR libgcj/1411:
1059 * Makefile.am: Removed java/util/natTimeZone.cc.
1060 * Makefile.in: Rebuilt.
1061 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1062 missing localized timezone names.
1063 * java/lang/System.java (getDefaultTimeZoneId): New private method.
1064 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1065 (init_properties): Set user.timezone property.
1066 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1067 default timezone names; removed non-standard ones. Use standard
1069 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1071 * java/util/TimeZone.java: Add standard ID names per JCL; removed
1073 (getDefaultTimeZoneId): Removed.
1075 * java/util/natTimeZone.cc: Removed.
1077 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1079 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1080 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1081 (_Jv_GetArrayClass): New inline function.
1082 (arrayclass): New field.
1083 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1084 _Jv_GetArrayElementFromElementType.
1085 (_Jv_NewPrimArray): Ditto.
1086 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1087 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1088 Set Modifier::ABSTRACT.
1089 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1090 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1091 Now synchronized. Array classes are now referenced from
1092 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1093 Set array classes' accessibility flags correctly. Optimize so that
1094 all array classes share the same IDT.
1095 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1096 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1097 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1098 in superclasses from overwriting classes own fields.
1099 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1100 Modifier::isAbstract().
1101 (null_idt): New static field.
1102 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1104 (_Jv_IndexOf): Made inline.
1105 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1107 2001-01-08 Tom Tromey <tromey@redhat.com>
1109 Fix for PR java/1586:
1110 * Makefile.in: Rebuilt.
1111 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1113 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
1115 * Makefile.am: Use the new "-M -MF" option for generating dependencies
1116 from the c++ compiler.
1117 * Makefile.in: Rebuilt.
1119 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
1121 All files with updated copyright.
1122 * prims.cc (class _Jv_PrimClass): Removed.
1123 (init_prim_class): New function.
1124 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1125 `_Jv_PrimClass' in primitive type declarations. Assign to the
1126 value returned by `init_prim_class.'
1127 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1128 primitive type declarations.
1129 (JvPrimClass): Cast to `jclass' removed.
1130 * java/lang/Class.h (Class): New constructor.
1131 (Class): New copy constructor.
1132 (initializePrim): New prototype.
1133 (_Jv_PrimClass): Field removed.
1134 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1135 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1136 (class java::lang::Object): `finalize' moved up front.
1137 * java/lang/natClass.cc
1138 (isAssignableFrom): Turned outline.
1139 (isInstance): Likewise.
1140 (isInterface): Likewise, fixed indentation.
1141 (initializePrim): New function.
1143 2001-01-07 Anthony Green <green@redhat.com>
1145 * Makefile.am (texinfo): Add texinfo target for generating texinfo
1147 * Makefile.in: Rebuilt.
1149 * scripts/TexinfoDoclet.java: New file.
1151 * doc/java-applet.texi, doc/java-lang-reflect.texi,
1152 doc/java-awt-color.texi, doc/java-lang.texi,
1153 doc/java-awt-datatransfer.texi, doc/java-math.texi,
1154 doc/java-awt-event.texi, doc/java-net.texi,
1155 doc/java-awt-geom.texi, doc/java-security-spec.texi,
1156 doc/java-awt-image.texi, doc/java-security.texi,
1157 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1158 doc/java-text.texi, doc/java-beans-beancontext.texi,
1159 doc/java-util-jar.texi, doc/java-beans.texi,
1160 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1161 doc/java-lang-ref.texi: New files.
1163 2001-01-07 Anthony Green <green@redhat.com>
1165 * java/net/URLConnection.java (setDoOutput): URLConnection's may
1166 be used for both input and output, so don't clear doInput.
1168 * java/lang/StringBuffer.java: Fix comments.
1170 2001-01-06 Anthony Green <green@redhat.com>
1172 * java/beans/PropertyDescriptor.java: Fix comment.
1173 * java/io/PushbackReader.java: Fix comment.
1174 * java/io/ObjectStreamClass.java: Fix comment.
1175 * java/io/DataInputStream.java: Fix comment.
1176 * java/io/PipedInputStream.java: Fix comments.
1177 * java/io/PipedReader.java: Fix comments.
1178 * java/sql/DatabaseMetaData.java: Fix comments.
1180 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
1182 * java/io/PipedReader: Synchronize on "lock" instead of this.
1184 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
1186 * java/lang/Thread.java: Update comment.
1188 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1189 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1190 * java/io/PipedReader: New implementation based on new
1192 * java/io/PipedWriter: Updated to match new PipedReader.
1194 2001-01-03 Tom Tromey <tromey@redhat.com>
1196 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1197 (getViewportSize): Insets include scrollbar size.
1198 (doLayout): Finished.
1199 (getScrollPosition): Wrote.
1200 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1202 2001-01-02 Tom Tromey <tromey@redhat.com>
1204 * java/awt/ScrollPane.java: Wrote.
1205 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1208 * java/awt/Panel.java (Panel()): Fixed.
1210 * java/awt/Component.java (isShowing): Return false if no peer
1211 exists, and true if component is visible and no parent exists.
1212 (getLocationOnScreen): Wrote.
1213 (getPreferredSize): Removed FIXME comment.
1214 (getMinimumSize): Likewise.
1215 (getAlignmentX, getAlignmentY): Wrote.
1217 (requestFocus): Wrote.
1218 (transferFocus): Wrote.
1219 (findNextFocusComponent): New method.
1220 (hasFocus()): Wrote.
1221 (checkImage): Wrote.
1222 (enableEvents): Call setEventMask on the peer.
1224 * java/awt/Container.java (list): Use super.list() to print self.
1225 (findNextFocusComponent): New method.
1226 (setLayout): Call invalidate.
1227 (findComponentAt): Wrote.
1229 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1231 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1232 the correct versions of various linuxthreads functions get linked.
1233 * Makefile.in: Rebuilt.
1234 * java/lang/natThread.cc (finalize_native): New static function. Call
1235 _Jv_ThreadDestroyData.
1236 (initialize_native): Register finalizer for "data".
1237 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1238 (_Jv_ThreadDestroyData): New prototype.
1239 * include/win32-threads.h: Ditto.
1240 * include/no-threads.h: Ditto.
1241 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1242 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1243 move mutex and condition variable destroy code from:
1244 (really_start): ...here.
1245 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1246 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1247 (_Jv_ThreadDestroyData): Implemented.
1248 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1249 (_Jv_AllocArray): Ditto.
1251 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1253 * java/sql/DriverManager.java (getConnection): Don't set user/password
1256 2000-12-27 Warren Levy <warrenl@redhat.com>
1258 Fix for PR libgcj/1358:
1259 * java/lang/System.java: Update Copyright date properly.
1260 * java/util/Calendar.java: Fix typo in comment.
1261 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1262 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1263 initialize times. Spec says to set H:M:S values to zero only if
1265 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1266 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1267 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1268 timezones and GMT offsets, being careful to account for units of
1269 milliseconds vs. seconds.
1271 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1273 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1274 not be assigned to Object.
1276 Fix for PR libgcj/1516:
1277 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1279 (can_widen): Declared inline. Remove redundant checks for void
1280 arguments and char->short conversion. Add special case for boolean
1282 (ffi_type): Declared inline.
1283 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1285 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1287 * java/sql/SQLWarning.java: Fixed typo in comment.
1289 2000-12-26 Tom Tromey <tromey@redhat.com>
1291 * java/awt/MenuItem.java (paramString): Now protected.
1293 * java/awt/MenuShortcut.java: Implements Serializable.
1295 * java/awt/MenuBar.java: Rewrote from scratch.
1297 * java/awt/MenuComponent.java (removeNotify): Wrote.
1298 Implements Serializable.
1300 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1303 * java/awt/CheckboxMenuItem.java: Wrote.
1305 2000-12-25 Tom Tromey <tromey@redhat.com>
1307 * java/awt/MenuContainer.java: Fixed typo.
1309 * Makefile.in: Rebuilt.
1310 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1311 * java/awt/SystemColor.java: New file.
1313 * java/awt/Color.java (rgba): Now package-private.
1315 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1317 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1320 * java/awt/MenuItem.java (addNotify): New method.
1321 (MenuItem(String,MenuShortcut)): New constructor.
1322 (setLabel): Notify peer of change.
1323 (setEnabled): Likewise.
1325 * java/awt/GridLayout.java (toString): New method.
1327 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1328 (FlowLayout): Check for LEADING and TRAILING.
1329 (setAlignment): Likewise.
1330 (layoutContainer): Handle component orientation.
1332 * java/awt/Component.java (orientatin): New field.
1333 (setComponentOrientation): Wrote.
1334 (getComponentOrientation): Wrote.
1336 * java/awt/Event.java (Event): Implements Serializable.
1337 (consumed): New field for serialization.
1338 * java/awt/Dimension.java (Dimension): Implements Serializable.
1339 * java/awt/Cursor.java (Cursor): Implements Serializable.
1340 * java/awt/Container.java (Container): No longer abstract.
1342 * java/awt/Choice.java: Wrote.
1343 * java/awt/Checkbox.java: Wrote.
1344 * java/awt/ItemSelectable.java: Documented.
1345 * java/awt/CheckboxGroup.java: Wrote.
1347 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1349 (getSize): Likewise.
1351 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1353 * java/io/FileDescriptor.java: Initialize fd to -1.
1354 Remove default constructor.
1356 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1358 * java/lang/mprec.h: Change C9X reference to refer to C99.
1360 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1362 * java/lang/Throwable.java (trace_enabled): New static field.
1363 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1364 trace_enabled not set.
1365 * prims.cc (main_init): Turn off trace_enabled while creating
1366 default exception objects.
1368 2000-12-21 Tom Tromey <tromey@redhat.com>
1370 * java/beans/PropertyChangeListener.java: Extends EventListener.
1371 * java/beans/VetoableChangeListener.java: Extends EventListener.
1373 * java/util/zip/Deflater.java (update, init): Now private.
1375 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1377 * java/util/BasicMapEntry.java: Re-added.
1378 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1379 (putAll): Test for BasicMapEntry.
1380 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1381 (putAll): Test for BasicMapEntry.
1382 Change references from `HashMap.Entry' to `Entry' in various places.
1383 * Makefile.am: Add BasicMapEntry.java.
1384 * Makefile.in: Rebuilt.
1386 2000-12-18 Warren Levy <warrenl@redhat.com>
1388 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1389 need to set timezone to a valid non-null value. Partial fix for
1392 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1394 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1396 * java/awt/Button.java (addNotify): Likewise.
1397 * java/awt/Label.java (addNotify): Likewise.
1398 * java/awt/Panel.java (addNotify): Likewise.
1399 * java/awt/Scrollbar.java (addNotify): Likewise.
1400 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1401 Remove redundant null checks.
1403 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1405 * COPYING: Update to current
1406 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1407 to 19yy as example year in copyright notice).
1409 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1411 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1412 end-of-stream if avail_in is 0.
1414 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1416 * java/util/ArrayList.java (data): Declare transient.
1417 (serialPersistantFields): Removed.
1418 (readObject): Use defaultReadObject(), not readFields().
1419 (writeObject): Use defaultWriteObject(), not writeFields().
1421 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1423 * java/util/Hashtable.java (put): Remove `last' variable.
1424 Link new entry to head of list.
1425 * java/util/HashMap.java (put): Ditto.
1427 2000-12-15 Tom Tromey <tromey@redhat.com>
1429 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1430 loader to Class.forName.
1432 2000-12-14 Tom Tromey <tromey@redhat.com>
1434 * java/util/ResourceBundle.java
1435 (getBundle(String,Locale,ClassLoader)): New method.
1436 (trySomeGetBundle): Added `loader' argument.
1437 (partialGetBundle): Likewise.
1439 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1440 maximumFractionDigits, maximumIntegerDigits,
1441 minimumFractionDigits, minimumIntegerDigits): Now
1444 * java/lang/Thread.java (checkAccess): Now final.
1446 * java/lang/RuntimePermission.java: Class now final.
1448 * java/io/StringWriter.java (StringWriter(int)): Now public.
1450 * java/io/SerializablePermission.java (legal_names): Now private.
1452 * java/lang/Character.java: Updated UnicodeBlock constants.
1453 * scripts/blocks.pl: Special case private use and surrogate
1456 2000-12-12 Tom Tromey <tromey@redhat.com>
1458 * Makefile.in: Rebuilt.
1459 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1461 (GCJCOMPILE): Use it.
1464 2000-12-11 Tom Tromey <tromey@redhat.com>
1466 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1467 New static final fields.
1469 * scripts/classes.pl (scan): Skip lines with leading `*'.
1470 Fix for PR libgcj/378.
1472 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1474 * configure.in: Remove check for -fuse-divide-subroutine.
1475 * configure: Rebuilt.
1477 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1479 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1481 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1483 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1484 Remove BasicMapEntry.java and Bucket.java.
1485 * Makefile.in: Rebuilt.
1486 * java/util/HashMap.java: Rewritten.
1487 * java/util/HashSet.java: Imported from classpath.
1488 * java/util/WeakHashMap.java: Imported from classpath.
1489 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1490 * java/util/Bucket.java: Deleted.
1491 * java/util/BasicMapEntry.java: Deleted.
1492 * java/util/Collections.java (search): Use a for-loop, not iterator
1494 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1495 of elements in source.
1496 (max): Use a for-loop.
1498 (reverse): Keep track of positions instead of using Iterator's
1499 nextIndex() and previousIndex().
1500 (shuffle(List)): Initialize defaultRandom if required using
1501 double-check thread safety idiom. Call two-argument shuffle method
1502 using defaultRandom.
1503 (defaultRandom): New field.
1504 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1505 using previousIndex() and nextIndex().
1506 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1507 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1508 * java/util/AbstractMap.java (toString): Use StringBuffer.
1509 * java/lang/ref/PhantomReference.java: Imported from classpath.
1510 * java/lang/ref/SoftReference.java: Ditto.
1511 * java/lang/ref/Reference.java: Ditto.
1512 * java/lang/ref/WeakReference.java: Ditto.
1513 * java/lang/ref/ReferenceQueue.java: Ditto.
1515 2000-12-10 Richard Henderson <rth@redhat.com>
1517 * configure.host: Recognize alpha*-*, not alphaev6-*.
1519 2000-12-09 Anthony Green <green@redhat.com>
1521 * configure.host: Enable interpreter for Alpha.
1523 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1525 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1526 (ZIP): Points at fastjar instead of zip.
1527 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1528 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1529 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1530 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1531 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1532 ($(x_java_source_files:.java=.class):): Likewise.
1533 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1535 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1536 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1537 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1538 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1539 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1540 gnu/gcj/runtime/VMClassLoader.h:,
1541 java/io/ObjectInputStream$$GetField.h:,
1542 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1543 (Makefile.in): Rebuilt.
1545 2000-12-08 Tom Tromey <tromey@redhat.com>
1548 * configure: Rebuilt.
1549 * configure.in: Use echo, not `:', to create .d files.
1551 2000-12-08 Warren Levy <warrenl@redhat.com>
1553 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1554 NullPointerException so proper check of offset can be done.
1556 2000-12-08 Warren Levy <warrenl@redhat.com>
1558 * java/io/FileInputStream.java (close): Check if the fd is valid.
1559 * java/io/RandomAccessFile.java (close): Ditto.
1560 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1561 * java/net/PlainSocketImpl.java (close): Ditto.
1563 2000-12-06 Tom Tromey <tromey@redhat.com>
1565 * java/awt/GridBagConstraints.java: Filled in values for static
1568 * java/util/BitSet.java: Updated copyright notice.
1570 * Makefile.in: Rebuilt.
1571 * Makefile.am (awt_java_source_files): Added new file.
1572 * java/awt/GridBagConstraints.java: New file.
1574 2000-12-05 Tom Tromey <tromey@redhat.com>
1576 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1577 Now package-private, not protected.
1578 * java/text/DateFormatSymbols.java (equals): Now private.
1579 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1580 * java/util/BitSet.java: Class no longer final.
1582 2000-12-04 Warren Levy <warrenl@redhat.com>
1584 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1585 out code dependent on compiler and library changes.
1587 2000-12-04 Warren Levy <warrenl@redhat.com>
1589 * java/io/FilePermission.java: Made class final per spec.
1590 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1591 method name to match spec (fixed typo).
1592 * java/util/LinkedList.java: Implements List.
1594 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1596 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1597 Edgar Villanueva <edgarvil@home.com>.
1599 2000-12-03 Tom Tromey <tromey@redhat.com>
1601 * java/awt/geom/Point2D.java: Added protected constructor.
1602 (equals): New method.
1603 (Float.setLocation(float,float)): New method.
1604 * java/awt/geom/Dimension2D.java: Added protected constructor.
1605 * java/awt/geom/AffineTransform.java: Made all constants public.
1606 (concatenate): Fixed typo in name.
1607 * java/awt/event/WindowAdapter.java: Class now abstract.
1608 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1609 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1612 * java/awt/AWTError.java: Extend Error, not
1613 IllegalStateException.
1615 * Makefile.in: Rebuilt.
1616 * Makefile.am (awt_java_source_files): Added new file.
1617 * java/awt/geom/RoundRectangle2D.java: New file.
1619 * Makefile.in: Rebuilt.
1620 * Makefile.am (awt_java_source_files): Added new file.
1621 * java/awt/FlowLayout.java: New file.
1623 * Makefile.in: Rebuilt.
1624 * Makefile.am (awt_java_source_files): Added new file.
1625 * java/awt/GridLayout.java: New file.
1627 2000-12-02 Tom Tromey <tromey@redhat.com>
1629 * Makefile.in: Rebuilt.
1630 * Makefile.am (awt_java_source_files): Added new files.
1631 * java/awt/CardLayout.java: New file.
1632 * java/awt/AWTPermission.java: New file.
1634 2000-12-01 Tom Tromey <tromey@redhat.com>
1636 * java/util/Vector.java (insertElementAt): Unconditionally
1637 increment elementCount.
1638 (removeRange): Clear unused slots in vector.
1640 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1642 * java/lang/natMath.cc: Declare fabsf() function.
1643 * java/lang/mprec.h: Don't include math.h.
1644 * java/lang/dtoa.c: Include string.h.
1645 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1648 From Adam Welc <welc@cs.purdue.edu>:
1649 * java/util/LinkedList.java (removeFirst): Update `first' field.
1650 Handle the last == first case.
1651 (removeLast): Update `last' field. Handle the last == first case.
1653 2000-12-01 Warren Levy <warrenl@cygnus.com>
1655 * Makefile.am: Added entries for new java.sql modules.
1656 * Makefile.in: Rebuilt.
1658 2000-12-01 Warren Levy <warrenl@cygnus.com>
1660 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1661 that aren't quite 1.2 compatible yet.
1663 2000-11-30 Warren Levy <warrenl@cygnus.com>
1665 * java/sql/Array.java: New file from classpath.
1666 * java/sql/BatchUpdateException.java: Ditto.
1667 * java/sql/Blob.java: Ditto.
1668 * java/sql/Clob.java: Ditto.
1669 * java/sql/Ref.java: Ditto.
1670 * java/sql/SQLData.java: Ditto.
1671 * java/sql/SQLInput.java: Ditto.
1672 * java/sql/SQLOutput.java: Ditto.
1673 * java/sql/Struct.java: Ditto.
1674 * java/sql/CallableStatement.java: Merged file from claspath.
1675 * java/sql/Connection.java: Ditto.
1676 * java/sql/DataTruncation.java: Ditto.
1677 * java/sql/DatabaseMetaData.java: Ditto.
1678 * java/sql/DriverManager.java: Ditto.
1679 * java/sql/PreparedStatement.java: Ditto.
1680 * java/sql/ResultSet.java: Ditto.
1681 * java/sql/ResultSetMetaData.java: Ditto.
1682 * java/sql/SQLException.java: Ditto.
1683 * java/sql/SQLWarning.java: Ditto.
1684 * java/sql/Statement.java: Ditto.
1685 * java/sql/Types.java: Ditto.
1687 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1689 * java/lang/natSystem.cc (init_properties): Set user.language and
1691 * configure.in: Check for setlocale.
1692 * configure: Rebuilt.
1693 * include/config.h.in: Rebuilt.
1695 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1696 the infate() call didn't deliver any output. Throw a ZipException if
1697 the needsDictionary() call returns true.
1698 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1699 * java/io/InputStreamReader: Use the default buffer size for the
1700 contained BufferedInputStream.
1702 2000-11-28 Warren Levy <warrenl@cygnus.com>
1704 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1705 more time zone entries.
1706 * java/text/SimpleDateFormat.java (format): Added case for
1709 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1711 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1712 directly rather than read() in all cases. Make primitive read
1713 implementations more efficient, as defined in JDK online docs.
1714 (skipBytes): Behave like the JDK's implementation.
1715 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1716 closed stream with checkStatus() whenever an IOException can be
1718 (checkStatus): New private method.
1720 2000-11-27 Warren Levy <warrenl@cygnus.com>
1722 * Makefile.am: Added natTimeZone.cc.
1723 * Makefile.in: Rebuilt.
1724 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1725 * java/text/DateFormatSymbols.java (ampms): Made package private.
1726 (eras): Made package private.
1727 (months): Made package private.
1728 (shortMonths): Made package private.
1729 (shortWeekdays): Made package private.
1730 (weekdays): Made package private.
1731 (formatPrefixes): New private field.
1732 (localPatternCharsDefault): Made private.
1733 (dateFormats): New package private field.
1734 (timeFormats): New package private field.
1735 (formatsForKey): New private method.
1736 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1737 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1738 * java/text/SimpleDateFormat.java: Merged with Classpath.
1739 * java/util/TimeZone.java: Merged with Classpath.
1740 * java/util/natTimeZone.cc: New file.
1742 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1744 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1745 (addElement): Don't increment elementCount twice. Doh.
1746 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1747 array needs to be expanded.
1749 * java/util/Collections.java (UnmodifiableCollection): Implement
1751 (UnmodifiableList): Throw UnsupportedOperationException from
1752 modification methods. Set `l' from the one-parameter constructor.
1753 (UnmodifiableMap): Implement toString().
1754 (SynchronizedCollection): Ditto.
1755 (SynchronizedList): Set `l' from the one-parameter constructor.
1756 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1757 (SynchronizedMap): Implement toString().
1759 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1761 * javax/naming/NameParser.java,
1762 javax/naming/directory/AttributeInUseException.java,
1763 javax/naming/directory/AttributeModificationException.java,
1764 javax/naming/directory/InvalidAttributeIdentifierException.java,
1765 javax/naming/directory/InvalidAttributesException.java,
1766 javax/naming/directory/InvalidAttributeValueException.java,
1767 javax/naming/directory/InvalidSearchControlsException.java,
1768 javax/naming/directory/InvalidSearchFilterException.java,
1769 javax/naming/directory/NoSuchAttributeException.java,
1770 javax/naming/directory/SchemaViolationException.java: New files.
1772 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1774 * javax/naming/InitialContext.java (rebind): Implement.
1775 (unbind): Implement.
1776 (rename): Implement.
1778 (listBindings): Implement.
1779 (destroySubcontext): Implement.
1780 (createSubcontext): Implement.
1781 (lookupLink): Implement.
1782 (getNameParser): Implement.
1783 (composeName): Implement.
1784 (addToEnvironment): Implement.
1786 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1788 * javax/naming/AuthenticationException.java,
1789 javax/naming/AuthenticationNotSupportedException.java,
1790 javax/naming/CannotProceedException.java,
1791 javax/naming/CommunicationException.java,
1792 javax/naming/ConfigurationException.java,
1793 javax/naming/ContextNotEmptyException.java,
1794 javax/naming/InsufficientResourcesException.java,
1795 javax/naming/InterruptedNamingException.java,
1796 javax/naming/InvalidNameException.java,
1797 javax/naming/LimitExceededException.java,
1798 javax/naming/LinkException.java,
1799 javax/naming/LinkLoopException.java,
1800 javax/naming/MalformedLinkException.java,
1801 javax/naming/NameAlreadyBoundException.java,
1802 javax/naming/NameNotFoundException.java,
1803 javax/naming/NamingSecurityException.java,
1804 javax/naming/NoPermissionException.java,
1805 javax/naming/NotContextException.java,
1806 javax/naming/PartialResultException.java,
1807 javax/naming/ReferralException.java,
1808 javax/naming/ServiceUnavailableException.java,
1809 javax/naming/SizeLimitExceededException.java,
1810 javax/naming/TimeLimitExceededException.java: New files.
1812 * javax/naming/Name.java (clone): New method.
1813 (compareTo): New method.
1814 (isEmpty): New method.
1815 (getAll): New method.
1816 (getPrefix): New method.
1817 (getSuffix): New method.
1818 (startsWith): New method.
1819 (endsWith): New method.
1820 (addAll): New method.
1821 (addAll): New method.
1824 (remove): New method.
1826 * javax/naming/Context.java (lookup): New method.
1827 (rebind): New method.
1828 (unbind): New method.
1829 (rename): New method.
1831 (listBindings): New method.
1832 (destroySubcontext): New method.
1833 (createSubcontext): New method.
1834 (lookupLink): New method.
1835 (getNameParser): New method.
1836 (composeName): New method.
1837 (addToEnvironment): New method.
1838 (removeFromEnvironment): New method.
1839 (getEnvironment): New method.
1840 (close): New method.
1841 (getNameInNamespace): New method.
1843 * javax/naming/InitialContext.java (lookup): New method.
1844 (rebind): New method.
1845 (unbind): New method.
1846 (rename): New method.
1848 (listBindings): New method.
1849 (destroySubcontext): New method.
1850 (createSubcontext): New method.
1851 (lookupLink): New method.
1852 (getNameParser): New method.
1853 (composeName): New method.
1854 (addToEnvironment): New method.
1855 (removeFromEnvironment): New method.
1856 (getEnvironment): New method.
1857 (close): New method.
1858 (getNameInNamespace): New method.
1860 2000-11-26 Tom Tromey <tromey@cygnus.com>
1862 * Makefile.in: Rebuilt.
1863 * Makefile.am (core_java_source_files): Added
1864 RuntimePermission.java.
1865 * java/lang/RuntimePermission.java: Imported from Classpath.
1866 * java/lang/Thread.java (getContextClassLoader): Now
1867 synchronized. Added security code.
1868 (setContextClassLoader): Likewise.
1870 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1871 length field of array.
1872 (_Jv_NewPrimArray): Likewise.
1873 * gcj/array.h (__JArray): `length' field now const. Added
1876 2000-11-26 Anthony Green <green@redhat.com>
1878 * javax/naming/spi/NamingManager.java,
1879 javax/naming/spi/ObjectFactory.java,
1880 javax/naming/spi/InitialContextFactory.java,
1881 javax/naming/spi/InitialContextFactoryBuilder.java,
1882 javax/naming/RefAddr.java, javax/naming/Reference.java,
1883 javax/naming/NamingException.java, javax/naming/Context.java,
1884 javax/naming/Referenceable.java,
1885 javax/naming/directory/InitialDirContext.java,
1886 javax/naming/directory/DirContext.java,
1887 javax/naming/directory/Attributes.java,
1888 javax/naming/directory/Attribute.java,
1889 javax/naming/StringRefAddr.java,
1890 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1891 javax/naming/InitialContext.java,
1892 javax/naming/NoInitialContextException.java: New files.
1894 2000-11-25 Anthony Green <green@redhat.com>
1896 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1897 (_Jv_NewPrimArray): Likewise.
1898 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1899 (class JArray): Removed constructor.
1901 * java/lang/Thread.java (context_class_loader): New private data.
1902 (getContextClassLoader): New method.
1903 (setContextClassLoader): New method.
1904 (Thread): Initialize context_class_loader.
1906 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1907 (getResource): Rename to findResource.
1908 (findResource): New method. Used to be getResource.
1909 (getResourceAsStream): Deleted.
1910 (jarFileize): Extracted logic from URLClassLoader constructor into
1911 this new private method.
1912 (addURL): New protected method.
1913 (URLClassLoader): Call jarFileize. Use addElement instead of
1915 (findResources): New method.
1917 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1918 (getResource): Implement correct logic.
1919 (findResource): New method.
1920 (getResources): New method.
1921 (findClass): Create a ClassNotFoundException with the name of the
1922 class rather than nothing at all.
1923 (defineClass) Only throw ClassFormatError.
1925 * java/lang/Class.java (forName): New method.
1926 * java/lang/Class.h (forName): New method.
1927 * java/lang/natClass.cc (forName): New method.
1929 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1931 * java/lang/System.java (setProperties): Only call init_properties()
1932 if properties is null.
1933 (getProperties): Ditto.
1934 (getProperty): Ditto.
1935 (setProperty): Call init_properties if properties are null.
1936 (prop_init): Remove field.
1937 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1938 method. Check for null properties after synchronizing instead of
1939 prop_init flag. Set the properties field last for thread safety.
1941 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1942 test for gcj.dumpobjects property and enable object stream dumping
1944 (dumpElement): No longer native.
1945 (dumpElementln): Ditto.
1946 (setDump): Do not define.
1947 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1948 (dumpElementln): Removed.
1951 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1953 * configure: Rebuilt.
1954 * Makefile.in: Rebuilt.
1955 * Makefile.am (built_java_source_files): Add Configuration.java.
1956 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1957 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1958 Create `gnu' directory in the build tree.
1959 * gnu/classpath/Configuration.java.in: New file.
1961 2000-11-24 Tom Tromey <tromey@cygnus.com>
1963 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1965 (_Jv_NewPrimArray): Likewise.
1967 * gcj/array.h (__JArray): `length' field now const. Added
1969 (class JArray): Added constructor.
1971 2000-11-23 Mark Wielaard <mark@klomp.org>
1973 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1976 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1978 * java/util/Vector.java: Improve exception messages.
1979 (Vector): Check initialCapacity for IllegalArgumentException.
1980 (tromToSize): Don't check for elementCount == elementData.length
1982 (toArray): Don't try to set null marker if target array is the same
1983 length as the vector.
1985 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1987 * Makefile.in: Rebuilt.
1988 * Makefile.am (core_java_source_files): Added Collections.java.
1989 * java/util/List.java: Merged from classpath.
1990 * java/util/Vector.java: Ditto.
1991 * java/util/Collections.java: From classpath.
1992 * java/util/ArrayList.java (addAll(Collection)): Call
1993 addAll(int,Collection) instead of duplicating code.
1994 (indexOf): Clean up int initialization.
1995 (clear): Set cleared array entries to null, to allow garbage
1997 * java/util/List.java: Minor formatting fixes.
1998 * java/util/SimpleTimeZone.java: ditto.
2000 2000-11-18 Tom Tromey <tromey@cygnus.com>
2002 * Makefile.in: Rebuilt.
2003 * Makefile.am (core_java_source_files): Added new files.
2004 * java/lang/reflect/ReflectPermission.java: New class.
2005 * java/io/FileFilter.java: From Classpath
2006 * java/io/FilePermission.java: From Classpath.
2008 2000-11-17 Tom Tromey <tromey@cygnus.com>
2010 * java/lang/reflect/AccessibleObject.java (isAccessible,
2011 setAccessible): Now public.
2013 * java/lang/natString.cc: Include Locale.h.
2014 (toUpperCase): Added `locale' argument. Handle locale
2016 (toLowerCase): Added `locale' argument. Handle locale
2018 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2019 CAPITAL_I): New defines.
2020 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2023 (toUpperCase, toLowerCase): New methods. Variants which accept
2026 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2029 * java/util/PropertyPermission.java: Re-merged from Classpath.
2031 * java/text/RuleBasedCollator.java (getCollationElementIterator):
2033 * java/text/StringCharacterIterator.java: Reindented.
2034 (setText): New method.
2036 2000-11-17 Mark Wielaard <mark@klomp.org>
2038 Merge with Classpath (changes by Bryce McKinlay)
2039 * java/util/jar/*.java: Reformat all to unofficial standard coding
2040 style. No changes of substance.
2042 2000-11-17 Mark Wielaard <mark@klomp.org>
2044 * java/util/zip/*.java: Javadoc updates.
2046 2000-11-17 Tom Tromey <tromey@cygnus.com>
2048 * java/text/CollationKey.java: Implement Comparable.
2049 (compareTo(Object)): New method.
2050 * java/text/Collator.java (compare(Object,Object)): New method.
2051 Implement Comparator.
2053 * java/util/zip/InflaterInputStream.java (available): New method.
2054 (close): New method.
2055 (read, available, skip, fill): Throw exception if stream closed.
2056 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2057 getNextEntry): Throw exception if closed.
2059 2000-11-16 Tom Tromey <tromey@cygnus.com>
2061 * java/io/PushbackReader.java: Merged with Classpath.
2062 * java/util/Arrays.java: Updated from Classpath.
2064 * scripts/blocks.pl: New file.
2065 * java/lang/Character.java (Subset): New class.
2066 (UnicodeBlock): New class.
2068 * java/lang/Math.java (toDegrees, toRadians): New methods.
2070 * java/lang/Float.java: Implement Comparable.
2071 (compareTo): New methods.
2072 * java/lang/Double.java: Implement Comparable.
2073 (compareTo): New methods.
2075 2000-11-16 Warren Levy <warrenl@cygnus.com>
2077 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2079 (listeners): Made transient.
2080 (source): Renamed from 'bean'.
2081 (children): New field for serialization.
2082 (propertyChangeSupportSerializedDataVersion): Ditto.
2083 (serialVersionUID): Ditto.
2084 (writeObject): New serialization method.
2085 (readObject): New serialization method.
2086 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2088 (listeners): Made transient.
2089 (source): Renamed from 'bean'.
2090 (children): New field for serialization.
2091 (vetoableChangeSupportSerializedDataVersion): Ditto.
2092 (serialVersionUID): Ditto.
2093 (writeObject): New serialization method.
2094 (readObject): New serialization method.
2095 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2096 to allow constructor to have a return type (i.e. the class that the
2097 constructor constructs).
2099 2000-11-14 Tom Tromey <tromey@cygnus.com>
2101 * Makefile.in: Rebuilt.
2102 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2105 2000-11-02 Warren Levy <warrenl@cygnus.com>
2107 * java/io/ObjectInputStream.java (readObject): Added code to
2108 conditionally dump out the serialized data.
2109 Handle ENDBLOCKDATA case a bit more gracefully since the current
2110 behavior doesn't seem to work as expected.
2111 (readStreamHeader): Added code for serialized data dumper.
2112 (readNextBlock): Ditto.
2113 (readFields): Ditto.
2114 (dump): New private static field for turning on/off dumper.
2115 (setDump): New native method.
2116 (dumpElement): New native method.
2117 (dumpElementln): New native method.
2118 * java/io/natObjectInputStream.cc (setDump): New method.
2119 (dumpElement): New method.
2120 (dumpElementln): New method.
2122 2000-11-02 Warren Levy <warrenl@cygnus.com>
2124 * java/net/InetAddress.java (addr): Renamed from 'address'.
2125 (address): New field to match Serialized Form doc.
2126 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2127 (family): New serialization field.
2128 (serialVersionUID): New field.
2129 (readObject): New method.
2130 (writeObject): New method.
2131 (getFamily): New native method.
2132 (InetAddress): Set family.
2133 * java/net/natInetAddress.cc (getFamily): New method.
2134 (addr): Renamed from 'address'.
2135 (hostName): Renamed from 'hostname' to match Serialized Form doc.
2136 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2137 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2139 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
2141 * java/util/AbstractList.java (SubList): Make it a top-level private
2143 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2145 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2146 * Makefile.in: Rebuilt.
2148 2000-11-02 Tom Tromey <tromey@cygnus.com>
2150 * Makefile.in: Rebuilt.
2151 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2154 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2156 * java/util/AbstractList.java (remove): Comment out modCount increment
2157 to work around compiler bug.
2160 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
2162 * java/util/AbstractList.java: Throw messages with
2163 IndexOutOfBoundsExceptions.
2164 (listIterator()): Call listIterator(0).
2165 (size): New field. Initialize to size().
2166 (hasNext): Test position against size, not size().
2167 (remove): Increment knownMod by one instead of resetting it from
2170 (SubList.upMod): Removed.
2171 (SubList.set): Don't call upMod() or update knownMod.
2172 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2173 (SubList.remove): Ditto.
2174 (SubList.addAll): Don't call backingList.size(). Increment size from
2176 (SubList.iterator): New method. Call listIterator(0).
2177 (SubList.listIterator): New method. Restore code to return an anonymous
2178 listIterator implementation (with some changes).
2179 * java/util/AbstractSequentialList.java: Throw messages with
2180 IndexOutOfBoundsExceptions.
2181 (addAll): Add a specnote.
2182 * java/util/ArrayList.java (removeRange): Get the math right.
2183 (addAll): Increment modCount _before_ creating iterator.
2184 * java/util/LinkedList.java: Rewritten, mostly.
2186 2000-11-01 Tom Tromey <tromey@cygnus.com>
2188 * scripts/encodings.pl: Added `ASCII' alias.
2189 * Makefile.in: Rebuilt.
2190 * Makefile.am (convert_source_files): Added new files.
2191 * gnu/gcj/convert/Input_ASCII.java: New file.
2192 * gnu/gcj/convert/Output_ASCII.java: New file.
2193 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2194 out-of-range characters.
2195 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2196 (read): Swap bytes if required. Treat `count' as character count,
2198 (write): Likewise. Also, handle case where iconv fails on a given
2200 (init): Put encoding into exception.
2201 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2202 (static): Call iconv_init. Rebuilt alias list.
2203 (iconv_init): New private method.
2205 2000-11-01 Tom Tromey <tromey@cygnus.com>
2207 * Makefile.in: Rebuilt.
2208 * Makefile.am (install-exec-hook): Only make a single symlink, and
2209 remove the destination before making the link.
2210 * configure: Rebuilt.
2211 * configure.in: Call AC_PROG_LN_S.
2213 2000-10-31 Warren Levy <warrenl@cygnus.com>
2215 * jni.cc: Added include of java/lang/ThreadGroup.h.
2216 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2217 per change of 2000-10-05.
2219 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2221 * java/util/BitSet.java: Updated @specnote.
2223 * java/io/Reader.java: Merge docs from classpath.
2224 (skip): Synchronize on `lock'.
2225 * java/io/FileReader.java: Import correct implementation from
2227 * java/io/StringReader.java: Merge docs from classpath.
2228 (ready): Throw IOException if stream is closed.
2230 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2232 * java/util/AbstractCollection.java (addAll): Use size() instead of
2233 hasNext() in iterator loop.
2235 (contains): Ditto. Simplify loop.
2236 (containsAll): Ditto.
2241 (toString): Ditto. Use string concatenation operators, not
2243 * java/util/AbstractList.java (addAll): Use size() instead of
2244 hasNext() in iterator loop.
2247 (indexOf): Ditto. Don't take null check outside of the loop.
2248 (iterator): Return an AbstractListItr instead of anonymous class.
2249 (lastIndexOf): Use a for loop bounded by size() instead of
2250 hasPrevious() in iterator loop.
2251 (listIterator): Return an AbstractListItr.
2252 (removeRange): Remove bounds checking code and docs.
2253 (AbstractListItr): New inner class. Code moved here from
2255 (SubList.iterator): Removed. Use default implementation from
2256 AbstractList instead.
2257 (SubList.listIterator): As above.
2258 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2259 instead of hasNext() in iterator loop.
2260 (containsValue): Ditto.
2266 (toString): Ditto. Use string concatenation operators, not
2268 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2269 bounded by size() instead of hasNext() in iterator loop.
2270 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2271 part of normal execution flow. Do an explicit null check instead.
2272 * java/util/ArrayList.java (_iSize): Rename to `size'.
2273 (_arData): Rename to `data'.
2274 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2277 (removeRange): Make protected. Don't check bounds.
2278 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2280 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2282 (addAll (int, Collection)): Check lower bounds. Simplify exception
2284 (clone): Clone the data array too.
2285 (indexOf): Inline doesEqual().
2286 (lastIndexOf): Ditto.
2287 (clear): Don't set array data to null.
2288 (set): Check lower bounds. Simplify exception string.
2289 (toArray): Correct comment.
2290 (trimToSize): Don't update modCount, this is not a structural change.
2293 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2295 (toString): Declare `bit' as long, not int.
2296 (data): Made package-private, not private.
2298 2000-10-27 Warren Levy <warrenl@cygnus.com>
2300 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2301 array elements to true.
2303 2000-10-27 Warren Levy <warrenl@cygnus.com>
2305 * Makefile.am: Added locale files from Classpath.
2306 * Makefile.in: Rebuilt.
2307 * gnu/java/locale/Calendar.java: New file.
2308 * gnu/java/locale/Calendar_de.java: New file.
2309 * gnu/java/locale/Calendar_en.java: New file.
2310 * gnu/java/locale/Calendar_nl.java: New file.
2311 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2312 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2313 serialization compatibility.
2314 (scale): Made private.
2315 (serialVersionUID): New field.
2316 * java/math/BigInteger.java (ival): Made transient.
2317 (words): Made transient.
2318 (bitCount): New serialization field.
2320 (firstNonzeroByteNum): Ditto.
2321 (lowestSetBit): Ditto.
2324 (serialVersionUID): New field.
2325 (readObject): New method.
2326 (writeObject): New method.
2327 * java/util/BitSet.java (serialVersionUID): New field.
2328 * java/util/Calendar.java: Replaced with Classpath file.
2329 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2330 of getDefault() for TimeZone or Locale instead of passing nulls.
2331 * java/util/Locale.java (serialVersionUID): New field.
2332 (writeObject): New method.
2333 (readObject): New method.
2334 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2336 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2338 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2339 (core_java_source_files): Put java.lang, java.io, and java.util here.
2340 (ordinary_java_source_files): Order so that core_java_source_files are
2342 (java_source_files): Reorder so that special_java_source_files are
2344 * configure.in: Don't pass -I flag to gcj.
2345 * Makefile.in: Rebuilt.
2346 * configure: Rebuilt.
2348 2000-10-25 Tom Tromey <tromey@cygnus.com>
2350 * Makefile.in: Rebuilt.
2351 * Makefile.am (install-exec-hook): New target.
2353 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2355 * java/util/EventObject.java: Merged from classpath.
2357 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2360 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2362 * java/util/AbstractSet.java (equals): Re-installed original code.
2364 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2366 * Makefile.am: Added rules for libgcjx library.
2367 * Makefile.in: Rebuilt.
2368 * configure.in: Added check for X.
2369 * configure: Rebuilt.
2370 * gnu/awt/LightweightRedirector.java: New file.
2371 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2372 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2373 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2374 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2375 * gnu/awt/j2d/MappedRaster.java: New file.
2376 * gnu/awt/xlib/XCanvasPeer.java: New file.
2377 * gnu/awt/xlib/XEventLoop.java: New file.
2378 * gnu/awt/xlib/XEventQueue.java: New file.
2379 * gnu/awt/xlib/XFontMetrics.java: New file.
2380 * gnu/awt/xlib/XFramePeer.java: New file.
2381 * gnu/awt/xlib/XGraphics.java: New file.
2382 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2383 * gnu/awt/xlib/XPanelPeer.java: New file.
2384 * gnu/awt/xlib/XToolkit.java: New file.
2385 * gnu/gcj/xlib/Clip.java: New file.
2386 * gnu/gcj/xlib/Colormap.java: New file.
2387 * gnu/gcj/xlib/Display.java: New file.
2388 * gnu/gcj/xlib/Drawable.java: New file.
2389 * gnu/gcj/xlib/Font.java: New file.
2390 * gnu/gcj/xlib/GC.java: New file.
2391 * gnu/gcj/xlib/Pixmap.java: New file.
2392 * gnu/gcj/xlib/Screen.java: New file.
2393 * gnu/gcj/xlib/Visual.java: New file.
2394 * gnu/gcj/xlib/WMSizeHints.java: New file.
2395 * gnu/gcj/xlib/Window.java: New file.
2396 * gnu/gcj/xlib/WindowAttributes.java: New file.
2397 * gnu/gcj/xlib/XAnyEvent.java: New file.
2398 * gnu/gcj/xlib/XButtonEvent.java: New file.
2399 * gnu/gcj/xlib/XColor.java: New file.
2400 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2401 * gnu/gcj/xlib/XConnectException.java: New file.
2402 * gnu/gcj/xlib/XEvent.java: New file.
2403 * gnu/gcj/xlib/XException.java: New file.
2404 * gnu/gcj/xlib/XExposeEvent.java: New file.
2405 * gnu/gcj/xlib/XID.java: New file.
2406 * gnu/gcj/xlib/XImage.java: New file.
2407 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2408 * gnu/gcj/xlib/natClip.cc: New file.
2409 * gnu/gcj/xlib/natColormap.cc: New file.
2410 * gnu/gcj/xlib/natDisplay.cc: New file.
2411 * gnu/gcj/xlib/natDrawable.cc: New file.
2412 * gnu/gcj/xlib/natFont.cc: New file.
2413 * gnu/gcj/xlib/natGC.cc: New file.
2414 * gnu/gcj/xlib/natPixmap.cc: New file.
2415 * gnu/gcj/xlib/natScreen.cc: New file.
2416 * gnu/gcj/xlib/natVisual.cc: New file.
2417 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2418 * gnu/gcj/xlib/natWindow.cc: New file.
2419 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2420 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2421 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2422 * gnu/gcj/xlib/natXColor.cc: New file.
2423 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2424 * gnu/gcj/xlib/natXException.cc: New file.
2425 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2426 * gnu/gcj/xlib/natXImage.cc: New file.
2427 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2428 * java/awt/EventDispatchThread.java: Start thead on creation.
2430 2000-10-20 Tom Tromey <tromey@cygnus.com>
2432 From Arno J. Klaassen:
2433 * interpret.cc: Include <stdlib.h> for alloca.
2434 * defineclass.cc: Include <stdlib.h> for alloca.
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am: Include deps.mk.
2438 (GCJCOMPILE): Added -MD, -MT, and -MF.
2439 ($(javao_files)): Don't depend on libgcj.zip.
2440 (all-recursive): New target.
2441 (%.lo:%.cc): Do dependency tracking.
2442 ($(nat_headers)): Don't depend on libgcj.zip.
2443 * configure: Rebuilt.
2444 * configure.in: Make .d files and deps.mk.
2446 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2448 * exception.cc: Don't #include "exception".
2449 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2451 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2452 * Makefile.in: Updated.
2454 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2456 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2457 * java/awt/peer/ComponentPeer.java (disable): Removed.
2460 (minimumSize): Removed.
2461 (preferredSize): Removed.
2464 * java/awt/peer/ListPeer.java (addItem): Removed.
2466 (minimumSize): Removed.
2467 (preferredSize): Removed.
2468 (setMultipleSelections): Removed.
2469 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2470 (remove): Renamed from removeMenu.
2471 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2473 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2474 (remove): Renamed from removeItem.
2475 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2476 (getMinimumSize): Removed.
2477 (getPreferredSize): Removed.
2478 (minimumSize): Removed.
2479 (preferredSize): Removed.
2480 (replaceText): Removed.
2481 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2482 (preferredSize): Removed.
2483 (getMinimumSize): Removed.
2484 (getPreferredSize): Removed.
2485 (setEchoCharacter): Removed.
2487 2000-10-10 Warren Levy <warrenl@cygnus.com>
2489 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2490 * java/sql/Date.java (serialVersionUID): New field.
2491 * java/sql/Time.java (serialVersionUID): New field.
2492 * java/sql/Timestamp.java (serialVersionUID): New field.
2493 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2494 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2495 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2496 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2497 (readObject): New serialization method.
2498 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2499 (serialVersionOnStream): New field.
2500 (readObject): New serialization method.
2501 (getMonetaryDecimalSeparator): New method.
2502 (setMonetaryDecimalSeparator): New method.
2503 * java/text/NumberFormat.java (maxFractionDigits): New field.
2504 (maxIntegerDigits): New field.
2505 (minFractionDigits): New field.
2506 (minIntegerDigits): New field.
2507 (serialVersionOnStream): New field.
2508 (serialVersionUID): New field.
2509 (readObject): New serialization method.
2510 (writeObject): New serialization method.
2511 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2512 (serialVersionOnStream): New field.
2513 (serialVersionUID): New field.
2514 (readObject): New serialization method.
2516 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2518 * configure.in (GCJ): Avoid bogus error message when looking for
2519 (and not finding) gcj in the build tree.
2520 * configure: Rebuilt.
2522 2000-10-09 Tom Tromey <tromey@cygnus.com>
2524 * configure: Rebuilt.
2525 * configure.in: Include sys/types.h when checking for socklen_t.
2526 From Arno J. Klaassen.
2528 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2530 * include/jvm.h: Enable __builtin_expect().
2532 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2533 the main program. Fix for PR libgcj/341.
2535 2000-10-07 Tom Tromey <tromey@cygnus.com>
2537 * java/util/Properties.java: Merged with Classpath version.
2539 2000-10-05 Tom Tromey <tromey@cygnus.com>
2541 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2542 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2543 * java/lang/Class.h (Object): Added `class$' field.
2544 * java/lang/Object.h (Object): Added `class$' field.
2545 * defineclass.cc (ClassClass): Use `class$' form.
2546 (ClassObject): Likewise.
2547 * resolve.cc (ClassObject): Use `class$' form.
2548 (ObjectClass): Likewise.
2549 * interpret.cc (ClassError): Removed.
2550 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2552 (IntegerClass): Likewise.
2553 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2555 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2556 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2557 SerializableClass): Likewise.
2558 Include Serializable.h, Cloneable.h.
2559 * java/lang/natSystem.cc (SystemClass): Removed.
2560 (init_properties): Use `class$' form.
2561 * java/lang/natObject.cc (CloneableClass): Removed.
2562 (clone): Use `class$' form.
2563 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2564 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2565 ConstructorClass): Likewise.
2566 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2567 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2568 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2569 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2571 (ClassClass): Likewise.
2572 * include/jvm.h (StringClass): Use `class$' form.
2573 * prims.cc (ObjectClass): Removed.
2574 (_Jv_RunMain): Use `class$' form.
2575 (_Jv_AllocObject): Likewise.
2576 * jni.cc (ClassClass): Use `class$' form.
2577 (ThrowableClass): Likewise.
2578 (ObjectClass): Likewise.
2579 (MethodClass): Likewise.
2580 (ThreadGroupClass): Likewise.
2581 (NativeThreadClass): Likewise.
2582 * boehm.cc (ObjectClass): Removed.
2583 (ClassClass): Removed.
2584 (_Jv_MarkObj): Use `class$' form.
2585 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2588 2000-10-05 Warren Levy <warrenl@cygnus.com>
2590 * Makefile.am: Removed java/io/Replaceable.java and
2591 java/io/Resolvable.java.
2592 * Makefile.in: Rebuilt.
2593 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2595 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2597 (processResolution): Handle readResolve method via reflection with
2598 removal of Resolvable interface.
2599 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2600 method via reflection with removal of Replaceable interface.
2601 * java/io/Replaceable.java: Removed.
2602 * java/io/Resolvable.java: Removed.
2603 * java/security/Key.java (serialVersionUID): New field.
2604 * java/security/Provider.java (serialVersionUID): New field.
2605 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2607 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2609 * java/sql/DataTruncation.java (serialVersionUID): New field.
2610 * java/sql/SQLException.java (serialVersionUID): New field.
2611 * java/sql/SQLWarning.java (serialVersionUID): New field.
2612 * java/util/Date.java (serialVersionUID): New field.
2613 (millis): Made transient.
2614 (readObject): New method.
2615 (writeObject): New method.
2617 2000-10-05 Tom Tromey <tromey@cygnus.com>
2619 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2621 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2623 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2624 (JvRunMain): Set _Jv_argv and _Jv_argc.
2625 * java/awt/Component.java: Minor fixes.
2626 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2627 * java/awt/Toolkit.java (systemEventQueue): Removed.
2628 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2629 * java/awt/Window.java (getToolkit): Don't call super.
2630 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2631 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2632 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2633 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2634 * gnu/awt/gtk/GtkFramePeer.java: New file.
2635 * gnu/awt/gtk/GtkMainThread.java: New file.
2636 * gnu/awt/gtk/GtkToolkit.java: New file.
2637 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2638 * gnu/awt/gtk/gtkcommon.cc: New file.
2639 * gnu/awt/gtk/gtkcommon.h: New file.
2640 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2641 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2642 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2643 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2644 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2645 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2647 2000-09-30 Tom Tromey <tromey@cygnus.com>
2649 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2650 interrupted before modifying the cv's wait set.
2653 2000-09-30 Hans Boehm <boehm@acm.org>
2654 Bryce McKinlay <bryce@albatross.co.nz>
2656 Implement bitmap descriptor based marking for Boehm GC.
2658 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2659 * configure: Rebuilt.
2660 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2661 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2662 method get_finalizer().
2663 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2664 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2665 (_Jv_AllocObj): Add new jclass parameter.
2666 (_Jv_AllocArray): Ditto.
2667 (_Jv_BuildGCDescr): New prototype.
2668 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2669 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2670 get_finalizer() instead of direct finalizer vtable offset.
2671 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2672 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2673 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2674 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2675 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2676 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2677 (_Jv_DetermineVTableIndex): Ditto.
2678 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2679 calculations to account for new gc_descr field.
2680 * boehm.cc: #include gc_gcj.h.
2681 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2682 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2683 New commentary from HB. Mark the classes vtable.
2684 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2685 (GC_DEFAULT_DESCR): New #define.
2686 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2687 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2688 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2689 scan conservativly if size is less than min_heap_addr. Set vtable
2690 pointer of new object before returning.
2691 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2692 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2693 allocation for obj_kind_x.
2694 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2695 (_Jv_AllocObj): Set vtable on returned object.
2696 (_Jv_AllocArray): Ditto.
2697 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2698 (_Jv_NewPrimArray): Ditto.
2699 (_Jv_AllocObj): Declare as a friend.
2700 (_Jv_AllocArray): Ditto.
2701 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2702 from &ObjectClass into new array class. Remove offset-by-one
2703 adjustments from `method' size calculations to account for gc_descr
2706 2000-09-26 Tom Tromey <tromey@cygnus.com>
2708 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2709 `remove', not `add'.
2711 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2713 * java/lang/natSystem.cc (file_encoding): Added return statement.
2715 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2717 * Makefile.am: Re-work shell commands that exceeded command-line
2719 * Makefile.in: Rebuilt.
2721 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2723 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2724 * java/lang/natDouble.cc: Likewise.
2725 * java/lang/reflect/natMethod.cc: Likewise.
2726 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2728 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2730 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2732 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2733 * acinclude.m4: Arrange for automake to not bring in a new
2734 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2735 * Makefile.am: Leave it up to automake to subst GCJ.
2736 * aclocal.m4, configure, Makefile.in: Rebuilt.
2738 2000-09-13 Tom Tromey <tromey@cygnus.com>
2740 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2741 (get): Ensure Boolean class is initialized.
2742 * java/lang/reflect/natField.cc (BooleanClass): New define.
2743 (get): Ensure Boolean class is initialized.
2745 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2747 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2748 Initialize with anonymous class.
2749 (compareToIgnoreCase): New method.
2751 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2752 (uncaughtException): Set had_uncaught_exception.
2753 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2754 exit with error status if set.
2755 (_Jv_RunMain): Ditto.
2757 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2759 * configure: Rebuilt with new ../libtool.m4.
2761 2000-09-11 Tom Tromey <tromey@cygnus.com>
2763 * java/lang/reflect/Field.java (toString): Don't rely on
2766 2000-09-08 Tom Tromey <tromey@cygnus.com>
2768 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2769 default decoder use iconv.
2770 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2771 Let default encoder use iconv.
2772 * configure: Rebuilt.
2773 * configure.in: Check for nl_langinfo and <langinfo.h>.
2774 * java/lang/natSystem.cc (file_encoding): New function.
2775 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2777 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2779 * acinclude.m4: Simplify the tests for CC and CXX.
2780 * aclocal.m4, configure: Rebuilt.
2782 * acinclude.m4: Include libtool macros from the source tree.
2783 * aclocal.m4, configure: Rebuilt.
2785 2000-09-08 Warren Levy <warrenl@cygnus.com>
2787 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2788 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2789 * java/io/File.java (writeObject): Added.
2790 (readObject): Added.
2791 (serialVersionUID): Added.
2792 * java/io/ObjectOutputStream.java (writeObject): Initialized
2793 fieldsAlreadyWritten before recursion rather than after.
2794 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2795 * java/io/OptionalDataException.java (serialVersionUID): Added.
2796 (OptionalDataException): Made package private.
2797 * java/io/SyncFailedException.java (SyncFailedException): Removed
2798 default constructor to match spec.
2799 * java/lang/Boolean.java (serialVersionUID): Added.
2800 * java/lang/Byte.java (serialVersionUID): Added.
2801 * java/lang/Character.java (serialVersionUID): Added.
2802 * java/lang/Double.java (serialVersionUID): Added.
2803 * java/lang/Float.java (serialVersionUID): Added.
2804 * java/lang/Integer.java (serialVersionUID): Added.
2805 * java/lang/Long.java (serialVersionUID): Added.
2806 * java/lang/Number.java (serialVersionUID): Added.
2807 * java/lang/Short.java (serialVersionUID): Added.
2808 * java/lang/String.java (serialVersionUID): Added.
2809 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2811 * java/lang/reflect/InvocationTargetException.java
2812 (serialVersionUID): Added.
2813 * java/net/URL.java (handler): Made transient.
2814 (hashCode): Added field for serialization, per spec. and use
2815 cached value if available.
2816 (serialVersionUID): Added.
2817 (URL): Initialize hashCode.
2818 (set): Adjust hashCode.
2819 (readObject): New Method to initialize the protocol handler when
2821 (writeObject): New method.
2822 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2823 * java/text/Collator.java: Removed 'implements Serializable'.
2824 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2825 * java/util/Properties.java (serialVersionUID): Added.
2826 * java/util/Random.java (serialVersionUID): Added.
2827 (seed): Made private.
2828 (nextNextGaussian): Made private.
2829 (haveNextNextGaussian): Made private.
2830 * java/util/Stack.java (serialVersionUID): Added.
2831 * java/util/TimeZone.java (serialVersionUID): Added.
2832 * java/util/Vector.java (serialVersionUID): Added.
2834 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2836 * Makefile.am (Thread.h): Don't be friends with native threads
2838 * Makefile.in: Rebuilt.
2839 * java/lang/Thread.java (interrupt_flag): Make package-private.
2841 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2843 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2844 to avoid long long division.
2846 2000-09-06 Tom Tromey <tromey@cygnus.com>
2848 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2850 * java/lang/reflect/Method.java (toString): Use `getName' for
2853 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2854 `args' if method takes no parameters.
2856 Fix for PR java.lang/339:
2857 * java/lang/natPosixProcess.cc (fail): New function.
2858 (cleanup): New function.
2859 (startProcess): Use them. Create pipe so child can communicate
2860 exec failure back to parent.
2862 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2864 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2866 (send): Undo last patch. Remove the label only.
2868 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2870 * java/net/natInetAdress.cc: Ditto.
2872 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2874 2000-09-05 Tom Tromey <tromey@cygnus.com>
2876 * doc/cni.sgml: Updated from master copy.
2878 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2880 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2882 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2884 * java/lang/fdlibm.h: #undef __P if previously defined.
2885 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2886 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2890 2000-09-04 Tom Tromey <tromey@cygnus.com>
2892 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2895 2000-09-04 Anthony Green <green@redhat.com>
2897 Fix for PR java.io/203:
2898 * java/io/File.java (createTempFile): Obey directory argument.
2899 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2900 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2901 variable to set java.io.tmpdir on non-WIN32 systems.
2903 2000-09-04 Anthony Green <green@redhat.com>
2905 * java/io/File.java (deleteOnExit): New method.
2906 * gnu/gcj/runtime/FileDeleter.java: New class.
2907 * java/lang/natRuntime.cc (exit): Call
2908 FileDeleter.deleteOnExitNow()
2909 * Makefile.am: Add FileDeleter.java.
2910 * Makefile.in: Rebuilt.
2912 2000-09-02 Tom Tromey <tromey@cygnus.com>
2914 * Makefile.in: Rebuilt.
2915 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2916 environment variable.
2918 2000-09-01 Andrew Haley <aph@redhat.com>
2920 * java/io/StreamTokenizer.java: Don't throw a
2921 NumberFormatException if a field is numeric as far as the
2922 StreamTokenizer is concerned but not as far as Double.valueOf() is
2923 concerned: return a zero instead.
2925 2000-08-30 Tom Tromey <tromey@cygnus.com>
2927 * Makefile.in: Rebuilt.
2928 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2930 2000-08-28 Tom Tromey <tromey@cygnus.com>
2932 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2933 gnu/gcj/awt/ComponentDataBlitOp.java,
2934 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2935 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2936 java/awt/color/ICC_ColorSpace.java,
2937 java/awt/color/ICC_Profile.java,
2938 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2939 java/awt/image/ComponentColorModel.java,
2940 java/awt/image/ComponentSampleModel.java,
2941 java/awt/image/DataBuffer.java,
2942 java/awt/image/DataBufferByte.java,
2943 java/awt/image/DataBufferInt.java,
2944 java/awt/image/DataBufferUShort.java,
2945 java/awt/image/DirectColorModel.java,
2946 java/awt/image/IndexColorModel.java,
2947 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2948 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2949 java/awt/image/SinglePixelPackedSampleModel.java,
2950 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2951 Removed Latin-1 copyright symbols.
2952 * java/util/zip/ZipFile.java: Indentation fixes.
2954 2000-08-27 Mark Wielaard <mark@klomp.org>
2956 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2957 constructor, close can delete the file, finalize calls close.
2958 * java/util/jar/JarFile.java: Constructor that takes mode now
2961 2000-08-27 Anthony Green <green@redhat.com>
2963 * java/util/ArrayList.java, java/util/Timer.java,
2964 java/util/LinkedList.java, java/util/TimerTask.java,
2965 java/util/HashMap.java, java/util/AbstractMap.java,
2966 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2967 java/util/SortedSet.java: Imported from GNU Classpath.
2968 * Makefile.in: Rebuilt.
2969 * Makefile.am: Added new files.
2971 2000-08-26 Anthony Green <green@redhat.com>
2973 * Makefile.in: Rebuilt.
2974 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2977 * prims.cc: Include ClassLoader.h.
2978 (_Jv_RunMain): When executing jar files, classpath must be the jar
2979 file only. Lose our reference to the system ClassLoader in order
2980 to get a new one with the correct classpath.
2981 * java/lang/natSystem.cc (init_properties): When executing a jar
2982 file, only use the jar file for java.class.path.
2984 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2985 for bytecode archives.
2987 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2988 exists, but not Main-Class.
2990 2000-08-23 Mark Wielaard <mark@klomp.org>
2992 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2993 return -1 when fill() has no more data for the Inflater.
2995 2000-08-23 Mark Wielaard <mark@klomp.org>
2997 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2998 write(String) already does.
3000 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
3002 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3003 to `alive_flag', call `init'.
3004 (init): New native method.
3005 * gnu/gcj/jni/natNativeThread.cc (init): New native method
3008 2000-08-21 Mark Wielaard <mark@klomp.org>
3010 * Makefile.in: Rebuilt.
3011 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3013 (java/lang/reflect/Field.h): Likewise.
3014 (java/lang/reflect/Method.h): Likewise.
3015 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3018 2000-08-21 Tom Tromey <tromey@cygnus.com>
3020 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3023 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
3025 * java/lang/natSystem.cc (init_properties): Change sourceware
3026 reference to sources.redhat.com.
3028 * include/java-props.h: Add _Jv_Jar_Class_Path.
3029 * prims.cc: Ditto. Set it from `gij -jar file' option.
3031 * java/lang/natSystem.cc (init_properties): Set java.class.path
3033 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3035 * java/util/PropertyPermission.java: Import from GNU Classpath.
3036 * Makefile.in: Rebuilt.
3037 * Makefile.am: Add java/util/PropertyPermission.java.
3038 * java/lang/System.java: Add setProperty method.
3040 * gij.cc (main): Add -jar option to execute jar files.
3041 (help): Describe -jar option.
3042 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3043 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3044 * gnu/gcj/runtime/FirstThread.java (main): New method.
3046 * java/util/jar/Attributes.java: Correct comment spelling.
3048 2000-08-20 Mark Wielaard <mark@klomp.org>
3050 * java/util/zip/Adler32.java: Make private variables really private
3051 * java/util/zip/CRC32.java: Make private variables really private
3052 * java/util/zip/CheckedInputStream.java: skip() could skip to much
3054 * java/util/zip/InflaterInputStream.java: skip() could skip to
3056 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3057 * java/util/zip/ZipFile.java: size() new 1.2 method
3058 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3059 ZipEntry. since 1.2 available() always returns just 1 or 0 when
3062 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
3064 * java/util/jar/JarFile.java: Don't call
3065 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
3068 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
3070 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3071 Read the entire contents of the class file, not just what is
3074 * java/net/JarURLConnection.java: getEntry doesn't take any
3075 arguments. Return null if element is null.
3077 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3078 size from the archive, not the inflated size.
3080 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
3081 java.util.zip.ZipFile.getEntry.
3083 * gij.cc (help): Change sourceware reference to
3086 2000-08-19 Tom Tromey <tromey@cygnus.com>
3088 * java/util/zip/ZipInputStream.java (createZipEntry):
3091 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
3093 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3094 java/util/jar/JarException.java, java/util/jar/JarFile.java,
3095 java/util/jar/JarInputStream.java,
3096 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3097 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3098 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3099 java/security/cert/CRL.java, java/security/cert/CRLException.java,
3100 java/security/cert/Certificate.java,
3101 java/security/cert/CertificateEncodingException.java,
3102 java/security/cert/CertificateException.java,
3103 java/security/cert/CertificateExpiredException.java,
3104 java/security/cert/CertificateFactory.java,
3105 java/security/cert/CertificateFactorySpi.java,
3106 java/security/cert/CertificateNotYetValidException.java,
3107 java/security/cert/CertificateParsingException.java,
3108 java/security/cert/X509CRL.java,
3109 java/security/cert/X509CRLEntry.java,
3110 java/security/cert/X509Certificate.java,
3111 java/security/cert/X509Extension.java: Imported from Classpath.
3112 * java/util/Hashtable.java: Imported from Classpath.
3114 * java/util/zip/ZipInputStream.java: Create stub for
3117 * gcj/javaprims.h: Updated class list.
3119 * Makefile.in, gcj/Makefile.in: Rebuilt.
3120 * Makefile.am (ordinary_java_source_files): Add these new classes.
3122 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3124 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3125 * gnu/gcj/awt/GLightweightPeer.java: New file.
3126 * java/awt/BorderLayout.java: Implemented all methods.
3127 * java/awt/Button.java (actionListener, actionCommand): Renamed
3128 and modifier change.
3129 (addNotify): Call super.
3130 (dispatchEventImpl): New method.
3131 (getListeners): New method.
3132 (label): Made package-private, not private.
3133 * java/awt/Canvas.java: Implemented class body.
3134 * java/awt/Color.java (brighter): New method.
3135 (darker): New method.
3136 (hashCode): New method.
3137 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3138 (getGraphicsConfiguration): Delegate to
3139 getGraphicsConfigurationImpl().
3140 (getGraphicsConfigurationImpl): New method.
3141 (getToolkit): Only return value from peer if not null.
3142 (isDisplayable): Check with parent.
3143 (isShowing): No parent implies not showing.
3144 (getForeground): Check parent property if local is null.
3145 (getBackground): Likewise.
3146 (getFont): Likewise.
3147 (setForeground): Inform peer.
3148 (setBackground): Likewise
3149 (setLocale): Invalidate component.
3150 (getColorModel): Implemented.
3151 (setLocation): Invalidate, or ignore if no change.
3152 (setSize): Invalidate, or ignore if no change.
3153 (setBounds): Invalidate, or ignore if no change.
3154 (isOpaque): By default, heavyweight implies opaque.
3155 (isLightweight): Implemented.
3156 (getMaximumSize): Implemented.
3157 (doLayout): Implemented, NOP.
3158 (validate): Implemented, NOP.
3159 (invalidate): Only propagate to parent if parent was valid.
3160 (getGraphics): Implemented.
3161 (getFontMetrics): Implemented.
3162 (update): Implemented.
3163 (paintAll): Implemented.
3164 (repaint): Implemented all repaint methods.
3165 (print): Implemented.
3166 (printAll): Implemented.
3167 (createImage): Implemented.
3168 (dispatchEvent): Give the peer a chance to handle the event.
3169 (dispatchEventImpl): Dispatch paint events.
3170 (enableEvents): Lightweights enable events on parent component.
3171 (coalesceEvents): Coalesce paint events, and select event type
3173 (coalescePaintEvents): New method.
3174 (processEvent): Fix unfortunate ordering of statements, and call
3175 correct method for MOUSE_CLICKED.
3176 (processPaintEvent): New method.
3177 (addNotify): Allow container to notify children before event
3178 mask is set in peer.
3179 (addNotifyContainerChildren): New method.
3180 (removeNotify): Visibility should not change on removeNotify.
3181 (paramString): Implemented.
3182 (list): Implemented two of the list methods.
3183 * Container (myInsets): Removed, insets are managed by peer.
3184 (getInsets): Query peer.
3185 (addImpl): Fix reparenting, enable events for lightweights,
3186 initialize component array.
3187 (validate): Call doLayout in validateTree() instead.
3188 (validateTree): Do nothing if already valid. Call beginValidate(),
3189 endValidate() on peer. Call validateTree() instead of validate()
3190 for children that are containers. Mark valid after validation of
3192 (setFont): Partial implementation.
3193 (paint): Implemented.
3194 (visitChildren): New method.
3195 (visitChild): New method.
3196 (update): Implemented.
3197 (print): Implemented.
3198 (paintComponents): Implemented.
3199 (printComponents): Consider translation and clipping.
3200 (getComponentAt): Ignore invisible children. Return this if no
3202 (addNotify): Call super.
3203 (addNotifyContainerChildren): New method.
3204 (paramString): Implemented.
3205 (list): Implemented.
3206 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3208 (invokeLater): Likewise.
3209 (isDispatchThread): Likewise.
3210 * java/awt/FontMetrics (getLeading): Formula change.
3211 (getDescent): Consider leading also.
3212 (getMaxAscent): Default to getAscent().
3213 (getMaxDescent): Default to getDescent.
3214 (getMaxAdvance): Return value signifying unknown.
3215 (charWidth): Both methods implemented.
3216 (charsWidth): Implemented.
3217 (bytesWidth): Implemented.
3218 (getWidths): Implemented.
3219 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3221 (Frame): Rearragend constuctor chaining to disallow null being
3222 passed as a graphics configuration.
3223 (getTitle): Return empty string if null.
3225 (getIconImage): New method.
3226 (setIconImage): New method.
3227 (finalize): New method.
3228 (setMenuBar): Notify peer.
3229 (isResizable): New method.
3230 (setResizable): New method.
3231 (getState): New method.
3233 (remove): Implemented.
3234 (removeNotify): New method.
3235 (getFrames): New method.
3236 * java/awt/Graphics.java: Implemented body of class.
3237 * java/awt/Graphics2D.java: New file.
3238 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3239 * java/awt/Image.java: Implemented body of class.
3240 * java/awt/Panel.java (Panel): Call correct super constructor.
3241 (addNotify): Implemented.
3242 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3243 * java/awt/RenderingHints.java: New file.
3244 * java/awt/Toolkit.java (createComponent): Implemented.
3245 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3246 * java/awt/Window.java (Window): Two new constructors. Reordered
3247 constructor chaining.
3248 (getGraphicsConfigurationImpl): New method.
3249 (finalize): Call super.
3250 (addNotify): Call super.
3251 (pack): Do layout stuff.
3252 (show): Ensure that peer exists and that component is valid.
3253 (dispose): Dispose owned children.
3254 (getOwner): Simplify code, casting null pointers is valid.
3255 (getGraphicsConfiguration): Ask peer if local value is null.
3256 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3258 * java/awt/image/BufferedImage.java: New file.
3259 * java/awt/image/RasterOp.java: New file.
3260 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3261 More powerfull replacement for getColorModel().
3262 (getColorModel) Removed.
3263 (setEventMask) New method.
3264 * Makefile.am: Added new files.
3265 * Makefile.in: Rebuilt.
3267 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3269 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3270 (finit_leg_name): New global.
3271 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3272 `$finit$'. This is a backward compatibility hack.
3273 (java::lang::Class::_getMethods): Likewise.
3275 2000-08-15 Andrew Haley <aph@cygnus.com>
3277 * include/jvm.h (_Jv_HashCode): New hash code.
3279 2000-08-15 Tom Tromey <tromey@cygnus.com>
3281 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3283 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3285 * THANKS: More thanks.
3287 2000-08-10 Tom Tromey <tromey@cygnus.com>
3289 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3291 (connect): Likewise.
3293 (getOption): Likewise.
3294 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3295 case when errno not set.
3298 (receive): Likewise.
3299 (mcastGrp): Likewise.
3300 (setOption): Likewise.
3301 (getOption): Likewise.
3303 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3304 John Stracke <francis@ecal.com>
3306 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3307 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3309 (disconnect): Don't unset connected flag.
3310 (getHeaderField (String)): Call connect() if not connected.
3311 (getHeaderField (int)): Ditto.
3312 (getHeaderFieldKey): Ditto.
3313 (getHttpHeaders): Don't call connect().
3314 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3315 gotResponseVals): New fields.
3316 (getResponseCode): Call getResponseVals() conditionally.
3317 (getResponseMessage): Ditto.
3318 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3320 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3322 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3323 * Makefile.in: Rebuilt.
3324 * java/awt/Color.java (getTransparency): New method.
3325 * java/awt/Component.java: Various updates.
3326 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3327 after dealing with children.
3328 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3329 * java/awt/Window.java: Various new methods and updates.
3330 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3332 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3333 * java/awt/event/WindowEvent.java (paramString): Ditto.
3334 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3336 * java/awt/geom/Point2D.java (clone): Ditto.
3337 * java/awt/geom/RectangularShape.java (clone): Ditto.
3338 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3339 isAlphaPremultiplied): Make package-private, not private.
3341 2000-08-08 Tom Tromey <tromey@cygnus.com>
3343 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3344 surrogate characters.
3345 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3347 (write): Correct handling of surrogate characters.
3349 2000-08-07 Tom Tromey <tromey@cygnus.com>
3351 * java/lang/reflect/Method.java (hashCode): Use getName().
3352 (toString): Likewise.
3353 * java/lang/reflect/natMethod.cc (getType): Initialize
3356 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3358 * java/lang/reflect/Field.java (toString): Correct formatting.
3361 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3363 (receive): Streamlined.
3365 2000-08-05 Tom Tromey <tromey@cygnus.com>
3367 * java/io/PrintWriter.java: Merged comments from Classpath.
3368 (printlnUnsynchronized): Removed.
3369 (println()): Print the separator.
3370 (println): Call println(), not printlnUnsynchronized.
3371 (out): Now protected, to match spec.
3373 2000-08-04 Tom Tromey <tromey@cygnus.com>
3375 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3376 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3379 2000-08-03 Warren Levy <warrenl@cygnus.com>
3381 * java/io/ObjectInputStream.java (readFields): Turn off
3382 readDataFromBlock while reading via GetField.
3383 (GetField$1.get(String, Object)): Pass Class of default value to
3385 (getField): Allow for null default values.
3387 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3388 (PutField$1.put): Fixed calls of checkType in most of the put
3389 methods to pass the correct parameter.
3390 (PutField$1.put(String, Object)): Allow for null value arg.
3391 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3394 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3395 typo in spec'ed field name.
3396 (getSerialPersistentFields): Changed spelling of method to match
3397 the correct spelling of the spec'ed field name.
3399 2000-08-03 Tom Tromey <tromey@cygnus.com>
3401 * Makefile.in: Rebuilt.
3402 * Makefile.am (awt_java_source_files): Added new files.
3404 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3406 * Makefile.am: Add new AWT stubs.
3407 * java/awt/Canvas.java: New placeholder class.
3408 * java/awt/Checkbox.java: Ditto.
3409 * java/awt/CheckboxMenuItem.java: Ditto.
3410 * java/awt/Choice.java: Ditto.
3411 * java/awt/Dialog.java: Ditto.
3412 * java/awt/FileDialog.java: Ditto.
3413 * java/awt/List.java: Ditto.
3414 * java/awt/ScrollPane.java: Ditto.
3415 * java/awt/TextField.java: Ditto.
3416 * java/awt/datatransfer/Clipboard.java: Ditto.
3417 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3418 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3419 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3420 Some commented out. Partially implemented.
3421 * java/awt/natToolkit.cc: Removed file.
3423 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3425 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3426 Fixes "make -j" builds.
3427 * Makefile.in: Rebuild.
3429 2000-08-02 Tom Tromey <tromey@cygnus.com>
3431 * Makefile.in: Rebuilt.
3432 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3433 * java/net/natPlainSocketImpl.cc: Include posix.h.
3434 (accept): Use _Jv_select.
3435 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3436 (receive): Use _Jv_select.
3437 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3438 (available): Use _Jv_select.
3439 * java/lang/natSystem.cc: Include posix.h.
3440 (currentTimeMillis): Use _Jv_gettimeofday.
3441 * include/posix.h: New file.
3442 * posix.cc: New file.
3444 * scripts/encodings.pl: New file.
3445 * Makefile.in: Rebuilt.
3446 * Makefile.am (convert_source_files): Added IOConverter.java.
3447 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3449 (getDefaultDecodingClass): Canonicalize default encoding name.
3450 (getEncoder): Likewise.
3451 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3453 (getDefaultDecodingClass): Canonicalize default encoding name.
3454 (getDecoder): Likewise.
3455 * gnu/gcj/convert/IOConverter.java: New file.
3457 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3459 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3460 to match C declaration in ffi.h.
3461 * Makefile.am: Add java/awt/Button.java.
3462 * Makefile.in: Rebuilt.
3464 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3466 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3467 cast of the second argument to `ffi_raw_call' changed to match
3470 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3472 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3473 argument to `ffi_raw_call' changed to match prototype.
3475 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3477 * java/awt/Component.java (toString): Implemented.
3478 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3479 dispatchEvent() to dispatch the event.
3480 (removeImpl): Ditto.
3482 2000-07-30 Anthony Green <green@redhat.com>
3484 * java/awt/Component.java: Add treeLock object.
3485 (getTreeLock): Implement.
3486 (isShowing): Implement.
3488 2000-07-30 Tom Tromey <tromey@cygnus.com>
3490 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3492 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3494 * java/awt/Window.java (addNotify): Wrote.
3495 (addWindowListener): Wrote.
3497 (getWarningString): Wrote.
3498 (processEvent): Wrote.
3499 (processWindowEvent): Wrote.
3500 (removeWindowListener): Wrote.
3501 (show): Call validate(), setVisible().
3505 * java/awt/Toolkit.java (createWindow): Declare.
3507 * java/awt/Frame.java (addNotify): Use getToolkit to find
3510 * java/awt/Component.java (invalidate): Wrote.
3512 (getToolkit): Wrote.
3514 * java/awt/Container.java (addContainerListener): Removed
3516 (removeContainerListener): Likewise.
3518 (add(Component)): Use it.
3519 (add(String,Component)): Likewise.
3520 (add(Component,int)): Likewise.
3521 (add(Component,Object)): Likewise.
3522 (add(Component,Object,int)): Likewise.
3524 (getAlignmentX): Wrote.
3525 (getAlignmentY): Wrote.
3526 (getComponentAt): Wrote.
3527 (getMaximumSize): Wrote.
3528 (invalidate): Wrote.
3529 (list(PrintStream,int)): Wrote.
3530 (list(PrintWriter,int)): Wrote.
3531 (getMinimumSize): Wrote.
3532 (getPreferredSize): Wrote.
3533 (printComponents): Wrote.
3534 (processContainerEvent): Look at containerListener, not
3536 (remove): Added event processing and peer destruction.
3537 (removeAll): Use remove.
3538 (removeNotify): Wrote.
3540 (validateTree): Wrote.
3542 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3543 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3544 * java/awt/Container.java (addNotify): Don't create Container
3546 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3548 2000-07-30 Tom Tromey <tromey@cygnus.com>
3550 * java/awt/Container.java (remove(int)): Wrote.
3551 (remove(Component)): Wrote.
3552 (add(Component)): Wrote.
3553 (add(Component,int)): Wrote.
3555 (addNotify): Set our own peer.
3556 * java/awt/Scrollbar.java (listeners): Changed type.
3557 (Scrollbar): Don't initialize listeners.
3559 (setValue): Call setValues.
3560 (setMinimum): Likewise.
3561 (setMaxPriority): Likewise.
3562 (setVisibleAmount): Likewise.
3564 (setUnitIncrement): Forward to peer.
3565 (setLineIncrement): Call setUnitIncrement.
3566 (setPageIncrement): Call setBlockIncrement.
3567 (setBlockIncrement): Forward to peer.
3568 (addAdjustmentListener): Rewrote.
3569 (removeAdjustmentListener): Rewrote.
3570 (processAdjustmentEvent): Rewrote.
3571 (paramString): Wrote.
3572 * Makefile.in: Rebuilt.
3573 * Makefile.am (awt_java_source_files): Added Button.java.
3574 * java/awt/Button.java: New file.
3575 * java/awt/Toolkit.java (createLabel): Declare.
3576 (createButton): Likewise.
3577 (createScrollbar): Likewise.
3578 (createContainer): Likewise.
3579 * java/awt/Label.java (addNotify): Wrote.
3580 (setAlignment): Call setAlignment in the peer.
3581 (setText): Call setText in the peer.
3583 2000-07-28 Warren Levy <warrenl@cygnus.com>
3585 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3586 NotSerializableException with just the class name.
3588 2000-07-26 Andrew Haley <aph@cygnus.com>
3590 * interpret.cc (continue1): Insert missing break into switch.
3592 2000-07-28 Warren Levy <warrenl@cygnus.com>
3594 * java/io/ObjectStreamException.java: Made constructors protected.
3596 2000-07-27 Tom Tromey <tromey@cygnus.com>
3598 * java/io/OutputStreamWriter.java (close): Only flush if not
3601 2000-07-27 Warren Levy <warrenl@cygnus.com>
3603 * mauve-libgcj: Activated serialization tests.
3604 * gcj/field.h (getModifiers): Mask off unknown flags.
3605 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3606 spurious bits don't cause discrepancies.
3607 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3608 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3609 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3610 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3611 * java/lang/Throwable.java (serialVersionUID): New field.
3612 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3613 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3615 * java/lang/reflect/natMethod.cc: Ditto.
3616 * java/security/Key.java (serialVersionUID): Removed field for now.
3617 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3618 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3620 2000-07-22 Tom Tromey <tromey@cygnus.com>
3622 * java/awt/geom/RectangularShape.java (getPathIterator):
3625 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3627 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3628 stub libjava/java/awt/ColorModel.java which was located in the
3630 * libjava/java/awt/image/ComponentColorModel.java: New file.
3631 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3632 * libjava/java/awt/image/DataBuffer.java: New file.
3633 * libjava/java/awt/image/DataBufferByte.java: New file.
3634 * libjava/java/awt/image/DataBufferInt.java: New file.
3635 * libjava/java/awt/image/DataBufferUShort.java: New file.
3636 * libjava/java/awt/image/DirectColorModel.java: New file.
3637 * libjava/java/awt/image/PackedColorModel.java: New file.
3638 * libjava/java/awt/image/Raster.java: New file.
3639 * libjava/java/awt/image/SampleModel.java: New file.
3640 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3642 * libjava/java/awt/image/IndexColorModel.java: New file.
3643 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3644 java.awt.ColorModel stub.
3646 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3647 * gnu/gcj/util/Buffers.java: New file, utility class.
3649 * libjava/Makefile.am: Updated to include new files.
3650 * libjava/Makefile.in: Rebuilt.
3652 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3654 * java/io/StreamTokenizer.java: Merged with classpath.
3656 2000-07-20 Tom Tromey <tromey@cygnus.com>
3658 * Makefile.in: Rebuilt.
3659 * Makefile.am (awt_java_source_files): Updated for new files.
3660 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3661 * java/awt/Label.java: New file.
3662 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3663 (createIntersection, createUnion, getBounds2D): New methods.
3664 * java/awt/Scrollbar.java: New file.
3665 * java/awt/Shape.java: Updated to 1.2.
3666 * java/awt/geom/AffineTransform.java: New file.
3667 * java/awt/geom/Ellipse2D.java: New file.
3668 * java/awt/geom/NoninvertibleTransformException.java: New file.
3669 * java/awt/geom/PathIterator.java: New file.
3670 * java/awt/geom/Rectangle2D.java: New file.
3671 * java/awt/geom/RectangularShape.java: New file.
3672 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3673 * java/awt/geom/IllegalPathStateException.java: New file.
3675 * scripts/showval.java: New file.
3677 * scripts/classes.pl (scan): Print inner classes properly.
3678 * gcj/javaprims.h: Updated class list.
3680 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3681 initialize String fields for interpreted classes. Fixes bug
3682 reported by Hans Boehm.
3684 * java/io/File.java (getParentFile): New method, from Classpath
3685 via Oskar Liljeblad.
3687 * java/util/Vector.java (remove(Object)): Implemented.
3689 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3691 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3692 zero return from backtrace().
3694 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3696 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3698 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3699 before calling notifyAll().
3701 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3703 Add missing files from last check-in:
3704 * java/awt/image/ImageConsumer.java: New file.
3705 * java/awt/image/ImageProducer.java: New file.
3706 * java/awt/image/ImageObserver.java: New file.
3708 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3710 Merged implementation of java.applet from classpath:
3711 * java/applet/Applet.java: New file.
3712 * java/applet/AppletContext.java: New file.
3713 * java/applet/AppletStub.java: New file.
3714 * java/applet/AudioClip.java: New file.
3716 * Makefile.am: Added new java.applet classes.
3717 * Makefile.in: Rebuilt.
3719 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3722 * java/util/ResourceBundle.java (getLocale): stub.
3723 * Makefile.am: Added new AWT classes.
3724 * Makefile.in: Rebuilt.
3725 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3726 constructors. Fix toString() and paramString().
3727 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3728 * java/awt/CheckboxGroup.java: New class.
3729 * java/awt/ColorModel.java: New class.
3730 * java/awt/Component.java: Added stubs for most methods. Implemented
3732 * java/awt/Container.java: ditto.
3733 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3734 * java/awt/Cursor.java: ditto.
3735 * java/awt/Event.java: Fix paramString().
3736 * java/awt/EventQueue.java: New class. Implemented.
3737 * java/awt/Font.java: Added additional stub methods. Implemented
3739 * java/awt/FontMetrics.java: New class. Stubbed.
3740 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3742 * java/awt/Insets.java: New class. Implemented.
3743 * java/awt/Menu.java: Add new methods. Partially implemented.
3744 * java/awt/MenuItem.java: Add new methods and fields. Partially
3746 * java/awt/MenuShortcut.java: New class. Implemented.
3747 * java/awt/Panel.java: New class. Placeholder.
3748 * java/awt/PopupMenu.java: New class. Stubbed.
3749 * java/awt/Rectangle.java: New class. Implemented.
3750 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3751 * java/awt/event/ActionEvent.java: Implement paramString().
3752 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3753 * java/awt/event/ComponentEvent.java: Implement paramString().
3754 * java/awt/event/ContainerEvent.java: Implement paramString().
3755 * java/awt/event/FocusEvent.java: Implement paramString().
3756 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3757 * java/awt/event/HierarchyBoundsListener.java: New class.
3758 * java/awt/event/HierarchyEvent.java: New class.
3759 * java/awt/event/HierarchyListener.java: New class.
3760 * java/awt/event/InputMethodEvent.java: Implement paramString().
3761 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3762 exception if !catchExceptions.
3763 * java/awt/event/ItemEvent.java: Implement paramString().
3764 * java/awt/event/KeyEvent.java: Implement paramString().
3765 * java/awt/event/MouseEvent.java: Implement paramString().
3766 * java/awt/event/PaintEvent.java: Implement paramString().
3767 * java/awt/event/TextEvent.java: Implement paramString().
3768 * java/awt/event/WindowEvent.java: Implement paramString().
3770 AWT Peer interfaces:
3771 * java/awt/peer/ButtonPeer.java: New file.
3772 * java/awt/peer/ListPeer.java: New file.
3773 * java/awt/peer/CanvasPeer.java: New file.
3774 * java/awt/peer/MenuBarPeer.java: New file.
3775 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3776 * java/awt/peer/MenuComponentPeer.java: New file.
3777 * java/awt/peer/CheckboxPeer.java: New file.
3778 * java/awt/peer/MenuItemPeer.java: New file.
3779 * java/awt/peer/ChoicePeer.java: New file.
3780 * java/awt/peer/MenuPeer.java: New file.
3781 * java/awt/peer/ComponentPeer.java: Implemented.
3782 * java/awt/peer/PanelPeer.java: New file.
3783 * java/awt/peer/ContainerPeer.java: Implemented.
3784 * java/awt/peer/PopupMenuPeer.java: New file.
3785 * java/awt/peer/DialogPeer.java: New file.
3786 * java/awt/peer/ScrollPanePeer.java: New file.
3787 * java/awt/peer/FileDialogPeer.java: New file.
3788 * java/awt/peer/ScrollbarPeer.java: New file.
3789 * java/awt/peer/FontPeer.java: New file.
3790 * java/awt/peer/TextAreaPeer.java: New file.
3791 * java/awt/peer/FramePeer.java: Implemented.
3792 * java/awt/peer/TextComponentPeer.java: New file.
3793 * java/awt/peer/LabelPeer.java: New file.
3794 * java/awt/peer/TextFieldPeer.java: New file.
3795 * java/awt/peer/LightweightPeer.java: New file.
3796 * java/awt/peer/WindowPeer.java: Implemented.
3798 2000-07-06 Tom Tromey <tromey@cygnus.com>
3800 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3801 Initialize static final String fields.
3803 2000-07-03 Tom Tromey <tromey@cygnus.com>
3805 * java/io/PrintWriter.java (print): Call write(String), not
3806 print(String). See PR libgcj/277.
3807 (print(String)): Use write, not out.write.
3809 2000-06-30 Tom Tromey <tromey@cygnus.com>
3811 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3813 2000-06-27 Andrew Haley <aph@cygnus.com>
3815 * java/io/File.java (createTempFile): Close the FileDescriptor
3816 used to create a temp file. Fixes some of PR 203.
3817 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3818 collection if we run out of file handles.
3820 2000-06-28 Warren Levy <warrenl@cygnus.com>
3822 * gnu/java/security/provider/Gnu.java: New file.
3823 * gnu/java/security/provider/SHA.java: New file.
3824 * gnu/java/security/provider/SHA1PRNG.java: New file.
3825 * Makefile.am: Added the above files.
3826 * Makefile.in: Rebuilt.
3828 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3830 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3832 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3833 (destroyed_flag): Removed.
3834 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3835 (activeCount): Added spec note.
3837 2000-06-27 Warren Levy <warrenl@cygnus.com>
3839 * java/security/Principal.java: New file.
3840 * Makefile.am: Added Principal.java.
3841 * Makefile.in: Rebuilt.
3843 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3845 * java/awt/event/MouseEvent.java: Fixed coordinate space
3848 2000-06-27 Tom Tromey <tromey@cygnus.com>
3850 * java/io/PushbackInputStream.java (read): If there are characters
3851 in the buffer, don't also call super.read().
3852 * java/io/PushbackReader.java (read): If there are characters in
3853 the buffer, don't also call super.read().
3855 * java/lang/Double.java (valueOf): Call parseDouble().
3857 2000-06-26 Warren Levy <warrenl@cygnus.com>
3859 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3860 (newVal): Renamed to newValue.
3861 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3862 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3863 (revokeNow): Renamed to invalidateRefs.
3864 * java/io/OptionalDataException.java: Updated FIXME.
3865 (eof): New placeholder field.
3867 * java/io/WriteAbortedException.java (message): Made transient.
3868 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3869 * java/lang/Throwable.java (stackTrace): Made transient.
3870 * java/net/InetAddress.java: Made Serializable.
3871 * java/security/KeyPair.java: Made Serializable.
3872 * java/security/Provider.java: Replaced with Classpath version that
3873 implements serialization and proper methods.
3874 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3875 (limits): Renamed to choiceLimits.
3877 2000-06-24 Tom Tromey <tromey@cygnus.com>
3879 * java/lang/natDouble.cc (parseDouble): Renamed from
3881 * java/lang/Double.java (parseDouble): Renamed from
3882 doubleValueOf. Now public.
3884 2000-06-23 Andrew Haley <aph@cygnus.com>
3886 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3887 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3889 2000-06-23 Tom Tromey <tromey@cygnus.com>
3891 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3892 * java/lang/natDouble.cc: Always include <alloca.h>.
3893 Fix for PR libgcj/267.
3895 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3897 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3898 comply with classpath VM spec.
3899 (add(Group)): Rename to addGroup().
3900 * java/lang/Thread.java (Thread): Use addThread().
3901 * java/lang/natThread.cc (finish_): Use removeThread().
3903 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3905 * java/lang/ThreadGroup.java: Merged with classpath.
3906 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3907 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3909 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3910 ThreadGroup.root if Thread.currentThread is null. Honour the
3911 ThreadGroup's max priority setting.
3913 2000-06-18 Tom Tromey <tromey@cygnus.com>
3915 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3916 returned class. For PR gcj/260.
3918 2000-06-16 Tom Tromey <tromey@cygnus.com>
3920 Fix for PR libgcj/261:
3921 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3923 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3924 argument. (This is a patch from long ago that somehow went
3927 2000-06-15 Tom Tromey <tromey@cygnus.com>
3929 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3933 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3935 Fix for PR java.lang/258:
3936 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3937 JV_STATE_DONE, to prevent accidental initialization.
3938 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3939 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3940 interface or an abstract class. Remove redundant initializeClass calls.
3941 Remove duplicate if_idt test.
3942 (_Jv_InterfaceAssignableFrom): New function.
3943 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3945 2000-05-31 Tom Tromey <tromey@cygnus.com>
3947 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3948 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3949 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3950 (NUM_OBJECT_METHODS): New define.
3951 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3952 `array_vtable' parameter. Added assertion.
3953 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3956 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3958 * gcj/cni.h: Include <string.h>.
3959 * defineclass.cc: Include <alloca.h>.
3960 * interpret.cc: Ditto.
3961 * gij.cc: Include <stdlib.h>.
3963 2000-05-30 Tom Tromey <tromey@cygnus.com>
3965 * include/name-finder.h: Include <sys/wait.h>.
3966 (_Jv_name_finder::pid): Now of type `pid_t'.
3967 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3968 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3971 2000-05-24 Warren Levy <warrenl@cygnus.com>
3973 * java/io/ObjectOutputStream.java (writeObject): Use component type
3974 when writing arrays.
3977 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3979 Fix for PR libgcj/226:
3980 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3981 since this is an installed header.
3983 Fix for PR libgcj/228:
3984 * java/util/zip/ZipFile (getInputStream): Create inflater with
3987 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3988 with DataFormatException.
3990 2000-05-20 Tom Tromey <tromey@cygnus.com>
3992 * Makefile.in: Rebuilt.
3993 * Makefile.am (hack1): Removed.
3994 (awto_files): Likewise.
3995 (libgcjawt_la_SOURCES): Likewise.
3996 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3997 (libgcjawt_la_DEPENDENCIES): Likewise.
3998 (libgcjawt_la_LIBADD): Likewise.
3999 (libgcjawt_la_LDFLAGS): Likewise.
4000 (libgcjawt_la_LINK): Likewise.
4001 ($(awt_java_source_files:.java=.class)): Likewise.
4002 (libgcj.zip): Don't depend on AWT files.
4003 (MOSTLYCLEANFILES): Don't include AWT files.
4004 ($(awto_files)): Removed.
4005 (nat_headers): Removed AWT files.
4006 (cond_awt_java_source_files): Removed.
4007 (ordinary_java_source_files): Added awt_java_source_files.
4008 * libgcj.spec.in (*lib): Removed -lgcjawt.
4009 * configure: Rebuilt.
4010 * configure.in: Removed --enable-java-awt option.
4012 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
4014 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4015 (ZipEntry): Copy the `name' field.
4016 (clone): Implement JDK1.2 method.
4017 (setCompressedSize): ditto.
4020 2000-05-19 Tom Tromey <tromey@cygnus.com>
4022 * java/io/BufferedWriter.java: Merged with Classpath.
4023 * java/io/BufferedOutputStream.java: Merged with Classpath.
4025 2000-05-16 Andrew Haley <aph@cygnus.com>
4027 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4028 build_ia64_frame_state.
4029 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4032 2000-05-15 Warren Levy <warrenl@cygnus.com>
4034 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4035 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4036 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4037 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4038 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4039 * gnu/gcj/beans/editors/FontEditor.java: Removed.
4040 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4041 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4042 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4043 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4044 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4045 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4046 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4047 * gnu/gcj/beans/editors/StringEditor.java: Removed.
4048 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4049 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4050 * gnu/gcj/io/NullOutputStream.java: Removed.
4051 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4052 * gnu/gcj/lang/ArrayHelper.java: Removed.
4053 * gnu/gcj/lang/ClassHelper.java: Removed.
4054 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4056 * gnu/java/beans/BeanInfoEmbryo.java: New file.
4057 * gnu/java/beans/EmptyBeanInfo.java: New file.
4058 * gnu/java/beans/ExplicitBeanInfo.java: New file.
4059 * gnu/java/beans/IntrospectionIncubator.java: New file.
4060 * gnu/java/beans/editors/ColorEditor.java: New file.
4061 * gnu/java/beans/editors/FontEditor.java: New file.
4062 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4063 * gnu/java/beans/editors/NativeByteEditor.java: New file.
4064 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4065 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4066 * gnu/java/beans/editors/NativeIntEditor.java: New file.
4067 * gnu/java/beans/editors/NativeLongEditor.java: New file.
4068 * gnu/java/beans/editors/NativeShortEditor.java: New file.
4069 * gnu/java/beans/editors/StringEditor.java: New file.
4070 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4071 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4072 * gnu/java/io/NullOutputStream.java: New file.
4073 * gnu/java/io/ObjectIdentityWrapper.java: New file.
4074 * gnu/java/lang/ArrayHelper.java: New file.
4075 * gnu/java/lang/ClassHelper.java: New file.
4076 * gnu/java/lang/reflect/TypeSignature.java: New file.
4078 * Makefile.am: Updated for moving Classpath files from gnu/gcj
4079 namespace back to the original Classpath gnu/java namespace.
4080 * Makefile.in: Rebuilt.
4082 * java/beans/Beans.java: Namespace change.
4083 * java/beans/EventSetDescriptor.java: Namespace change.
4084 * java/beans/Introspector.java: Namespace change.
4085 * java/beans/PropertyEditorManager.java: Namespace change.
4086 * java/io/ObjectInputStream.java: Namespace change.
4087 * java/io/ObjectOutputStream.java: Namespace change.
4088 * java/io/ObjectStreamClass.java: Namespace change.
4089 * java/io/ObjectStreamField.java: Namespace change.
4091 2000-04-21 Warren Levy <warrenl@cygnus.com>
4093 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4094 now that compiler patch is available.
4095 Removed unneeded System.loadLibrary.
4096 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4097 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4099 2000-04-19 Andrew Haley <aph@cygnus.com>
4101 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4102 and target classes have been initialized.
4104 2000-04-19 Andrew Haley <aph@cygnus.com>
4106 * java/lang/String.java: implement Serializable, Comparable.
4107 (compareTo (Object)): New method.
4109 2000-04-19 Warren Levy <warrenl@cygnus.com>
4111 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4112 instead of getField to retrieve non-public field.
4113 (getSerialPersistantFields): Ditto.
4115 2000-04-18 Warren Levy <warrenl@cygnus.com>
4117 * mauve-libgcj: Turned off object serialization tests temporarily
4118 due to compiler error.
4120 2000-04-17 Warren Levy <warrenl@cygnus.com>
4122 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4123 to avoid build problem.
4125 * mauve-libgcj: Turned on object serialization tests.
4127 2000-04-17 Tom Tromey <tromey@cygnus.com>
4129 * libgcj.spec.in (*lib): Added -lgcjawt.
4131 2000-04-17 Andrew Haley <aph@cygnus.com>
4133 * Makefile.am: Add new files:
4134 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4136 * Makefile.in: Rebuilt.
4138 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4139 interface that has no implementations.
4140 Check for an attempt to assign an abstract class to an interface.
4142 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4143 if we fail to find MessageDigest.getInstance ("SHA").
4145 * gnu/gcj/io/SimpleSHSStream.java: New file.
4146 * gnu/gcj/io/natSimpleSHSStream.java: New file.
4147 * gnu/gcj/io/shs.cc: New file.
4148 * gnu/gcj/io/shs.h: new file.
4150 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4153 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4154 punctuation from the classname of an array element.
4156 * gcj/javaprims.h: Add SimpleDigestStream.
4158 2000-04-17 Andrew Haley <aph@cygnus.com>
4160 * java/lang/natClass.cc (getPrivateField): Make recursive calls
4161 to getPrivateField for superclasses.
4163 2000-04-14 Andrew Haley <aph@cygnus.com>
4165 * Makefile.am: Add new files:
4166 java/io/ObjectOutputStream$PutField.h,
4167 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4168 java/io/natObjectOutputStream.cc
4169 * Makefile.in: Rebuilt.
4170 * gcj/Makefile.in: Rebuilt.
4171 * include/Makefile.in: Rebuilt.
4172 * java/lang/Class.h (getPrivateField): New method.
4173 (getPrivateMethod): Ditto.
4174 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4175 and java::io::ObjectStreamClass our friends.
4176 * java/lang/natClass.cc (getPrivateField): New method.
4177 (getPrivateMethod): Ditto.
4178 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4179 * gcj/javaprims.h: Add serialization classes.
4180 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4181 (setByteField): Ditto.
4182 (setCharField): Ditto.
4183 (setDoubleField): Ditto.
4184 (setFloatField): Ditto.
4185 (setIntField): Ditto.
4186 (setLongField): Ditto.
4187 (setShortField): Ditto.
4188 (setObjectField): Ditto.
4189 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4191 (getByteField): Ditto.
4192 (getCharField): Ditto.
4193 (getDoubleField): Ditto.
4194 (getFloatField): Ditto.
4195 (getIntField): Ditto.
4196 (getLongField): Ditto.
4197 (getShortField): Ditto.
4198 (getObjectField): Ditto.
4199 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4201 (getSerialPersistantFields): Ditto.
4202 (getDefinedSUID): Ditto.
4203 * java/io/natObjectOutputStream.cc: New file.
4204 * java/io/natObjectInputStream.cc: New file.
4206 2000-04-13 Warren Levy <warrenl@cygnus.com>
4208 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4209 problems. Revert to previous version to reproduce and when fixed.
4211 2000-04-13 Warren Levy <warrenl@cygnus.com>
4213 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4214 * gnu/gcj/io/NullOutputStream.java: New file.
4215 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4216 * java/io/BlockDataException.java: New file.
4217 * java/io/Externalizable.java: New file.
4218 * java/io/InvalidClassException.java: New file.
4219 * java/io/InvalidObjectException.java: New file.
4220 * java/io/NotActiveException.java: New file.
4221 * java/io/NotSerializableException.java: New file.
4222 * java/io/ObjectInput.java: New file.
4223 * java/io/ObjectInputStream.java: New file.
4224 * java/io/ObjectInputValidation.java: New file.
4225 * java/io/ObjectOutput.java: New file.
4226 * java/io/ObjectOutputStream.java: New file.
4227 * java/io/ObjectStreamClass.java: New file.
4228 * java/io/ObjectStreamConstants.java: New file.
4229 * java/io/ObjectStreamField.java: New file.
4230 * java/io/Replaceable.java: New file.
4231 * java/io/Resolvable.java: New file.
4232 * java/io/SerializablePermission.java: New file.
4233 * java/io/WriteAbortedException.java: New file.
4234 * java/security/BasicPermission.java: New file.
4235 * java/security/DigestOutputStream.java: New file.
4236 * java/security/Guard.java: New file.
4237 * java/security/Permission.java: New file.
4238 * java/security/PermissionCollection.java: New file.
4239 * Makefile.am: Added above files.
4240 * Makefile.in: Rebuilt.
4242 * java/beans/Beans.java (instantiate): Activated serialization code.
4243 * java/lang/SecurityManager.java (checkPermission): New method.
4245 2000-04-12 Warren Levy <warrenl@cygnus.com>
4247 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4248 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4249 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4250 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4251 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4252 * gnu/gcj/beans/editors/FontEditor.java: New file.
4253 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4254 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4255 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4256 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4257 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4258 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4259 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4260 * gnu/gcj/beans/editors/StringEditor.java: New file.
4261 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4262 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4263 * gnu/gcj/lang/ArrayHelper.java: New file.
4264 * gnu/gcj/lang/ClassHelper.java: New file.
4265 * java/beans/BeanDescriptor.java: New file.
4266 * java/beans/BeanInfo.java: New file.
4267 * java/beans/Beans.java: New file.
4268 * java/beans/Customizer.java: New file.
4269 * java/beans/DesignMode.java: New file.
4270 * java/beans/EventSetDescriptor.java: New file.
4271 * java/beans/FeatureDescriptor.java: New file.
4272 * java/beans/IndexedPropertyDescriptor.java: New file.
4273 * java/beans/IntrospectionException.java: New file.
4274 * java/beans/Introspector.java: New file.
4275 * java/beans/MethodDescriptor.java: New file.
4276 * java/beans/ParameterDescriptor.java: New file.
4277 * java/beans/PropertyChangeEvent.java: New file.
4278 * java/beans/PropertyChangeListener.java: New file.
4279 * java/beans/PropertyChangeSupport.java: New file.
4280 * java/beans/PropertyDescriptor.java: New file.
4281 * java/beans/PropertyEditor.java: New file.
4282 * java/beans/PropertyEditorManager.java: New file.
4283 * java/beans/PropertyEditorSupport.java: New file.
4284 * java/beans/PropertyVetoException.java: New file.
4285 * java/beans/SimpleBeanInfo.java: New file.
4286 * java/beans/VetoableChangeListener.java: New file.
4287 * java/beans/VetoableChangeSupport.java: New file.
4288 * java/beans/Visibility.java: New file.
4289 * java/beans/beancontext/BeanContext.java: New file.
4290 * java/beans/beancontext/BeanContextChild.java: New file.
4291 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4292 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4293 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4294 * java/beans/beancontext/BeanContextEvent.java: New file.
4295 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4296 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4297 * java/beans/beancontext/BeanContextProxy.java: New file.
4298 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4300 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4301 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4303 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4304 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4306 * java/beans/beancontext/BeanContextServices.java: New file.
4307 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4308 * java/util/AbstractCollection.java: New file.
4309 * java/util/AbstractList.java: New file.
4310 * java/util/Arrays.java: New file.
4311 * Makefile.am: Added above files.
4312 * Makefile.in: Rebuilt.
4314 2000-04-11 Warren Levy <warrenl@cygnus.com>
4316 * java/awt/AWTError.java: New file.
4317 * java/awt/AWTEvent.java: New file.
4318 * java/awt/AWTException.java: New file.
4319 * java/awt/ActiveEvent.java: New file.
4320 * java/awt/Adjustable.java: New file.
4321 * java/awt/BorderLayout.java: New file.
4322 * java/awt/Color.java: New file.
4323 * java/awt/Component.java: New file.
4324 * java/awt/Container.java: New file.
4325 * java/awt/Dimension.java: New file.
4326 * java/awt/Event.java: New file.
4327 * java/awt/Font.java: New file.
4328 * java/awt/Frame.java: New file.
4329 * java/awt/Graphics.java: New file.
4330 * java/awt/IllegalComponentStateException.java: New file.
4331 * java/awt/Image.java: New file.
4332 * java/awt/ItemSelectable.java: New file.
4333 * java/awt/LayoutManager.java: New file.
4334 * java/awt/LayoutManager2.java: New file.
4335 * java/awt/Menu.java: New file.
4336 * java/awt/MenuBar.java: New file.
4337 * java/awt/MenuComponent.java: New file.
4338 * java/awt/MenuContainer.java: New file.
4339 * java/awt/MenuItem.java: New file.
4340 * java/awt/Paint.java: New file.
4341 * java/awt/PaintContext.java: New file.
4342 * java/awt/Point.java: New file.
4343 * java/awt/Rectangle.java: New file.
4344 * java/awt/Shape.java: New file.
4345 * java/awt/TextArea.java: New file.
4346 * java/awt/TextComponent.java: New file.
4347 * java/awt/Toolkit.java: New file.
4348 * java/awt/Transparency.java: New file.
4349 * java/awt/Window.java: New file.
4350 * java/awt/natToolkit.cc: New file.
4351 * java/awt/event/AWTEventListener.java: New file.
4352 * java/awt/event/ActionEvent.java: New file.
4353 * java/awt/event/ActionListener.java: New file.
4354 * java/awt/event/AdjustmentEvent.java: New file.
4355 * java/awt/event/AdjustmentListener.java: New file.
4356 * java/awt/event/ComponentAdapter.java: New file.
4357 * java/awt/event/ComponentEvent.java: New file.
4358 * java/awt/event/ComponentListener.java: New file.
4359 * java/awt/event/ContainerAdapter.java: New file.
4360 * java/awt/event/ContainerEvent.java: New file.
4361 * java/awt/event/ContainerListener.java: New file.
4362 * java/awt/event/FocusAdapter.java: New file.
4363 * java/awt/event/FocusEvent.java: New file.
4364 * java/awt/event/FocusListener.java: New file.
4365 * java/awt/event/InputEvent.java: New file.
4366 * java/awt/event/InputMethodEvent.java: New file.
4367 * java/awt/event/InputMethodListener.java: New file.
4368 * java/awt/event/InvocationEvent.java: New file.
4369 * java/awt/event/ItemEvent.java: New file.
4370 * java/awt/event/ItemListener.java: New file.
4371 * java/awt/event/KeyAdapter.java: New file.
4372 * java/awt/event/KeyEvent.java: New file.
4373 * java/awt/event/KeyListener.java: New file.
4374 * java/awt/event/MouseAdapter.java: New file.
4375 * java/awt/event/MouseEvent.java: New file.
4376 * java/awt/event/MouseListener.java: New file.
4377 * java/awt/event/MouseMotionAdapter.java: New file.
4378 * java/awt/event/MouseMotionListener.java: New file.
4379 * java/awt/event/PaintEvent.java: New file.
4380 * java/awt/event/TextEvent.java: New file.
4381 * java/awt/event/TextListener.java: New file.
4382 * java/awt/event/WindowAdapter.java: New file.
4383 * java/awt/event/WindowEvent.java: New file.
4384 * java/awt/event/WindowListener.java: New file.
4385 * java/awt/geom/Dimension2D.java: New file.
4386 * java/awt/geom/Point2D.java: New file.
4387 * java/awt/peer/ComponentPeer.java: New file.
4388 * java/awt/peer/ContainerPeer.java: New file.
4389 * java/awt/peer/FramePeer.java: New file.
4390 * java/awt/peer/WindowPeer.java: New file.
4391 * java/util/Collection.java: New file.
4392 * java/util/Comparator.java: New file.
4393 * java/util/Iterator.java: New file.
4394 * java/util/List.java: New file.
4395 * java/util/ListIterator.java: New file.
4396 * Makefile.am: Added above files.
4397 * Makefile.in: Rebuilt.
4399 2000-04-10 Warren Levy <warrenl@cygnus.com>
4401 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4402 * java/lang/FirstThread.java: Ditto.
4403 * java/lang/StringBuffer.java: Ditto.
4404 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4406 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4407 Special case handled in java.math.BigInteger.
4408 * java/math/BigInteger.java (divide): Handle the special case when
4409 dividing by 1 and the high bit of the dividend is set.
4410 (setShiftRight): Handle case when count == 0.
4412 2000-04-05 Andrew Haley <aph@cygnus.com>
4414 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4417 2000-04-05 Andrew Haley <aph@cygnus.com>
4419 * sysdep/ia64.c (rse_address_add): Delete.
4420 (IS_NaT_COLLECTION_ADDR): Delete.
4421 (ia64_backtrace_helper): check for null unwind_info.
4423 * sysdep/ia64-frame.h: add calc_caller_bsp.
4425 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4428 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4429 (_Jv_remI): Likewise.
4430 (_Jv_divJ): Likewise.
4431 (_Jv_remJ): Likewise.
4433 * interpret.cc (continue1): Use divide subroutines to guarantee
4434 correct Java standard behaviour.
4435 Floating-point division should not abort; make it so.
4437 2000-03-29 Tom Tromey <tromey@cygnus.com>
4439 * configure: Rebuilt.
4440 * configure.in: Test against `libgcj_sjlj', not
4441 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4442 to be set even when using sjlj.
4444 2000-03-24 Andrew Haley <aph@cygnus.com>
4446 * Makefile.am: Add file addr2name.awk.
4447 * Makefile.in: Rebuilt.
4448 * addr2name.awk: New file.
4449 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4451 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4454 2000-03-22 Andrew Haley <aph@cygnus.com>
4456 * configure.host: Add -funwind-tables for IA64.
4457 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4458 * Makefile.in: Rebuilt.
4459 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4460 * sysdep/ia64.c: New file.
4461 * sysdep/ia64-frame.h: New file.
4462 * configure.in: Add sysdep/ia64.c for ia64.
4463 * configure: Rebuilt.
4465 2000-03-17 Andrew Haley <aph@cygnus.com>
4467 * java/lang/natString.cc: Remove `register' keyword.
4468 interpret.cc: ditto.
4470 2000-03-16 Andrew Haley <aph@cygnus.com>
4472 * configure.host (ia64): Enable interpreter.
4474 2000-03-14 Hans Boehm <boehm@acm.org>
4476 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4478 2000-03-14 Andrew Haley <aph@cygnus.com>
4480 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4483 2000-03-10 Andrew Haley <aph@cygnus.com>
4485 * java/lang/ieeefp.h: Import latest version from fdlibm.
4487 2000-03-14 Andrew Haley <aph@cygnus.com>
4489 * prims.cc (_Jv_ThrowSignal): New function.
4490 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4492 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4493 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4494 * include/ppc-signal.h: New file.
4496 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4498 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4499 * java/lang/natThread.java (initialize_native): Cast `data' to
4501 * gnu/gcj/RawData.java: Clarify documentation.
4503 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4504 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4505 `jarFile', not `jarFileURL'.
4507 2000-05-15 Andrew Haley <aph@cygnus.com>
4509 * include/ppc-signal.h: New file.
4511 2000-05-11 Tom Tromey <tromey@cygnus.com>
4513 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4514 file headers, don't include `size' in the skip call.
4516 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4518 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4519 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4521 (replace): Reimplemented. Fix javadoc.
4522 (reverse): Call ensureCapacity_unsynchronized().
4523 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4525 (replace): Calculate length for arraycopy() correctly.
4527 2000-05-09 Tom Tromey <tromey@cygnus.com>
4529 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4531 (insert(int,char[],int,int): New method.
4532 (delete): New method from Classpath.
4533 (deleteCharAt): Likewise.
4534 (substring): Likewise.
4535 (shared): No longer private.
4536 Added JavaDoc comments from Classpath.
4537 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4540 2000-05-07 Tom Tromey <tromey@cygnus.com>
4542 * Makefile.in: Rebuilt.
4543 * Makefile.am (LIBLINK): New macro.
4544 (libgcj_la_LINK): Use it.
4545 (libgcjawt_la_LINK): Likewise.
4547 2000-05-06 Tom Tromey <tromey@cygnus.com>
4549 * Makefile.in: Rebuilt.
4550 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4552 2000-05-05 Tom Tromey <tromey@cygnus.com>
4554 Fix for PR libgcj/220:
4555 * Makefile.in: Rebuilt.
4556 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4557 (jv_convert_LDFLAGS): Likewise.
4558 (libgcj_la_LDFLAGS): Likewise.
4559 (GCJLINK): New macro.
4560 (jv_convert_LINK): Use it.
4561 (gij_LINK): Likewise.
4562 (libgcj_la_LINK): New macro.
4563 (libgcjawt_la_LINK): Likewise.
4565 2000-05-04 Tom Tromey <tromey@cygnus.com>
4567 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4569 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4573 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4575 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4576 (_Jv_IsAssignableFrom): Ditto.
4577 (_Jv_IsInstanceOf): Ditto.
4578 (_Jv_CheckCast): Ditto.
4579 (_Jv_CheckArrayStore): Ditto.
4580 * java/lang/Class.h (_Jv_InitClass): Ditto.
4581 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4586 (_Jv_MonitorExit): Ditto.
4587 * boehm.cc (_Jv_MarkObj): Ditto.
4588 (_Jv_MarkObj): Ditto.
4589 (_Jv_MarkArray): Ditto.
4590 * prims.cc (_Jv_AllocObject): Ditto.
4591 (_Jv_NewObjectArray): Ditto.
4592 (_Jv_NewPrimArray): Ditto.
4593 (_Jv_Malloc): Ditto.
4594 (_Jv_Realloc): Ditto.
4595 (_Jv_MallocUnchecked): Ditto.
4601 2000-05-04 Tom Tromey <tromey@cygnus.com>
4603 * java/util/Locale.java (Locale): Don't explicitly check for
4605 * java/util/Hashtable.java (containsKey): Don't explicitly check
4608 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4610 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4612 * java/text/StringCharacterIterator.java
4613 (StringCharacterIterator): Don't check for null.
4614 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4616 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4617 check for null pointer.
4618 (leaveGroup): Likewise.
4619 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4621 (setData): Likewise.
4622 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4625 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4627 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4628 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4629 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4630 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4631 -rpath for in-gcc builds.
4632 * Makefile.in: Rebuilt.
4634 2000-04-28 Tom Tromey <tromey@cygnus.com>
4636 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4639 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4641 * libjava/java/lang/String.java (toString): Remove `final' hack.
4643 2000-04-05 Tom Tromey <tromey@cygnus.com>
4645 Runtime support for PR gcj/2:
4646 * prims.cc (_Jv_ThrowNullPointerException): New function.
4647 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4649 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4651 * prims.cc (_Jv_NewObjectArray): Fix typo.
4653 2000-04-26 Tom Tromey <tromey@cygnus.com>
4655 * Makefile.in: Rebuilt.
4656 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4658 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4660 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4663 2000-04-22 Anthony Green <green@cygnus.com>
4665 * include/jvm.h (__builtin_expect): Define as unused for now.
4666 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4670 (_Jv_MonitorExit): Ditto.
4671 * boehm.cc (_Jv_MarkObj): Ditto.
4672 (_Jv_MarkObj): Ditto.
4673 (_Jv_MarkArray): Ditto.
4674 (_Jv_AllocBytes): Ditto.
4675 * prims.cc (_Jv_AllocObject): Ditto.
4676 (_Jv_NewObjectArray): Ditto.
4677 (_Jv_NewPrimArray): Ditto.
4678 (_Jv_Malloc): Ditto.
4679 (_Jv_Realloc): Ditto.
4680 (_Jv_MallocUnchecked): Ditto.
4686 * include/Makefile.in: Rebuilt.
4687 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4689 2000-04-21 Tom Tromey <tromey@cygnus.com>
4691 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4692 Yet another new version from Classpath.
4694 Fix for PR libgcj/15:
4695 * java/util/natGregorianCalendar.cc (_REENTRANT,
4696 _POSIX_PTHREAD_SEMANTICS): Don't define.
4697 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4698 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4700 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4702 * configure: Rebuilt.
4703 * configure.in: If using POSIX threads, define _REENTRANT if
4704 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4705 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4707 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4708 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4709 version from Classpath.
4711 Fix for PR libgcj/213:
4712 * Makefile.in: Rebuilt.
4713 * Makefile.am (gij_SOURCES): Added gij.cc.
4714 (EXTRA_gij_SOURCES): Removed.
4715 (gij_LDADD): Removed gij.lo.
4716 (gij_DEPENDENCIES): Likewise.
4717 ($(gij_OBJECTS)): Depend on nat_headers.
4719 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4720 `setURL', not `url.set'.
4722 2000-04-20 Tom Tromey <tromey@cygnus.com>
4724 Fix for PR java.io/204:
4725 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4726 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4729 Fix for PR libgcj/212:
4730 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4731 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4732 * java/lang/Class.h (_Jv_word): Declare.
4734 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4736 2000-04-19 Tom Tromey <tromey@cygnus.com>
4738 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4739 doesn't have a loader.
4741 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4743 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4744 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4746 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4748 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4750 (available): Initialize `where' to prevent bogus compiler warning.
4752 2000-04-12 Tom Tromey <tromey@cygnus.com>
4754 * java/lang/natString.cc (intern): Temporarily disable finalizer
4757 * java/lang/natString.cc (unintern): Added `obj' argument.
4758 (intern): Register finalizer for string.
4759 * java/lang/String.java (unintern): Now static; added obj
4762 2000-04-11 Tom Tromey <tromey@cygnus.com>
4764 * java/util/Vector.java (VectorEnumeration): Now `final'.
4765 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4766 (HashtableEnumeration): Likewise.
4767 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4768 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4770 2000-04-10 Warren Levy <warrenl@cygnus.com>
4772 * java/io/ObjectStreamException.java: New file.
4773 * java/io/OptionalDataException.java: New file.
4774 * java/io/StreamCorruptedException.java: New file.
4775 * java/math/BigDecimal.java: New file.
4776 * java/sql/CallableStatement.java: New file.
4777 * java/sql/Connection.java: New file.
4778 * java/sql/DataTruncation.java: New file.
4779 * java/sql/DatabaseMetaData.java: New file.
4780 * java/sql/Date.java: New file.
4781 * java/sql/Driver.java: New file.
4782 * java/sql/DriverManager.java: New file.
4783 * java/sql/DriverPropertyInfo.java: New file.
4784 * java/sql/PreparedStatement.java: New file.
4785 * java/sql/ResultSet.java: New file.
4786 * java/sql/ResultSetMetaData.java: New file.
4787 * java/sql/SQLException.java: New file.
4788 * java/sql/SQLWarning.java: New file.
4789 * java/sql/Statement.java: New file.
4790 * java/sql/Time.java: New file.
4791 * java/sql/Timestamp.java: New file.
4792 * java/sql/Types.java: New file.
4793 * Makefile.am: Added above new files.
4794 * Makefile.in: Rebuilt.
4796 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4797 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4798 DatagramSocket constructor instead of null.
4800 2000-04-08 Anthony Green <green@cygnus.com>
4802 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4805 2000-04-08 Anthony Green <green@cygnus.com>
4807 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4808 (_Jv_MutexUnlock): Ditto.
4809 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4810 (_Jv_MutexUnlock): Ditto.
4812 2000-04-08 Anthony Green <green@cygnus.com>
4814 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4815 (ensureCapacity_unsynchronized): New private method.
4816 (append): Use ensureCapacity_unsynchronized.
4818 2000-04-08 Tom Tromey <tromey@cygnus.com>
4820 * Makefile.in: Rebuilt.
4821 * Makefile.am (awt_java_source_files): Added new files.
4822 * java/awt/IllegalComponentStateException.java: New file.
4823 * java/awt/ItemSelectable.java: New file.
4824 * java/awt/event/WindowEvent.java: Finished.
4825 * java/awt/event/TextEvent.java: Finished.
4826 * java/awt/event/ContainerEvent.java: New file.
4827 * java/awt/Component.java (getX, getY): New methods.
4828 * java/awt/event/PaintEvent.java: New file.
4829 * java/awt/event/MouseEvent.java: New file.
4830 * java/awt/ActiveEvent.java: New file.
4831 * java/awt/event/KeyEvent.java: Finished.
4832 * java/awt/event/ItemEvent.java: New file.
4833 * java/awt/Adjustable.java: New file.
4834 * java/awt/event/InputMethodEvent.java: New file.
4835 * java/awt/event/InputEvent.java: Finished.
4836 * java/awt/event/FocusEvent.java: New file.
4837 * java/awt/event/MouseMotionAdapter.java: New file.
4838 * java/awt/event/MouseAdapter.java: New file.
4839 * java/awt/event/KeyAdapter.java: New file.
4840 * java/awt/event/FocusAdapter.java: New file.
4841 * java/awt/event/ContainerAdapter.java: New file.
4842 * java/awt/event/ComponentEvent.java: Finished.
4843 * java/awt/event/AdjustmentEvent.java: New file.
4844 * java/awt/event/ComponentAdapter.java: New file.
4845 * java/awt/event/ActionEvent.java: Finished.
4846 * java/awt/event/MouseMotionListener.java: New file.
4847 * java/awt/event/MouseListener.java: New file.
4848 * java/awt/event/ItemListener.java: New file.
4849 * java/awt/event/InputMethodListener.java: New file.
4850 * java/awt/event/ContainerListener.java: New file.
4851 * java/awt/event/FocusListener.java: New file.
4852 * java/awt/event/ComponentListener.java: New file.
4853 * java/awt/event/AWTEventListener.java: New file.
4854 * java/awt/event/AdjustmentListener.java: New file.
4856 2000-04-08 Anthony Green <green@cygnus.com>
4858 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4859 check when we have to.
4861 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4864 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4867 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4868 inline hasMoreElements.
4870 2000-04-05 Tom Tromey <tromey@cygnus.com>
4872 * configure: Rebuilt.
4873 * configure.in: Recognize --enable-java-awt.
4874 (AWT): New conditional.
4875 * Makefile.in: Rebuilt.
4876 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4878 (libgcjawt_la_SOURCES): New macro.
4879 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4880 (libgcjawt_la_DEPENDENCIES): Likewise.
4881 (libgcjawt_la_LIBADD): Likewise.
4882 (libgcjawt_la_LDFLAGS): Likewise.
4883 (libgcj.zip): Depend on cond_java_awt_source_files
4884 (cond_awt_java_source_files): New macro.
4885 (MOSTLYCLEANFILES): Added awto_files.
4886 (awto_files): New macro. Use where javao_files used.
4887 (nat_headers): Use cond_awt_java_source_files.
4889 2000-04-04 Tom Tromey <tromey@cygnus.com>
4891 * Makefile.in: Rebuilt.
4892 * Makefile.am (awt_java_source_files): Added AWTException.java.
4893 * java/awt/AWTException.java: New file.
4895 2000-04-03 Tom Tromey <tromey@cygnus.com>
4897 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4898 commentary from Alex.
4900 * Makefile.in: Rebuilt.
4901 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4904 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4906 * configure: Rebuilt.
4907 * configure.in: Add --disable-jvmpi.
4908 * include/config.h.in: Rebuilt.
4909 * acconfig.h: Add ENABLE_JVMPI.
4911 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4912 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4913 (_Jv_JVMPI_Notify_THREAD_END): New define.
4914 (_Jv_JVMPI_Notify_THREAD_END): New define.
4915 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4916 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4917 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4919 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4922 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4923 (finish_): Generate JVMPI thread end events.
4924 (run_): Generate JVMPI thread start events.
4925 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4926 preloaded JNI library.
4927 Include JVMPI headers if necessary.
4928 (run): Generate JVMPI thread start events.
4930 * boehm.cc: Define GC_disable and GC_enable.
4931 (_Jv_DisableGC): New function.
4932 (_Jv_EnableGC): New function.
4933 (disable_gc_mutex): Declare.
4934 * nogc.cc (_Jv_DisableGC): New function.
4935 (_Jv_EnableGC): New function.
4937 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4938 (_Jv_JVMPI_Interface): Define.
4939 (jvmpiEnableEvent): New function.
4940 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4942 * include/jvmpi.h: New file.
4944 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4946 * Makefile.in: New #defines and friends for Thread.h.
4947 * Makefile.am: Ditto.
4948 * posix-threads.cc: (struct starter): Remove `object'.
4949 (_Jv_CondWait): Use interruptable condition variables and new
4950 recursive mutexes. New return codes on interrupt or non-ownership
4952 (_Jv_CondNotify): Ditto.
4953 (_Jv_CondNotifyAll): Ditto.
4954 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4955 the target thread by signaling its wait condition.
4956 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4957 not the starter struct. Initialize wait_mutex and wait_cond.
4958 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4960 (_Jv_MutexUnlock): Ditto.
4961 (really_start): Set info->data->thread from pthread_self() to work
4962 around a race condition. Destroy wait_mutex and wait_cond when run()
4964 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4965 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4967 startable_flag: New private field.
4968 (Thread): Initialize `startable_flag'.
4969 (toString): Check for null thread group.
4970 * java/lang/natThread.cc: (struct natThread): New fields
4971 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4972 (class locker): Removed.
4973 (initialize_native): Initialize `join_cond' and `join_mutex'.
4974 (interrupt): Now just calls _Jv_ThreadInterrupt().
4975 (join): Simplified. Just wait on the target thread's join condition.
4976 (finish_): Remove join list code. Unset thread group. Signal
4977 potential joiners by notifying the dying threads join_cond.
4978 (start): Check for illegal restarts.
4979 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4981 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4982 #defines and #ifdefs.
4983 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4984 `wait_mutex', `next'.
4985 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4986 directly mapping to pthread_cond_t.
4987 (struct _Jv_Mutex_t): New recursive implementation.
4988 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4989 _Jv_HaveCondDestroy: Never define this for posix-threads.
4990 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4991 (_Jv_CondNotifyAll): Ditto.
4992 (_Jv_MutexLock): Ditto.
4993 (_Jv_MutexUnlock): Ditto.
4994 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4995 (_Jv_MutexDestroy): Ditto.
4996 (_Jv_CondDestroy): Removed.
4997 (_Jv_PthreadGetMutex): Removed.
4998 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4999 error. Add a FIXME about this.
5000 (_Jv_CondNotifyAll): Ditto.
5001 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5002 _JV_NOT_OWNER on other errors. Add FIXME.
5004 2000-03-26 Tom Tromey <tromey@cygnus.com>
5006 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5008 (call): Don't throw exception here.
5010 2000-03-26 Tom Tromey <tromey@cygnus.com>
5012 * java/lang/mprec.h: Use SIZEOF_VOID_P.
5013 * interpret.cc: Use SIZEOF_VOID_P.
5014 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5015 (_Jv_loadLong): Likewise.
5016 (_Jv_storeDouble): Likewise.
5017 * configure: Rebuilt.
5018 * configure.in: Check size of void*.
5020 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5022 2000-03-26 Hans Boehm <boehm@acm.org>
5024 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5025 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5027 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5028 __IEEE_LITTLE_ENDIAN appropriately on IA64.
5029 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5030 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5032 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5033 (FFI_RAW_SIZE): Likewise.
5034 (_Jv_InterpMethod::ncode): Use them.
5035 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5036 STORED): Define differently on a 64 bit machine.
5037 (continue1): Use ffi_java_raw_call when appropriate.
5039 2000-03-24 Warren Levy <warrenl@cygnus.com>
5041 * java/math/BigInteger.java(divide): Handle the special case when
5042 dividing by 1 and the high bit of the dividend is set.
5043 (setShiftRight): Handle case when count == 0.
5045 2000-03-24 Warren Levy <warrenl@cygnus.com>
5047 * java/awt/Font.java(isBold): Fix syntax error.
5049 * java/awt/Frame.java(postEvent): ditto.
5050 * java/awt/Menu.java(postEvent): ditto.
5051 * java/awt/MenuBar.java(postEvent): ditto.
5052 * java/awt/Toolkit.java(init): Included a stub.
5054 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5056 * java/awt/Event.java: Add all the event type constants.
5057 (Event): Implemented constructors.
5058 (controlDown): Implemented.
5059 (metaDown): Implemented.
5060 (paramString): Stubbed.
5061 (shiftDown): Implemented.
5062 (toString): Implemented.
5063 (translate): Implemented.
5065 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
5067 * java/lang/natClass.cc (isInstance): Initialize `this'.
5068 (isAssignableFrom): Initialize `this' and `klass'.
5069 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5070 implemented by any loaded class, so return false.
5071 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5072 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5074 2000-03-19 Warren Levy <warrenl@cygnus.com>
5076 * java/awt/Color.java: Specified java.io for Serializable.
5077 * java/awt/Toolkit.java: Imported java.net.URL.
5079 2000-03-19 Warren Levy <warrenl@cygnus.com>
5081 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5083 2000-03-16 Warren Levy <warrenl@cygnus.com>
5085 * java/awt/Color.java: New file.
5086 * java/awt/Graphics.java: New file.
5087 * java/awt/Image.java: New file.
5088 * java/awt/Paint.java: New file.
5089 * java/awt/PaintContext.java: New file.
5090 * java/awt/Transparency.java: New file.
5091 * java/util/Collection.java: New file.
5092 * java/util/Comparator.java: New file.
5093 * java/util/Iterator.java: New file.
5094 * java/util/List.java: New file.
5095 * java/util/ListIterator.java: New file.
5096 * Makefile.am: Added above new files.
5097 * Makefile.in: Rebuilt.
5099 * java/awt/Font.java (PLAIN): New field.
5101 (ITALIC): New field.
5102 (ROMAN_BASELINE): New field.
5103 (CENTER_BASELINE): New field.
5104 (HANGING_BASELINE): New field.
5108 (pointSize): New field.
5109 (Font): Implemented constructor.
5110 (isPlain): Implemented method.
5111 (isBold): Implemented method.
5112 (isItalic): Implemented method.
5113 (getName): Implemented method.
5114 (getStyle): Implemented method.
5115 (getSize): Implemented method.
5116 (getSize2D): Implemented method.
5118 * java/awt/Frame.java (getFont): Stubbed.
5119 (postEvent): Stubbed.
5121 * java/awt/Menu.java (postEvent): Stubbed.
5122 * java/awt/MenuBar.java (getFont): Stubbed.
5123 (postEvent): Stubbed.
5124 * java/awt/Toolkit.java (getImage): Added abstract method.
5126 2000-03-15 Tom Tromey <tromey@cygnus.com>
5128 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5130 * prims.cc (win32_exception_handler): Reformatted.
5132 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5133 (_Jv_HaveMutexDestroy): Likewise.
5135 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5137 * java/io/natFileDescriptorWin32.cc: New file.
5138 * java/io/natFileWin32.cc: New file.
5139 * java/net/natInetAddress.cc: Added conditional inclusion of
5140 Windows / Winsock headers.
5141 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5142 inclusion of Windows / Winsock headers.
5143 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5144 Windows / Winsock headers.
5145 * include/win32-signal.h: New file.
5146 * include/win32-threads.h: New file.
5147 * win32-threads.cc: New file.
5148 * exception.cc (win32_get_restart_frame): New function.
5149 * prims.cc (win32_exception_handler): New function.
5150 (main_init) Performs Winsock initialisation.
5151 (main_init) Installs exeception handler.
5153 2000-03-14 Tom Tromey <tromey@cygnus.com>
5155 * jni.cc (mangled_name): Fixed assertion.
5156 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5157 turned assert into actual failure.
5159 2000-03-09 Warren Levy <warrenl@cygnus.com>
5161 * java/security/Key.java(serialVersionUID): Set to 0 for now.
5162 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5163 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5165 2000-03-09 Warren Levy <warrenl@cygnus.com>
5167 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5168 * java/security/DigestException.java: New file.
5169 * java/security/GeneralSecurityException.java: New file.
5170 * java/security/InvalidAlgorithmParameterException.java: New file.
5171 * java/security/InvalidKeyException.java: New file.
5172 * java/security/InvalidParameterException.java: New file.
5173 * java/security/Key.java: New file.
5174 * java/security/KeyException.java: New file.
5175 * java/security/KeyPair.java: New file.
5176 * java/security/KeyPairGenerator.java: New file.
5177 * java/security/KeyPairGeneratorSpi.java: New file.
5178 * java/security/NoSuchProviderException.java: New file.
5179 * java/security/PrivateKey.java: New file.
5180 * java/security/Provider.java: New file.
5181 * java/security/PublicKey.java: New file.
5182 * java/security/SecureRandom.java: New file.
5183 * java/security/Security.java: New file.
5184 * java/security/Signature.java: New file.
5185 * java/security/SignatureException.java: New file.
5186 * java/security/interfaces/DSAKey.java: New file.
5187 * java/security/interfaces/DSAParams.java: New file.
5188 * java/security/interfaces/DSAPrivateKey.java: New file.
5189 * java/security/interfaces/DSAPublicKey.java: New file.
5190 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5191 * java/security/interfaces/RSAPrivateKey.java: New file.
5192 * java/security/interfaces/RSAPublicKey.java: New file.
5193 * java/security/spec/AlgorithmParameterSpec.java: New file.
5194 * java/security/spec/InvalidKeySpecException.java: New file.
5195 * java/security/spec/InvalidParameterSpecException.java: New file.
5196 * java/security/spec/KeySpec.java: New file.
5197 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5198 * java/security/spec/RSAPrivateKeySpec.java: New file.
5199 * java/security/spec/RSAPublicKeySpec.java: New file.
5200 * Makefile.am: Added above java.security files.
5201 * Makefile.in: Rebuilt.
5203 * java/security/MessageDigest.java: Rewritten.
5204 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5206 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5210 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5212 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5213 _Jv_PrepareConstantTimeTables.
5214 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5215 classes should have an IDT, so don't return if klass is an array
5218 2000-03-08 Tom Tromey <tromey@cygnus.com>
5220 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5221 of `void' to be created.
5223 2000-03-08 Warren Levy <warrenl@cygnus.com>
5225 * java/math/BigInteger.java(signum): Handle zero properly.
5227 2000-03-07 Tom Tromey <tromey@cygnus.com>
5229 * All files: Updated copyright information.
5230 * COPYING: New file.
5231 * COPYING.LIB: Removed.
5232 * LIBGCJ_LICENSE: We now use GPL + special exception.
5234 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5236 * resolve.cc (_Jv_SearchMethodInClass): New function.
5237 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5238 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5240 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5242 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5243 (struct _Jv_ifaces): New declaration.
5244 JV_CLASS: New macro definition.
5245 (getComponentType): Relocate below isArray() for inlining.
5246 (getModifiers): Declare `inline'.
5247 (getSuperclass): Ditto.
5249 (isPrimitive): Ditto.
5250 (_Jv_IsAssignableFrom): New prototype.
5251 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5253 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5254 Check for JV_STATE_DONE before invoking initializeClass().
5255 (_Jv_PrepareConstantTimeTables): New prototype.
5256 (_Jv_GetInterfaces): Ditto.
5257 (_Jv_GenerateITable): Ditto.
5258 (_Jv_GetMethodString): Ditto.
5259 (_Jv_AppendPartialITable): Ditto.
5260 (_Jv_FindIIndex): Ditto.
5261 depth, ancestors, idt: New class fields.
5263 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5264 inline function `_Jv_IsAssignableFrom'. Use that function.
5265 (isInstance): Declare `inline'.
5266 (initializeClass): Get lock on class before checking `state'. Unlock
5267 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5269 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5270 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5271 class->depth and ancestor table.
5272 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5273 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5274 _Jv_IsAssignableFrom.
5275 (_Jv_CheckArrayStore): Ditto.
5276 (_Jv_LookupInterfaceMethodIdx): New function.
5277 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5278 (_Jv_PrepareConstantTimeTables): New function.
5279 (_Jv_IndexOf): Ditto.
5280 (_Jv_GetInterfaces): Ditto.
5281 (_Jv_GenerateITable): Ditto.
5282 (_Jv_GetMethodString): Ditto.
5283 (_Jv_AppendPartialITable): Ditto.
5284 iindex_mutex, iindex_mutex_initialized: New static fields.
5285 (_Jv_FindIIndex): New function.
5287 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5289 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5290 (_Jv_CheckArrayStore): Ditto.
5291 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5292 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5293 Moved to gcj/array.h.
5294 (_Jv_Realloc): New function.
5296 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5298 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5299 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5300 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5301 JvNewDoubleArray): Implementations moved from prims.cc and
5304 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5306 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5308 2000-03-06 Tom Tromey <tromey@cygnus.com>
5310 * jni.cc (MARK_NONE): New define.
5311 (MARK_USER): Likewise.
5312 (MARK_SYSTEM): Likewise.
5313 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5315 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5316 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5317 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5318 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5320 (call): Use MARK_SYSTEM.
5321 (_Jv_GetJNIEnvNewFrame): New function.
5322 (_Jv_LookupJNIMethod): New function.
5323 (_Jv_JNI_PopSystemFrame): New function.
5324 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5326 2000-03-05 Tom Tromey <tromey@cygnus.com>
5328 Fix for PR libgcj/43:
5329 * include/Makefile.in: Rebuilt.
5330 * include/Makefile.am (include_HEADERS): New define.
5332 2000-03-05 Anthony Green <green@redhat.com>
5334 * gcj/javaprims.h ("Java"): Remove FirstThread.
5336 * configure.host: Fix __NO_MATH_INLNES botch.
5338 * Makefile.in: Rebuilt.
5339 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5340 (gnu/gcj/runtime/FirstThread.h): Moved.
5341 (ordinary_java_source_files): Move FirstThread.java.
5342 * prims.cc: Deal with FirstThread movement.
5344 (_Jv_RunMain): Ditto.
5346 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5347 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5349 2000-03-05 Warren Levy <warrenl@cygnus.com>
5351 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5352 Handle null addresses.
5354 2000-03-04 Anthony Green <green@redhat.com>
5356 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5359 2000-03-04 Anthony Green <green@redhat.com>
5361 * configure: Rebuilt.
5362 * configure.in (ZLIBTESTSPEC): New macro.
5363 (GCTESTSPEC): New macro.
5364 (LIBGCJTESTSPEC): New macro.
5365 * libgcj-test.spec.in: New file.
5367 2000-03-02 Tom Tromey <tromey@cygnus.com>
5369 * include/java-interp.h: Don't include MethodInvocation.h.
5370 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5371 * Makefile.in: Rebuilt.
5372 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5373 (ordinary_java_source_files): Don't mention
5374 MethodInvocation.java.
5375 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5376 * interpret.cc (MethodInvocation::continue1): Removed.
5377 (run): Handle exceptions here.
5378 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5380 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5382 (defineClass2): Removed.
5384 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5386 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5388 (hack_call): Removed.
5390 * java/lang/Class.h (Class): Removed hackRunInitializers,
5392 * java/lang/natClass.cc (hackRunInitializers): Removed.
5393 (initializeClass): Catch exceptions here.
5394 Include ExceptionInInitializerError.h.
5395 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5398 * java/lang/Object.h (Object): Don't mention hack12_6.
5399 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5401 * java/lang/Object.java (hack12_6): Removed.
5403 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5404 (start): Use run_, not run__.
5405 * java/lang/Thread.java (run_): Renamed from run__; old run_
5408 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5409 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5410 (_Jv_JNI_DefineClass): Likewise.
5411 (_Jv_JNI_ThrowNew): Likewise.
5412 (_Jv_JNI_AllocObject): Likewise.
5413 (_Jv_JNI_GetAnyMethodID): Likewise.
5414 (_Jv_JNI_CallAnyMethodV): Likewise.
5415 (_Jv_JNI_CallAnyMethodA): Likewise.
5416 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5417 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5418 (_Jv_JNI_GetAnyFieldID): Likewise.
5419 (_Jv_JNI_NewString): Likewise.
5420 (_Jv_JNI_NewStringUTF): Likewise.
5421 (_Jv_JNI_GetStringUTFChars): Likewise.
5422 (_Jv_JNI_NewObjectArray): Likewise.
5423 (_Jv_JNI_NewPrimitiveArray): Likewise.
5424 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5425 (_Jv_JNI_GetStringRegion): Likewise.
5426 (_Jv_JNI_GetStringUTFRegion): Likewise.
5427 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5428 (_Jv_JNI_MonitorEnter): Likewise.
5429 (_Jv_JNI_MonitorExit): Likewise.
5430 (_Jv_JNI_ToReflectedField): Likewise.
5431 (_Jv_JNI_ToReflectedMethod): Likewise.
5432 (_Jv_JNI_RegisterNatives): Likewise.
5433 (_Jv_JNI_AttachCurrentThread): Likewise.
5434 (_Jv_JNI_DestroyJavaVM): Likewise.
5436 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5438 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5439 error caused by the incorrect casting of a long to an int.
5441 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5443 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5444 SIGSEV caused by use of the wrong instance variable.
5446 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5448 * java/io/File.java (File(String, String)): For dirPath, treat an
5449 empty String the same as `null'.
5451 2000-02-26 Anthony Green <green@cygnus.com>
5453 * gnu/gcj/io/MimeTypes.java: Test for null.
5455 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5456 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5458 * java/net/URLConnection.java: Update copyright notice.
5460 2000-02-25 Tom Tromey <tromey@cygnus.com>
5462 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5465 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5467 * java/net/URLConnection.java (initializeDateFormats): New
5469 (getHeaderFieldDate): Call initializeDateFormats if required.
5470 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5472 Fix for PR libgcj/38.
5474 2000-02-24 Warren Levy <warrenl@cygnus.com>
5476 * java/math/BigInteger.java(ival): Made private.
5480 2000-02-20 Anthony Green <green@cygnus.com>
5482 * Makefile.in: Rebuilt.
5483 * Makefile.am (ordinary_java_source_files): Add
5484 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5486 * scripts/MakeDefaultMimeTypes.java: New file.
5487 * scripts/mime.types: New file.
5488 * scripts/classes.pl: Moved from top level.
5489 * classes.pl: Moved to scripts directory.
5491 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5493 * gnu/gcj/io/MimeTypes.java: New file.
5494 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5496 2000-02-20 Tom Tromey <tromey@cygnus.com>
5498 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5500 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5502 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5505 2000-02-18 Tom Tromey <tromey@cygnus.com>
5507 * include/jvm.h (_Jv_GetJavaVM): Declare.
5508 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5509 (_Jv_MethodBase::get_method): New method.
5510 (_Jv_JNIMethod::set_function): New method.
5511 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5512 (_Jv_JNI_RegisterNatives): New function.
5513 (_Jv_JNIFunctions): Updated for new functions.
5514 (_Jv_GetJavaVM): New function.
5515 (_Jv_JNI_GetJavaVM): Use it. Now static.
5516 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5517 is already a Java thread but does not have a JNIEnv yet.
5519 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5522 2000-02-17 Tom Tromey <tromey@cygnus.com>
5524 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5527 2000-02-16 Tom Tromey <tromey@cygnus.com>
5529 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5531 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5532 (_Jv_JNI_NewObject): Likewise.
5533 (_Jv_JNI_NewObjectA): Likewise.
5534 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5535 as "return" type to _Jv_CallAnyMethodA.
5536 (_Jv_JNI_CallAnyMethodA): Likewise.
5537 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5539 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5542 2000-02-15 Tom Tromey <tromey@cygnus.com>
5544 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5546 (init_cif): Added `rtype_p' argument.
5547 * include/java-interp.h (class _Jv_MethodBase): Added
5549 (class _Jv_InterpMethod): Removed args_raw_size.
5550 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5551 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5552 class pointer as well as the ordinary arguments.
5554 * jni.cc (mangled_name): Skip leading `(' in signature.
5556 * jni.cc (add_char): Added missing `else'.
5558 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5561 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5565 * java/lang/natRuntime.cc (_load): Include library path with
5568 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5571 * java/lang/natThread.cc (dumpStack): Removed.
5572 * java/lang/Thread.java (dumpStack): Implemented.
5574 2000-02-15 Tom Tromey <tromey@cygnus.com>
5576 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5577 with `lib' for loadLibrary. Fixes PR gcj/150.
5579 2000-02-14 Warren Levy <warrenl@cygnus.com>
5581 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5583 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5587 (modPow): Rewritten to not use the naive, slow, brute force approach.
5588 (isProbablePrime): Implemented.
5589 (testBit): Implemented.
5590 (flipBit): Implemented.
5591 (getLowestSetBit): Implemented.
5593 2000-02-16 Anthony Green <green@redhat.com>
5595 * configure.host: Use the same options for i386 and i486 as we do
5598 2000-02-12 Tom Tromey <tromey@cygnus.com>
5600 * java/io/File.java (createTempFile): Use low bits from counter,
5603 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5605 * THANKS: More thanks.
5607 2000-02-11 Tom Tromey <tromey@cygnus.com>
5609 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5610 astore instruction. From Hans Boehm.
5612 2000-02-11 Warren Levy <warrenl@cygnus.com>
5614 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5615 (BigInteger(String)): New constructor.
5616 (not): Rewritten using version from Kawa's BitOps class.
5617 (valueOf): New private methods from Kawa's BitOps class.
5624 (andNot): Implemented.
5625 (clearBit): Implemented.
5626 (setBit): Implemented.
5627 (bitCount): Implemented.
5628 (toByteArray): Implemented.
5630 2000-02-11 Tom Tromey <tromey@cygnus.com>
5632 * java/io/File.java (nextValue): Now synchronized.
5634 2000-02-10 Tom Tromey <tromey@cygnus.com>
5636 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5637 * java/io/FileDescriptor.java (EXCL): New static field.
5638 * java/io/File.java (tmpdir): New static field.
5639 (createTempFile): New method.
5640 (nextValue): New method.
5641 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5644 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5645 (jboolean): Declare as an attributed int, not a bool.
5646 (_Jv_func): Declare differently for C.
5648 * gnu/gcj/jni/natNativeThread.cc: New file.
5649 * gnu/gcj/jni/NativeThread.java: New file.
5650 * java/lang/Thread.java (data): Now a RawData.
5651 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5653 * Makefile.in: Rebuilt.
5654 * Makefile.am (java/lang/Thread.h): New target.
5655 (ordinary_java_source_files): Added NativeThread.java.
5656 (nat_source_files): Added natNativeThread.cc.
5657 * java/lang/natThread.cc: Include <jni.h>
5658 (struct natThread): Added `jni_env' field.
5659 (_Jv_GetCurrentJNIEnv): New function.
5660 (_Jv_SetCurrentJNIEnv): Likewise.
5661 (initialize_native): Initialize jni_env.
5663 * jni.cc (ThreadGroupClass): New define.
5664 (_Jv_JNI_InvokeFunctions): New structure.
5665 (JNI_GetCreatedJavaVMs): New function.
5666 (the_vm): New global.
5667 (JNI_GetDefaultJavaVMInitArgs): New function.
5668 Include NativeThread.h.
5669 (NativeThreadClass): New define.
5670 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5671 (_Jv_JNI_DestroyJavaVM): New function.
5672 (_Jv_JNI_AttachCurrentThread): New function.
5673 (_Jv_JNI_DetachCurrentThread): New function.
5674 (_Jv_JNI_GetEnv): New function.
5675 (JNI_CreateJavaVM): New function.
5676 (_Jv_JNI_GetJavaVM): New function.
5677 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5678 * include/jni.h (JavaVMAttachArgs): New structure.
5679 (JNI_EDETACHED): New define.
5680 (JNI_EVERSION): Likewise.
5681 (JavaVM): Define properly.
5682 (struct JNIInvokeInterface): New structure.
5683 (class _Jv_JavaVM): New class.
5684 (JNI_OnLoad, JNI_OnUnload): Declare.
5685 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5686 JNI_GetCreatedJavaVMs): Declare.
5687 (JavaVMInitArgs): New typedef.
5688 (JavaVMOption): Likewise.
5689 (JNI_ERR): New define.
5692 2000-02-10 Andrew Haley <aph@cygnus.com>
5694 * interpret.cc: Don't include fdlibm.h.
5695 Replace #if with #ifdef throughout.
5696 Declare extern __ieee754_fmod.
5697 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5699 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5700 Search class hierarchy for superclass vtable.
5702 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5703 off the end of a pointer list.
5705 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5709 2000-02-09 Tom Tromey <tromey@cygnus.com>
5711 * java/lang/natRuntime.cc (_load): Call add_library.
5712 (loadLibraryInternal): Likewise.
5714 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5715 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5716 (Output_iconv::finalize): Likewise.
5718 2000-02-08 Tom Tromey <tromey@cygnus.com>
5720 * java/util/Properties.java (setProperty): New method.
5721 (store): New method.
5723 2000-02-07 Tom Tromey <tromey@cygnus.com>
5725 * java/lang/Runtime.java (_load): Declare.
5726 (load, loadLibrary): Wrote in terms of _load.
5727 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5729 (loadLibrary): Likewise.
5731 (_load): New method.
5732 (loadLibrary, load): Removed.
5734 * jni.cc (ThrowableClass): New define.
5735 (_Jv_JNI_Throw): Check argument.
5736 (_Jv_JNI_ThrowNew): Likewise.
5737 (wrap_value): Don't wrap object if it is NULL.
5738 (_Jv_JNI_DefineClass): Use wrap_value.
5739 (_Jv_JNI_FindClass): Likewise.
5740 (_Jv_JNI_GetSuperclass): Likewise.
5741 (_Jv_JNI_ExceptionOccurred): Likewise.
5742 (_Jv_JNI_AllocObject): Likewise.
5743 (_Jv_JNI_GetObjectClass): Likewise.
5744 (_Jv_JNI_NewString): Likewise.
5745 (_Jv_JNI_NewStringUTF): Likewise.
5746 (_Jv_JNI_NewObjectArray): Likewise.
5747 (_Jv_JNI_GetObjectArrayElement): Likewise.
5748 (_Jv_JNI_NewPrimitiveArray): Likewise.
5749 (_Jv_JNI_ToReflectedField): Likewise.
5750 (_Jv_JNI_ToReflectedMethod): Likewise.
5751 (_Jv_JNI_AllocObject): Check argument.
5752 (_Jv_JNI_NewObjectV): Likewise.
5753 (_Jv_JNI_NewObject): Likewise.
5754 (_Jv_JNI_NewObjectA): Likewise.
5755 (_Jv_JNI_GetObjectClass): Likewise.
5756 (_Jv_JNI_GetField): Likewise.
5757 (_Jv_JNI_SetField): Likewise.
5759 * interpret.cc (PUSHL): Don't use expression statement.
5764 * jni.cc (add_char): Conditional on INTERPRETER.
5765 (mangled_name): Likewise.
5767 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5769 (class _Jv_JNIMethod): Likewise.
5771 2000-02-04 Warren Levy <warrenl@cygnus.com>
5773 * Makefile.am: Added MPN.java and BigInteger.java.
5774 * Makefile.in: Rebuilt.
5775 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5777 * java/math/BigInteger.java: New file. Based primarily on
5778 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5780 2000-02-04 Tom Tromey <tromey@cygnus.com>
5782 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5784 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5785 if the method is native.
5786 * resolve.cc (ncode): Don't handle native methods.
5787 (_Jv_JNIMethod::ncode): New method.
5788 (_Jv_PrepareClass): Handle native methods.
5789 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5790 Include AbstractMethodError.h.
5791 (add_char): New function.
5792 (mangled_name): Likewise.
5793 * include/java-interp.h (class _Jv_JNIMethod): New class.
5794 (class _Jv_MethodBase): New class.
5795 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5796 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5799 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5800 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5801 libraries): New globals.
5802 (add_library): New function.
5803 (_Jv_FindSymbolInExecutable): New function.
5805 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5808 2000-02-04 Andrew Haley <aph@cygnus.com>
5810 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5811 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5812 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5813 printStackTrace to printRawStackTrace.
5815 2000-02-03 Tom Tromey <tromey@cygnus.com>
5817 * java/util/Calendar.java (toString): New method.
5818 * java/util/SimpleTimeZone.java (clone): New method.
5819 (toString): New method.
5820 * java/util/TimeZone.java (clone): New method.
5821 * java/text/SimpleDateFormat.java (clone): New method.
5822 * java/text/NumberFormat.java (clone): New method.
5823 (equals): New method.
5824 * java/text/Format.java (clone): New method.
5825 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5827 (clone): New method.
5828 * java/text/DateFormat.java (clone): New method.
5829 * java/text/Collator.java (clone): New method.
5831 2000-02-03 Tom Tromey <tromey@cygnus.com>
5833 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5836 2000-02-01 Tom Tromey <tromey@cygnus.com>
5838 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5839 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5840 constructing the closure if the function is native.
5841 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5842 a template function, #if'd out, or static.
5843 Include <java-interp.h>.
5845 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5847 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5849 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5850 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5852 (wrap_value): New function.
5853 (_Jv_JNI_CallAnyMethodV): Use it.
5854 (_Jv_JNI_CallAnyMethodA): Likewise.
5855 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5856 (_Jv_JNI_GetStaticField): Likewise.
5858 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5859 (_Jv_JNI_GetStaticField): Likewise.
5861 2000-01-31 Tom Tromey <tromey@cygnus.com>
5863 * prims.cc (_Jv_MallocUnchecked): New function.
5864 (main_init): Call _Jv_JNI_Init.
5865 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5866 (_Jv_JNI_Init): Declare.
5867 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5869 (_Jv_JNI_NewGlobalRef): New function.
5870 (_Jv_JNI_DeleteGlobalRef): New function.
5871 (_Jv_JNI_DeleteLocalRef): New function.
5872 (_Jv_JNI_conversion_call): Initialize and clear local reference
5874 (_Jv_JNI_NewLocalRef): New function.
5875 (struct _Jv_JNI_LocalFrame): New structure.
5876 (_Jv_JNI_PushLocalFrame): New function.
5877 (_Jv_JNI_EnsureLocalCapacity): New function.
5878 (FRAME_SIZE): New define.
5879 (_Jv_JNI_GetStringChars): Mark string, not characters.
5880 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5881 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5882 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5884 (_Jv_JNI_DefineClass): Make return value a local ref.
5885 (_Jv_JNI_FindClass): Likewise.
5886 (_Jv_JNI_GetSuperclass): Likewise.
5887 (_Jv_JNI_ExceptionOccurred): Likewise.
5888 (_Jv_JNI_AllocObject): Likewise.
5889 (_Jv_JNI_GetObjectClass): Likewise.
5890 (_Jv_JNI_CallAnyMethodV): Likewise.
5891 (_Jv_JNI_NewString): Likewise.
5892 (_Jv_JNI_NewStringUTF): Likewise.
5893 (_Jv_JNI_NewObjectArray): Likewise.
5894 (_Jv_JNI_GetObjectArrayElement): Likewise.
5895 (_Jv_JNI_ToReflectedField): Likewise.
5896 (_Jv_JNI_ToReflectedMethod): Likewise.
5897 (_Jv_JNIFunctions): Updated table for new functions.
5898 (_Jv_JNI_Init): New function.
5899 (mark_for_gc): Wrote.
5900 (unmark_for_gc): Wrote.
5901 * include/jni.h (struct JNINativeInterface): Removed name from
5902 PopLocalFrame parameter.
5903 (class _Jv_JNIEnv): Added `locals' field.
5905 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5907 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5910 2000-01-30 Tom Tromey <tromey@cygnus.com>
5912 * include/config.h.in: Rebuilt.
5913 * acconfig.h (HAVE_ICONV): Define.
5914 * configure: Rebuilt.
5915 * configure.in: Check for `iconv' function.
5916 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5917 no specific encoder exists.
5918 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5919 no specific encoder exists.
5920 * Makefile.in: Rebuilt.
5921 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5923 (nat_source_files): Added natIconv.cc.
5924 * gnu/gcj/convert/natIconv.cc: New file.
5925 * gnu/gcj/convert/Input_iconv.java: New file.
5926 * gnu/gcj/convert/Output_iconv.java: New file.
5928 2000-01-28 Tom Tromey <tromey@cygnus.com>
5930 * Makefile.in: Rebuilt.
5931 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5933 2000-01-26 Tom Tromey <tromey@cygnus.com>
5935 * gcj/method.h (JvNumMethods): Moved from Class.h.
5936 (JvGetFirstMethod): Likewise.
5937 * java/lang/Class.h (Object): Updated decl of
5938 _Jv_JNI_ToReflectedField.
5939 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5940 * Makefile.in: Rebuilt.
5941 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5942 argument of _Jv_JNI_ToReflectedField.
5943 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5945 (java/lang/reflect/Method.h): Likewise.
5946 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5948 (jweak): New typedef.
5949 (struct JNINativeInterface): Correctly declare remaining entries.
5950 * jni.cc: Include Class.h, ClassLoader.h.
5951 (_Jv_JNI_FindClass): New function.
5952 (_Jv_JNI_DefineClass): New function.
5953 (_Jv_JNI_conversion_call): New function.
5954 (_Jv_JNI_FindClass): Use current class loader to find class.
5955 (_Jv_JNI_ExceptionCheck): New function.
5956 (_Jv_JNI_FromReflectedField): Now static.
5957 (MethodClass): New define.
5958 (_Jv_JNI_FromReflectedMethod): New function.
5959 (_Jv_JNI_ToReflectedMethod): Likewise.
5961 (_Jv_JNI_IsAssignableFrom): Renamed.
5962 (_Jv_JNI_GetStringRegion): New function.
5963 Include StringIndexOutOfBoundsException.h.
5964 (_Jv_JNI_GetStringUTFRegion): New function.
5965 (_Jv_JNIFunctions): Updated for new functions.
5966 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5967 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5968 (_Jv_JNI_GetStringCritical): New function.
5969 (_Jv_JNI_ReleaseStringCritical): Likewise.
5970 (get_throwable): Removed.
5971 (GCJ_JV_JNIENV_FRIEND): Removed.
5972 (__GCJ_JNI_IMPL__): Define.
5975 * resolve.cc (get_ffi_type_from_signature): Handle case where
5978 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5980 * interpret.cc (run): Don't call println.
5981 Don't include PrintStream.h.
5983 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5984 nameIndex. Use "jint" as type for boffset.
5985 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5987 (Class): Likewise. Also changed type of method_count,
5988 vtable_method_count, size_in_bytes, field_count,
5989 static_field_count, interface_count.
5990 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5993 2000-01-21 Tom Tromey <tromey@cygnus.com>
5995 * java/lang/reflect/natConstructor.cc (newInstance): Use
5997 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5998 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5999 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
6002 (invoke): Use _Jv_CallAnyMethodA.
6004 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6005 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6007 (struct _Jv_Method): Added getNextMethod method.
6008 (JvNumMethods): New function.
6009 (JvGetFirstMethod): Likewise.
6010 * gcj/field.h (JvGetFirstStaticField): New function.
6011 (JvNumStaticFields): Likewise.
6012 (getNextField): Renamed from getNextInstanceField.
6013 (struct _Jv_Field): New method getClass.
6014 * jni.cc: Wrote many new functions.
6015 * include/jni.h (JNI_TRUE): Define.
6016 (JNI_FALSE): Likewise.
6017 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6018 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6019 jcharArray, jfloatArray, jdoubleArray): New typedefs.
6020 (jfieldID, jmethodID): Likewise.
6021 (JNI_COMMIT, JNI_ABORT): New defines.
6022 (JNINativeMethod): New struct.
6023 (struct JNINativeInterface): Correctly declared more entries.
6024 (class _Jv_JNIEnv): Added `ex' member.
6025 (JNI_VERSION_1_1): New define.
6026 (JNI_VERSION_1_2): Likewise.
6028 * boehm.cc (_Jv_MarkObj): Use getNextField, not
6029 getNextInstanceField.
6031 2000-01-20 Tom Tromey <tromey@cygnus.com>
6033 * resolve.cc (StringClass): Removed.
6034 * defineclass.cc (StringClass): Removed.
6036 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
6040 2000-01-19 Tom Tromey <tromey@cygnus.com>
6042 * interpret.cc (PC_REGISTER_ASM): Removed.
6044 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6045 From Bryce McKinlay.
6047 * All files: Updated copyright to reflect Cygnus purchase.
6049 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
6051 * configure: Rebuilt.
6052 * configure.in: Recognize --disable-interpreter.
6054 2000-01-18 Andrew Haley <aph@cygnus.com>
6056 * name-finder.cc (lookup): Check for dladdr function.
6057 acconfig.h (HAVE_DLADDR): Add.
6058 configure.in: Check for HAVE_DLADDR
6060 include/config.h.in: Rebuilt.
6062 2000-01-17 Andrew Haley <aph@cygnus.com>
6064 * prims.cc (_Jv_RunMain): Set the name of this executable.
6066 2000-01-17 Tom Tromey <tromey@cygnus.com>
6068 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6069 when backtrace can't be computed.
6071 * configure: Rebuilt.
6072 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6074 * java/lang/Runtime.java (loadLibraryInternal): Declare.
6075 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6076 (_Jv_FindClassInCache): Likewise.
6077 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6078 (findSystemClass): Try to load class from compiled module.
6080 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6081 (loadLibrary): Likewise.
6082 (lt_preloaded_symbols): Define.
6083 (loadLibraryInternal): New method.
6084 * include/config.h.in: Rebuilt.
6085 * acconfig.h (USE_LTDL): Added.
6086 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6087 (INCLUDES): Added $(INCLTDL).
6088 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6089 (libgcj_la_LIBADD): Likewise.
6090 * aclocal.m4, configure: Rebuilt.
6091 * configure.in: Added libltdl support.
6093 2000-01-15 Tom Tromey <tromey@cygnus.com>
6095 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6097 2000-01-14 Andrew Haley <aph@cygnus.com>
6099 * java/lang/natThrowable.cc: New file.
6101 * java/lang/Throwable.java (fillInStackTrace): Make native.
6102 (printStackTrace): Call native method to do this.
6103 (Throwable): Call fillInStackTrace.
6104 (stackTrace): New variable.
6106 * include/jvm.h: Add _Jv_ThisExecutable functions.
6108 * prims.cc: (_Jv_execName): New variable.
6109 (catch_segv): Call fillInStackTrace.
6111 (_Jv_ThisExecutable): New functions.
6112 (JvRunMain): Set the name of this executable.
6114 * Makefile.am: Add java/lang/natThrowable.cc.
6116 * Makefile.in: Rebuilt.
6118 * acconfig.h: Add HAVE_PROC_SELF_EXE.
6120 * configure.in: Force link with __frame_state_for in
6121 FORCELIBGCCSPEC. Add new checks for backtrace.
6122 * include/config.h.in: Rebuilt.
6124 * name-finder.cc: New file.
6125 * include/name-finder.h: New file.
6127 2000-01-16 Anthony Green <green@cygnus.com>
6129 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6132 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
6134 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6136 2000-01-13 Tom Tromey <tromey@cygnus.com>
6138 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6139 not system loader, as initiating loader.
6141 2000-01-11 Tom Tromey <tromey@cygnus.com>
6143 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6144 HP/UX. From David Scott Urban.
6146 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
6148 * java/lang/natMath.cc (pow): Cast args to `double', not
6151 (IEEEremainder): Likewise.
6152 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6153 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6155 2000-01-09 Anthony Green <green@cygnus.com>
6157 * java/lang/natString.cc (init): Test for overflow condition
6158 during out of bounds check.
6159 (getChars): Throw StringIndexOutOfBoundsException, not
6160 ArrayIndexOutOfBoundsException.
6162 (regionMatches): Obey case option during string comparison.
6164 * configure.host (ligcj_interpreter): New variable. Enable
6165 interpreter by default on IA-32.
6166 * configure.in: Examine libgcj_interpreter.
6167 * configure: Rebuilt.
6169 2000-01-07 Tom Tromey <tromey@cygnus.com>
6171 * mauve-libgcj: Don't disable ClassTest.
6173 * java/lang/natClass.cc (getClasses): Wrote.
6175 2000-01-06 Tom Tromey <tromey@cygnus.com>
6177 * java/lang/natClass.cc (_getConstructors): Correctly check
6178 whether method name is the init name.
6179 (getMethod): Look at accflags on method in `klass', not `this'.
6181 2000-01-05 Tom Tromey <tromey@cygnus.com>
6183 * java/lang/natClass.cc (getMethod): Compute offset relative to
6184 `klass's methods table, not `this's table.
6186 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6187 In unwrapping/widening case, check whether `k' is null, not
6188 whether it is primitive. Initialize `num' from `argelts', not
6189 `paramelts'. Correct create and pass arguments to ffi_call.
6190 Don't let presence of `this' argument affect index used to look in
6192 (COPY): Set appropriate element in `values' vector.
6194 * java/lang/natClass.cc: Include <gcj/method.h>.
6196 * java/lang/Class.h (_getMethods): Correctly declare as private,
6199 * java/lang/Class.h (_getMethods): Declare.
6200 * java/lang/Class.java (_getMethods): Declare.
6201 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6202 (getDeclaredClasses): Always return empty array.
6203 (_getMethods): New method.
6204 (getMethods): Wrote.
6205 (getDeclaredMethod): Return `rmethod'.
6206 (finit_name): New global.
6207 (getDeclaredMethods): Check for finit_name.
6208 (_getMethods): Likewise.
6209 (getMethod): Only return public methods.
6211 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6212 jboolean and select correct ffi type on that basis.
6213 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6214 Constructor call always has `void' return type.
6216 2000-01-04 Tom Tromey <tromey@cygnus.com>
6218 * java/lang/Class.h (getSignature): Updated.
6219 * java/lang/Class.java (getSignature): Updated.
6220 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6222 (getConstructor): Ensure constructor is public.
6223 (_getConstructors): Check for public-ness of constructor when
6224 `declared' is false, not when it is true.
6226 2000-01-04 Warren Levy <warrenl@cygnus.com>
6228 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6230 (receive): Set the sender's address in the DatagramPacket.
6232 2000-01-04 Tom Tromey <tromey@cygnus.com>
6234 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6235 declaring class as return_type argument to
6236 _Jv_CallNonvirtualMethodA.
6237 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6238 constructor case, create object and use it as `this' argument.
6239 * java/lang/Class.h (_getConstructors): Declare.
6240 (_getFields): Declare.
6241 * java/lang/Class.java (getConstructors): Wrote.
6242 (_getConstructors): New native method.
6243 (getDeclaredConstructors): Wrote.
6244 (_getFields): Declare new native method.
6245 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6247 (getMethod): Work correctly when class is primitive.
6248 (getDeclaredMethods): Likewise. Compute offset using `method',
6250 (getDeclaredMethod): Likewise.
6251 (getConstructor): Wrote.
6252 (ConstructorClass): New define.
6253 (getDeclaredConstructor): Wrote.
6254 (_getConstructors): New method.
6255 (_getFields): New method.
6258 * Makefile.in: Rebuilt.
6259 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6261 * prims.cc: Remove `#pragma implementation'.
6262 * gcj/array.h: Remove `#pragma interface'.
6264 * prims.cc (_Jv_equaln): New function.
6265 * java/lang/Class.java (getSignature): Declare.
6266 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6267 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6269 (getSignature): New method.
6270 (getDeclaredMethod): Wrote.
6272 Include StringBuffer.h.
6273 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6274 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6276 (getSignature): Declare.
6277 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6278 (_Jv_equaln): Declare.
6279 (_Jv_CallNonvirtualMethodA): Declare.
6280 * Makefile.in: Rebuilt.
6281 * Makefile.am (nat_source_files): Added natConstructor.cc.
6282 (java/lang/reflect/Constructor.h): New target.
6283 * java/lang/reflect/natConstructor.cc: New file.
6284 * java/lang/reflect/Constructor.java (newInstance): Now native.
6285 (declaringClass): Renamed from decl_class.
6286 (offset): Renamed from index.
6287 (getType): New native method.
6288 (getModifiers): Now native.
6289 (getParameterTypes): Call getType if required.
6290 (hashCode): Include hash code from declaring class.
6291 (modifiers): Removed.
6292 (toString): Call getType if required.
6293 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6294 * java/lang/reflect/natMethod.cc (hack_call): New method.
6295 Removed `#if 0' around FFI code.
6296 Include <gnu/gcj/RawData.h>.
6297 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6298 IllegalArgumentException when argument object and class disagree.
6299 (_Jv_GetTypesFromSignature): New function.
6301 (ObjectClass): New define.
6302 (_Jv_CallNonvirtualMethodA): New function.
6303 * java/lang/reflect/Method.java (hack_trampoline): New method.
6304 (hack_call): New native method.