Print exception trace inside Kit.codeBug() to have it even if the execption is shadowed by another one

git-svn-id: svn://10.0.0.236/trunk@161826 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2004-09-06 19:08:11 +00:00
parent e7e9c29def
commit f9cc5b8c67

View File

@@ -397,7 +397,10 @@ public class Kit
public static RuntimeException codeBug()
throws RuntimeException
{
throw new IllegalStateException("FAILED ASSERTION");
RuntimeException ex = new IllegalStateException("FAILED ASSERTION");
// Print stack trace ASAP
ex.printStackTrace(System.err);
throw ex;
}
}