Commit b6dabe89 by Zack Weinberg

libjava.exp: Correct typo...

	* testsuite/lib/libjava.exp: Correct typo: 'output from source
	compiled test', not 'execution from source compiled test'.
	Use UNTESTED, not XFAIL, for tests which are not run because
	they depend on a previous test which failed.

From-SVN: r41026
parent 212a2676
2001-04-02 Zack Weinberg <zackw@stanford.edu>
* testsuite/lib/libjava.exp: Correct typo: 'output from source
compiled test', not 'execution from source compiled test'.
Use UNTESTED, not XFAIL, for tests which are not run because
they depend on a previous test which failed.
2001-04-02 Richard Henderson <rth@redhat.com> 2001-04-02 Richard Henderson <rth@redhat.com>
* configure.in (GCC_UNWIND_INCLUDE): Assume we're built within * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
...@@ -78,10 +85,10 @@ ...@@ -78,10 +85,10 @@
1.3-Compliant Implementation of java.io.File. 1.3-Compliant Implementation of java.io.File.
* java/lang/natSystem.cc (init_properties): Get "file.separator", * java/lang/natSystem.cc (init_properties): Get "file.separator",
"path.separator", and "java.io.tmpdir" from the File class, instead "path.separator", and "java.io.tmpdir" from the File class, instead
of setting them explicitly. of setting them explicitly.
* java/io/File.java: Do not canonicalize paths for security manager * java/io/File.java: Do not canonicalize paths for security manager
checks. Call init_native() from static initializer. Do not pass path checks. Call init_native() from static initializer. Do not pass path
argument to native methods. New native method declarations. Some argument to native methods. New native method declarations. Some
security manager checks moved to checkWrite(). security manager checks moved to checkWrite().
(equals): Check file system case sensitivity and act appropriatly. (equals): Check file system case sensitivity and act appropriatly.
(hashCode): Likewise. (hashCode): Likewise.
...@@ -102,24 +109,24 @@ ...@@ -102,24 +109,24 @@
(stat): Handle ISHIDDEN query. (stat): Handle ISHIDDEN query.
(isAbsolute): Remove WIN32 cruft. (isAbsolute): Remove WIN32 cruft.
(performList): New arguments. Handle returning either File[] or String[] (performList): New arguments. Handle returning either File[] or String[]
arrays. Check with FileFilter or FilenameFilter arguments as arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list. appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New method implemented. (performSetReadOnly): New method implemented.
(performListRoots): Likewise. (performListRoots): Likewise.
(performSetLastModified): Likewise. (performSetLastModified): Likewise.
(performCreate): Likewise. (performCreate): Likewise.
(init_native): New initialization function. (init_native): New initialization function.
* java/io/natFileWin32.cc: Various functions no longer take canonical * java/io/natFileWin32.cc: Various functions no longer take canonical
path argument. path argument.
(stat): Add FIXME about ISHIDDEN query. (stat): Add FIXME about ISHIDDEN query.
(performList): New arguments. Handle returning either File[] or String[] (performList): New arguments. Handle returning either File[] or String[]
arrays. Check with FileFilter or FilenameFilter arguments as arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list. appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New. Stubbed. (performSetReadOnly): New. Stubbed.
(performListRoots): Likewise. (performListRoots): Likewise.
(performSetLastModified): Likewise. (performSetLastModified): Likewise.
(performCreate): Likewise. (performCreate): Likewise.
(init_native) New initialization function. (init_native) New initialization function.
* configure.in: Check for utime() and chmod(). * configure.in: Check for utime() and chmod().
* configure: Rebuilt. * configure: Rebuilt.
* include/config.h.in: Rebuilt. * include/config.h.in: Rebuilt.
...@@ -159,7 +166,7 @@ ...@@ -159,7 +166,7 @@
(addToEnvironment): Remove unnecessary semicolon. (addToEnvironment): Remove unnecessary semicolon.
(addToEnvironment): Use put() instead of add(). (addToEnvironment): Use put() instead of add().
* javax/naming/InitialContext.java (InitialContext): * javax/naming/InitialContext.java (InitialContext):
Make public. Make public.
(destroySubcontext): Method doesn't return a result. (destroySubcontext): Method doesn't return a result.
* javax/naming/Context.java: Import java.util.Hashtable. * javax/naming/Context.java: Import java.util.Hashtable.
...@@ -185,11 +192,11 @@ ...@@ -185,11 +192,11 @@
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc, prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc, gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc, gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc, gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc, java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc, java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc, java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc, java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc, java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc, java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc, java/lang/natThread.cc, java/lang/reflect/natArray.cc,
...@@ -200,7 +207,7 @@ ...@@ -200,7 +207,7 @@
2001-03-24 Bryce McKinlay <bryce@albatross.co.nz> 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/HashMap.java (HashMap): If 0 is given for initialCapacity * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
paramater, bump it to 1. paramater, bump it to 1.
* java/util/Hashtable.java (Hashtable): Likewise. * java/util/Hashtable.java (Hashtable): Likewise.
...@@ -236,7 +243,7 @@ ...@@ -236,7 +243,7 @@
Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
for libtool hacking. for libtool hacking.
* Makefile.am (libgcj.la): New explicit rule. Echo the list of objects * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
to a temporary file, then invoke libtool with the -objectlist to a temporary file, then invoke libtool with the -objectlist
paramater. paramater.
(libgcjx.la): Likewise. (libgcjx.la): Likewise.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
...@@ -254,7 +261,7 @@ ...@@ -254,7 +261,7 @@
* java/lang/reflect/Method.java (getExceptionTypes): Call getType() to * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
initialize if exception_types is null. initialize if exception_types is null.
* java/lang/reflect/Constructor.java: Likewise. * java/lang/reflect/Constructor.java: Likewise.
* java/lang/reflect/natConstructor.cc (getType): Initialize * java/lang/reflect/natConstructor.cc (getType): Initialize
exception_types to an empty Object array. exception_types to an empty Object array.
2001-03-21 Tom Tromey <tromey@redhat.com> 2001-03-21 Tom Tromey <tromey@redhat.com>
...@@ -304,7 +311,7 @@ ...@@ -304,7 +311,7 @@
(UNMASK_PTR): New macro. (UNMASK_PTR): New macro.
(intern): Unmask pointer before returning it. Register finalizer (intern): Unmask pointer before returning it. Register finalizer
for the string. for the string.
(unintern): Handle case where (unintern): Handle case where
(MASK_PTR): New macro. (MASK_PTR): New macro.
(PTR_MAKSED): Likewise. (PTR_MAKSED): Likewise.
(_Jv_NewStringUtf8Const): Use UNMASK_PTR. (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
...@@ -313,7 +320,7 @@ ...@@ -313,7 +320,7 @@
* java/lang/natThrowable.cc (printRawStackTrace): Copy the * java/lang/natThrowable.cc (printRawStackTrace): Copy the
stackTrace buffer to a correctly aligned pointer array. stackTrace buffer to a correctly aligned pointer array.
2001-03-12 Bryce McKinlay <bryce@albatross.co.nz> 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Runtime.java (_exit): Declare new package-private native. * java/lang/Runtime.java (_exit): Declare new package-private native.
...@@ -323,7 +330,7 @@ ...@@ -323,7 +330,7 @@
* prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
"naturally". "naturally".
* java/lang/System.java (setSecurityManager): If a security manager * java/lang/System.java (setSecurityManager): If a security manager
is already in place, call checkPermission. is already in place, call checkPermission.
* java/lang/ThreadGroup.java (uncaughtException): If printStackTrace() * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
throws an exception, try to deal with it gracefully. throws an exception, try to deal with it gracefully.
* java/lang/ExceptionInInitializerError.java (printStackTrace): * java/lang/ExceptionInInitializerError.java (printStackTrace):
...@@ -344,10 +351,10 @@ ...@@ -344,10 +351,10 @@
2001-03-05 Jochen Hoenicke <jochen@gnu.org> 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
* java/util/TreeMap.java (writeObject): Use defaultWriteObject() * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
instead of the new JDK1.2 API. This is simpler and makes instead of the new JDK1.2 API. This is simpler and makes
back-porting the classes to JDK1.1 trivial. back-porting the classes to JDK1.1 trivial.
(readObject): likewise. (readObject): likewise.
2001-03-01 Per Bothner <per@bothner.com> 2001-03-01 Per Bothner <per@bothner.com>
Changes merged from Kawa's gnu.math. Changes merged from Kawa's gnu.math.
...@@ -385,14 +392,14 @@ ...@@ -385,14 +392,14 @@
2001-02-22 Bryce McKinlay <bryce@albatross.co.nz> 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
Fix for PR java/2040: Fix for PR java/2040:
* java/util/HashMap.java (HashMap): Don't throw exception for * java/util/HashMap.java (HashMap): Don't throw exception for
loadFactor > 1. Add exception messages. loadFactor > 1. Add exception messages.
* java/util/Hashtable.java (Hashtable): Likewise. * java/util/Hashtable.java (Hashtable): Likewise.
2001-02-21 Bryce McKinlay <bryce@albatross.co.nz> 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
Disable libgcjx by default. Disable libgcjx by default.
* configure.in: Add support for --enable-java-awt configure option. * configure.in: Add support for --enable-java-awt configure option.
Use --enable-java-awt=xlib to build the xlib peers (libgcjx). Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
* Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X. * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
...@@ -428,7 +435,7 @@ ...@@ -428,7 +435,7 @@
property is not set. Don't call decode with null argument. property is not set. Don't call decode with null argument.
* java/lang/Long.java (getLong): Likewise. * java/lang/Long.java (getLong): Likewise.
* java/io/CharArrayReader.java (CharArrayReader): Throw * java/io/CharArrayReader.java (CharArrayReader): Throw
IllegalArgumentException if constructor arguments are illegal. IllegalArgumentException if constructor arguments are illegal.
(ready): Return false if no more characters can be read. (ready): Return false if no more characters can be read.
* java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise. * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
...@@ -476,14 +483,14 @@ ...@@ -476,14 +483,14 @@
2001-02-16 Bryce McKinlay <bryce@albatross.co.nz> 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/TreeSet.java (clone): Made subclass safe, use * java/util/TreeSet.java (clone): Made subclass safe, use
super.clone(), not new. super.clone(), not new.
* java/util/TreeMap.java (clone): Likewise. * java/util/TreeMap.java (clone): Likewise.
* java/util/TreeMap.java (nil): Made non-final. * java/util/TreeMap.java (nil): Made non-final.
(clone): Create new nil node for copy. (clone): Create new nil node for copy.
* java/util/HashSet.java (clone): Made subclass safe, use * java/util/HashSet.java (clone): Made subclass safe, use
super.clone(), not new. super.clone(), not new.
2001-02-14 Andrew Haley <aph@redhat.com> 2001-02-14 Andrew Haley <aph@redhat.com>
...@@ -501,17 +508,17 @@ ...@@ -501,17 +508,17 @@
2001-02-15 Bryce McKinlay <bryce@albatross.co.nz> 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/TreeSet.java (clone): Call TreeMap.clone(), not * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
Object.clone(). Object.clone().
* java/util/Collections.java (ReverseComparator): New static class. * java/util/Collections.java (ReverseComparator): New static class.
(reverseOrder): Return static instance of ReverseComparator. (reverseOrder): Return static instance of ReverseComparator.
* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public. * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
Rectangle.clone(), not Object.clone(). Rectangle.clone(), not Object.clone().
* java/util/HashSet.java (clone): Remove try/catch. * java/util/HashSet.java (clone): Remove try/catch.
* java/util/AbstractSequentialList.java: Synchronize with Classpath. * java/util/AbstractSequentialList.java: Synchronize with Classpath.
* java/util/Collection.java: Likewise. * java/util/Collection.java: Likewise.
* java/util/Comparator.java: Likewise. * java/util/Comparator.java: Likewise.
...@@ -532,12 +539,12 @@ ...@@ -532,12 +539,12 @@
* java/util/SortedSet.java: Sync with classpath. * java/util/SortedSet.java: Sync with classpath.
* java/util/HashMap.java (hash): Use if statement instead of ternary, * java/util/HashMap.java (hash): Use if statement instead of ternary,
for clarity. for clarity.
* java/lang/natClass.cc (getSignature): Don't try to dereference * java/lang/natClass.cc (getSignature): Don't try to dereference
param_types if it is null. Instead, take this to mean "no parameters". param_types if it is null. Instead, take this to mean "no parameters".
* java/lang/TreeMap.java (TreeIterator.next): Throw * java/lang/TreeMap.java (TreeIterator.next): Throw
NoSuchElementException in preference to ConcurrentModificationException. NoSuchElementException in preference to ConcurrentModificationException.
(TreeIterator.remove): Throw IllegalStateException in preference to (TreeIterator.remove): Throw IllegalStateException in preference to
ConcurrentModificationException. ConcurrentModificationException.
(SubMap.firstKey): Do a better check for empty SubMap, and if it is, (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
throw a NoSuchElementException. throw a NoSuchElementException.
...@@ -568,13 +575,13 @@ ...@@ -568,13 +575,13 @@
2001-02-13 Bryce McKinlay <bryce@albatross.co.nz> 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
* java/io/BlockDataException.java: Removed. * java/io/BlockDataException.java: Removed.
* java/io/ObjectInputStream.java (readObject): Throw * java/io/ObjectInputStream.java (readObject): Throw
StreamCorruptedException, not BlockDataException. StreamCorruptedException, not BlockDataException.
* Makefile.am: Remove BlockDataException. * Makefile.am: Remove BlockDataException.
* Makefile.in: Rebuild. * Makefile.in: Rebuild.
2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com> 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
Tom Tromey <tromey@redhat.com> Tom Tromey <tromey@redhat.com>
* interpret.cc (continue1): [insn_invokevirtual] Do an explicit * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
null pointer check. null pointer check.
...@@ -608,7 +615,7 @@ ...@@ -608,7 +615,7 @@
* java/lang/Float.java: As above. * java/lang/Float.java: As above.
(floatToRawIntBits): New method. (floatToRawIntBits): New method.
* java/io/OutputStreamWriter.java: (flush, writeChars): Throw * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
IOException if stream closed. IOException if stream closed.
2001-02-08 Tom Tromey <tromey@redhat.com> 2001-02-08 Tom Tromey <tromey@redhat.com>
...@@ -665,7 +672,7 @@ ...@@ -665,7 +672,7 @@
2001-01-26 Andrew Haley <aph@redhat.com> 2001-01-26 Andrew Haley <aph@redhat.com>
(INIT_FPE): Use a direct system call to set the handler. (INIT_FPE): Use a direct system call to set the handler.
2001-01-27 Richard Henderson <rth@redhat.com> 2001-01-27 Richard Henderson <rth@redhat.com>
* configure.host (alpha*-*) [libgcj_flags]: Add -mieee. * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
...@@ -679,10 +686,10 @@ ...@@ -679,10 +686,10 @@
* java/io/ObjectInputStream.java (read): AND byte with 0xff to make * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
result unsigned. result unsigned.
(read (byte[], int, int)): Only call readNextBlock() if the block (read (byte[], int, int)): Only call readNextBlock() if the block
buffer would actually be overrun. Increment blockDataPosition. buffer would actually be overrun. Increment blockDataPosition.
(callReadMethod): Propagate exceptions from invocation target. (callReadMethod): Propagate exceptions from invocation target.
* java/io/ObjectOutputStream.java (callWriteMethod): Propagate * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
exceptions from invocation target. exceptions from invocation target.
2001-01-26 Tom Tromey <tromey@redhat.com> 2001-01-26 Tom Tromey <tromey@redhat.com>
...@@ -719,7 +726,7 @@ ...@@ -719,7 +726,7 @@
2001-01-17 Bryce McKinlay <bryce@albatross.co.nz> 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Class.h (isInterface): Move implementation from * java/lang/Class.h (isInterface): Move implementation from
natClass.cc. Declare inline. natClass.cc. Declare inline.
(Class): Add default constructor. (Class): Add default constructor.
* java/lang/Object.h: Update comments. * java/lang/Object.h: Update comments.
...@@ -828,13 +835,13 @@ ...@@ -828,13 +835,13 @@
(_Jv_GetArrayClass): New inline function. (_Jv_GetArrayClass): New inline function.
(arrayclass): New field. (arrayclass): New field.
* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
_Jv_GetArrayElementFromElementType. _Jv_GetArrayElementFromElementType.
(_Jv_NewPrimArray): Ditto. (_Jv_NewPrimArray): Ditto.
(_Jv_PrimClass constructor): Initialize "depth", "ancestors", and (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
"idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass. "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
Set Modifier::ABSTRACT. Set Modifier::ABSTRACT.
* java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass". * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
Now synchronized. Array classes are now referenced from Now synchronized. Array classes are now referenced from
elementClass->arrayclass. Don't use _Jv_FindClassInCache. elementClass->arrayclass. Don't use _Jv_FindClassInCache.
Set array classes' accessibility flags correctly. Optimize so that Set array classes' accessibility flags correctly. Optimize so that
...@@ -881,7 +888,7 @@ ...@@ -881,7 +888,7 @@
* java/lang/Object.h (struct _JvObjectPrefix): New virtuals * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
nacd_1 and nacd_2 (for compatibility with the new C++ ABI.) nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
(class java::lang::Object): `finalize' moved up front. (class java::lang::Object): `finalize' moved up front.
* java/lang/natClass.cc * java/lang/natClass.cc
(isAssignableFrom): Turned outline. (isAssignableFrom): Turned outline.
(isInstance): Likewise. (isInstance): Likewise.
(isInterface): Likewise, fixed indentation. (isInterface): Likewise, fixed indentation.
...@@ -934,7 +941,7 @@ ...@@ -934,7 +941,7 @@
* java/io/PipedInputStream: Rewrote to be simpler and more correct. * java/io/PipedInputStream: Rewrote to be simpler and more correct.
* java/io/PipedOutputStream: Updated to match new PipedInputStream. * java/io/PipedOutputStream: Updated to match new PipedInputStream.
* java/io/PipedReader: New implementation based on new * java/io/PipedReader: New implementation based on new
PipedInputStream. PipedInputStream.
* java/io/PipedWriter: Updated to match new PipedReader. * java/io/PipedWriter: Updated to match new PipedReader.
...@@ -986,15 +993,15 @@ ...@@ -986,15 +993,15 @@
* include/win32-threads.h: Ditto. * include/win32-threads.h: Ditto.
* include/no-threads.h: Ditto. * include/no-threads.h: Ditto.
* posix-threads.cc (_Jv_ThreadInitData): Implement new prototype. * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
(_Jv_ThreadDestroyData): New function. Free native thread "data" and (_Jv_ThreadDestroyData): New function. Free native thread "data" and
move mutex and condition variable destroy code from: move mutex and condition variable destroy code from:
(really_start): ...here. (really_start): ...here.
(_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED. (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
* win32-threads.cc (_Jv_ThreadInitData): Implement new prototype. * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
(_Jv_ThreadDestroyData): Implemented. (_Jv_ThreadDestroyData): Implemented.
* nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t". * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
(_Jv_AllocArray): Ditto. (_Jv_AllocArray): Ditto.
2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com> 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
* java/sql/DriverManager.java (getConnection): Don't set user/password * java/sql/DriverManager.java (getConnection): Don't set user/password
...@@ -1023,8 +1030,8 @@ ...@@ -1023,8 +1030,8 @@
Fix for PR libgcj/1516: Fix for PR libgcj/1516:
* java/lang/reflect/natMethod.cc (primitives): Remove void entry. * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
Add boolean entry. Add boolean entry.
(can_widen): Declared inline. Remove redundant checks for void (can_widen): Declared inline. Remove redundant checks for void
arguments and char->short conversion. Add special case for boolean arguments and char->short conversion. Add special case for boolean
conversions. conversions.
(ffi_type): Declared inline. (ffi_type): Declared inline.
(_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block. (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
...@@ -1138,7 +1145,7 @@ ...@@ -1138,7 +1145,7 @@
2000-12-18 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
* java/awt/Window.java (addNotify): Remove peer casting hack now that * java/awt/Window.java (addNotify): Remove peer casting hack now that
gcj/312 is fixed. gcj/312 is fixed.
* java/awt/Button.java (addNotify): Likewise. * java/awt/Button.java (addNotify): Likewise.
* java/awt/Label.java (addNotify): Likewise. * java/awt/Label.java (addNotify): Likewise.
...@@ -1155,7 +1162,7 @@ ...@@ -1155,7 +1162,7 @@
2000-12-18 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
end-of-stream if avail_in is 0. end-of-stream if avail_in is 0.
2000-12-17 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
...@@ -1220,11 +1227,11 @@ ...@@ -1220,11 +1227,11 @@
* configure.in: Remove check for -fuse-divide-subroutine. * configure.in: Remove check for -fuse-divide-subroutine.
* configure: Rebuilt. * configure: Rebuilt.
* java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'. * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
* gcj/javaprims.h: Rebuilt CNI namespace declarations. * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2000-12-11 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am: Add HashSet.java and java/lang/ref classes. * Makefile.am: Add HashSet.java and java/lang/ref classes.
...@@ -1238,14 +1245,14 @@ ...@@ -1238,14 +1245,14 @@
* java/util/BasicMapEntry.java: Deleted. * java/util/BasicMapEntry.java: Deleted.
* java/util/Collections.java (search): Use a for-loop, not iterator * java/util/Collections.java (search): Use a for-loop, not iterator
hasNext(). hasNext().
(copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
of elements in source. of elements in source.
(max): Use a for-loop. (max): Use a for-loop.
(min): Ditto. (min): Ditto.
(reverse): Keep track of positions instead of using Iterator's (reverse): Keep track of positions instead of using Iterator's
nextIndex() and previousIndex(). nextIndex() and previousIndex().
(shuffle(List)): Initialize defaultRandom if required using (shuffle(List)): Initialize defaultRandom if required using
double-check thread safety idiom. Call two-argument shuffle method double-check thread safety idiom. Call two-argument shuffle method
using defaultRandom. using defaultRandom.
(defaultRandom): New field. (defaultRandom): New field.
(shuffle(List, Random)): Use a for-loop. Keep track of pos instead of (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
...@@ -1260,7 +1267,7 @@ ...@@ -1260,7 +1267,7 @@
* java/lang/ref/ReferenceQueue.java: Ditto. * java/lang/ref/ReferenceQueue.java: Ditto.
2000-12-10 Richard Henderson <rth@redhat.com> 2000-12-10 Richard Henderson <rth@redhat.com>
* configure.host: Recognize alpha*-*, not alphaev6-*. * configure.host: Recognize alpha*-*, not alphaev6-*.
2000-12-09 Anthony Green <green@redhat.com> 2000-12-09 Anthony Green <green@redhat.com>
...@@ -1285,10 +1292,10 @@ ...@@ -1285,10 +1292,10 @@
java/lang/String.h:, java/lang/reflect/Constructor.h:, java/lang/String.h:, java/lang/reflect/Constructor.h:,
java/lang/reflect/Field.h:, java/lang/reflect/Method.h:, java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
gnu/gcj/runtime/VMClassLoader.h:, gnu/gcj/runtime/VMClassLoader.h:,
java/io/ObjectInputStream$$GetField.h:, java/io/ObjectInputStream$$GetField.h:,
java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise. java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
(Makefile.in): Rebuilt. (Makefile.in): Rebuilt.
2000-12-08 Tom Tromey <tromey@redhat.com> 2000-12-08 Tom Tromey <tromey@redhat.com>
From Phil Edwards: From Phil Edwards:
...@@ -1340,7 +1347,7 @@ ...@@ -1340,7 +1347,7 @@
2000-12-04 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
Edgar Villanueva <edgarvil@home.com>. Edgar Villanueva <edgarvil@home.com>.
2000-12-03 Tom Tromey <tromey@redhat.com> 2000-12-03 Tom Tromey <tromey@redhat.com>
...@@ -1391,7 +1398,7 @@ ...@@ -1391,7 +1398,7 @@
* java/lang/dtoa.c: Include string.h. * java/lang/dtoa.c: Include string.h.
* java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
compiler warning. compiler warning.
From Adam Welc <welc@cs.purdue.edu>: From Adam Welc <welc@cs.purdue.edu>:
* java/util/LinkedList.java (removeFirst): Update `first' field. * java/util/LinkedList.java (removeFirst): Update `first' field.
Handle the last == first case. Handle the last == first case.
...@@ -1438,7 +1445,7 @@ ...@@ -1438,7 +1445,7 @@
* configure.in: Check for setlocale. * configure.in: Check for setlocale.
* configure: Rebuilt. * configure: Rebuilt.
* include/config.h.in: Rebuilt. * include/config.h.in: Rebuilt.
* java/util/zip/InflaterInputStream (read): Don't return -1 unless * java/util/zip/InflaterInputStream (read): Don't return -1 unless
the infate() call didn't deliver any output. Throw a ZipException if the infate() call didn't deliver any output. Throw a ZipException if
the needsDictionary() call returns true. the needsDictionary() call returns true.
...@@ -1456,11 +1463,11 @@ ...@@ -1456,11 +1463,11 @@
2000-11-28 Bryce McKinlay <bryce@albatross.co.nz> 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
* java/io/DataInputStream.java: Merge classpath docs. Call in.read() * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
directly rather than read() in all cases. Make primitive read directly rather than read() in all cases. Make primitive read
implementations more efficient, as defined in JDK online docs. implementations more efficient, as defined in JDK online docs.
(skipBytes): Behave like the JDK's implementation. (skipBytes): Behave like the JDK's implementation.
* java/io/BufferedReader.java: Merge classpath docs. Check for a * java/io/BufferedReader.java: Merge classpath docs. Check for a
closed stream with checkStatus() whenever an IOException can be closed stream with checkStatus() whenever an IOException can be
thrown. thrown.
(checkStatus): New private method. (checkStatus): New private method.
...@@ -1495,7 +1502,7 @@ ...@@ -1495,7 +1502,7 @@
(addAll): Ditto. (addAll): Ditto.
* java/util/Collections.java (UnmodifiableCollection): Implement * java/util/Collections.java (UnmodifiableCollection): Implement
toString(). toString().
(UnmodifiableList): Throw UnsupportedOperationException from (UnmodifiableList): Throw UnsupportedOperationException from
modification methods. Set `l' from the one-parameter constructor. modification methods. Set `l' from the one-parameter constructor.
(UnmodifiableMap): Implement toString(). (UnmodifiableMap): Implement toString().
(SynchronizedCollection): Ditto. (SynchronizedCollection): Ditto.
...@@ -1515,7 +1522,7 @@ Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com> ...@@ -1515,7 +1522,7 @@ Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
javax/naming/directory/InvalidSearchFilterException.java, javax/naming/directory/InvalidSearchFilterException.java,
javax/naming/directory/NoSuchAttributeException.java, javax/naming/directory/NoSuchAttributeException.java,
javax/naming/directory/SchemaViolationException.java: New files. javax/naming/directory/SchemaViolationException.java: New files.
Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com> Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
* javax/naming/InitialContext.java (rebind): Implement. * javax/naming/InitialContext.java (rebind): Implement.
...@@ -1637,7 +1644,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1637,7 +1644,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
javax/naming/NamingEnumeration.java, javax/naming/Name.java, javax/naming/NamingEnumeration.java, javax/naming/Name.java,
javax/naming/InitialContext.java, javax/naming/InitialContext.java,
javax/naming/NoInitialContextException.java: New files. javax/naming/NoInitialContextException.java: New files.
2000-11-25 Anthony Green <green@redhat.com> 2000-11-25 Anthony Green <green@redhat.com>
* prims.cc (_Jv_NewObjectArray): Undo placement change. * prims.cc (_Jv_NewObjectArray): Undo placement change.
...@@ -1660,7 +1667,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1660,7 +1667,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
(URLClassLoader): Call jarFileize. Use addElement instead of (URLClassLoader): Call jarFileize. Use addElement instead of
insertElementAt. insertElementAt.
(findResources): New method. (findResources): New method.
* java/lang/ClassLoader.java: Import java.util.Enumeration. * java/lang/ClassLoader.java: Import java.util.Enumeration.
(getResource): Implement correct logic. (getResource): Implement correct logic.
(findResource): New method. (findResource): New method.
...@@ -1668,7 +1675,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1668,7 +1675,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
(findClass): Create a ClassNotFoundException with the name of the (findClass): Create a ClassNotFoundException with the name of the
class rather than nothing at all. class rather than nothing at all.
(defineClass) Only throw ClassFormatError. (defineClass) Only throw ClassFormatError.
* java/lang/Class.java (forName): New method. * java/lang/Class.java (forName): New method.
* java/lang/Class.h (forName): New method. * java/lang/Class.h (forName): New method.
* java/lang/natClass.cc (forName): New method. * java/lang/natClass.cc (forName): New method.
...@@ -1676,13 +1683,13 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1676,13 +1683,13 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/System.java (setProperties): Only call init_properties() * java/lang/System.java (setProperties): Only call init_properties()
if properties is null. if properties is null.
(getProperties): Ditto. (getProperties): Ditto.
(getProperty): Ditto. (getProperty): Ditto.
(setProperty): Call init_properties if properties are null. (setProperty): Call init_properties if properties are null.
(prop_init): Remove field. (prop_init): Remove field.
* java/lang/natSystem.cc (init_properties): Synchronize the entire * java/lang/natSystem.cc (init_properties): Synchronize the entire
method. Check for null properties after synchronizing instead of method. Check for null properties after synchronizing instead of
prop_init flag. Set the properties field last for thread safety. prop_init flag. Set the properties field last for thread safety.
* java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set, * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
...@@ -1700,8 +1707,8 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1700,8 +1707,8 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* configure: Rebuilt. * configure: Rebuilt.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
* Makefile.am (built_java_source_files): Add Configuration.java. * Makefile.am (built_java_source_files): Add Configuration.java.
* configure.in: Add Configuration.java to CONFIG_FILES. Set * configure.in: Add Configuration.java to CONFIG_FILES. Set
LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
Create `gnu' directory in the build tree. Create `gnu' directory in the build tree.
* gnu/classpath/Configuration.java.in: New file. * gnu/classpath/Configuration.java.in: New file.
...@@ -1734,16 +1741,16 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1734,16 +1741,16 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added Collections.java. * Makefile.am (core_java_source_files): Added Collections.java.
* java/util/List.java: Merged from classpath. * java/util/List.java: Merged from classpath.
* java/util/Vector.java: Ditto. * java/util/Vector.java: Ditto.
* java/util/Collections.java: From classpath. * java/util/Collections.java: From classpath.
* java/util/ArrayList.java (addAll(Collection)): Call * java/util/ArrayList.java (addAll(Collection)): Call
addAll(int,Collection) instead of duplicating code. addAll(int,Collection) instead of duplicating code.
(indexOf): Clean up int initialization. (indexOf): Clean up int initialization.
(clear): Set cleared array entries to null, to allow garbage (clear): Set cleared array entries to null, to allow garbage
collection. collection.
* java/util/List.java: Minor formatting fixes. * java/util/List.java: Minor formatting fixes.
* java/util/SimpleTimeZone.java: ditto. * java/util/SimpleTimeZone.java: ditto.
2000-11-18 Tom Tromey <tromey@cygnus.com> 2000-11-18 Tom Tromey <tromey@cygnus.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
...@@ -1906,24 +1913,24 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1906,24 +1913,24 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/AbstractList.java: Throw messages with * java/util/AbstractList.java: Throw messages with
IndexOutOfBoundsExceptions. IndexOutOfBoundsExceptions.
(listIterator()): Call listIterator(0). (listIterator()): Call listIterator(0).
(size): New field. Initialize to size(). (size): New field. Initialize to size().
(hasNext): Test position against size, not size(). (hasNext): Test position against size, not size().
(remove): Increment knownMod by one instead of resetting it from (remove): Increment knownMod by one instead of resetting it from
modCount. modCount.
(add): Ditto. (add): Ditto.
(SubList.upMod): Removed. (SubList.upMod): Removed.
(SubList.set): Don't call upMod() or update knownMod. (SubList.set): Don't call upMod() or update knownMod.
(SubList.add(int,Object)): Increment modCount instead of caling upMod(). (SubList.add(int,Object)): Increment modCount instead of caling upMod().
(SubList.remove): Ditto. (SubList.remove): Ditto.
(SubList.addAll): Don't call backingList.size(). Increment size from (SubList.addAll): Don't call backingList.size(). Increment size from
c.size(). c.size().
(SubList.iterator): New method. Call listIterator(0). (SubList.iterator): New method. Call listIterator(0).
(SubList.listIterator): New method. Restore code to return an anonymous (SubList.listIterator): New method. Restore code to return an anonymous
listIterator implementation (with some changes). listIterator implementation (with some changes).
* java/util/AbstractSequentialList.java: Throw messages with * java/util/AbstractSequentialList.java: Throw messages with
IndexOutOfBoundsExceptions. IndexOutOfBoundsExceptions.
(addAll): Add a specnote. (addAll): Add a specnote.
* java/util/ArrayList.java (removeRange): Get the math right. * java/util/ArrayList.java (removeRange): Get the math right.
...@@ -1969,7 +1976,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1969,7 +1976,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* java/io/Reader.java: Merge docs from classpath. * java/io/Reader.java: Merge docs from classpath.
(skip): Synchronize on `lock'. (skip): Synchronize on `lock'.
* java/io/FileReader.java: Import correct implementation from * java/io/FileReader.java: Import correct implementation from
classpath. classpath.
* java/io/StringReader.java: Merge docs from classpath. * java/io/StringReader.java: Merge docs from classpath.
(ready): Throw IOException if stream is closed. (ready): Throw IOException if stream is closed.
...@@ -1993,16 +2000,16 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -1993,16 +2000,16 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
(hashCode): Ditto. (hashCode): Ditto.
(indexOf): Ditto. Don't take null check outside of the loop. (indexOf): Ditto. Don't take null check outside of the loop.
(iterator): Return an AbstractListItr instead of anonymous class. (iterator): Return an AbstractListItr instead of anonymous class.
(lastIndexOf): Use a for loop bounded by size() instead of (lastIndexOf): Use a for loop bounded by size() instead of
hasPrevious() in iterator loop. hasPrevious() in iterator loop.
(listIterator): Return an AbstractListItr. (listIterator): Return an AbstractListItr.
(removeRange): Remove bounds checking code and docs. (removeRange): Remove bounds checking code and docs.
(AbstractListItr): New inner class. Code moved here from (AbstractListItr): New inner class. Code moved here from
listIterator(). listIterator().
(SubList.iterator): Removed. Use default implementation from (SubList.iterator): Removed. Use default implementation from
AbstractList instead. AbstractList instead.
(SubList.listIterator): As above. (SubList.listIterator): As above.
* java/util/AbstractMap.java (clear): Use a for loop bounded by size() * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
instead of hasNext() in iterator loop. instead of hasNext() in iterator loop.
(containsValue): Ditto. (containsValue): Ditto.
(equals): Ditto. (equals): Ditto.
...@@ -2012,7 +2019,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2012,7 +2019,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
(remove): Ditto. (remove): Ditto.
(toString): Ditto. Use string concatenation operators, not (toString): Ditto. Use string concatenation operators, not
StringBuffer. StringBuffer.
* java/util/AbstractSequentialList.java (addAll): Use a for loop * java/util/AbstractSequentialList.java (addAll): Use a for loop
bounded by size() instead of hasNext() in iterator loop. bounded by size() instead of hasNext() in iterator loop.
* java/util/AbstractSet.java (hashCode): Don't catch exception as * java/util/AbstractSet.java (hashCode): Don't catch exception as
part of normal execution flow. Do an explicit null check instead. part of normal execution flow. Do an explicit null check instead.
...@@ -2024,7 +2031,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2024,7 +2031,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
(removeRange): Make protected. Don't check bounds. (removeRange): Make protected. Don't check bounds.
(add): Check lower bounds also. Simplify IndexOutOfBoundsException (add): Check lower bounds also. Simplify IndexOutOfBoundsException
message. message.
(addAll (Collection)): Use a size-bounded for loop instead of hasNext() (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
check. check.
(addAll (int, Collection)): Check lower bounds. Simplify exception (addAll (int, Collection)): Check lower bounds. Simplify exception
string. string.
...@@ -2036,11 +2043,11 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2036,11 +2043,11 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
(toArray): Correct comment. (toArray): Correct comment.
(trimToSize): Don't update modCount, this is not a structural change. (trimToSize): Don't update modCount, this is not a structural change.
Add comment. Add comment.
* java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
implemented. implemented.
(toString): Declare `bit' as long, not int. (toString): Declare `bit' as long, not int.
(data): Made package-private, not private. (data): Made package-private, not private.
2000-10-27 Warren Levy <warrenl@cygnus.com> 2000-10-27 Warren Levy <warrenl@cygnus.com>
...@@ -2084,9 +2091,9 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2084,9 +2091,9 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool. * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
(core_java_source_files): Put java.lang, java.io, and java.util here. (core_java_source_files): Put java.lang, java.io, and java.util here.
(ordinary_java_source_files): Order so that core_java_source_files are (ordinary_java_source_files): Order so that core_java_source_files are
built first. built first.
(java_source_files): Reorder so that special_java_source_files are (java_source_files): Reorder so that special_java_source_files are
built first. built first.
* configure.in: Don't pass -I flag to gcj. * configure.in: Don't pass -I flag to gcj.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
...@@ -2100,7 +2107,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2100,7 +2107,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-10-24 Bryce McKinlay <bryce@albatross.co.nz> 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/EventObject.java: Merged from classpath. * java/util/EventObject.java: Merged from classpath.
* java/lang/ThreadGroup.java (uncaughtException): Print thread name * java/lang/ThreadGroup.java (uncaughtException): Print thread name
with stack dump. with stack dump.
...@@ -2276,7 +2283,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2276,7 +2283,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* include/jvm.h: Enable __builtin_expect(). * include/jvm.h: Enable __builtin_expect().
* name-finder.cc (lookup): Don't trust dladdr() if the address is from * name-finder.cc (lookup): Don't trust dladdr() if the address is from
the main program. Fix for PR libgcj/341. the main program. Fix for PR libgcj/341.
2000-10-07 Tom Tromey <tromey@cygnus.com> 2000-10-07 Tom Tromey <tromey@cygnus.com>
...@@ -2352,7 +2359,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2352,7 +2359,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* java/security/interfaces/DSAPrivateKey.java (serialVersionUID): * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
New field. New field.
* java/security/interfaces/DSAPublicKey.java (serialVersionUID): * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
New field. New field.
* java/sql/DataTruncation.java (serialVersionUID): New field. * java/sql/DataTruncation.java (serialVersionUID): New field.
* java/sql/SQLException.java (serialVersionUID): New field. * java/sql/SQLException.java (serialVersionUID): New field.
* java/sql/SQLWarning.java (serialVersionUID): New field. * java/sql/SQLWarning.java (serialVersionUID): New field.
...@@ -2399,7 +2406,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2399,7 +2406,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-09-30 Hans Boehm <boehm@acm.org> 2000-09-30 Hans Boehm <boehm@acm.org>
Bryce McKinlay <bryce@albatross.co.nz> Bryce McKinlay <bryce@albatross.co.nz>
Implement bitmap descriptor based marking for Boehm GC. Implement bitmap descriptor based marking for Boehm GC.
* configure.in: Define JC1GCSPEC. Set it if boehm-gc is used. * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
...@@ -2407,7 +2414,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2407,7 +2414,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* libgcj.spec.in: Pass JC1GCSPEC to jc1. * libgcj.spec.in: Pass JC1GCSPEC to jc1.
* include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
method get_finalizer(). method get_finalizer().
(struct _Jv_ArrayVTable): Ditto. Declare method array with (struct _Jv_ArrayVTable): Ditto. Declare method array with
NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1. NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
(_Jv_AllocObj): Add new jclass parameter. (_Jv_AllocObj): Add new jclass parameter.
(_Jv_AllocArray): Ditto. (_Jv_AllocArray): Ditto.
...@@ -2422,7 +2429,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2422,7 +2429,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines. * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
(_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE. (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
(_Jv_DetermineVTableIndex): Ditto. (_Jv_DetermineVTableIndex): Ditto.
(_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
calculations to account for new gc_descr field. calculations to account for new gc_descr field.
* boehm.cc: #include gc_gcj.h. * boehm.cc: #include gc_gcj.h.
(obj_kind_x, obj_free_list): `#if 0'-ed away. (obj_kind_x, obj_free_list): `#if 0'-ed away.
...@@ -2430,10 +2437,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2430,10 +2437,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
New commentary from HB. Mark the classes vtable. New commentary from HB. Mark the classes vtable.
(_Jv_MarkArray): Check that vtable doesn't point to a cleared object. (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
(GC_DEFAULT_DESCR): New #define. (GC_DEFAULT_DESCR): New #define.
(_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now. (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
(_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC (). (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
(_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
scan conservativly if size is less than min_heap_addr. Set vtable scan conservativly if size is less than min_heap_addr. Set vtable
pointer of new object before returning. pointer of new object before returning.
(_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC. (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
(_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
...@@ -2444,10 +2451,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2444,10 +2451,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* java/lang/Class.h (_Jv_NewObjectArray): No longer a friend. * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
(_Jv_NewPrimArray): Ditto. (_Jv_NewPrimArray): Ditto.
(_Jv_AllocObj): Declare as a friend. (_Jv_AllocObj): Declare as a friend.
(_Jv_AllocArray): Ditto. (_Jv_AllocArray): Ditto.
* java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
from &ObjectClass into new array class. Remove offset-by-one from &ObjectClass into new array class. Remove offset-by-one
adjustments from `method' size calculations to account for gc_descr adjustments from `method' size calculations to account for gc_descr
field. field.
2000-09-26 Tom Tromey <tromey@cygnus.com> 2000-09-26 Tom Tromey <tromey@cygnus.com>
...@@ -2494,7 +2501,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2494,7 +2501,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
* java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field. * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
Initialize with anonymous class. Initialize with anonymous class.
(compareToIgnoreCase): New method. (compareToIgnoreCase): New method.
* java/lang/ThreadGroup.java (had_uncaught_exception): New field. * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
(uncaughtException): Set had_uncaught_exception. (uncaughtException): Set had_uncaught_exception.
* prims.cc (JvRunMain): Check value of had_uncaught_exception and * prims.cc (JvRunMain): Check value of had_uncaught_exception and
...@@ -2580,7 +2587,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2580,7 +2587,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-09-07 Bryce McKinlay <bryce@albatross.co.nz> 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am (Thread.h): Don't be friends with native threads * Makefile.am (Thread.h): Don't be friends with native threads
functions. functions.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
* java/lang/Thread.java (interrupt_flag): Make package-private. * java/lang/Thread.java (interrupt_flag): Make package-private.
...@@ -2612,7 +2619,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2612,7 +2619,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
calls to `throw'. calls to `throw'.
(send): Undo last patch. Remove the label only. (send): Undo last patch. Remove the label only.
(mcastGrp): Ditto. (mcastGrp): Ditto.
* java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
`throw'. `throw'.
* java/net/natInetAdress.cc: Ditto. * java/net/natInetAdress.cc: Ditto.
...@@ -2630,7 +2637,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2630,7 +2637,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
stack. Synchronize. stack. Synchronize.
* java/lang/fdlibm.h: #undef __P if previously defined. * java/lang/fdlibm.h: #undef __P if previously defined.
* java/lang/natSystem.cc (currentTimeMillis): Remove unused local. * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
* java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
block. block.
(mcastGrp): Ditto. (mcastGrp): Ditto.
...@@ -2641,10 +2648,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2641,10 +2648,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-09-04 Anthony Green <green@redhat.com> 2000-09-04 Anthony Green <green@redhat.com>
Fix for PR java.io/203: Fix for PR java.io/203:
* java/io/File.java (createTempFile): Obey directory argument. * java/io/File.java (createTempFile): Obey directory argument.
Use java.io.tmpdir if needed. Don't leave FileDescripators open. Use java.io.tmpdir if needed. Don't leave FileDescripators open.
* java/lang/natSystem.cc (init_properties): Use TMPDIR environment * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
variable to set java.io.tmpdir on non-WIN32 systems. variable to set java.io.tmpdir on non-WIN32 systems.
2000-09-04 Anthony Green <green@redhat.com> 2000-09-04 Anthony Green <green@redhat.com>
...@@ -2664,10 +2671,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2664,10 +2671,10 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
2000-09-01 Andrew Haley <aph@redhat.com> 2000-09-01 Andrew Haley <aph@redhat.com>
* java/io/StreamTokenizer.java: Don't throw a * java/io/StreamTokenizer.java: Don't throw a
NumberFormatException if a field is numeric as far as the NumberFormatException if a field is numeric as far as the
StreamTokenizer is concerned but not as far as Double.valueOf() is StreamTokenizer is concerned but not as far as Double.valueOf() is
concerned: return a zero instead. concerned: return a zero instead.
2000-08-30 Tom Tromey <tromey@cygnus.com> 2000-08-30 Tom Tromey <tromey@cygnus.com>
...@@ -2714,7 +2721,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com> ...@@ -2714,7 +2721,7 @@ Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
java/util/SortedSet.java: Imported from GNU Classpath. java/util/SortedSet.java: Imported from GNU Classpath.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
* Makefile.am: Added new files. * Makefile.am: Added new files.
2000-08-26 Anthony Green <green@redhat.com> 2000-08-26 Anthony Green <green@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
...@@ -2811,7 +2818,7 @@ Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com> ...@@ -2811,7 +2818,7 @@ Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
* java/util/jar/JarFile.java: Don't call * java/util/jar/JarFile.java: Don't call
java.util.zip.ZipFile.getEntry twice. From Mark Wielaard java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
<mark@klomp.org>. <mark@klomp.org>.
Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com> Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
* java/net/URLClassLoader.java: Find the JarEntry via the JarFile. * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
...@@ -2865,7 +2872,7 @@ Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com> ...@@ -2865,7 +2872,7 @@ Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
* Makefile.in, gcj/Makefile.in: Rebuilt. * Makefile.in, gcj/Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Add these new classes. * Makefile.am (ordinary_java_source_files): Add these new classes.
2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no> 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
* gnu/gcj/awt/ComponentDataBlitOp.java: New file. * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
...@@ -3051,18 +3058,18 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3051,18 +3058,18 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
John Stracke <francis@ecal.com> John Stracke <francis@ecal.com>
* gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed. * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
(connect): Don't falsely claim HTTP/1.1 compliance. Call (connect): Don't falsely claim HTTP/1.1 compliance. Call
getHttpHeaders(). getHttpHeaders().
(disconnect): Don't unset connected flag. (disconnect): Don't unset connected flag.
(getHeaderField (String)): Call connect() if not connected. (getHeaderField (String)): Call connect() if not connected.
(getHeaderField (int)): Ditto. (getHeaderField (int)): Ditto.
(getHeaderFieldKey): Ditto. (getHeaderFieldKey): Ditto.
(getHttpHeaders): Don't call connect(). (getHttpHeaders): Don't call connect().
* java/net/HttpURLConnection.java (instanceFollowRedirects, * java/net/HttpURLConnection.java (instanceFollowRedirects,
gotResponseVals): New fields. gotResponseVals): New fields.
(getResponseCode): Call getResponseVals() conditionally. (getResponseCode): Call getResponseVals() conditionally.
(getResponseMessage): Ditto. (getResponseMessage): Ditto.
(getResponseVals): Call connect(). Don't throw FileNotFoundException. (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2000-08-09 Bryce McKinlay <bryce@albatross.co.nz> 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
...@@ -3083,8 +3090,8 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3083,8 +3090,8 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/awt/geom/Point2D.java (clone): Ditto. * java/awt/geom/Point2D.java (clone): Ditto.
* java/awt/geom/RectangularShape.java (clone): Ditto. * java/awt/geom/RectangularShape.java (clone): Ditto.
* java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha, * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
isAlphaPremultiplied): Make package-private, not private. isAlphaPremultiplied): Make package-private, not private.
2000-08-08 Tom Tromey <tromey@cygnus.com> 2000-08-08 Tom Tromey <tromey@cygnus.com>
* gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
...@@ -3150,22 +3157,22 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3150,22 +3157,22 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2000-08-03 Bryce McKinlay <bryce@albatross.co.nz> 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am: Add new AWT stubs. * Makefile.am: Add new AWT stubs.
* java/awt/Canvas.java: New placeholder class. * java/awt/Canvas.java: New placeholder class.
* java/awt/Checkbox.java: Ditto. * java/awt/Checkbox.java: Ditto.
* java/awt/CheckboxMenuItem.java: Ditto. * java/awt/CheckboxMenuItem.java: Ditto.
* java/awt/Choice.java: Ditto. * java/awt/Choice.java: Ditto.
* java/awt/Dialog.java: Ditto. * java/awt/Dialog.java: Ditto.
* java/awt/FileDialog.java: Ditto. * java/awt/FileDialog.java: Ditto.
* java/awt/List.java: Ditto. * java/awt/List.java: Ditto.
* java/awt/ScrollPane.java: Ditto. * java/awt/ScrollPane.java: Ditto.
* java/awt/TextField.java: Ditto. * java/awt/TextField.java: Ditto.
* java/awt/datatransfer/Clipboard.java: Ditto. * java/awt/datatransfer/Clipboard.java: Ditto.
* java/awt/Component.java (treeLock): Now a static String. Add comment. * java/awt/Component.java (treeLock): Now a static String. Add comment.
* java/awt/MenuItem.java (MenuItem): Add default constructor. * java/awt/MenuItem.java (MenuItem): Add default constructor.
* java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
Some commented out. Partially implemented. Some commented out. Partially implemented.
* java/awt/natToolkit.cc: Removed file. * java/awt/natToolkit.cc: Removed file.
2000-08-03 Bryce McKinlay <bryce@albatross.co.nz> 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
...@@ -3203,26 +3210,26 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3203,26 +3210,26 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2000-08-02 Bryce McKinlay <bryce@albatross.co.nz> 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
* interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
to match C declaration in ffi.h. to match C declaration in ffi.h.
* Makefile.am: Add java/awt/Button.java. * Makefile.am: Add java/awt/Button.java.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com> 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
cast of the second argument to `ffi_raw_call' changed to match cast of the second argument to `ffi_raw_call' changed to match
prototype. prototype.
2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com> 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jni.cc (_Jv_JNIMethod::call): Type of the cast of the second * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
argument to `ffi_raw_call' changed to match prototype. argument to `ffi_raw_call' changed to match prototype.
2000-07-31 Bryce McKinlay <bryce@albatross.co.nz> 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
* java/awt/Component.java (toString): Implemented. * java/awt/Component.java (toString): Implemented.
* java/awt/Container.java (addImpl): Remove FIXME. Only call * java/awt/Container.java (addImpl): Remove FIXME. Only call
dispatchEvent() to dispatch the event. dispatchEvent() to dispatch the event.
(removeImpl): Ditto. (removeImpl): Ditto.
...@@ -3418,7 +3425,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3418,7 +3425,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/awt/geom/RectangularShape.java: New file. * java/awt/geom/RectangularShape.java: New file.
* java/awt/geom/Point2D.java (Double, Float): New inner classes. * java/awt/geom/Point2D.java (Double, Float): New inner classes.
* java/awt/geom/IllegalPathStateException.java: New file. * java/awt/geom/IllegalPathStateException.java: New file.
* scripts/showval.java: New file. * scripts/showval.java: New file.
* scripts/classes.pl (scan): Print inner classes properly. * scripts/classes.pl (scan): Print inner classes properly.
...@@ -3469,26 +3476,26 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3469,26 +3476,26 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/util/ResourceBundle.java (getLocale): stub. * java/util/ResourceBundle.java (getLocale): stub.
* Makefile.am: Added new AWT classes. * Makefile.am: Added new AWT classes.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
* java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
constructors. Fix toString() and paramString(). constructors. Fix toString() and paramString().
* java/awt/AWTEventMulticaster.java: New class. Implemented. * java/awt/AWTEventMulticaster.java: New class. Implemented.
* java/awt/CheckboxGroup.java: New class. * java/awt/CheckboxGroup.java: New class.
* java/awt/ColorModel.java: New class. * java/awt/ColorModel.java: New class.
* java/awt/Component.java: Added stubs for most methods. Implemented * java/awt/Component.java: Added stubs for most methods. Implemented
event dispatch. event dispatch.
* java/awt/Container.java: ditto. * java/awt/Container.java: ditto.
* java/awt/ComponentOrientation.java: New class. Partly implemented. * java/awt/ComponentOrientation.java: New class. Partly implemented.
* java/awt/Cursor.java: ditto. * java/awt/Cursor.java: ditto.
* java/awt/Event.java: Fix paramString(). * java/awt/Event.java: Fix paramString().
* java/awt/EventQueue.java: New class. Implemented. * java/awt/EventQueue.java: New class. Implemented.
* java/awt/Font.java: Added additional stub methods. Implemented * java/awt/Font.java: Added additional stub methods. Implemented
toString(). toString().
* java/awt/FontMetrics.java: New class. Stubbed. * java/awt/FontMetrics.java: New class. Stubbed.
* java/awt/GraphicsConfiguration.java: New class. Complete, except for * java/awt/GraphicsConfiguration.java: New class. Complete, except for
Java2D parts. Java2D parts.
* java/awt/Insets.java: New class. Implemented. * java/awt/Insets.java: New class. Implemented.
* java/awt/Menu.java: Add new methods. Partially implemented. * java/awt/Menu.java: Add new methods. Partially implemented.
* java/awt/MenuItem.java: Add new methods and fields. Partially * java/awt/MenuItem.java: Add new methods and fields. Partially
implemented. implemented.
* java/awt/MenuShortcut.java: New class. Implemented. * java/awt/MenuShortcut.java: New class. Implemented.
* java/awt/Panel.java: New class. Placeholder. * java/awt/Panel.java: New class. Placeholder.
...@@ -3505,7 +3512,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3505,7 +3512,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/awt/event/HierarchyEvent.java: New class. * java/awt/event/HierarchyEvent.java: New class.
* java/awt/event/HierarchyListener.java: New class. * java/awt/event/HierarchyListener.java: New class.
* java/awt/event/InputMethodEvent.java: Implement paramString(). * java/awt/event/InputMethodEvent.java: Implement paramString().
* java/awt/event/InvocationEvent.java: Implement paramString(). Throw * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
exception if !catchExceptions. exception if !catchExceptions.
* java/awt/event/ItemEvent.java: Implement paramString(). * java/awt/event/ItemEvent.java: Implement paramString().
* java/awt/event/KeyEvent.java: Implement paramString(). * java/awt/event/KeyEvent.java: Implement paramString().
...@@ -3513,7 +3520,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3513,7 +3520,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/awt/event/PaintEvent.java: Implement paramString(). * java/awt/event/PaintEvent.java: Implement paramString().
* java/awt/event/TextEvent.java: Implement paramString(). * java/awt/event/TextEvent.java: Implement paramString().
* java/awt/event/WindowEvent.java: Implement paramString(). * java/awt/event/WindowEvent.java: Implement paramString().
AWT Peer interfaces: AWT Peer interfaces:
* java/awt/peer/ButtonPeer.java: New file. * java/awt/peer/ButtonPeer.java: New file.
* java/awt/peer/ListPeer.java: New file. * java/awt/peer/ListPeer.java: New file.
...@@ -3578,7 +3585,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3578,7 +3585,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/lang/ThreadGroup.java: Added synchronized flag to many methods. * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
(destroyed_flag): Removed. (destroyed_flag): Removed.
(isDestroyed, removeGroup, removeThread): Test for parent == null. (isDestroyed, removeGroup, removeThread): Test for parent == null.
(activeCount): Added spec note. (activeCount): Added spec note.
2000-06-27 Warren Levy <warrenl@cygnus.com> 2000-06-27 Warren Levy <warrenl@cygnus.com>
...@@ -3653,8 +3660,8 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3653,8 +3660,8 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* prims.cc (_Jv_RunMain): Don't use `main_group'. * prims.cc (_Jv_RunMain): Don't use `main_group'.
* gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
argument. argument.
* java/lang/Thread.java (Thread): Bootstrap initial thread from * java/lang/Thread.java (Thread): Bootstrap initial thread from
ThreadGroup.root if Thread.currentThread is null. Honour the ThreadGroup.root if Thread.currentThread is null. Honour the
ThreadGroup's max priority setting. ThreadGroup's max priority setting.
2000-06-18 Tom Tromey <tromey@cygnus.com> 2000-06-18 Tom Tromey <tromey@cygnus.com>
...@@ -3680,11 +3687,11 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3680,11 +3687,11 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2000-06-15 Bryce McKinlay <bryce@albatross.co.nz> 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
Fix for PR java.lang/258: Fix for PR java.lang/258:
* prims.cc (_Jv_PrimClass): Set state of primitive class to * prims.cc (_Jv_PrimClass): Set state of primitive class to
JV_STATE_DONE, to prevent accidental initialization. JV_STATE_DONE, to prevent accidental initialization.
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Call * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
_Jv_InterfaceAssignableFrom if target is an interface and source is an _Jv_InterfaceAssignableFrom if target is an interface and source is an
interface or an abstract class. Remove redundant initializeClass calls. interface or an abstract class. Remove redundant initializeClass calls.
Remove duplicate if_idt test. Remove duplicate if_idt test.
(_Jv_InterfaceAssignableFrom): New function. (_Jv_InterfaceAssignableFrom): New function.
* java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
...@@ -3726,13 +3733,13 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3726,13 +3733,13 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
Fix for PR libgcj/226: Fix for PR libgcj/226:
* java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect, * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
since this is an installed header. since this is an installed header.
Fix for PR libgcj/228: Fix for PR libgcj/228:
* java/util/zip/ZipFile (getInputStream): Create inflater with * java/util/zip/ZipFile (getInputStream): Create inflater with
nowrapper option. nowrapper option.
* java/util/zip/natInflater.cc (inflate): Throw zlib's error message * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
with DataFormatException. with DataFormatException.
2000-05-20 Tom Tromey <tromey@cygnus.com> 2000-05-20 Tom Tromey <tromey@cygnus.com>
...@@ -3877,7 +3884,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3877,7 +3884,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2000-04-17 Andrew Haley <aph@cygnus.com> 2000-04-17 Andrew Haley <aph@cygnus.com>
* Makefile.am: Add new files: * Makefile.am: Add new files:
gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc, gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
gnu/gcj/io/shs.cc. gnu/gcj/io/shs.cc.
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
...@@ -3901,12 +3908,12 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3901,12 +3908,12 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
punctuation from the classname of an array element. punctuation from the classname of an array element.
* gcj/javaprims.h: Add SimpleDigestStream. * gcj/javaprims.h: Add SimpleDigestStream.
2000-04-17 Andrew Haley <aph@cygnus.com> 2000-04-17 Andrew Haley <aph@cygnus.com>
* java/lang/natClass.cc (getPrivateField): Make recursive calls * java/lang/natClass.cc (getPrivateField): Make recursive calls
to getPrivateField for superclasses. to getPrivateField for superclasses.
2000-04-14 Andrew Haley <aph@cygnus.com> 2000-04-14 Andrew Haley <aph@cygnus.com>
* Makefile.am: Add new files: * Makefile.am: Add new files:
...@@ -3923,7 +3930,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3923,7 +3930,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* java/lang/natClass.cc (getPrivateField): New method. * java/lang/natClass.cc (getPrivateField): New method.
(getPrivateMethod): Ditto. (getPrivateMethod): Ditto.
(_Jv_IsAssignableFrom): Return false for Interface with no IDT. (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
* gcj/javaprims.h: Add serialization classes. * gcj/javaprims.h: Add serialization classes.
* java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java. * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
(setByteField): Ditto. (setByteField): Ditto.
(setCharField): Ditto. (setCharField): Ditto.
...@@ -3949,7 +3956,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -3949,7 +3956,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
(getDefinedSUID): Ditto. (getDefinedSUID): Ditto.
* java/io/natObjectOutputStream.cc: New file. * java/io/natObjectOutputStream.cc: New file.
* java/io/natObjectInputStream.cc: New file. * java/io/natObjectInputStream.cc: New file.
2000-04-13 Warren Levy <warrenl@cygnus.com> 2000-04-13 Warren Levy <warrenl@cygnus.com>
* java/io/ObjectInputStream.java: Temporary workarounds for compiler * java/io/ObjectInputStream.java: Temporary workarounds for compiler
...@@ -4166,7 +4173,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4166,7 +4173,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* sysdep/ia64.c (rse_address_add): Delete. * sysdep/ia64.c (rse_address_add): Delete.
(IS_NaT_COLLECTION_ADDR): Delete. (IS_NaT_COLLECTION_ADDR): Delete.
(ia64_backtrace_helper): check for null unwind_info. (ia64_backtrace_helper): check for null unwind_info.
* sysdep/ia64-frame.h: add calc_caller_bsp. * sysdep/ia64-frame.h: add calc_caller_bsp.
* java/lang/natThrowable.cc (printRawStackTrace): Flush * java/lang/natThrowable.cc (printRawStackTrace): Flush
...@@ -4176,7 +4183,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4176,7 +4183,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
(_Jv_remI): Likewise. (_Jv_remI): Likewise.
(_Jv_divJ): Likewise. (_Jv_divJ): Likewise.
(_Jv_remJ): Likewise. (_Jv_remJ): Likewise.
* interpret.cc (continue1): Use divide subroutines to guarantee * interpret.cc (continue1): Use divide subroutines to guarantee
correct Java standard behaviour. correct Java standard behaviour.
Floating-point division should not abort; make it so. Floating-point division should not abort; make it so.
...@@ -4197,7 +4204,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4197,7 +4204,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
lookups on ia64. lookups on ia64.
* java/lang/natThrowable.cc(printRawStackTrace): Don't print out a * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
blank line. blank line.
2000-03-22 Andrew Haley <aph@cygnus.com> 2000-03-22 Andrew Haley <aph@cygnus.com>
* configure.host: Add -funwind-tables for IA64. * configure.host: Add -funwind-tables for IA64.
...@@ -4208,7 +4215,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4208,7 +4215,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* sysdep/ia64-frame.h: New file. * sysdep/ia64-frame.h: New file.
* configure.in: Add sysdep/ia64.c for ia64. * configure.in: Add sysdep/ia64.c for ia64.
* configure: Rebuilt. * configure: Rebuilt.
2000-03-17 Andrew Haley <aph@cygnus.com> 2000-03-17 Andrew Haley <aph@cygnus.com>
* java/lang/natString.cc: Remove `register' keyword. * java/lang/natString.cc: Remove `register' keyword.
...@@ -4270,7 +4277,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4270,7 +4277,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
(StringBuffer (String)): Use DEFAULT_CAPACITY. (StringBuffer (String)): Use DEFAULT_CAPACITY.
(replace): Calculate length for arraycopy() correctly. (replace): Calculate length for arraycopy() correctly.
2000-05-09 Tom Tromey <tromey@cygnus.com> 2000-05-09 Tom Tromey <tromey@cygnus.com>
* java/lang/StringBuffer.java (toString): Don't mark buffer as * java/lang/StringBuffer.java (toString): Don't mark buffer as
...@@ -4324,7 +4331,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4324,7 +4331,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
(_Jv_IsInstanceOf): Ditto. (_Jv_IsInstanceOf): Ditto.
(_Jv_CheckCast): Ditto. (_Jv_CheckCast): Ditto.
(_Jv_CheckArrayStore): Ditto. (_Jv_CheckArrayStore): Ditto.
* java/lang/Class.h (_Jv_InitClass): Ditto. * java/lang/Class.h (_Jv_InitClass): Ditto.
* java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false', * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
not `0'. not `0'.
(notify): Ditto. (notify): Ditto.
...@@ -4548,7 +4555,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com> ...@@ -4548,7 +4555,7 @@ Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
* include/posix-threads.h (_Jv_MutexUnlock): Replace * include/posix-threads.h (_Jv_MutexUnlock): Replace
_JV_NOT_OWNER. _JV_NOT_OWNER.
2000-04-08 Anthony Green <green@cygnus.com> 2000-04-08 Anthony Green <green@cygnus.com>
* posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h. * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
...@@ -4654,7 +4661,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4654,7 +4661,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
* configure.in: Add --disable-jvmpi. * configure.in: Add --disable-jvmpi.
* include/config.h.in: Rebuilt. * include/config.h.in: Rebuilt.
* acconfig.h: Add ENABLE_JVMPI. * acconfig.h: Add ENABLE_JVMPI.
* include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC. * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
(_Jv_JVMPI_Notify_OBJECT_ALLOC): New define. (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
(_Jv_JVMPI_Notify_THREAD_END): New define. (_Jv_JVMPI_Notify_THREAD_END): New define.
...@@ -4680,12 +4687,12 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4680,12 +4687,12 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
(disable_gc_mutex): Declare. (disable_gc_mutex): Declare.
* nogc.cc (_Jv_DisableGC): New function. * nogc.cc (_Jv_DisableGC): New function.
(_Jv_EnableGC): New function. (_Jv_EnableGC): New function.
* jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests. * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
(_Jv_JVMPI_Interface): Define. (_Jv_JVMPI_Interface): Define.
(jvmpiEnableEvent): New function. (jvmpiEnableEvent): New function.
(_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface. (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
* include/jvmpi.h: New file. * include/jvmpi.h: New file.
2000-03-27 Bryce McKinlay <bryce@albatross.co.nz> 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
...@@ -4702,10 +4709,10 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4702,10 +4709,10 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
the target thread by signaling its wait condition. the target thread by signaling its wait condition.
(_Jv_ThreadInitData): Set `thread_obj' in the thread data struct, (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
not the starter struct. Initialize wait_mutex and wait_cond. not the starter struct. Initialize wait_mutex and wait_cond.
(_Jv_MutexLock): New recursive mutex implementation. Moved from (_Jv_MutexLock): New recursive mutex implementation. Moved from
posix-threads.h. posix-threads.h.
(_Jv_MutexUnlock): Ditto. (_Jv_MutexUnlock): Ditto.
(really_start): Set info->data->thread from pthread_self() to work (really_start): Set info->data->thread from pthread_self() to work
around a race condition. Destroy wait_mutex and wait_cond when run() around a race condition. Destroy wait_mutex and wait_cond when run()
returns. returns.
* java/lang/Thread.java: (isInterrupted_): Renamed to overloaded * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
...@@ -4714,7 +4721,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4714,7 +4721,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
startable_flag: New private field. startable_flag: New private field.
(Thread): Initialize `startable_flag'. (Thread): Initialize `startable_flag'.
(toString): Check for null thread group. (toString): Check for null thread group.
* java/lang/natThread.cc: (struct natThread): New fields * java/lang/natThread.cc: (struct natThread): New fields
`join_mutex', `join_cond'. Removed fields `joiner', `next'. `join_mutex', `join_cond'. Removed fields `joiner', `next'.
(class locker): Removed. (class locker): Removed.
(initialize_native): Initialize `join_cond' and `join_mutex'. (initialize_native): Initialize `join_cond' and `join_mutex'.
...@@ -4729,7 +4736,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4729,7 +4736,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
#defines and #ifdefs. #defines and #ifdefs.
(struct _Jv_Thread_t): New fields `thread_obj', `wait_cond', (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
`wait_mutex', `next'. `wait_mutex', `next'.
(struct _Jv_ConditionVariable_t): Define as a struct instead of (struct _Jv_ConditionVariable_t): Define as a struct instead of
directly mapping to pthread_cond_t. directly mapping to pthread_cond_t.
(struct _Jv_Mutex_t): New recursive implementation. (struct _Jv_Mutex_t): New recursive implementation.
(_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check. (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
...@@ -4742,10 +4749,10 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4742,10 +4749,10 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
(_Jv_MutexDestroy): Ditto. (_Jv_MutexDestroy): Ditto.
(_Jv_CondDestroy): Removed. (_Jv_CondDestroy): Removed.
(_Jv_PthreadGetMutex): Removed. (_Jv_PthreadGetMutex): Removed.
* include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
error. Add a FIXME about this. error. Add a FIXME about this.
(_Jv_CondNotifyAll): Ditto. (_Jv_CondNotifyAll): Ditto.
* win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
_JV_NOT_OWNER on other errors. Add FIXME. _JV_NOT_OWNER on other errors. Add FIXME.
2000-03-26 Tom Tromey <tromey@cygnus.com> 2000-03-26 Tom Tromey <tromey@cygnus.com>
...@@ -4782,7 +4789,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4782,7 +4789,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
* interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL, * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
STORED): Define differently on a 64 bit machine. STORED): Define differently on a 64 bit machine.
(continue1): Use ffi_java_raw_call when appropriate. (continue1): Use ffi_java_raw_call when appropriate.
2000-03-24 Warren Levy <warrenl@cygnus.com> 2000-03-24 Warren Levy <warrenl@cygnus.com>
* java/math/BigInteger.java(divide): Handle the special case when * java/math/BigInteger.java(divide): Handle the special case when
...@@ -4813,9 +4820,9 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -4813,9 +4820,9 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
* java/lang/natClass.cc (isInstance): Initialize `this'. * java/lang/natClass.cc (isInstance): Initialize `this'.
(isAssignableFrom): Initialize `this' and `klass'. (isAssignableFrom): Initialize `this' and `klass'.
(_Jv_IsAssignableFrom): If an interface has no idt, it is not (_Jv_IsAssignableFrom): If an interface has no idt, it is not
implemented by any loaded class, so return false. implemented by any loaded class, so return false.
* java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
not Class.isAssignableFrom(). Use JV_CLASS, not getClass(). not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
2000-03-19 Warren Levy <warrenl@cygnus.com> 2000-03-19 Warren Levy <warrenl@cygnus.com>
...@@ -5010,17 +5017,17 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -5010,17 +5017,17 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
* java/lang/natClass.cc (isAssignableFrom): Move functionality to * java/lang/natClass.cc (isAssignableFrom): Move functionality to
inline function `_Jv_IsAssignableFrom'. Use that function. inline function `_Jv_IsAssignableFrom'. Use that function.
(isInstance): Declare `inline'. (isInstance): Declare `inline'.
(initializeClass): Get lock on class before checking `state'. Unlock (initializeClass): Get lock on class before checking `state'. Unlock
before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
the lock held. the lock held.
(_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString. (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
(_Jv_IsAssignableFrom): New inline function. Test assignability using (_Jv_IsAssignableFrom): New inline function. Test assignability using
class->depth and ancestor table. class->depth and ancestor table.
(_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom. (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
(_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
_Jv_IsAssignableFrom. _Jv_IsAssignableFrom.
(_Jv_CheckArrayStore): Ditto. (_Jv_CheckArrayStore): Ditto.
(_Jv_LookupInterfaceMethodIdx): New function. (_Jv_LookupInterfaceMethodIdx): New function.
INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines. INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
(_Jv_PrepareConstantTimeTables): New function. (_Jv_PrepareConstantTimeTables): New function.
(_Jv_IndexOf): Ditto. (_Jv_IndexOf): Ditto.
...@@ -5312,7 +5319,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> ...@@ -5312,7 +5319,7 @@ Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
* java/lang/natRuntime.cc (_load): Include library path with * java/lang/natRuntime.cc (_load): Include library path with
exception message. exception message.
* java/lang/natSystem.cc (init_properties): set java.lang.classpath * java/lang/natSystem.cc (init_properties): set java.lang.classpath
property. property.
* java/lang/natThread.cc (dumpStack): Removed. * java/lang/natThread.cc (dumpStack): Removed.
...@@ -5452,7 +5459,7 @@ Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com> ...@@ -5452,7 +5459,7 @@ Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
* java/lang/natThread.cc (stop): Don't abort, throw an exception * java/lang/natThread.cc (stop): Don't abort, throw an exception
instead. instead.
(suspend): Ditto. (suspend): Ditto.
2000-02-09 Tom Tromey <tromey@cygnus.com> 2000-02-09 Tom Tromey <tromey@cygnus.com>
* java/lang/natRuntime.cc (_load): Call add_library. * java/lang/natRuntime.cc (_load): Call add_library.
...@@ -5849,9 +5856,9 @@ Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com> ...@@ -5849,9 +5856,9 @@ Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
(printStackTrace): Call native method to do this. (printStackTrace): Call native method to do this.
(Throwable): Call fillInStackTrace. (Throwable): Call fillInStackTrace.
(stackTrace): New variable. (stackTrace): New variable.
* include/jvm.h: Add _Jv_ThisExecutable functions. * include/jvm.h: Add _Jv_ThisExecutable functions.
* prims.cc: (_Jv_execName): New variable. * prims.cc: (_Jv_execName): New variable.
(catch_segv): Call fillInStackTrace. (catch_segv): Call fillInStackTrace.
(catch_fpe): Ditto. (catch_fpe): Ditto.
......
...@@ -374,10 +374,8 @@ proc test_libjava_from_source { options srcfile compile_args inpfile resultfile ...@@ -374,10 +374,8 @@ proc test_libjava_from_source { options srcfile compile_args inpfile resultfile
fail "$errname compilation from source" fail "$errname compilation from source"
if {[info exists opts(xfail-gcj)] || ! [info exists opts(no-exec)]} { if {[info exists opts(xfail-gcj)] || ! [info exists opts(no-exec)]} {
setup_xfail "*-*-*" untested "$errname execution from source compiled test"
fail "$errname execution from source compiled test" untested "$errname output from source compiled test"
setup_xfail "*-*-*"
fail "$errname output from source compiled test"
} }
return return
} }
...@@ -400,8 +398,7 @@ proc test_libjava_from_source { options srcfile compile_args inpfile resultfile ...@@ -400,8 +398,7 @@ proc test_libjava_from_source { options srcfile compile_args inpfile resultfile
} }
$status "$errname execution from source compiled test" $status "$errname execution from source compiled test"
if { $status != "pass" } { if { $status != "pass" } {
setup_xfail "*-*-*" untested "$errname output from source compiled test"
fail "$errname execution from source compiled test"
return; return;
} }
...@@ -488,13 +485,10 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e ...@@ -488,13 +485,10 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
return return
} }
fail "$errname byte compilation" fail "$errname byte compilation"
setup_xfail "*-*-*" untested "$errname compilation from bytecode"
fail "$errname compilation from bytecode"
if {! [info exists opts(no-exec)]} { if {! [info exists opts(no-exec)]} {
setup_xfail "*-*-*" untested "$errname execution from bytecode->native test"
fail "$errname execution from bytecode->native test" untested "$errname output from bytecode->native test"
setup_xfail "*-*-*"
fail "$errname output from bytecode->native test"
} }
return return
} }
...@@ -520,14 +514,10 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e ...@@ -520,14 +514,10 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
if {[string match "*parse error*" $main_name] if {[string match "*parse error*" $main_name]
|| [string match "*parse error*" $class_out]} { || [string match "*parse error*" $class_out]} {
# Do the remaining fails. untested "$errname compilation from bytecode"
setup_xfail "*-*-*"
fail "$errname compilation from bytecode"
if {! [info exists opts(no-exec)]} { if {! [info exists opts(no-exec)]} {
setup_xfail "*-*-*" untested "$errname execution from bytecode->native test"
fail "$errname execution from bytecode->native test" untested "$errname output from bytecode->native test"
setup_xfail "*-*-*"
fail "$errname output from bytecode->native test"
} }
return return
} }
...@@ -603,11 +593,9 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e ...@@ -603,11 +593,9 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
if { $x != "" } { if { $x != "" } {
verbose "target_compile failed: $x" 2 verbose "target_compile failed: $x" 2
fail "$errname compilation from bytecode" fail "$errname compilation from bytecode"
setup_xfail "*-*-*"
if {! [info exists opts(no-exec)]} { if {! [info exists opts(no-exec)]} {
fail "$errname execution from bytecode->native test" untested "$errname execution from bytecode->native test"
setup_xfail "*-*-*" untested "$errname output from bytecode->native test"
fail "$errname output from bytecode->native test"
} }
return; return;
} }
...@@ -625,8 +613,7 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e ...@@ -625,8 +613,7 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
} }
$status "$errname execution from bytecode->native test" $status "$errname execution from bytecode->native test"
if { $status != "pass" } { if { $status != "pass" } {
setup_xfail "*-*-*" untested "$errname output from bytecode->native test"
fail "$errname output from bytecode->native test"
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment