This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: fixlet to Throwable
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: fixlet to Throwable
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 17 Jan 2000 23:15:06 -0700
- Reply-To: tromey at cygnus dot com
I'm committing this patch.
It changes Throwable.fillInStackTrace so that it always returns a
value, even when the stack trace isn't computed.
2000-01-17 Tom Tromey <tromey@cygnus.com>
* java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
when backtrace can't be computed.
Tom
Index: java/lang/natThrowable.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/natThrowable.cc,v
retrieving revision 1.1
diff -u -r1.1 natThrowable.cc
--- natThrowable.cc 2000/01/17 15:43:32 1.1
+++ natThrowable.cc 2000/01/18 06:09:47
@@ -57,9 +57,9 @@
// ??? Might this cause a problem if the byte array isn't aligned?
stackTrace = JvNewByteArray (n * sizeof p[0]);
memcpy (elements (stackTrace), p+1, (n * sizeof p[0]));
+#endif
return this;
-#endif
}
void