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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user