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:
Hardy Ferentschik 2010-01-20 22:33:16 +00:00
parent 86989c157e
commit 57bb8f6b5f
1 changed files with 3 additions and 8 deletions

View File

@ -227,15 +227,10 @@ public abstract class TestCase extends junit.framework.TestCase {
closeSession(); closeSession();
throw t; throw t;
} }
catch ( InvocationTargetException e ) {
e.fillInStackTrace();
throw e.getTargetException();
}
catch ( IllegalAccessException e ) {
e.fillInStackTrace();
throw e;
}
catch ( Throwable t ) { catch ( Throwable t ) {
if ( t instanceof InvocationTargetException || t instanceof IllegalAccessException ) {
t.fillInStackTrace();
}
closeSession(); closeSession();
if ( failureExpected ) { if ( failureExpected ) {
FailureExpected ann = runMethod.getAnnotation( FailureExpected.class ); FailureExpected ann = runMethod.getAnnotation( FailureExpected.class );