HHH-4822 proper placement of the fillStackTrace call
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18597 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
86989c157e
commit
57bb8f6b5f
|
@ -227,15 +227,10 @@ public abstract class TestCase extends junit.framework.TestCase {
|
|||
closeSession();
|
||||
throw t;
|
||||
}
|
||||
catch ( InvocationTargetException e ) {
|
||||
e.fillInStackTrace();
|
||||
throw e.getTargetException();
|
||||
}
|
||||
catch ( IllegalAccessException e ) {
|
||||
e.fillInStackTrace();
|
||||
throw e;
|
||||
}
|
||||
catch ( Throwable t ) {
|
||||
if ( t instanceof InvocationTargetException || t instanceof IllegalAccessException ) {
|
||||
t.fillInStackTrace();
|
||||
}
|
||||
closeSession();
|
||||
if ( failureExpected ) {
|
||||
FailureExpected ann = runMethod.getAnnotation( FailureExpected.class );
|
||||
|
|
Loading…
Reference in New Issue