This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: fixlet to Throwable


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 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]