зеркало из https://github.com/mozilla/pjs.git
Print exception trace inside Kit.codeBug() to have it even if the execption is shadowed by another one
This commit is contained in:
Родитель
0d118e911c
Коммит
5c514c8b22
|
@ -397,7 +397,10 @@ public class Kit
|
||||||
public static RuntimeException codeBug()
|
public static RuntimeException codeBug()
|
||||||
throws RuntimeException
|
throws RuntimeException
|
||||||
{
|
{
|
||||||
throw new IllegalStateException("FAILED ASSERTION");
|
RuntimeException ex = new IllegalStateException("FAILED ASSERTION");
|
||||||
|
// Print stack trace ASAP
|
||||||
|
ex.printStackTrace(System.err);
|
||||||
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче