[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22651] classpath/vm/reference/java/lang/Throwable.java se
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22651] classpath/vm/reference/java/lang/Throwable.java setStackTrace() problem. |
Date: |
16 Oct 2005 01:26:16 -0000 |
Hi,
I was just reading though your code out of iterest (as you do ;-) and I think
I've found a problem with the setStackTrace() method in the Throwable class.
The "stackTrace" parameter needs to be cloned/copied so that the caller can't
then modify the internal stackTrace of the Throwable object by for example
setting an index in the stackTrace array to null.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2002-08-15
20:05 -------
I was wondering about that myself. I recently updated that code to work with
libgcj and added a similar note at that point.
I will add the copy as soon as I merge the code back from libgcj (it hasn't
been approved yet).
------- Comment #2 from from-classpath at savannah dot gnu dot org 2002-10-10
12:47 -------
Throwable has been merged with libgcj including the suggested fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22651
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22651] classpath/vm/reference/java/lang/Throwable.java setStackTrace() problem.,
gcc-bugzilla at gcc dot gnu dot org <=